update copyright
[gnulib.git] / ChangeLog
1 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2
3         fflush: Fix syntax error.
4         * lib/fflush.c: Include unused-parameter.h, needed for
5         _GL_UNUSED_PARAMETER.
6         * modules/fflush (Depends-on): Add snippet/unused-parameter.
7
8 2012-03-29  Eric Blake  <eblake@redhat.com>
9
10         maint.mk: fix syntax checks without exclusions
11         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
12         Reported by Daniel P. Berrange.
13
14 2012-03-24  Bruno Haible  <bruno@clisp.org>
15
16         gnulib-tool: Avoid unintended error output from 'cmp'.
17         * gnulib-tool (func_add_file, func_update_file, func_import): Use
18         "cmp -s", not "cmp > /dev/null".
19
20 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
21
22         gnulib-tool: fix imprecise comments w.r.t. an automake bug
23
24         It's not just Automake versions < 1.9b that creates an empty
25         pkgdatadir at installation time if pkgdata_DATA is specified
26         to empty; modern automake versions do this as well, at least
27         until automake 1.11.4 (not yet released at the moment of writing,
28         but soon to appear).  That behaviour was generally considered a
29         feature rather than a bug, at least until this discussion:
30         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
31
32         See also automake bugs #10997 and #11030.
33
34         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
35         reference to relevant automake bug numbers.
36         (func_emit_tests_Makefile_am): Likewise.
37
38 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39
40         announce-gen: use Digest::SHA when possible
41         * build-aux/announce-gen: Use Digest::SHA when possible, falling
42         back to Digest::SHA1 if necessary.
43
44 2012-03-20  Jim Meyering  <meyering@redhat.com>
45
46         tests: avoid gcc warnings about argv vs. const initializers
47         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
48         warnings about discarding 'const' qualifier from pointer target type.
49         * tests/test-posix_spawn2.c (main): Likewise.
50
51 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
52
53         README-release: simplify slightly
54         * top/README-release: Run "git checkout master" only once.
55
56 2012-03-15  Mark Wielaard  <mark@klomp.org>
57
58         git-merge-changelog: add specific example on how to use with hg.
59         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
60
61 2012-03-18  Mark Wielaard  <mark@klomp.org>
62
63         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
64
65 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
66
67         git-version-gen: don't let "prefix" envvar cause trouble
68         * build-aux/git-version-gen (prefix): Initialize properly,
69         so as not to use a value specified via the environment.
70         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
71
72 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73
74         regex: diagnose too-large repeat counts in EREs
75         Previously, the code did not diagnose the too-large repeat count
76         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
77         as if it were 'b\{1000000000}', which is unexpected.
78         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
79         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
80         is a reasonable one for this problem.  Another option would be to
81         create a new REG_OVERFLOW error for repeat counts that are too large.
82         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
83         count is too large, so that the caller can distinguish the two cases.
84         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
85         "Too large" return code, and that repeat counts are one example of this.
86
87 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
88
89         doc: some glibc x32 integer width issues
90         * doc/posix-headers/sys_types.texi (sys/types.h):
91         * doc/posix-headers/time.texi (time.h):
92         Mention that glibc x32 does not conform to POSIX in a couple of
93         areas related to integer widths.
94
95 2012-03-15  Bruno Haible  <bruno@clisp.org>
96
97         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
98         * lib/fma.c (VOLATILE): New macro.
99         (FUNC): Use it to work around a GCC compiler bug.
100
101 2012-03-13  Bruno Haible  <bruno@clisp.org>
102
103         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
104         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
105         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
106         REPLACE_HYPOTL to 1.
107         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
108
109 2012-03-13  Bruno Haible  <bruno@clisp.org>
110
111         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
112         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
113         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
114         REPLACE_REMAINDERL to 1.
115         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
116         bug.
117
118 2012-03-13  Bruno Haible  <bruno@clisp.org>
119
120         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
121         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
122         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
123         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
124         too big rounding errors.
125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
126         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
127         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
128         (Depends-on): Update conditions.
129         * tests/test-sqrtl.c (my_ldexpl): New function.
130         (main): Add test of a particular value.
131         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
132
133 2012-03-13  Pádraig Brady  <P@draigBrady.com>
134
135         doc: Update timer_* platform portability notes.
136         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
137         that always return ENOSYS.
138         * doc/posix-functions/timer_delete.texi: Likewise.
139         * doc/posix-functions/timer_gettime.texi: Likewise.
140         * doc/posix-functions/timer_settime.texi: Likewise.
141
142 2012-03-13  Bruno Haible  <bruno@clisp.org>
143
144         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
145         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
146         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
147         REPLACE_CBRTL to 1.
148         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
149
150 2012-03-13  Bruno Haible  <bruno@clisp.org>
151
152         remainderl: Avoid compilation error on AIX >= 5.2.
153         * lib/math.in.h (remainderl): Undefine macro from the system header.
154
155 2012-03-13  Bruno Haible  <bruno@clisp.org>
156
157         Avoid compilation errors with MSVC option -fp:strict.
158         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
159         * lib/cbrtf.c: Likewise.
160         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
161
162 2012-03-12  Bruno Haible  <bruno@clisp.org>
163
164         uninorm: Don't crash in out-of-memory conditions.
165         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
166         gracefully.
167         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
168         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
169
170 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
171
172         quote: fix syntax-check
173         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
174         also exports quote_quoting_options.
175
176 2012-03-12  Simon Josefsson  <simon@josefsson.org>
177
178         Collapse list of copyright years to ranges.  See
179         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
180         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
181         build-aux/csharpexec.sh.in, build-aux/gnupload,
182         build-aux/install-reloc, build-aux/javacomp.sh.in,
183         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
184         build-aux/move-if-change, build-aux/reloc-ldflags,
185         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
186
187 2012-03-11  Bruno Haible  <bruno@clisp.org>
188
189         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
190         * m4/log2f-ieee.m4: New file.
191         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
192         whether log2f works with a minus zero argument. Replace it if not.
193         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
194         (Depends-on): Add log2-ieee.
195         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
196         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
197
198         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
199         * m4/log2-ieee.m4: New file.
200         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
201         whether log2 works with a minus zero argument. Replace it if not.
202         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
203         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
204         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
205
206         Tests for module 'log2l-ieee'.
207         * modules/log2l-ieee-tests: New file.
208         * tests/test-log2l-ieee.c: New file.
209
210         New module 'log2l-ieee'.
211         * modules/log2l-ieee: New file.
212
213         Tests for module 'log2-ieee'.
214         * modules/log2-ieee-tests: New file.
215         * tests/test-log2-ieee.c: New file.
216
217         New module 'log2-ieee'.
218         * modules/log2-ieee: New file.
219
220         Tests for module 'log2f-ieee'.
221         * modules/log2f-ieee-tests: New file.
222         * tests/test-log2f-ieee.c: New file.
223         * tests/test-log2-ieee.h: New file.
224
225         New module 'log2f-ieee'.
226         * modules/log2f-ieee: New file.
227
228 2012-03-11  Bruno Haible  <bruno@clisp.org>
229
230         Tests for module 'log2l'.
231         * modules/log2l-tests: New file.
232         * tests/test-log2l.c: New file.
233
234         New module 'log2l'.
235         * lib/math.in.h (log2l): New declaration.
236         * lib/log2l.c: New file.
237         * m4/log2l.m4: New file.
238         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
240         REPLACE_LOG2L.
241         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
242         REPLACE_LOG2L.
243         * modules/log2l: New file.
244         * tests/test-math-c++.cc: Check the declaration of log2l.
245         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
246         and OSF/1 problems.
247
248 2012-03-11  Bruno Haible  <bruno@clisp.org>
249
250         Tests for module 'log2f'.
251         * modules/log2f-tests: New file.
252         * tests/test-log2f.c: New file.
253
254         New module 'log2f'.
255         * lib/math.in.h (log2f): New declaration.
256         * lib/log2f.c: New file.
257         * m4/log2f.m4: New file.
258         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
260         REPLACE_LOG2F.
261         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
262         REPLACE_LOG2F.
263         * modules/log2f: New file.
264         * tests/test-math-c++.cc: Check the declaration of log2f.
265         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
266         and OSF/1 and Cygwin problems.
267
268 2012-03-11  Bruno Haible  <bruno@clisp.org>
269
270         Tests for module 'log2'.
271         * modules/log2-tests: New file.
272         * tests/test-log2.c: New file.
273         * tests/test-log2.h: New file.
274
275         New module 'log2'.
276         * lib/math.in.h (log2): New declaration.
277         * lib/log2.c: New file.
278         * m4/log2.m4: New file.
279         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
281         REPLACE_LOG2.
282         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
283         REPLACE_LOG2.
284         * modules/log2: New file.
285         * tests/test-math-c++.cc: Check the declaration of log2.
286         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
287         and OSF/1 and Cygwin problems.
288
289 2012-03-11  Bruno Haible  <bruno@clisp.org>
290
291         exp2* tests: More tests.
292         * tests/test-exp2.h (test_function): Test all integral arguments that
293         don't need to overflow or denormalized numbers.
294         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
295         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
296         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
297
298 2012-03-10  Bruno Haible  <bruno@clisp.org>
299
300         log1pl-ieee: Work around test failure on AIX 7.1.
301         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
302
303         log1pl-ieee: Work around test failure on IRIX 6.5.
304         * m4/log1pl-ieee.m4: New file.
305         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
306         test whether log1pl works with a minus zero argument. Replace it if
307         not.
308         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
310         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
311         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
312         (Depends-on): Update conditions.
313         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
314         m4/signbit.m4.
315         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
316         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
317
318         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
319         * m4/log1pf-ieee.m4: New file.
320         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
321         test whether log1pf works with a minus zero argument. Replace it if
322         not.
323         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
324         m4/signbit.m4.
325         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
326         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
327
328         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
329         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
330         (configure.ac): Require gl_FUNC_LOG1PF.
331
332         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
333         * m4/log1p-ieee.m4: New file.
334         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
335         whether log1p works with a minus zero argument. Replace it if not.
336         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
338         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
339         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
340         (Depends-on): Update conditions.
341         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
342         m4/signbit.m4.
343         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
344         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
345
346         Tests for module 'log1pl-ieee'.
347         * modules/log1pl-ieee-tests: New file.
348         * tests/test-log1pl-ieee.c: New file.
349
350         New module 'log1pl-ieee'.
351         * modules/log1pl-ieee: New file.
352
353         Tests for module 'log1p-ieee'.
354         * modules/log1p-ieee-tests: New file.
355         * tests/test-log1p-ieee.c: New file.
356
357         New module 'log1p-ieee'.
358         * modules/log1p-ieee: New file.
359
360         Tests for module 'log1pf-ieee'.
361         * modules/log1pf-ieee-tests: New file.
362         * tests/test-log1pf-ieee.c: New file.
363         * tests/test-log1p-ieee.h: New file.
364
365         New module 'log1pf-ieee'.
366         * modules/log1pf-ieee: New file.
367
368 2012-03-10  Bruno Haible  <bruno@clisp.org>
369
370         Tests for module 'log1pl'.
371         * modules/log1pl-tests: New file.
372         * tests/test-log1pl.c: New file.
373
374         New module 'log1pl'.
375         * lib/math.in.h (log1pl): New declaration.
376         * lib/log1pl.c: New file.
377         * m4/log1pl.m4: New file.
378         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
380         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
381         * modules/log1pl: New file.
382         * tests/test-math-c++.cc: Check the declaration of log1pl.
383         * doc/posix-functions/log1pl.texi: Mention the new module.
384
385 2012-03-10  Bruno Haible  <bruno@clisp.org>
386
387         Tests for module 'log1pf'.
388         * modules/log1pf-tests: New file.
389         * tests/test-log1pf.c: New file.
390
391         New module 'log1pf'.
392         * lib/math.in.h (log1pf): New declaration.
393         * lib/log1pf.c: New file.
394         * m4/log1pf.m4: New file.
395         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
397         REPLACE_LOG1PF.
398         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
399         REPLACE_LOG1PF.
400         * modules/log1pf: New file.
401         * tests/test-math-c++.cc: Check the declaration of log1pf.
402         * doc/posix-functions/log1pf.texi: Mention the new module.
403
404 2012-03-10  Bruno Haible  <bruno@clisp.org>
405
406         log1p tests: More tests.
407         * tests/test-log1p.h: New file.
408         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
409         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
410         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
411         (main): Invoke test_function.
412
413         log1p: Provide replacement for Minix and MSVC.
414         * lib/math.in.h (log1p): New declaration.
415         * lib/log1p.c: New file.
416         * m4/log1p.m4: New file.
417         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
419         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
420         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
421         (Depends-on): Add math, isnand, log, round.
422         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
423         HAVE_LOG1P is 0.
424         * tests/test-math-c++.cc: Check the declaration of log1p.
425         * doc/posix-functions/log1p.texi: Mention the replacement.
426
427 2012-03-10  Bruno Haible  <bruno@clisp.org>
428
429         math tests: Small simplification.
430         * tests/test-exp.h (test_function): Use the same err_bound for
431         'double' on platforms with sizeof (long double) == sizeof (double)
432         than on platforms with sizeof (long double) > sizeof (double).
433         * tests/test-exp2.h (test_function): Likewise.
434         * tests/test-expm1.h (test_function): Likewise.
435         * tests/test-log.h (test_function): Likewise.
436
437 2012-03-10  Bruno Haible  <bruno@clisp.org>
438
439         Fix some comments.
440         * lib/expl.c: Fix an ambiguous comment.
441         * lib/expm1.c: Likewise.
442         * lib/expm1l.c: Likewise.
443         * lib/exp2.c: Likewise.
444         * lib/exp2l.c: Likewise.
445
446 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
447
448         regex: allow inclusion of <regex.h> before <limits.h>
449         Without this patch, portable programs had to include <limits.h> before
450         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
451         I ran into this problem with a test version of GNU grep on Solaris 8.
452         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
453         This is done conditionally so that this change can be merged
454         back to glibc.
455         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
456         using the included regex.
457
458         fts: depend on fdopendir
459         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
460         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
461         problem was introduced when fdopendir was split out.
462
463 2012-03-10  Bruno Haible  <bruno@clisp.org>
464
465         Remove unused variables.
466         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
467         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
468
469 2012-03-10  Bruno Haible  <bruno@clisp.org>
470
471         isnanf-nolibm: Fix last commit.
472         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
473
474         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
475         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
476
477 2012-03-10  Bruno Haible  <bruno@clisp.org>
478
479         logf-ieee: Work around test failure on NetBSD 5.1.
480         * m4/logf-ieee.m4: New file.
481         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
482         whether logf works with a negative argument. Replace it if not.
483         * lib/logf.c (logf): For negative arguments, return NaN.
484         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
485         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
486         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
487
488         logf-ieee: Work around test failure on Solaris 9.
489         * modules/logf-ieee (Depends-on): Add log-ieee.
490         (configure.ac): Require gl_FUNC_LOGF.
491
492         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
493         * m4/log-ieee.m4: New file.
494         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
495         log works with a negative argument. Replace it if not.
496         * lib/log.c (log): For negative arguments, return NaN.
497         * modules/log-ieee (Files): Add m4/log-ieee.m4.
498         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
499         * doc/posix-functions/log.texi: Mention the log-ieee module.
500
501         Tests for module 'logl-ieee'.
502         * modules/logl-ieee-tests: New file.
503         * tests/test-logl-ieee.c: New file.
504
505         New module 'logl-ieee'.
506         * modules/logl-ieee: New file.
507
508         Tests for module 'log-ieee'.
509         * modules/log-ieee-tests: New file.
510         * tests/test-log-ieee.c: New file.
511
512         New module 'log-ieee'.
513         * modules/log-ieee: New file.
514
515         Tests for module 'logf-ieee'.
516         * modules/logf-ieee-tests: New file.
517         * tests/test-logf-ieee.c: New file.
518         * tests/test-log-ieee.h: New file.
519
520         New module 'logf-ieee'.
521         * modules/logf-ieee: New file.
522
523 2012-03-10  Bruno Haible  <bruno@clisp.org>
524
525         log: Fix bug introduced on 2012-03-09.
526         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
527
528 2012-03-10  Pádraig Brady  <P@draigBrady.com>
529
530         timer-time: link explicitly with pthreads on glibc
531         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
532         to support static linking, when newer glibc is
533         detected, as that contains pthread emulation of
534         POSIX timer functions where required.
535         * modules/timer-time: Depend on threadlib to
536         pull in the appropriate library to link.
537
538 2012-03-10  Bruno Haible  <bruno@clisp.org>
539
540         log* tests: More tests.
541         * tests/test-log.h: New file.
542         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
543         (main): Invoke test_function.
544         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
545         (main): Invoke test_function.
546         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
547         (main): Invoke test_function.
548         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
549         tests/randomd.c.
550         (Makefile.am): Add randomd.c to test_log_SOURCES.
551         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
552         tests/randomf.c.
553         (Makefile.am): Add randomf.c to test_logf_SOURCES.
554         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
555         tests/randoml.c.
556         (Depends-on): Add 'float'.
557         (Makefile.am): Add randoml.c to test_logl_SOURCES.
558
559 2012-03-09  Bruno Haible  <bruno@clisp.org>
560
561         logl: Work around OSF/1 5.1 bug.
562         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
563         * lib/logl.c (logl): If logf exists, use it and provide just the
564         workaround.
565         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
566         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
568         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
569         * modules/logl (configure.ac): Consider REPLACE_LOGL.
570         (Depends-on): Update conditions.
571         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
572
573 2012-03-09  Bruno Haible  <bruno@clisp.org>
574
575         logf: Work around OSF/1 5.1 bug.
576         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
577         * lib/logf.c (logf): If logf exists, use it and provide just the
578         workaround.
579         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
580         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
582         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
583         * modules/logf (configure.ac): Consider REPLACE_LOGF.
584         (Depends-on): Update conditions.
585         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
586
587 2012-03-09  Bruno Haible  <bruno@clisp.org>
588
589         log: Work around OSF/1 5.1 bug.
590         * lib/math.in.h (log): New declaration.
591         * lib/log.c: New file.
592         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
593         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
594         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
596         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
597         * modules/log (Files): Add lib/log.c.
598         (Depends-on): Add math.
599         (configure.ac): If REPLACE_LOG is 1, compile an override.
600         * tests/test-math-c++.cc: Check the declaration of log.
601         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
602
603 2012-03-09  Jim Meyering  <meyering@redhat.com>
604
605         readtokens.c: adjust wording in a comment
606         * lib/readtokens.c: Insert omitted "that" in a comment.
607
608 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
609
610         modechange: add notations +40, 00440, etc.
611         * lib/modechange.c (mode_compile): Support new notations
612         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
613
614 2012-03-08  Bruno Haible  <bruno@clisp.org>
615
616         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
617         * m4/exp2l-ieee.m4: New file.
618         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
619         test whether exp2l works with a NaN argument and with a negative
620         infinity argument. Replace it if not.
621         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
623         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
624         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
625         (Depends-on): Update conditions.
626         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
627         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
628         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
629
630         Tests for module 'exp2l-ieee'.
631         * modules/exp2l-ieee-tests: New file.
632         * tests/test-exp2l-ieee.c: New file.
633
634         New module 'exp2l-ieee'.
635         * modules/exp2l-ieee: New file.
636
637         Tests for module 'exp2-ieee'.
638         * modules/exp2-ieee-tests: New file.
639         * tests/test-exp2-ieee.c: New file.
640
641         New module 'exp2-ieee'.
642         * modules/exp2-ieee: New file.
643
644         Tests for module 'exp2f-ieee'.
645         * modules/exp2f-ieee-tests: New file.
646         * tests/test-exp2f-ieee.c: New file.
647         * tests/test-exp2-ieee.h: New file.
648
649         New module 'exp2f-ieee'.
650         * modules/exp2f-ieee: New file.
651
652 2012-03-08  Bruno Haible  <bruno@clisp.org>
653
654         Tests for module 'exp2l'.
655         * modules/exp2l-tests: New file.
656         * tests/test-exp2l.c: New file.
657
658         New module 'exp2l'.
659         * lib/math.in.h (exp2l): New declaration.
660         * lib/exp2l.c: New file.
661         * lib/expl-table.c: New file, extracted from lib/expl.c.
662         * lib/expl.c (gl_expl_table): New declaration.
663         (expl): Remove expl_table. Update reference.
664         * m4/exp2l.m4: New file.
665         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
667         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
668         * modules/exp2l: New file.
669         * modules/expl (Files): Add lib/expl-table.c.
670         (configure.ac): Compile also expl-table.c.
671         * tests/test-math-c++.cc: Check the declaration of exp2l.
672         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
673         problem.
674
675 2012-03-08  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'exp2f'.
678         * modules/exp2f-tests: New file.
679         * tests/test-exp2f.c: New file.
680
681         New module 'exp2f'.
682         * lib/math.in.h (exp2f): New declaration.
683         * lib/exp2f.c: New file.
684         * m4/exp2f.m4: New file.
685         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
687         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
688         * modules/exp2f: New file.
689         * tests/test-math-c++.cc: Check the declaration of exp2f.
690         * doc/posix-functions/exp2f.texi: Mention the new module and the
691         IRIX problem.
692
693 2012-03-08  Bruno Haible  <bruno@clisp.org>
694
695         Tests for module 'exp2'.
696         * modules/exp2-tests: New file.
697         * tests/test-exp2.c: New file.
698         * tests/test-exp2.h: New file.
699
700         New module 'exp2'.
701         * lib/math.in.h (exp2): New declaration.
702         * lib/exp2.c: New file.
703         * m4/exp2.m4: New file.
704         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
706         REPLACE_EXP2.
707         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
708         REPLACE_EXP2.
709         * modules/exp2: New file.
710         * tests/test-math-c++.cc: Check the declaration of exp2.
711         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
712         and OpenBSD problems.
713
714 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
715
716         savedir: fix comment typo
717         * lib/savedir.c (savedirstream): Fix typo in comment.
718
719 2012-03-08  Bruno Haible  <bruno@clisp.org>
720
721         test-readtokens.c: use const; remove unwarranted cast
722         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
723
724 2012-03-08  Bruno Haible  <bruno@clisp.org>
725
726         fmal: Avoid compilation error on AIX.
727         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
728         AIX 5.2..7.1.
729
730 2012-03-08  Bruno Haible  <bruno@clisp.org>
731
732         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
733         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
734         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
735         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
736         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
737         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
738         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
739
740 2012-03-08  Bruno Haible  <bruno@clisp.org>
741
742         remainderf: Override buggy system function on IRIX 6.5.
743         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
744         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
745         when it exists.
746         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
747
748 2012-03-08  Jim Meyering  <meyering@redhat.com>
749
750         test-readtokens.c: avoid const-related compilation warnings
751         * tests/test-readtokens.c: Avoid const-related compilation warnings.
752
753 2012-03-07  Jim Meyering  <meyering@redhat.com>
754             Bruno Haible  <bruno@clisp.org>
755
756         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
757         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
758         tests/randomd.c.
759         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
760         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
761         tests/randoml.c.
762         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
763
764 2012-03-07  Bruno Haible  <bruno@clisp.org>
765
766         expm1l: Avoid compilation error on AIX.
767         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
768         AIX 5.2..7.1.
769
770 2012-03-07  Bruno Haible  <bruno@clisp.org>
771
772         expm1l: Don't override undeclared system function on IRIX 6.5.
773         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
774         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
775         it exists. Set HAVE_DECL_EXPM1L.
776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
777         HAVE_EXPM1L.
778         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
779         HAVE_EXPM1L.
780         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
781
782 2012-03-07  Bruno Haible  <bruno@clisp.org>
783
784         remainderl: Don't override undeclared system function on IRIX 6.5.
785         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
786         HAVE_REMAINDERL.
787         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
788         declared when it exists. Set HAVE_DECL_REMAINDERL.
789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
790         not HAVE_REMAINDERL.
791         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
792         HAVE_REMAINDERL.
793         * doc/posix-functions/remainderl.texi: Mention missing declaration
794         problem.
795
796 2012-03-07  Bruno Haible  <bruno@clisp.org>
797
798         rintf: Don't override undeclared system function on IRIX 6.5.
799         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
800         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
801         exists. Set HAVE_DECL_RINTF.
802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
803         HAVE_RINTF.
804         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
805         HAVE_RINTF.
806         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
807
808 2012-03-07  Bruno Haible  <bruno@clisp.org>
809
810         roundl: Avoid compilation error on AIX.
811         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
812         AIX 5.2..7.1.
813
814 2012-03-07  Bruno Haible  <bruno@clisp.org>
815
816         roundl: Don't override undeclared system function on IRIX 6.5.
817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
818         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
819         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
820         * modules/roundl (configure.ac): For replacement code, test
821         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
822         (Depends-on): Update conditions.
823         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
824
825 2012-03-07  Bruno Haible  <bruno@clisp.org>
826
827         roundf: Don't override undeclared system function on IRIX 6.5.
828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
829         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
830         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
831         * modules/roundf (configure.ac): For replacement code, test
832         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
833         (Depends-on): Update conditions.
834         * modules/roundf-ieee (Depends-on): Update conditions.
835         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
836
837 2012-03-07  Bruno Haible  <bruno@clisp.org>
838
839         round: Don't override undeclared system function on IRIX 6.5.
840         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
841         argument.
842         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
843         also when it is not declared. Set HAVE_ROUND. For replacement code,
844         test HAVE_ROUND, not HAVE_DECL_ROUND.
845         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
846         not HAVE_DECL_ROUND.
847         (Depends-on): Update conditions.
848         * modules/round-ieee (Depends-on): Update conditions.
849         * doc/posix-functions/round.texi: Mention the IRIX problem.
850
851 2012-03-07  Bruno Haible  <bruno@clisp.org>
852
853         copysignf: Don't override undeclared system function on IRIX 6.5.
854         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
855         HAVE_COPYSIGNF.
856         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
857         declared when it exists. Set HAVE_DECL_COPYSIGNF.
858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
859         not HAVE_COPYSIGNF.
860         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
861         HAVE_COPYSIGNF.
862         * doc/posix-functions/copysignf.texi: Mention missing declaration
863         problem.
864
865 2012-03-07  Jim Meyering  <meyering@redhat.com>
866
867         readtokens: add tests
868         * modules/readtokens-tests: New file.
869         * tests/test-readtokens.c: New file.
870
871 2012-03-07  Jim Meyering  <meyering@redhat.com>
872
873         quotearg: the module must now include quote.h
874         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
875         So must the module.
876         * modules/quotearg (Files): Add quote.h.
877
878 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
879
880         readtokens: avoid core dumps with unusual calling patterns
881         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
882         * lib/readtokens.c: Include limits.h.
883         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
884         (readtoken): Don't cache the delimiters; the cache code was buggy
885         if !delim && saved_delim, or if the new n_delim differs from the old.
886         Also, it wasn't thread-safe.
887
888 2012-03-07  Bruno Haible  <bruno@clisp.org>
889
890         quote: Adhere to common module description layout.
891         * modules/quote (Makefile.am): Add back empty section.
892
893 2012-03-06  Akim Demaille  <demaille@gostai.com>
894
895         quote: fuse into quotearg
896         This patch is made for the benefit of Bison.
897         quote does not leave the choice of the quoting style to the user.
898         quoting_style provides poor customizability, yet quoting_options,
899         which is very rich, is hidden inside quotearg.c.  So in order to
900         allow quote customization, move its implementation to quotearg.c.
901         * lib/quote.c: Remove.
902         * modules/quote: Adjust.
903         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
904         warning: provide all the members of literal structs.
905         (quote_quoting_options): New.
906         (quote, quote_n): Import implementation from quote.c.
907         * lib/quote.h: Import the comments from quote.c.
908         (quote_quoting_options): New.
909
910 2012-03-06  Bruno Haible  <bruno@clisp.org>
911
912         Tests for module 'expm1l-ieee'.
913         * modules/expm1l-ieee-tests: New file.
914         * tests/test-expm1l-ieee.c: New file.
915
916         New module 'expm1l-ieee'.
917         * modules/expm1l-ieee: New file.
918
919         Tests for module 'expm1f-ieee'.
920         * modules/expm1f-ieee-tests: New file.
921         * tests/test-expm1f-ieee.c: New file.
922
923         New module 'expm1f-ieee'.
924         * modules/expm1f-ieee: New file.
925
926         Tests for module 'expm1-ieee'.
927         * modules/expm1-ieee-tests: New file.
928         * tests/test-expm1-ieee.c: New file.
929         * tests/test-expm1-ieee.h: New file.
930
931         New module 'expm1-ieee'.
932         * modules/expm1-ieee: New file.
933         * m4/expm1-ieee.m4: New file.
934         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
935         whether expm1 works with a minus zero argument. Replace it if not.
936         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
938         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
939         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
940         (Depends-on): Update conditions.
941         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
942         AIX problem.
943
944 2012-03-06  Bruno Haible  <bruno@clisp.org>
945
946         Work around expm1f bug on IRIX 6.5.
947         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
948         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
949         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
950         not work.
951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
952         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
953         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
954         (Depends-on): Update conditions.
955         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
956
957 2012-03-06  Bruno Haible  <bruno@clisp.org>
958
959         Tests for module 'expm1l'.
960         * modules/expm1l-tests: New file.
961         * tests/test-expm1l.c: New file.
962
963         New module 'expm1l'.
964         * lib/math.in.h (expm1l): New declaration.
965         * lib/expm1l.c: New file.
966         * m4/expm1l.m4: New file.
967         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
969         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
970         * modules/expm1l: New file.
971         * tests/test-math-c++.cc: Check the declaration of expm1l.
972         * doc/posix-functions/expm1l.texi: Mention the new module.
973
974 2012-03-06  Bruno Haible  <bruno@clisp.org>
975
976         Tests for module 'expm1f'.
977         * modules/expm1f-tests: New file.
978         * tests/test-expm1f.c: New file.
979
980         New module 'expm1f'.
981         * lib/math.in.h (expm1f): New declaration.
982         * lib/expm1f.c: New file.
983         * m4/expm1f.m4: New file.
984         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
986         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
987         * modules/expm1f: New file.
988         * tests/test-math-c++.cc: Check the declaration of expm1f.
989         * doc/posix-functions/expm1f.texi: Mention the new module.
990
991 2012-03-06  Bruno Haible  <bruno@clisp.org>
992
993         Tests for module 'expm1'.
994         * modules/expm1-tests: New file.
995         * tests/test-expm1.c: New file.
996         * tests/test-expm1.h: New file.
997
998         New module 'expm1'.
999         * lib/math.in.h (expm1): New declaration.
1000         * lib/expm1.c: New file.
1001         * m4/expm1.m4: New file.
1002         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1004         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1005         * modules/expm1: New file.
1006         * tests/test-math-c++.cc: Check the declaration of expm1.
1007         * doc/posix-functions/expm1.texi: Mention the new module.
1008
1009 2012-03-06  Bruno Haible  <bruno@clisp.org>
1010
1011         math: Ensure declarations of math functions.
1012         * modules/acosf (Depends-on): Add 'extensions'.
1013         * modules/asinf (Depends-on): Likewise.
1014         * modules/atan2f (Depends-on): Likewise.
1015         * modules/atanf (Depends-on): Likewise.
1016         * modules/cbrt (Depends-on): Likewise.
1017         * modules/cbrtf (Depends-on): Likewise.
1018         * modules/cbrtl (Depends-on): Likewise.
1019         * modules/copysignf (Depends-on): Likewise.
1020         * modules/copysignl (Depends-on): Likewise.
1021         * modules/cosf (Depends-on): Likewise.
1022         * modules/coshf (Depends-on): Likewise.
1023         * modules/expf (Depends-on): Likewise.
1024         * modules/fabsf (Depends-on): Likewise.
1025         * modules/fabsl (Depends-on): Likewise.
1026         * modules/fmaf (Depends-on): Likewise.
1027         * modules/fmal (Depends-on): Likewise.
1028         * modules/fmodf (Depends-on): Likewise.
1029         * modules/fmodl (Depends-on): Likewise.
1030         * modules/frexpf (Depends-on): Likewise.
1031         * modules/frexpl (Depends-on): Likewise.
1032         * modules/hypot (Depends-on): Likewise.
1033         * modules/hypotf (Depends-on): Likewise.
1034         * modules/hypotl (Depends-on): Likewise.
1035         * modules/ldexpf (Depends-on): Likewise.
1036         * modules/ldexpl (Depends-on): Likewise.
1037         * modules/log10f (Depends-on): Likewise.
1038         * modules/log10l (Depends-on): Likewise.
1039         * modules/log1p (Depends-on): Likewise.
1040         * modules/logb (Depends-on): Likewise.
1041         * modules/logf (Depends-on): Likewise.
1042         * modules/modff (Depends-on): Likewise.
1043         * modules/modfl (Depends-on): Likewise.
1044         * modules/powf (Depends-on): Likewise.
1045         * modules/remainderf (Depends-on): Likewise.
1046         * modules/remainderl (Depends-on): Likewise.
1047         * modules/rintf (Depends-on): Likewise.
1048         * modules/rintl (Depends-on): Likewise.
1049         * modules/sinf (Depends-on): Likewise.
1050         * modules/sinhf (Depends-on): Likewise.
1051         * modules/sqrtf (Depends-on): Likewise.
1052         * modules/tanf (Depends-on): Likewise.
1053         * modules/tanhf (Depends-on): Likewise.
1054         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1055         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1056         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1057         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1058         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1059         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1060         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1061         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1062         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1063         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1064         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1065         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1066         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1067         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1068         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1069         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1070         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1071         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1072         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1073         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1074         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1075         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1076         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1077         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1079         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1080         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1081         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1082         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1083         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1084         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1085         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1086         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1087         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1088         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1089         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1090         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1091         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1092         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1093         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1094         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1095
1096 2012-03-06  Bruno Haible  <bruno@clisp.org>
1097
1098         math: Update module names in warnings.
1099         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1100         tanl): Use specific module name in warn-on-use warning.
1101
1102 2012-03-06  Bruno Haible  <bruno@clisp.org>
1103
1104         expl: Simplify computation.
1105         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1106
1107 2012-03-05  Bruno Haible  <bruno@clisp.org>
1108
1109         exp* tests: More tests.
1110         * tests/test-exp.h: New file.
1111         * tests/test-exp.c: Include <float.h> and test-exp.h.
1112         (main): Invoke test_function.
1113         * tests/test-expf.c: Include <float.h> and test-exp.h.
1114         (main): Invoke test_function.
1115         * tests/test-expl.c: Include <float.h> and test-exp.h.
1116         (main): Invoke test_function.
1117         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1118         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1119         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1120         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1121         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1122         (Depends-on): Add 'float'.
1123         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1124
1125         expl: Fix precision of computed result.
1126         * lib/expl.c: Completely rewritten.
1127         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1128         (Maintainer): Add me.
1129         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1130
1131 2012-03-05  Bruno Haible  <bruno@clisp.org>
1132
1133         cbrt* tests: More tests.
1134         * tests/test-cbrt.h: New file.
1135         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1136         (main): Invoke test_function.
1137         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1138         (main): Invoke test_function.
1139         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1140         (main): Invoke test_function.
1141         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1142         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1143         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1144         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1145         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1146         (Depends-on): Add 'float'.
1147         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1148
1149 2012-03-05  Bruno Haible  <bruno@clisp.org>
1150
1151         hypot* tests: More tests.
1152         * tests/test-hypot.h: New file, partially extracted from
1153         tests/test-hypotl.c.
1154         * tests/test-hypot.c: Include test-hypot.h.
1155         (main): Invoke test_function.
1156         * tests/test-hypotf.c: Include test-hypot.h.
1157         (main): Invoke test_function.
1158         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1159         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1160         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1161         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1162         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1163         tests/randomf.c.
1164         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1165         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1166         tests/randoml.c.
1167         (Depends-on): Add 'fpucw', 'float'.
1168         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1169
1170 2012-03-05  Bruno Haible  <bruno@clisp.org>
1171
1172         fpucw: Doc about FreeBSD.
1173         * lib/fpucw.h: Mention FreeBSD in comments.
1174
1175 2012-03-04  Bruno Haible  <bruno@clisp.org>
1176
1177         sqrt* tests: More tests.
1178         * tests/test-sqrt.h: New file.
1179         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1180         (main): Invoke test_function.
1181         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1182         (main): Invoke test_function.
1183         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1184         (main): Invoke test_function.
1185         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1186         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1187         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1188         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1189         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1190         (Depends-on): Add 'float'.
1191         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1192
1193 2012-03-04  Bruno Haible  <bruno@clisp.org>
1194
1195         remainder* tests: More tests.
1196         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1197         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1198         (main): Invoke test_function.
1199         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1200         (main): Invoke test_function.
1201         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1202         (main): Invoke test_function.
1203         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1204         tests/randomd.c.
1205         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1206         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1207         tests/randomf.c.
1208         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1209         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1210         tests/randoml.c.
1211         (Depends-on): Add 'float'.
1212         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1213
1214 2012-03-04  Bruno Haible  <bruno@clisp.org>
1215
1216         remainder, remainderf, remainderl: Fix computation for large quotients.
1217         * lib/remainder.c: Completely rewritten.
1218         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1219         USE_FLOAT.
1220         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1221         USE_LONG_DOUBLE.
1222         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1223         isnand, isinf. Remove round, fma.
1224         * modules/remainderf (Files): Add lib/remainder.c.
1225         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1226         Remove roundf, fmaf.
1227         * modules/remainderl (Files): Add lib/remainder.c.
1228         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1229         isinf. Remove roundl, fmal.
1230         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1231         REMAINDER_LIBM.
1232         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1233         REMAINDERF_LIBM.
1234         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1235         REMAINDERL_LIBM.
1236
1237 2012-03-04  Bruno Haible  <bruno@clisp.org>
1238
1239         fmod* tests: More tests.
1240         * tests/test-fmod.h (my_ldexp): New function.
1241         (test_function): Reduce amount of random numbers to test. Add tests
1242         of very large quotients x / y.
1243         * tests/test-fmod.c (MAX_EXP): New macro.
1244         * tests/test-fmodf.c (MAX_EXP): Likewise.
1245         * tests/test-fmodl.c (MAX_EXP): Likewise.
1246
1247 2012-03-04  Bruno Haible  <bruno@clisp.org>
1248
1249         fmod, fmodl: Fix computation for large quotients x / y.
1250         * lib/fmod.c: Completely rewritten.
1251         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1252         USE_LONG_DOUBLE.
1253         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1254         isnand. Remove fma.
1255         * modules/fmodl (Files): Add lib/fmod.c.
1256         (Depends-on): Add float, isfinite, signbit, fabsl,
1257         frexpl, ldexpl, isnanl. Remove fma.
1258         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1259         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1260
1261 2012-03-03  Bruno Haible  <bruno@clisp.org>
1262
1263         fmod* tests: More tests.
1264         * tests/test-fmod.h: New file.
1265         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1266         (main): Invoke test_function.
1267         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1268         (main): Invoke test_function.
1269         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1270         (main): Invoke test_function.
1271         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1272         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1273         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1274         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1275         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1276         (Depends-on): Add 'float'.
1277         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1278
1279 2012-03-03  Bruno Haible  <bruno@clisp.org>
1280
1281         rint* tests: More tests.
1282         * tests/test-rint.h: New file, partially extracted from
1283         tests/test-rintl.c.
1284         * tests/test-rint.c: Include test-rint.h.
1285         (main): Invoke test_function.
1286         * tests/test-rintf.c: Include test-rint.h.
1287         (main): Invoke test_function.
1288         * tests/test-rintl.c: Include test-rint.h.
1289         (main): Invoke test_function.
1290         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1291         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1292         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1293         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1294         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1295         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1296
1297 2012-03-03  Bruno Haible  <bruno@clisp.org>
1298
1299         modf* tests: More tests.
1300         * tests/test-modf.h: New file.
1301         * tests/test-modf.c: Include <float.h> and test-modf.h.
1302         (main): Invoke test_function.
1303         * tests/test-modff.c: Include <float.h> and test-modf.h.
1304         (main): Invoke test_function.
1305         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1306         (main): Invoke test_function.
1307         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1308         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1309         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1310         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1311         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1312         (Depends-on): Add 'float'.
1313         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1314
1315 2012-03-03  Bruno Haible  <bruno@clisp.org>
1316
1317         fabs* tests: More tests.
1318         * tests/test-fabs.h: New file, partially extracted from
1319         tests/test-fabsl.c.
1320         * tests/test-fabs.c (RANDOM): New macro.
1321         * tests/test-fabsf.c (RANDOM): New macro.
1322         * tests/test-fabsl.c (RANDOM): New macro.
1323         * modules/fabs-tests (Files): Add tests/randomd.c.
1324         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1325         * modules/fabsf-tests (Files): Add tests/randomf.c.
1326         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1327         * modules/fabsl-tests (Files): Add tests/randoml.c.
1328         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1329
1330 2012-03-03  Bruno Haible  <bruno@clisp.org>
1331
1332         ldexp* tests: More tests.
1333         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1334         * tests/test-ldexp.c (RANDOM): New macro.
1335         * tests/test-ldexpf.c (RANDOM): New macro.
1336         * tests/test-ldexpl.c (RANDOM): New macro.
1337         * modules/ldexp-tests (Files): Add tests/randomd.c.
1338         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1339         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1340         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1341         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1342         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1343
1344 2012-03-03  Bruno Haible  <bruno@clisp.org>
1345
1346         frexp* tests: More tests.
1347         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1348         * tests/test-frexp.c (RANDOM): New macro.
1349         * tests/test-frexpf.c (RANDOM): New macro.
1350         * tests/test-frexpl.c (RANDOM): New macro.
1351         * modules/frexp-tests (Files): Add tests/randomd.c.
1352         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1353         * modules/frexpf-tests (Files): Add tests/randomf.c.
1354         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1355         * modules/frexpl-tests (Files): Add tests/randoml.c.
1356         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1357
1358 2012-03-03  Bruno Haible  <bruno@clisp.org>
1359
1360         Support for pseudo-random numbers in tests.
1361         * tests/randomf.c: New file.
1362         * tests/randomd.c: New file.
1363         * tests/randoml.c: New file.
1364         * tests/macros.h (randomf, randomd, randoml): New declarations.
1365
1366 2012-03-03  Bruno Haible  <bruno@clisp.org>
1367
1368         frexp* tests: Refactor.
1369         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1370         * tests/test-frexp.c: Include and use it.
1371         * tests/test-frexpf.c: Likewise.
1372         * tests/test-frexpl.c: Likewise.
1373         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1374         * modules/frexpf-tests (Files): Likewise.
1375         * modules/frexpl-tests (Files): Likewise.
1376
1377 2012-03-02  Jim Meyering  <meyering@redhat.com>
1378
1379         maint: don't specify XZ_OPT=-9ev in dist-related rule
1380         Using xz's -9 option is warranted only if you have a very large
1381         tarball (see xz's documentation for the sizes vs. presets), and
1382         requires 64MiB of memory at decompression time.
1383         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1384         Automake's default of just "-e" is fine.  Override on a
1385         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1386
1387 2012-03-01  Eric Blake  <eblake@redhat.com>
1388
1389         maint.mk: allow announcement for non-gnulib project
1390         * maint.mk (announcement): Skip gnulib version if not used.
1391
1392 2012-03-01  Jim Meyering  <meyering@redhat.com>
1393
1394         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1395         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1396         envvar settings cannot interfere.  Otherwise, setting envvars like
1397         prohibit=foo require=bar, etc. would cause spurious test failures.
1398
1399 2012-03-01  Eric Blake  <eblake@redhat.com>
1400
1401         maint.mk: add per-line exclusions to prohibitions
1402         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1403         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1404         (sc_const_long_option): Use it.
1405
1406 2012-03-01  Bruno Haible  <bruno@clisp.org>
1407
1408         Tests for module 'expl-ieee'.
1409         * modules/expl-ieee-tests: New file.
1410         * tests/test-expl-ieee.c: New file.
1411
1412         New module 'expl-ieee'.
1413         * modules/expl-ieee: New file.
1414
1415         Tests for module 'exp-ieee'.
1416         * modules/exp-ieee-tests: New file.
1417         * tests/test-exp-ieee.c: New file.
1418
1419         New module 'exp-ieee'.
1420         * modules/exp-ieee: New file.
1421
1422         Tests for module 'expf-ieee'.
1423         * modules/expf-ieee-tests: New file.
1424         * tests/test-expf-ieee.c: New file.
1425         * tests/test-exp-ieee.h: New file.
1426
1427         New module 'expf-ieee'.
1428         * modules/expf-ieee: New file.
1429
1430 2012-02-29  Bruno Haible  <bruno@clisp.org>
1431
1432         cbrtl-ieee: Work around test failure on IRIX 6.5.
1433         * m4/cbrtl-ieee.m4: New file.
1434         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1435         test whether cbrtl works with a minus zero argument. Replace it if not.
1436         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1438         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1439         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1440         (Depends-on): Update conditions.
1441         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1442         m4/signbit.m4.
1443         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1444         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1445         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1446
1447         Tests for module 'cbrtl-ieee'.
1448         * modules/cbrtl-ieee-tests: New file.
1449         * tests/test-cbrtl-ieee.c: New file.
1450
1451         New module 'cbrtl-ieee'.
1452         * modules/cbrtl-ieee: New file.
1453
1454         Tests for module 'cbrt-ieee'.
1455         * modules/cbrt-ieee-tests: New file.
1456         * tests/test-cbrt-ieee.c: New file.
1457
1458         New module 'cbrt-ieee'.
1459         * modules/cbrt-ieee: New file.
1460
1461         Tests for module 'cbrtf-ieee'.
1462         * modules/cbrtf-ieee-tests: New file.
1463         * tests/test-cbrtf-ieee.c: New file.
1464         * tests/test-cbrt-ieee.h: New file.
1465
1466         New module 'cbrtf-ieee'.
1467         * modules/cbrtf-ieee: New file.
1468
1469 2012-02-29  Bruno Haible  <bruno@clisp.org>
1470
1471         cbrtf: Work around bug in IRIX 6.5 system function.
1472         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1473         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1474         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1475         work.
1476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1477         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1478         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1479         (Depends-on): Update conditions.
1480         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1481
1482 2012-02-29  Bruno Haible  <bruno@clisp.org>
1483
1484         Tests for module 'cbrtl'.
1485         * modules/cbrtl-tests: New file.
1486         * tests/test-cbrtl.c: New file.
1487
1488         New module 'cbrtl'.
1489         * lib/math.in.h (cbrtl): New declaration.
1490         * lib/cbrtl.c: New file.
1491         * m4/cbrtl.m4: New file.
1492         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1494         HAVE_DECL_CBRTL.
1495         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1496         HAVE_DECL_CBRTL.
1497         * modules/cbrtl: New file.
1498         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1499         * doc/posix-functions/cbrtl.texi: Mention the new module.
1500
1501 2012-02-29  Bruno Haible  <bruno@clisp.org>
1502
1503         Tests for module 'cbrtf'.
1504         * modules/cbrtf-tests: New file.
1505         * tests/test-cbrtf.c: New file.
1506
1507         New module 'cbrtf'.
1508         * lib/math.in.h (cbrtf): New declaration.
1509         * lib/cbrtf.c: New file.
1510         * m4/cbrtf.m4: New file.
1511         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1513         HAVE_DECL_CBRTF.
1514         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1515         HAVE_DECL_CBRTF.
1516         * modules/cbrtf: New file.
1517         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1518         * doc/posix-functions/cbrtf.texi: Mention the new module.
1519
1520 2012-02-29  Bruno Haible  <bruno@clisp.org>
1521
1522         cbrt: Provide replacement on MSVC and Minix.
1523         * lib/math.in.h (cbrt): New declaration.
1524         * lib/cbrt.c: New file.
1525         * m4/cbrt.m4: New file.
1526         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1528         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1529         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1530         (Depends-on): Add dependencies.
1531         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1532         * tests/test-math-c++.cc: Check the declaration of cbrt.
1533         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1534         replacement.
1535
1536 2012-02-29  Bruno Haible  <bruno@clisp.org>
1537
1538         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1539         * m4/hypotl-ieee.m4: New file.
1540         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1541         test whether hypotl works with mixed NaN and Infinity arguments.
1542         Replace it if not.
1543         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1545         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1546         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1547         (Depends-on): Update conditions.
1548         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1549         (Depends-on): Add hypot-ieee.
1550         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1551         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1552
1553         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1554         * m4/hypotf-ieee.m4: New file.
1555         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1556         test whether hypotf works with mixed NaN and Infinity arguments.
1557         Replace it if not.
1558         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1559         (Depends-on): Add hypot-ieee.
1560         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1561         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1562
1563         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1564         * lib/math.in.h (hypot): New declaration.
1565         * lib/hypot.c: New file.
1566         * m4/hypot-ieee.m4: New file.
1567         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1568         whether hypot works with mixed NaN and Infinity arguments. Replace it
1569         if not.
1570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1571         REPLACE_HYPOT.
1572         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1573         * modules/hypot (Files): Add lib/hypot.c.
1574         (Depends-on): Add dependencies.
1575         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1576         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1577         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1578         * tests/test-math-c++.cc: Check the declaration of hypot.
1579         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1580
1581         Tests for module 'hypotl-ieee'.
1582         * modules/hypotl-ieee-tests: New file.
1583         * tests/test-hypotl-ieee.c: New file.
1584
1585         New module 'hypotl-ieee'.
1586         * modules/hypotl-ieee: New file.
1587
1588         Tests for module 'hypot-ieee'.
1589         * modules/hypot-ieee-tests: New file.
1590         * tests/test-hypot-ieee.c: New file.
1591
1592         New module 'hypot-ieee'.
1593         * modules/hypot-ieee: New file.
1594
1595         Tests for module 'hypotf-ieee'.
1596         * modules/hypotf-ieee-tests: New file.
1597         * tests/test-hypotf-ieee.c: New file.
1598         * tests/test-hypot-ieee.h: New file.
1599
1600         New module 'hypotf-ieee'.
1601         * modules/hypotf-ieee: New file.
1602
1603 2012-02-29  Bruno Haible  <bruno@clisp.org>
1604
1605         Remove unused variables.
1606         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1607         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1608         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1609         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1610
1611 2012-02-29  Eric Blake  <eblake@redhat.com>
1612
1613         termios: fix pid_t always, not just for tcgetsid
1614         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1615         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1616         just when building tcgetsid.
1617
1618 2012-02-29  Bruno Haible  <bruno@clisp.org>
1619
1620         Tests for module 'hypotl'.
1621         * modules/hypotl-tests: New file.
1622         * tests/test-hypotl.c: New file.
1623
1624         New module 'hypotl'.
1625         * lib/math.in.h (hypotl): New declaration.
1626         * lib/hypotl.c: New file.
1627         * m4/hypotl.m4: New file.
1628         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1630         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1631         * modules/hypotl: New file.
1632         * tests/test-math-c++.cc: Check the hypotl declaration.
1633         * doc/posix-functions/hypotl.texi: Mention the new module.
1634
1635 2012-02-29  Eric Blake  <eblake@redhat.com>
1636
1637         tcgetsid: fix cygwin header bug
1638         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1639
1640         docs: update cygwin progress
1641         * doc/posix-functions/llround.texi (llround): Added in cygwin
1642         1.7.8.
1643         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1644         * doc/glibc-functions/program_invocation_name.texi
1645         (program_invocation_name): Likewise.
1646         * doc/glibc-functions/program_invocation_short_name.texi
1647         (program_invocation_short_name): Likewise.
1648         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1649         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1650         Likewise.
1651         * doc/posix-functions/pthread_spin_destroy.texi
1652         (pthread_spin_destroy): Added in cygwin 1.7.10.
1653         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1654         Likewise.
1655         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1656         Likewise.
1657         * doc/posix-functions/pthread_spin_trylock.texi
1658         (pthread_spin_trylock): Likewise.
1659         * doc/posix-functions/pthread_spin_unlock.texi
1660         (pthread_spin_unlock): Likewise.
1661         * doc/posix-functions/pthread_setschedprio.texi
1662         (pthread_setschedprio): Likewise.
1663         * doc/posix-functions/pthread_attr_getstack.texi
1664         (pthread_attr_getstack): Likewise.
1665         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1666         (pthread_attr_getstackaddr): Likewise.
1667         * doc/glibc-functions/pthread_getattr_np.texi
1668         (pthread_getattr_np): Likewise.
1669         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1670         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1671         * doc/posix-functions/clock_settime.texi (clock_settime):
1672         Likewise.
1673         * doc/posix-functions/pthread_attr_getguardsize.texi
1674         (pthread_attr_getguardsize): Likewise.
1675         * doc/posix-functions/pthread_attr_setguardsize.texi
1676         (pthread_attr_setguardsize): Likewise.
1677         * doc/posix-functions/pthread_attr_setstack.texi
1678         (pthread_attr_setstack): Likewise.
1679         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1680         (pthread_attr_setstackaddr): Likewise.
1681         * doc/posix-functions/clock_getcpuclockid.texi
1682         (clock_getcpuclockid): Likewise.
1683         * doc/posix-functions/pthread_getcpuclockid.texi
1684         (pthread_getcpuclockid): Likewise.
1685         * doc/glibc-functions/error.texi (error): Likewise.
1686         * doc/glibc-functions/error_at_line.texi (error_at_line):
1687         Likewise.
1688         * doc/glibc-functions/error_message_count.texi
1689         (error_message_count): Likewise.
1690         * doc/glibc-functions/error_one_per_line.texi
1691         (error_one_per_line): Likewise.
1692         * doc/glibc-functions/error_print_progname.texi
1693         (error_print_progname): Likewise.
1694         * doc/posix-functions/pthread_condattr_getclock.texi
1695         (pthread_condattr_getclock): Likewise.
1696         * doc/posix-functions/pthread_condattr_setclock.texi
1697         (pthread_condattr_setclock): Likewise.
1698         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1699         Likewise.
1700         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1701         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1702         * doc/glibc-functions/get_current_dir_name.texi
1703         (get_current_dir_name): Likewise.
1704         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1705         Likewise.
1706         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1707         wrong return type.
1708         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1709         1.7.11.
1710
1711 2012-02-29  Bruno Haible  <bruno@clisp.org>
1712
1713         Tests for module 'hypotf'.
1714         * modules/hypotf-tests: New file.
1715         * tests/test-hypotf.c: New file.
1716
1717         New module 'hypotf'.
1718         * lib/math.in.h (hypotf): New declaration.
1719         * lib/hypotf.c: New file.
1720         * m4/hypotf.m4: New file.
1721         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1723         REPLACE_HYPOTF.
1724         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1725         REPLACE_HYPOTF.
1726         * modules/hypotf: New file.
1727         * tests/test-math-c++.cc: Check the hypotf declaration.
1728         * doc/posix-functions/hypotf.texi: Mention the new module.
1729
1730         hypot: Prepare for hypotf module.
1731         * m4/hypot.m4: New file.
1732         * modules/hypot (Files): Add m4/hypot.m4.
1733         (configure.ac): Invoke gl_FUNC_HYPOT.
1734
1735 2012-02-29  Bruno Haible  <bruno@clisp.org>
1736
1737         hypot tests: More tests.
1738         * tests/test-hypot.c: Include <float.h>.
1739         (main): Add tests about overflow and underflow.
1740
1741 2012-02-29  Bruno Haible  <bruno@clisp.org>
1742
1743         math code: Add comments.
1744         * lib/acosl.c: Add comment about related glibc source files.
1745         * lib/asinl.c: Likewise.
1746         * lib/atanl.c: Likewise.
1747         * lib/expl.c: Likewise.
1748         * lib/logl.c: Likewise.
1749         * lib/sincosl.c: Likewise.
1750         * lib/sinl.c: Likewise.
1751         * lib/tanl.c: Likewise.
1752         * lib/trigl.c: Likewise.
1753         * lib/cosl.c: Likewise. Fix comments.
1754
1755 2012-02-28  Bruno Haible  <bruno@clisp.org>
1756
1757         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1758         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1759         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1760         HUGE_VALL are defined.
1761         (numeric_equald): Renamed from numeric_equal.
1762         (numeric_equalf, numeric_equall): New functions.
1763         (main): Check also HUGE_VALF, HUGE_VALL.
1764         * modules/math-tests (Files): Add tests/macros.h.
1765         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1766         HUGE_VALL.
1767
1768 2012-02-28  Bruno Haible  <bruno@clisp.org>
1769
1770         doc: Move ISO C11 feature notes into POSIX chapters.
1771         * doc/posix-functions/aligned_alloc.texi: Renamed from
1772         doc/glibc-functions/aligned_alloc.texi.
1773         * doc/posix-functions/quick_exit.texi: Renamed from
1774         doc/glibc-functions/quick_exit.texi.
1775         * doc/posix-headers/uchar.texi: Renamed from
1776         doc/glibc-headers/uchar.texi.
1777         * doc/posix-functions/c16rtomb.texi: Renamed from
1778         doc/glibc-functions/c16rtomb.texi.
1779         * doc/posix-functions/c32rtomb.texi: Renamed from
1780         doc/glibc-functions/c32rtomb.texi.
1781         * doc/posix-functions/mbrtoc16.texi: Renamed from
1782         doc/glibc-functions/mbrtoc16.texi.
1783         * doc/posix-functions/mbrtoc32.texi: Renamed from
1784         doc/glibc-functions/mbrtoc32.texi.
1785         * doc/gnulib.texi: Update.
1786         (Glibc uchar.h): Remove section.
1787         Suggested by Eric Blake.
1788
1789 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1790
1791         stdnoreturn: port to MSVC better
1792         MSVC standard headers use __declspec(noreturn), so #define noreturn
1793         to empty on that platform.  Reported by Bruno Haible in
1794         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1795         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1796         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1797
1798 2012-02-28  Bruno Haible  <bruno@clisp.org>
1799
1800         doc: Mention new glibc headers and functions.
1801         * doc/glibc-headers/uchar.texi: New file.
1802         * doc/glibc-functions/aligned_alloc.texi: New file.
1803         * doc/glibc-functions/c16rtomb.texi: New file.
1804         * doc/glibc-functions/c32rtomb.texi: New file.
1805         * doc/glibc-functions/clock_adjtime.texi: New file.
1806         * doc/glibc-functions/fanotify_init.texi: New file.
1807         * doc/glibc-functions/fanotify_mark.texi: New file.
1808         * doc/glibc-functions/inet6_opt_append.texi: New file.
1809         * doc/glibc-functions/inet6_opt_find.texi: New file.
1810         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1811         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1812         * doc/glibc-functions/inet6_opt_init.texi: New file.
1813         * doc/glibc-functions/inet6_opt_next.texi: New file.
1814         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1815         * doc/glibc-functions/inet6_rth_add.texi: New file.
1816         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1817         * doc/glibc-functions/inet6_rth_init.texi: New file.
1818         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1819         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1820         * doc/glibc-functions/inet6_rth_space.texi: New file.
1821         * doc/glibc-functions/login.texi: New file.
1822         * doc/glibc-functions/mbrtoc16.texi: New file.
1823         * doc/glibc-functions/mbrtoc32.texi: New file.
1824         * doc/glibc-functions/name_to_handle_at.texi: New file.
1825         * doc/glibc-functions/ntp_gettimex.texi: New file.
1826         * doc/glibc-functions/open_by_handle_at.texi: New file.
1827         * doc/glibc-functions/prlimit.texi: New file.
1828         * doc/glibc-functions/process_vm_readv.texi: New file.
1829         * doc/glibc-functions/process_vm_writev.texi: New file.
1830         * doc/glibc-functions/recvmmsg.texi: New file.
1831         * doc/glibc-functions/scandirat.texi: New file.
1832         * doc/glibc-functions/sendmmsg.texi: New file.
1833         * doc/glibc-functions/setns.texi: New file.
1834         * doc/glibc-functions/timespec_get.texi: New file.
1835         * doc/gnulib.texi: Include them.
1836         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1837         sections.
1838         Reported by Eric Blake.
1839
1840 2012-02-28  Bruno Haible  <bruno@clisp.org>
1841
1842         Avoid compilation errors with MSVC option -fp:strict.
1843         * lib/floor.c: Use MSVC specific pragma fenv_access.
1844         * lib/ceil.c: Likewise.
1845         * lib/trunc.c: Likewise.
1846         * lib/round.c: Likewise.
1847         * lib/rint.c: Likewise.
1848         * lib/fma.c: Likewise.
1849         * lib/integer_length.c: Likewise.
1850         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1852         * tests/test-floor2.c: Likewise.
1853         * tests/test-floorf2.c: Likewise.
1854         * tests/test-ceil2.c: Likewise.
1855         * tests/test-ceilf2.c: Likewise.
1856         * tests/test-trunc2.c: Likewise.
1857         * tests/test-truncf2.c: Likewise.
1858         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1859
1860 2012-02-27  Bruno Haible  <bruno@clisp.org>
1861
1862         Tests for module 'sqrtl-ieee'.
1863         * modules/sqrtl-ieee-tests: New file.
1864         * tests/test-sqrtl-ieee.c: New file.
1865
1866         New module 'sqrtl-ieee'.
1867         * modules/sqrtl-ieee: New file.
1868
1869         Tests for module 'sqrt-ieee'.
1870         * modules/sqrt-ieee-tests: New file.
1871         * tests/test-sqrt-ieee.c: New file.
1872
1873         New module 'sqrt-ieee'.
1874         * modules/sqrt-ieee: New file.
1875
1876         Tests for module 'sqrtf-ieee'.
1877         * modules/sqrtf-ieee-tests: New file.
1878         * tests/test-sqrtf-ieee.c: New file.
1879         * tests/test-sqrt-ieee.h: New file.
1880
1881         New module 'sqrtf-ieee'.
1882         * modules/sqrtf-ieee: New file.
1883
1884 2012-02-27  Bruno Haible  <bruno@clisp.org>
1885
1886         remainderl-ieee: Work around test failure on OSF/1.
1887         * m4/remainderl-ieee.m4: New file.
1888         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1889         present, test whether remainderl works with a zero second argument.
1890         Replace it if not.
1891         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1893         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1894         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1895         (Depends-on): Update conditions.
1896         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1897         (Depends-on): Add remainder-ieee.
1898         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1899         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1900         module.
1901
1902         remainderf-ieee: Work around test failure on OSF/1.
1903         * m4/remainderf-ieee.m4: New file.
1904         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1905         present, test whether remainderf works with a zero second argument.
1906         Replace it if not.
1907         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1909         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1910         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1911         (Depends-on): Update conditions.
1912         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1913         (Depends-on): Add remainder-ieee.
1914         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1915         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1916         module.
1917
1918         remainder-ieee: Work around test failure on OSF/1.
1919         * m4/remainder-ieee.m4: New file.
1920         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1921         present, test whether remainder works with a zero second argument.
1922         Replace it if not.
1923         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1925         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1926         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1927         (Depends-on): Update dependencies.
1928         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1929         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1930         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1931
1932         Tests for module 'remainderl-ieee'.
1933         * modules/remainderl-ieee-tests: New file.
1934         * tests/test-remainderl-ieee.c: New file.
1935
1936         New module 'remainderl-ieee'.
1937         * modules/remainderl-ieee: New file.
1938
1939         Tests for module 'remainder-ieee'.
1940         * modules/remainder-ieee-tests: New file.
1941         * tests/test-remainder-ieee.c: New file.
1942
1943         New module 'remainder-ieee'.
1944         * modules/remainder-ieee: New file.
1945
1946         Tests for module 'remainderf-ieee'.
1947         * modules/remainderf-ieee-tests: New file.
1948         * tests/test-remainderf-ieee.c: New file.
1949         * tests/test-remainder-ieee.h: New file.
1950
1951         New module 'remainderf-ieee'.
1952         * modules/remainderf-ieee: New file.
1953
1954 2012-02-27  Bruno Haible  <bruno@clisp.org>
1955
1956         modff, modfl: Fix configure syntax error.
1957         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1958         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1959
1960 2012-02-27  Bruno Haible  <bruno@clisp.org>
1961
1962         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1963         * m4/fmodl-ieee.m4: New file.
1964         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1965         whether fmodl works with zero arguments. Replace it if not.
1966         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1967         (Depends-on): Add fmod-ieee.
1968         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1969         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1970
1971         fmodf-ieee: Work around test failure on OSF/1.
1972         * m4/fmodf-ieee.m4: New file.
1973         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1974         whether fmodf works with zero arguments. Replace it if not.
1975         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1977         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1978         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1979         (Depends-on): Update dependencies.
1980         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1981         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1982         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1983
1984         fmodf-ieee: Work around test failure on MSVC 9.
1985         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1986         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1987
1988         fmod-ieee: Work around test failures on OSF/1, mingw.
1989         * m4/fmod-ieee.m4: New file.
1990         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1991         whether fmod works with zero arguments. Replace it if not.
1992         * lib/math.in.h (fmod): New declaration.
1993         * lib/fmod.c: New file.
1994         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1996         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1997         * modules/fmod (Files): Add lib/fmod.c.
1998         (Depends-on): Add math, isinf, trunc, fma.
1999         (configure.ac): Arrange to compile lib/fmod.c if needed.
2000         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2001         m4/signbit.m4.
2002         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2003         * tests/test-math-c++.cc: Check the declaration of fmod.
2004         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2005
2006         fmodl-ieee: Fix test failures.
2007         * lib/fmodl.c (fmodl): Treat Inf specially.
2008         * modules/fmodl (Depends-on): Add isinf.
2009
2010         Tests for module 'fmodl-ieee'.
2011         * modules/fmodl-ieee-tests: New file.
2012         * tests/test-fmodl-ieee.c: New file.
2013
2014         New module 'fmodl-ieee'.
2015         * modules/fmodl-ieee: New file.
2016
2017         Tests for module 'fmod-ieee'.
2018         * modules/fmod-ieee-tests: New file.
2019         * tests/test-fmod-ieee.c: New file.
2020
2021         New module 'fmod-ieee'.
2022         * modules/fmod-ieee: New file.
2023
2024         Tests for module 'fmodf-ieee'.
2025         * modules/fmodf-ieee-tests: New file.
2026         * tests/test-fmodf-ieee.c: New file.
2027         * tests/test-fmod-ieee.h: New file.
2028
2029         New module 'fmodf-ieee'.
2030         * modules/fmodf-ieee: New file.
2031
2032 2012-02-27  Bruno Haible  <bruno@clisp.org>
2033
2034         Tests for module 'rintl-ieee'.
2035         * modules/rintl-ieee-tests: New file.
2036         * tests/test-rintl-ieee.c: New file.
2037
2038         New module 'rintl-ieee'.
2039         * modules/rintl-ieee: New file.
2040
2041         Tests for module 'rint-ieee'.
2042         * modules/rint-ieee-tests: New file.
2043         * tests/test-rint-ieee.c: New file.
2044
2045         New module 'rint-ieee'.
2046         * modules/rint-ieee: New file.
2047
2048         Tests for module 'rintf-ieee'.
2049         * modules/rintf-ieee-tests: New file.
2050         * tests/test-rintf-ieee.c: New file.
2051         * tests/test-rint-ieee.h: New file.
2052
2053         New module 'rintf-ieee'.
2054         * modules/rintf-ieee: New file.
2055
2056 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         regex: re_search etc. should return -2 when memory exhausted
2059         This bug was uncovered when testing 'grep'.  Without the fix,
2060         re_search and friends return -1 when memory is exhausted, but -1
2061         means no match, and this causes grep to falsely report no-match
2062         instead of memory-exhaustion.  See
2063         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2064         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2065         trouble; this can occur if re_search_internal ran out of memory.
2066
2067 2012-02-26  Bruno Haible  <bruno@clisp.org>
2068
2069         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2070         * m4/modfl-ieee.m4: New file.
2071         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2072         whether modfl works with Inf. Replace it if not.
2073         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2075         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2076         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2077         (Depends-on): Update dependencies.
2078         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2079         m4/signbit.m4.
2080         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2081         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2082
2083         modfl-ieee: Fix dependencies.
2084         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2085
2086         modfl-ieee: Fix test failures.
2087         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2088         * modules/modfl (Depends-on): Add isfinite, isinf.
2089
2090         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2091         * m4/modff-ieee.m4: New file.
2092         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2093         whether modff works with NaN and Inf. Replace it if not.
2094         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2096         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2097         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2098         (Depends-on): Update dependencies.
2099         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2100         m4/signbit.m4.
2101         (Depends-on): Add modf-ieee.
2102         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2103         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2104
2105         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2106         * m4/modf-ieee.m4: New file.
2107         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2108         whether modf works with NaN and Inf. Replace it if not.
2109         * lib/math.in.h (modf): New declaration.
2110         * lib/modf.c: New file.
2111         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2113         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2114         * modules/modf (Files): Add lib/modf.c.
2115         (Depends-on): Add math, isfinite, trunc, isinf.
2116         (configure.ac): Addrange to compile lib/modf.c if needed.
2117         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2118         m4/signbit.m4.
2119         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2120         * tests/test-math-c++.cc: Check the declaration of modf.
2121         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2122
2123         Tests for module 'modfl-ieee'.
2124         * modules/modfl-ieee-tests: New file.
2125         * tests/test-modfl-ieee.c: New file.
2126
2127         New module 'modfl-ieee'.
2128         * modules/modfl-ieee: New file.
2129
2130         Tests for module 'modf-ieee'.
2131         * modules/modf-ieee-tests: New file.
2132         * tests/test-modf-ieee.c: New file.
2133
2134         New module 'modf-ieee'.
2135         * modules/modf-ieee: New file.
2136
2137         Tests for module 'modff-ieee'.
2138         * modules/modff-ieee-tests: New file.
2139         * tests/test-modff-ieee.c: New file.
2140         * tests/test-modf-ieee.h: New file.
2141
2142         New module 'modff-ieee'.
2143         * modules/modff-ieee: New file.
2144
2145 2012-02-26  Bruno Haible  <bruno@clisp.org>
2146
2147         Tests for module 'fabsl-ieee'.
2148         * modules/fabsl-ieee-tests: New file.
2149         * tests/test-fabsl-ieee.c: New file.
2150
2151         New module 'fabsl-ieee'.
2152         * modules/fabsl-ieee: New file.
2153
2154         Tests for module 'fabs-ieee'.
2155         * modules/fabs-ieee-tests: New file.
2156         * tests/test-fabs-ieee.c: New file.
2157
2158         New module 'fabs-ieee'.
2159         * modules/fabs-ieee: New file.
2160
2161         Tests for module 'fabsf-ieee'.
2162         * modules/fabsf-ieee-tests: New file.
2163         * tests/test-fabsf-ieee.c: New file.
2164         * tests/test-fabs-ieee.h: New file.
2165
2166         New module 'fabsf-ieee'.
2167         * modules/fabsf-ieee: New file.
2168
2169 2012-02-26  Bruno Haible  <bruno@clisp.org>
2170
2171         Tests for module 'fmal-ieee'.
2172         * modules/fmal-ieee-tests: New file.
2173         * tests/test-fmal-ieee.c: New file.
2174
2175         New module 'fmal-ieee'.
2176         * modules/fmal-ieee: New file.
2177
2178         Tests for module 'fma-ieee'.
2179         * modules/fma-ieee-tests: New file.
2180         * tests/test-fma-ieee.c: New file.
2181
2182         New module 'fma-ieee'.
2183         * modules/fma-ieee: New file.
2184
2185         Tests for module 'fmaf-ieee'.
2186         * modules/fmaf-ieee-tests: New file.
2187         * tests/test-fmaf-ieee.c: New file.
2188         * tests/test-fma-ieee.h: New file.
2189
2190         New module 'fmaf-ieee'.
2191         * modules/fmaf-ieee: New file.
2192
2193 2012-02-26  Bruno Haible  <bruno@clisp.org>
2194
2195         Tests for module 'ldexpl-ieee'.
2196         * modules/ldexpl-ieee-tests: New file.
2197         * tests/test-ldexpl-ieee.c: New file.
2198
2199         New module 'ldexpl-ieee'.
2200         * modules/ldexpl-ieee: New file.
2201
2202         Tests for module 'ldexp-ieee'.
2203         * modules/ldexp-ieee-tests: New file.
2204         * tests/test-ldexp-ieee.c: New file.
2205
2206         New module 'ldexp-ieee'.
2207         * modules/ldexp-ieee: New file.
2208
2209         Tests for module 'ldexpf-ieee'.
2210         * modules/ldexpf-ieee-tests: New file.
2211         * tests/test-ldexpf-ieee.c: New file.
2212         * tests/test-ldexp-ieee.h: New file.
2213
2214         New module 'ldexpf-ieee'.
2215         * modules/ldexpf-ieee: New file.
2216
2217 2012-02-26  Bruno Haible  <bruno@clisp.org>
2218
2219         Refactor frexp*-ieee tests.
2220         * tests/test-frexp-ieee.h: New file.
2221         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2222         (main): Just call test_function.
2223         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2224         (main): Just call test_function.
2225         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2226         (main): Just call test_function.
2227         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2228         * modules/frexp-ieee-tests (Files): Likewise.
2229         * modules/frexpl-ieee-tests (Files): Likewise.
2230
2231         Tests for module 'frexpl-ieee'.
2232         * modules/frexpl-ieee-tests: New file.
2233         * tests/test-frexpl-ieee.c: New file.
2234
2235         New module 'frexpl-ieee'.
2236         * modules/frexpl-ieee: New file.
2237
2238         Tests for module 'frexp-ieee'.
2239         * modules/frexp-ieee-tests: New file.
2240         * tests/test-frexp-ieee.c: New file.
2241
2242         New module 'frexp-ieee'.
2243         * modules/frexp-ieee: New file.
2244
2245         Tests for module 'frexpf-ieee'.
2246         * modules/frexpf-ieee-tests: New file.
2247         * tests/test-frexpf-ieee.c: New file.
2248
2249         New module 'frexpf-ieee'.
2250         * modules/frexpf-ieee: New file.
2251
2252 2012-02-26  Bruno Haible  <bruno@clisp.org>
2253
2254         roundl-ieee tests: More tests.
2255         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2256         (main): Add tests for [MX] shaded specification in POSIX.
2257         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2258         (Depends-on): Add isnanl-nolibm.
2259
2260         round-ieee tests: More tests.
2261         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2262         (main): Add tests for [MX] shaded specification in POSIX.
2263         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2264         (Depends-on): Add isnand-nolibm.
2265
2266         roundf-ieee tests: More tests.
2267         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2268         (main): Add tests for [MX] shaded specification in POSIX.
2269         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2270         (Depends-on): Add isnanf-nolibm.
2271
2272         truncl-ieee tests: More tests.
2273         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2274         (main): Add tests for [MX] shaded specification in POSIX.
2275         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2276         (Depends-on): Add isnanl-nolibm.
2277
2278         trunc-ieee tests: More tests.
2279         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2280         (main): Add tests for [MX] shaded specification in POSIX.
2281         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2282         (Depends-on): Add isnand-nolibm.
2283
2284         truncf-ieee tests: More tests.
2285         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2286         (main): Add tests for [MX] shaded specification in POSIX.
2287         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2288         (Depends-on): Add isnanf-nolibm.
2289
2290         ceill-ieee tests: More tests.
2291         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2292         (main): Add tests for [MX] shaded specification in POSIX.
2293         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2294         (Depends-on): Add isnanl-nolibm.
2295
2296         ceil-ieee tests: More tests.
2297         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2298         (main): Add tests for [MX] shaded specification in POSIX.
2299         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2300         (Depends-on): Add isnand-nolibm.
2301
2302         ceilf-ieee tests: More tests.
2303         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2304         (main): Add tests for [MX] shaded specification in POSIX.
2305         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2306         (Depends-on): Add isnanf-nolibm.
2307
2308         floorl-ieee tests: More tests.
2309         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2310         (main): Add tests for [MX] shaded specification in POSIX.
2311         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2312         (Depends-on): Add isnanl-nolibm.
2313
2314         floor-ieee tests: More tests.
2315         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2316         (main): Add tests for [MX] shaded specification in POSIX.
2317         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2318         (Depends-on): Add isnand-nolibm.
2319
2320         floorf-ieee tests: More tests.
2321         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2322         (main): Add tests for [MX] shaded specification in POSIX.
2323         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2324         (Depends-on): Add isnanf-nolibm.
2325
2326 2012-02-26  Bruno Haible  <bruno@clisp.org>
2327
2328         fpieee: More comments.
2329         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2330
2331 2012-02-25  Bruno Haible  <bruno@clisp.org>
2332
2333         Tests for module 'log10l'.
2334         * modules/log10l-tests: New file.
2335         * tests/test-log10l.c: New file.
2336         * tests/test-math-c++.cc: Check the declaration of log10l.
2337
2338         New module 'log10l'.
2339         * lib/math.in.h (log10l): New declaration.
2340         * lib/log10l.c: New file.
2341         * m4/log10l.m4: New file.
2342         * modules/log10l: New file.
2343         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2345         HAVE_DECL_LOG10L.
2346         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2347         HAVE_DECL_LOG10L.
2348         * doc/posix-functions/log10l.texi: Mention the new module.
2349
2350 2012-02-25  Bruno Haible  <bruno@clisp.org>
2351
2352         fmodl, remainder*: Avoid wrong results due to rounding errors.
2353         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2354         expected bounds.
2355         * lib/remainderf.c (remainderf): Likewise.
2356         * lib/remainder.c (remainder): Likewise.
2357         * lib/remainderl.c (remainderl): Likewise.
2358
2359 2012-02-25  Bruno Haible  <bruno@clisp.org>
2360
2361         Tests for module 'remainderl'.
2362         * modules/remainderl-tests: New file.
2363         * tests/test-remainderl.c: New file.
2364         * tests/test-math-c++.cc: Check the declaration of remainderl.
2365
2366         New module 'remainderl'.
2367         * lib/math.in.h (remainderl): New declaration.
2368         * lib/remainderl.c: New file.
2369         * m4/remainderl.m4: New file.
2370         * modules/remainderl: New file.
2371         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2373         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2374         HAVE_REMAINDERL.
2375         * doc/posix-functions/remainderl.texi: Mention the new module.
2376
2377 2012-02-25  Bruno Haible  <bruno@clisp.org>
2378
2379         Tests for module 'remainderf'.
2380         * modules/remainderf-tests: New file.
2381         * tests/test-remainderf.c: New file.
2382         * tests/test-math-c++.cc: Check the declaration of remainderf.
2383
2384         New module 'remainderf'.
2385         * lib/math.in.h (remainderf): New declaration.
2386         * lib/remainderf.c: New file.
2387         * m4/remainderf.m4: New file.
2388         * modules/remainderf: New file.
2389         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2391         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2392         HAVE_REMAINDERF.
2393         * doc/posix-functions/remainderf.texi: Mention the new module.
2394
2395 2012-02-25  Bruno Haible  <bruno@clisp.org>
2396
2397         remainder: Support for MSVC.
2398         * lib/math.in.h (remainder): New declaration.
2399         * lib/remainder.c: New file.
2400         * m4/remainder.m4: New file.
2401         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2402         (Depends-on): Add math, round, fma.
2403         (configure.ac): Use results of gl_FUNC_REMAINDER.
2404         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2406         HAVE_DECL_REMAINDER.
2407         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2408         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2409         * tests/test-math-c++.cc: Check the declaration of remainder.
2410         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2411         problems are fixed.
2412
2413 2012-02-25  Bruno Haible  <bruno@clisp.org>
2414
2415         Tests for module 'fmodl'.
2416         * modules/fmodl-tests: New file.
2417         * tests/test-fmodl.c: New file.
2418         * tests/test-math-c++.cc: Check the declaration of fmodl.
2419
2420         New module 'fmodl'.
2421         * lib/math.in.h (fmodl): New declaration.
2422         * lib/fmodl.c: New file.
2423         * m4/fmodl.m4: New file.
2424         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2426         REPLACE_FMODL.
2427         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2428         REPLACE_FMODL.
2429         * modules/fmodl: New file.
2430         * doc/posix-functions/fmodl.texi: Mention the new module.
2431
2432 2012-02-25  Bruno Haible  <bruno@clisp.org>
2433
2434         Tests for module 'modfl'.
2435         * modules/modfl-tests: New file.
2436         * tests/test-modfl.c: New file.
2437         * tests/test-math-c++.cc: Check the declaration of modfl.
2438
2439         New module 'modfl'.
2440         * lib/math.in.h (modfl): New declaration.
2441         * lib/modfl.c: New file.
2442         * m4/modfl.m4: New file.
2443         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2445         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2446         * modules/modfl: New file.
2447         * doc/posix-functions/modfl.texi: Mention the new module.
2448
2449 2012-02-25  Bruno Haible  <bruno@clisp.org>
2450
2451         Tests for module 'fabsl'.
2452         * modules/fabsl-tests: New file.
2453         * tests/test-fabsl.c: New file.
2454         * tests/test-math-c++.cc: Check the declaration of fabsl.
2455
2456         New module 'fabsl'.
2457         * lib/math.in.h (fabsl): New declaration.
2458         * lib/fabsl.c: New file.
2459         * m4/fabsl.m4: New file.
2460         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2462         REPLACE_FABSL.
2463         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2464         REPLACE_FABSL.
2465         * modules/fabsl: New file.
2466         * doc/posix-functions/fabsl.texi: Mention the new module.
2467
2468 2012-02-25  Bruno Haible  <bruno@clisp.org>
2469
2470         fabs tests: More tests.
2471         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2472         (zero): New variable.
2473         (main): Add tests for signed zero.
2474         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2475
2476         fabsf tests: More tests.
2477         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2478         (zero): New variable.
2479         (main): Add tests for signed zero.
2480         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2481
2482 2012-02-24  Bruno Haible  <bruno@clisp.org>
2483
2484         atanl: Provide function definition on MSVC.
2485         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2486         function pointer.
2487         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2488
2489 2012-02-24  Bruno Haible  <bruno@clisp.org>
2490
2491         acosl: Provide function definition on MSVC.
2492         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2493         function pointer.
2494         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2495
2496 2012-02-24  Bruno Haible  <bruno@clisp.org>
2497
2498         asinl: Provide function definition on MSVC.
2499         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2500         function pointer.
2501         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2502
2503 2012-02-24  Bruno Haible  <bruno@clisp.org>
2504
2505         tanl: Provide function definition on MSVC.
2506         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2507         function pointer.
2508         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2509
2510 2012-02-24  Bruno Haible  <bruno@clisp.org>
2511
2512         cosl: Provide function definition on MSVC.
2513         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2514         function pointer.
2515         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2516
2517 2012-02-24  Bruno Haible  <bruno@clisp.org>
2518
2519         sinl: Provide function definition on MSVC.
2520         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2521         function pointer.
2522         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2523
2524 2012-02-24  Bruno Haible  <bruno@clisp.org>
2525
2526         logl: Provide function definition on MSVC.
2527         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2528         function pointer.
2529         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2530
2531 2012-02-24  Bruno Haible  <bruno@clisp.org>
2532
2533         expl: Provide function definition on MSVC.
2534         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2535         function pointer.
2536         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2537
2538 2012-02-24  Bruno Haible  <bruno@clisp.org>
2539
2540         sqrtl: Provide function definition on MSVC.
2541         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2542         a function pointer.
2543         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2544
2545 2012-02-24  Bruno Haible  <bruno@clisp.org>
2546
2547         ceill: Provide function definition on MSVC.
2548         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2549         used as a function pointer.
2550         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2551
2552 2012-02-24  Bruno Haible  <bruno@clisp.org>
2553
2554         floorl: Provide function definition on MSVC.
2555         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2556         used as a function pointer.
2557         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2558
2559 2012-02-24  Bruno Haible  <bruno@clisp.org>
2560
2561         ceilf: Provide function definition on MSVC.
2562         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2563         used as a function pointer.
2564         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2565
2566 2012-02-24  Bruno Haible  <bruno@clisp.org>
2567
2568         floorf: Provide function definition on MSVC.
2569         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2570         used as a function pointer.
2571         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2572
2573 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2574
2575         stdnoreturn: new module
2576         This implements a replacement for C11's <stdnoreturn.h>.
2577         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2578         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2579         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2580         * tests/test-stdnoreturn.c: New files.
2581
2582 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2583
2584         regex: fix false multibyte matches in some regular expressions
2585         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2586         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2587         * lib/regex_internal.c (re_string_skip_chars):
2588         Fix miscomputation of remain_len that may cause incomplete
2589         multi-byte character and false match.
2590
2591 2012-02-24  Jim Meyering  <meyering@redhat.com>
2592
2593         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2594         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2595         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2596         Remove now-unnecessary str''cmp obfuscation.
2597         Suggested by Akim Demaille.
2598
2599 2012-02-24  Bruno Haible  <bruno@clisp.org>
2600
2601         streq: Rename macro.
2602         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2603         * NEWS: Mention the change.
2604         * lib/mbrtowc.c (mbrtowc): Update.
2605         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2606         * lib/wcwidth.c (wcwidth): Update.
2607         Suggested by Akim Demaille and Jim Meyering.
2608
2609 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2610
2611         regex: fix typo in definition of MIN
2612         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2613         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2614
2615 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2616             Bruno Haible  <bruno@clisp.org>
2617
2618         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2619         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2620         entries into a stack-allocated buffer directly.
2621         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2622
2623 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2624             Bruno Haible  <bruno@clisp.org>
2625
2626         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2627
2628          - There were several instances of this pattern:
2629
2630              for (;;) {
2631                n = acl (f, GETACLCNT, 0, NULL);
2632                [ allocate an array A of size N ]
2633                if (acl (f, GETACL, n, a) == n)
2634                  break;
2635              }
2636
2637            This loop might never terminate if some other process is constantly
2638            manipulating the file's ACL.  The loop should be rewritten to
2639            terminate.
2640
2641          - The acl (... GETACLNT ...) call is merely an optimization; its value
2642            is merely a hint as to how big to make the array.  A better
2643            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2644            and just guess a reasonably-big size, growing the size and trying
2645            again if it's not large enough.  This guarantees termination, and
2646            saves a system call.
2647
2648         * lib/acl-internal.h: Include <limits.h>.
2649         (MIN, SIZE_MAX): New macros.
2650         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2651         a stack-allocated buffer, and use malloc if it does not fit. Don't
2652         use GETACLCNT.
2653         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2654
2655 2012-02-19  Bruno Haible  <bruno@clisp.org>
2656
2657         acl: Fix endless loop on Solaris with vxfs.
2658         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2659         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2660         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2661         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2662         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2663         Reported by Bill Jones in
2664         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2665
2666 2012-02-19  Bruno Haible  <bruno@clisp.org>
2667
2668         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2669         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2670         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2671         that this function returns 0 in some more cases.
2672
2673 2012-02-19  Bruno Haible  <bruno@clisp.org>
2674
2675         acl: Update doc references.
2676         * doc/acl-resources.txt: Update links to Solaris documentation.
2677
2678 2012-02-19  Bruno Haible  <bruno@clisp.org>
2679
2680         Fix test failure in many locales on Solaris 11.
2681         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2682         'tr' arguments.
2683         * tests/test-pipe-filter-ii1.c (main): Likewise.
2684         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2685         expressions in the C locale.
2686         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2687         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2688
2689 2012-02-19  Bruno Haible  <bruno@clisp.org>
2690
2691         gnulib-tool: Improve usage message.
2692         * gnulib-tool (func_usage): Move doc of --help and --version to the
2693         section "Operation modes".
2694
2695 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2696
2697         README-release: make it easier to execute commands
2698         * top/README-release: break commands out on to separate lines.
2699
2700 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2701
2702         GNUmakefile: simplify detection of unconfigured trees
2703         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2704         whether the tree make is being run from is already configured or
2705         not.  Related simplifications.
2706
2707 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2708
2709         * gnulib-tool (func_usage): Document --help and --version.
2710
2711 2012-02-11  Jim Meyering  <meyering@redhat.com>
2712
2713         bootstrap: don't exit 0 upon gnulib-tool failure
2714         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2715         its exit status, not 0.
2716
2717 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2718
2719         README-release: various improvements
2720         * top/README-release: Give a command to push changes for the
2721         release.  Add "distcheck" to list of other pre-release checks.
2722         Fix instance of "make stable" which should be "make TYPE".
2723
2724 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         maint: replace FSF snail-mail addresses with URLs
2727         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2728         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2729         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2730         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2731         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2732         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2733         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2734         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2735         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2736         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2737         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2738         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2739         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2740         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2741         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2742         * lib/glthread/thread.c, lib/glthread/thread.h:
2743         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2744         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2745         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2746         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2747         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2748         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2749         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2750         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2751         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2752         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2753         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2754         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2755         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2756         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2757         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2758         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2759         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2760         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2761         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2762         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2763         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2764         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2765         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2766         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2767         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2768         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2769         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2770         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2771         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2772         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2773         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2774         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2775         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2776         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2777         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2778         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2779         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2780         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2781         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2782         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2783         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2784         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2785         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2786         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2787         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2788         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2789         * tests/test-poll.c, tests/test-quotearg-simple.c:
2790         * tests/test-quotearg.c, tests/test-quotearg.h:
2791         * tests/test-round-ieee.c, tests/test-round1.c:
2792         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2793         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2794         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2795         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2796         * tests/test-strerror.c, tests/test-strerror_r.c:
2797         * tests/test-strsignal.c, tests/test-strverscmp.c:
2798         * tests/test-xmemdup0.c:
2799         Replace FSF snail mail addresses with URLs, as per GNU coding
2800         standards.  See glibc bug
2801         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2802
2803 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2804
2805         README-release: capitalize a word and split a line
2806         * top/README-release: Fix punctuation and spacing.
2807
2808 2012-02-08  Akim Demaille  <demaille@gostai.com>
2809
2810         fatal-signal: use C prototypes (with explicit void).
2811         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2812         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2813
2814 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2815
2816         regex: spelling fix
2817         * lib/regexec.c: spelling fix
2818
2819         regex: rely on stdint.h for SIZE_MAX
2820         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2821
2822 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2823
2824         regex: merge glibc changes
2825
2826         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2827         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2828         (init_word_char): Work even if bitset words are not exactly 32 or
2829         64 bits wide.  Don't assume there are no padding bits.
2830         * lib/regex.c [_LIBC]: Do not include <config.h>.
2831         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2832         and -Wtype-limits.
2833         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2834         needless disagreement with glibc.  All uses changed.  Define it to
2835         1 only if _GNU_SOURCE, to match glibc.
2836         (_REG_RM_NAME): Remove; no longer needed, since the names in
2837         question are now all protected by __USE_GNU.
2838         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2839         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2840         * lib/regex_internal.h (MIN): New macro.
2841
2842         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2843         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2844
2845         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2846         * lib/regex_internal.c (re_string_fetch_byte_case):
2847         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2848         is miscompiled, and it turns out it is because of an incorrect
2849         attribute on re_string_fetch_byte_case.  Unlike
2850         re_string_peek_byte_case, this one is really not pure, it modifies
2851         memory (increments pstr->cur_idx), and with the pure attribute GCC
2852         assumed it doesn't and it cached the presumed value of
2853         regexp->cur_idx in a variable across the
2854          for (;; ++i)
2855            {
2856              if (i >= BRACKET_NAME_BUF_SIZE)
2857                return REG_EBRACK;
2858              if (token->type == OP_OPEN_CHAR_CLASS)
2859                ch = re_string_fetch_byte_case (regexp);
2860              else
2861                ch = re_string_fetch_byte (regexp);
2862              if (re_string_eoi(regexp))
2863                return REG_EBRACK;
2864              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2865                break;
2866              elem->opr.name[i] = ch;
2867            }
2868
2869         2011-11-29 Andreas Schwab <schwab@redhat.com>
2870         * lib/regcomp.c (build_equiv_class):
2871         Fix access after end of search string in regex matcher.
2872
2873         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2874         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2875
2876         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2877         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2878
2879         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2880         * lib/regcomp.c (parse_branch, parse_sub_exp):
2881         More regex memory leak fixes and tests.
2882         (parse_sub_exp, parse_bracket_exp):
2883         Fix memory leak for some invalid regular expressions.
2884
2885         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2886         * lib/regex_internal.c, lib/regexec.c:
2887         Fix unnecessary overallocation due to incomplete character.  When
2888         incomplete characters are found at the end of a string the code
2889         ran amok and allocated lots of memory.  Stricter limits are now in
2890         place.
2891
2892         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2893         * lib/regex.h: Update documentation.
2894
2895         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2896         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2897
2898         2010-05-05 Andreas Schwab <schwab@redhat.com>
2899         * lib/regexec.c (find_collation_sequence_value):
2900         Fix lookup of collation sequence value during regexp matching.
2901
2902         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2903         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2904
2905         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2906         * lib/regex.h: Cleanup namespace.
2907
2908         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2909         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2910
2911         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2912         * lib/regex_internal.h: Prevent some declarations and definitions
2913         to be seen when used in tests.
2914
2915         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2916         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2917         __libc_lock_* macros if not _LIBC.
2918         (struct re_dfa_t): Add lock.
2919
2920 2012-02-07  Eric Blake  <eblake@redhat.com>
2921
2922         maint.mk: also prohibit lower-case @var@
2923         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2924         lower case, like @top_srcdir@.
2925
2926 2012-02-04  Eric Blake  <eblake@redhat.com>
2927
2928         canonicalize: avoid uninitialized memory use
2929         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2930         random '/' left in dest.
2931         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2932
2933 2012-02-04  Bruno Haible  <bruno@clisp.org>
2934
2935         isatty: Fix test failure of ptsname_r on native Windows.
2936         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2937         and don't set errno.
2938         (isatty): Test first whether fd is valid. Set errno when returning 0.
2939
2940 2012-02-04  Bruno Haible  <bruno@clisp.org>
2941
2942         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2943         * tests/test-spawn-pipe-main.c: Include progname.h.
2944         (main): Invoke set_program_name.
2945         * modules/spawn-pipe-tests (Depends-on): Add progname.
2946
2947         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2948         * tests/test-nonblocking-socket-main.c: Include progname.h.
2949         (main): Invoke set_program_name.
2950         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2951
2952         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2953         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2954         (main): Invoke set_program_name.
2955         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2956
2957 2012-02-04  Eric Blake  <eblake@redhat.com>
2958
2959         canonicalize-lgpl: fix // handling
2960         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2961
2962         canonicalize: fix // handling
2963         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2964         /// to //, since only // is special.
2965
2966 2012-02-04  Bruno Haible  <bruno@clisp.org>
2967
2968         ioctl: Fix test failure on native Windows.
2969         * lib/ioctl.c: Include msvc-nothrow.h.
2970         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2971
2972 2012-02-04  Bruno Haible  <bruno@clisp.org>
2973
2974         fsync: Avoid test failure on native Windows.
2975         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2976         read-only.
2977
2978 2012-02-04  Bruno Haible  <bruno@clisp.org>
2979
2980         sys_select: Avoid syntax error on OpenBSD 5.0.
2981         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2982         currently being included, just include the system's <sys/select.h>.
2983
2984 2012-02-04  Bruno Haible  <bruno@clisp.org>
2985
2986         sys_select: Avoid syntax error on OpenBSD 5.0.
2987         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2988         <sys/select.h>, not before.
2989         Reported by Jiri B <jirib@devio.us>.
2990
2991 2012-02-04  Bruno Haible  <bruno@clisp.org>
2992
2993         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2994         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2995         global variables.
2996         * tests/test-get-rusage-data.c (main): Likewise.
2997         Reported by Jim Meyering.
2998
2999 2012-02-04  Bruno Haible  <bruno@clisp.org>
3000
3001         stdioext: Fix last commit.
3002         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3003
3004 2012-02-03  Bruno Haible  <bruno@clisp.org>
3005
3006         stdioext: Add tentative support for Plan9.
3007         * lib/stdio-impl.h: Include <errno.h>.
3008         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3009         * lib/freadable.c (freadable): Likewise.
3010         * lib/fwritable.c (fwritable): Likewise.
3011         * lib/fbufmode.c (fbufmode): Likewise.
3012         * lib/freading.c (freading): Likewise.
3013         * lib/fwriting.c (fwriting): Likewise.
3014         * lib/freadptr.c (freadptr): Likewise.
3015         * lib/freadseek.c (freadptrinc): Likewise.
3016         * lib/freadahead.c (freadahead): Likewise.
3017         * lib/fpurge.c (fpurge): Likewise.
3018         * lib/fseeko.c (rpl_fseeko): Likewise.
3019         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3020         Reported by Jens Staal <staal1978@gmail.com>.
3021
3022 2012-02-02  Jim Meyering  <meyering@redhat.com>
3023
3024         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3025         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3026         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3027         not even to try to add the attribute.  Instead, add a pragma to suppress
3028         the suggestion/warning.
3029
3030 2012-01-31  Karl Berry  <karl@gnu.org>
3031
3032         setstate doc: typo.
3033         * doc/posix-functions/setstate.texi (setstate): { not (.
3034
3035 2012-01-31  Bruno Haible  <bruno@clisp.org>
3036
3037         popen: Make more robust on Windows.
3038         * lib/popen.c: On native Windows, use the _popen based code even if
3039         HAVE_POPEN is set.
3040         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3041         environment variable on native Windows.
3042
3043 2012-01-30  Bruno Haible  <bruno@clisp.org>
3044
3045         pclose: Fix typo.
3046         * lib/stdio.in.h (pclose): Fix typo in warning message.
3047
3048 2012-01-30  Bruno Haible  <bruno@clisp.org>
3049
3050         doc about getlogin_r, setstate.
3051         * doc/posix-functions/getlogin_r.texi: List the incompatible
3052         declaration problem under "not fixed by gnulib".
3053         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3054         problem on Solaris 11 and other platforms.
3055
3056 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3057             Bruno Haible  <bruno@clisp.org>
3058
3059         poll tests: Make test more robust.
3060         * tests/test-poll.c: Include macros.h.
3061         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3062         return value of various I/O operations.
3063         * modules/poll-tests (Files): Add tests/macros.h.
3064
3065 2012-01-30  Bruno Haible  <bruno@clisp.org>
3066
3067         sys_stat: Fix support for mingw64 and MSVC.
3068         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3069         header files already do it.
3070         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3071         stat itself.
3072         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3073
3074 2012-01-30  Bruno Haible  <bruno@clisp.org>
3075
3076         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3078         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3079
3080 2012-01-29  Bruno Haible  <bruno@clisp.org>
3081
3082         quotearg: Fix test failure on MacOS X 10.5.
3083         * tests/test-quotearg-simple.c: Include localcharset.h.
3084         (main): If the locale encoding is not ASCII, bypass the tests of
3085         locale_quoting_style and clocale_quoting_style.
3086         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3087
3088 2012-01-29  Jim Meyering  <meyering@redhat.com>
3089
3090         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3091         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3092         detect uses of canonicalize_file_name.
3093
3094 2012-01-28  Bruno Haible  <bruno@clisp.org>
3095
3096         test-framework-sh: Fix test failure with AIX 7.1 diff.
3097         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3098         in column 1, like 'diff -c' does.
3099         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3100         whether 'diff -u' is used. Instead, test whether the output contains
3101         some '@' character.
3102
3103 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3104
3105         strtoimax: eliminate need for stdint.h, inttypes.h checks
3106         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3107         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3108         the prerequisites for a recently-introduced strtoimax test.
3109         I guess this might cause strtoimax to be replaced when not
3110         strictly necessary on older hosts, but this shouldn't introduce
3111         any bugs and it should make Emacs 'configure' faster on typical
3112         modern hosts.  Problem discovered when importing the latest gnulib
3113         to an Emacs test version.
3114         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3115
3116 2012-01-28  Bruno Haible  <bruno@clisp.org>
3117
3118         sys_time: Override 'struct timeval' on some native Windows platforms.
3119         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3120         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3121         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3122         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3123         needs to be overridden.
3124         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3125         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3126         * tests/test-sys_select.c: Check that the tv_sec member has the same
3127         size as a 'time_t'.
3128         * tests/test-sys_time.c: Likewise.
3129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3130         is set, set also REPLACE_GETTIMEOFDAY.
3131         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3132         convert the resulting 'struct timeval' before returning.
3133         * lib/select.c: Include <sys/time.h>.
3134         (select, timeval): Undefine at the right place.
3135         * modules/select (Depends-on): Add sys_time.
3136         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3137         some Windows platforms.
3138         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3139
3140 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3141
3142         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3143         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3144         an integer.
3145         * lib/fcntl.c (dupfd): Likewise.
3146         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3147
3148 2012-01-28  Bruno Haible  <bruno@clisp.org>
3149
3150         fcntl: Avoid compilation error on native Windows.
3151         * modules/fcntl (Depends-on): Add 'close'.
3152
3153 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3154
3155         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3156         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3157         pointer to an integer.
3158         * lib/poll.c (IsConsoleHandle): Likewise.
3159         * lib/isatty.c (IsConsoleHandle): Likewise.
3160
3161 2012-01-28  Jim Meyering  <meyering@redhat.com>
3162
3163         doc: clarify README-release
3164         * top/README-release: Clarify: you should make a point to have
3165         the latest stable versions of build tools in your PATH, and the
3166         reference to buildreq is solely for its list of tool names, not
3167         for its minimal-functional version numbers.
3168         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3169
3170         maint.mk: use more readable (yet functionally equivalent) quoting
3171         It is common to quote a single quote in a single quoted string like
3172         this:  '...'\''...'.  Unless you know the idiom, that looks like
3173         gibberish, so prefer to double-quote the string when possible.
3174         Then you can use a more readable, lone single quote: "...'..."
3175         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3176         "don't" is more readable than the equivalent 'don'\''t'.
3177         (sc_cast_of_x_alloc_return_value): Likewise.
3178         (sc_cast_of_alloca_return_value): Likewise.
3179         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3180         rather than '\'':'\''.
3181
3182 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         stdalign: relax _Alignof and tighten _Alignas test
3185         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3186         as it was too strict: alignof must divide offsetof, but it need
3187         not equal offsetof.  Inspired by Joseph S. Myers's comment
3188         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3189         Conversely, tighten the _Alignas test a bit, as the resulting
3190         alignment must be exactly 8.
3191
3192 2012-01-27  Bruno Haible  <bruno@clisp.org>
3193
3194         stdalign: Document the last change.
3195         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3196
3197 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3198
3199         stdalign: check that alignof and offsetof are consistent
3200         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3201         Problem reported for gnulib by Richard W.M. Jones in
3202         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3203
3204 2012-01-27  Jim Meyering  <meyering@redhat.com>
3205
3206         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3207         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3208         convert a sequence with gaps to the minimal containing range.
3209         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3210         * tests/test-update-copyright.sh: Test for this.
3211         The FSF confirmed it is ok to do this, assuming there is at
3212         least one significant change per year in the affected range:
3213         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3214
3215 2012-01-26  Bruno Haible  <bruno@clisp.org>
3216
3217         pipe2: refine doc about thread-safety
3218         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3219         multithread-safety problem.
3220         * doc/glibc-functions/accept4.texi: Likewise.
3221
3222 2012-01-26  Bruno Haible  <bruno@clisp.org>
3223
3224         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3225         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3226         In the test program, include <fcntl.h>, for O_RDONLY.
3227
3228 2012-01-26  Eric Blake  <eblake@redhat.com>
3229
3230         pipe2: document lack of thread-safety in replacement
3231         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3232         issue in replacement.
3233         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3234         Based on a report by Eric Wong.
3235
3236 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3237             Bruno Haible  <bruno@clisp.org>
3238
3239         malloca: Avoid warnings on x86_64 mingw64.
3240         * lib/malloca.c: Include <stdint.h>.
3241         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3242         * modules/malloca (Depends-on): Add stdint.
3243         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3244
3245 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3246
3247         obstack: remove __STDC__ conditionals
3248         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3249         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3250         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3251         m4/include_next.m4 as the only gnulib-maintained places that still
3252         refer to __STDC__.
3253
3254 2012-01-24  Bruno Haible  <bruno@clisp.org>
3255
3256         havelib: Modern quoting.
3257         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3258         the recent change to the GNU coding standards.
3259
3260 2012-01-24  Bruno Haible  <bruno@clisp.org>
3261
3262         stdint: Improve support for Android.
3263         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3264         Reported by Simon Josefsson <simon@josefsson.org>.
3265
3266 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3267
3268         doc: omit trailing empty lines from INSTALL etc.
3269         * doc/Makefile (INSTALL): Omit trailing empty lines.
3270         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3271         omit trailing empty lines.  This simplifies the build procedure.
3272
3273 2012-01-23  Jim Meyering  <meyering@redhat.com>
3274
3275         tests: avoid spurious warnings about gl_sockets_startup
3276         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3277         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3278         reporting a "statement with no effect".
3279         * tests/test-accept.c (main): Mark as "(void)".
3280         * tests/test-accept4.c (main): Likewise.
3281         * tests/test-bind.c (main): Likewise.
3282         * tests/test-connect.c (main): Likewise.
3283         * tests/test-getpeername.c (main): Likewise.
3284         * tests/test-getsockname.c (main): Likewise.
3285         * tests/test-getsockopt.c (main): Likewise.
3286         * tests/test-listen.c (main): Likewise.
3287         * tests/test-recv.c (main): Likewise.
3288         * tests/test-recvfrom.c (main): Likewise.
3289         * tests/test-send.c (main): Likewise.
3290         * tests/test-sendto.c (main): Likewise.
3291         * tests/test-setsockopt.c (main): Likewise.
3292         * tests/test-shutdown.c (main): Likewise.
3293
3294 2012-01-21  Bruno Haible  <bruno@clisp.org>
3295
3296         locale-fr.m4: Fix for Android.
3297         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3298         failure of the test program on Bionic libc.
3299
3300 2012-01-21  Jim Meyering  <meyering@redhat.com>
3301
3302         bootstrap: fail when bootstrap_post_import_hook fails
3303         Otherwise, it's far too easy to miss diagnostics emitted
3304         between gnulib-tool's output and that of running configure.
3305         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3306
3307 2012-01-17  Jim Meyering  <meyering@redhat.com>
3308
3309         maint: enable sc_trailing_blank
3310         * build-aux/pmccabe.css: Remove trailing blanks.
3311         * doc/acl-cygwin.txt: Likewise.
3312         * doc/gnu-oids.texi: Likewise
3313         * cfg.mk: Enable sc_trailing_blank.
3314         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3315
3316 2012-01-17  Jim Meyering  <meyering@redhat.com>
3317
3318         maint: enable sc_prohibit_openat_without_use
3319         * cfg.mk: Enable sc_prohibit_openat_without_use.
3320         Exempt lib/selinux-at.c.
3321
3322 2012-01-17  Jim Meyering  <meyering@redhat.com>
3323
3324         maint: enable sc_prohibit_cloexec_without_use
3325         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3326         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3327
3328 2012-01-17  Jim Meyering  <meyering@redhat.com>
3329
3330         maint: enable sc_prohibit_intprops_without_use
3331         * cfg.mk: Enable sc_prohibit_intprops_without_use
3332         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3333
3334 2012-01-17  Jim Meyering  <meyering@redhat.com>
3335
3336         maint: enable sc_prohibit_hash_pjw_without_use
3337         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3338         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3339         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3340         following " (".
3341
3342 2012-01-17  Jim Meyering  <meyering@redhat.com>
3343
3344         maint: enable double-word-prohibiting rule
3345         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3346         Exempt three files.
3347
3348 2012-01-17  Jim Meyering  <meyering@redhat.com>
3349
3350         maint: remove empty lines at EOF, but excluding modules/*
3351         Apply syntax rules at home as well as abroad.  Most changes
3352         were induced by running this:
3353           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3354             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3355             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3356         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3357         Exempt modules/* and two binary files.
3358         Also exempt doc/INSTALL*, per request from Bruno Haible.
3359         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3360         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3361         * doc/Copyright/request-assign.future: Likewise.
3362         * doc/Copyright/request-disclaim.changes: Likewise.
3363         * doc/INSTALL: Likewise.
3364         * doc/INSTALL.ISO: Likewise.
3365         * doc/INSTALL.UTF-8: Likewise.
3366         * doc/acl-cygwin.txt: Likewise.
3367         * doc/acl-resources.txt: Likewise.
3368         * doc/fdl-1.2.texi: Likewise.
3369         * doc/fdl-1.3.texi: Likewise.
3370         * doc/fdl.texi: Likewise.
3371         * lib/argp-pin.c: Likewise.
3372         * lib/round.c: Likewise.
3373         * lib/unicase/u16-totitle.c: Likewise.
3374         * lib/unictype/block_test.c: Likewise.
3375         * lib/uninorm/canonical-decomposition.c: Likewise.
3376         * m4/README: Likewise.
3377         * m4/relocatable-lib.m4: Likewise.
3378         * tests/test-isnand-nolibm.c: Likewise.
3379         * tests/test-isnand.c: Likewise.
3380         * tests/uninorm/NormalizationTest.txt: Likewise.
3381
3382 2012-01-17  Jim Meyering  <meyering@redhat.com>
3383
3384         maint: add framework to run syntax-check rules against gnulib sources
3385         * cfg.mk: New file, to disable all currently-failing tests.
3386         We'll enable them one by one, as they are made to pass.
3387         * Makefile (sc_maint): New rule.
3388
3389 2012-01-21  Bruno Haible  <bruno@clisp.org>
3390
3391         stdint: Add support for Android.
3392         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3393         include the system's <stdint.h>.
3394         Reported by Simon Josefsson <simon@josefsson.org>.
3395
3396 2012-01-19  Jim Meyering  <meyering@redhat.com>
3397
3398         bootstrap: add bootstrap_post_import_hook
3399         Bison does still need something like the gnulib_mk_hook whose
3400         invocation I had to remove along with slurp in commit 767ccd40.
3401         Technically, we could get along without it, but doing so would
3402         have required living with a warning and a mandatory post-bootstrap
3403         automake rerun.
3404         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3405         (bootstrap_post_import_hook): New function.
3406         Invoke it after gnulib-tool --import and before autoreconf.
3407
3408 2012-01-18  Jim Meyering  <meyering@redhat.com>
3409
3410         gitlog-to-changelog: don't use "no_"-prefixed variable name
3411         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3412         to enable both --cluster and --no-cluster.  Change variable name,
3413         s/\$no_cluster/$cluster/, and reverse usage to match.
3414
3415         gitlog-to-changelog: use "||", not "or" in expressions
3416         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3417         expressions.
3418
3419 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3420
3421         gitlog-to-changelog: new option --no-cluster
3422         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3423         clustering of adjacent commit messages.
3424
3425 2012-01-17  Jim Meyering  <meyering@redhat.com>
3426
3427         maint: spell file systems with two words, not one
3428         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3429         two words, not one.
3430
3431 2012-01-16  Jim Meyering  <meyering@redhat.com>
3432
3433         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3434         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3435
3436 2012-01-16  Eric Blake  <eblake@redhat.com>
3437
3438         bootstrap: cater to autoconf 2.59
3439         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3440         is not available.
3441
3442         bootstrap: properly check for libtool
3443         * build-aux/bootstrap (libtoolize): Also run libtool when older
3444         usage is detected.
3445
3446 2012-01-15  Bruno Haible  <bruno@clisp.org>
3447
3448         Improve support for MSVC 9.
3449         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3450         clashes on MSVC.
3451         * lib/fcntl.in.h: Likewise.
3452         * lib/stdlib.in.h: Likewise.
3453         * lib/sys_stat.in.h: Likewise.
3454
3455 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3456
3457         gnupload: we hold the master copy of this script now
3458         For motivation and more information, see:
3459         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3460         * build-aux/gnupload: Make it clear in the heading comments that the
3461         master copy of this file is maintained by gnulib.  Since we are at
3462         it, bump its copyright year and ...
3463         ($scriptversion): ... the date in its version.
3464         ($usage): Patches and bug reports should be sent to the gnulib list,
3465         not the automake one.
3466         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3467         anymore.
3468
3469 2012-01-15  Bruno Haible  <bruno@clisp.org>
3470
3471         Fix module 'random'.
3472         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3473         initstate, setstate are declared.
3474
3475 2012-01-14  Bruno Haible  <bruno@clisp.org>
3476
3477         Tests for module 'random'.
3478         * modules/random-tests: New file.
3479         * tests/test-random.c: New file, based on tests/test-random_r.c.
3480
3481         New module 'random'.
3482         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3483         declarations.
3484         * lib/random.c: New file, based on glibc/stdlib/random.c.
3485         * m4/random.m4: New file.
3486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3487         HAVE_RANDOM.
3488         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3489         * modules/random: New file.
3490         * config/srclist.txt: Add an entry for random.c.
3491         * doc/posix-functions/random.texi: Mention the 'random' module.
3492         * doc/posix-functions/initstate.texi: Likewise.
3493         * doc/posix-functions/setstate.texi: Likewise.
3494         * doc/posix-functions/srandom.texi: Likewise.
3495
3496 2012-01-12  Bruno Haible  <bruno@clisp.org>
3497
3498         random_r: Use common idioms.
3499         * lib/random_r.c: Include <stdlib.h> first.
3500
3501         random_r: Override incompatible API on AIX, OSF/1.
3502         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3503         Override the system function if REPLACE_RANDOM_R is 1.
3504         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3505         and OSF/1, set REPLACE_RANDOM_R.
3506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3507         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3508         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3509         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3510         * doc/glibc-functions/random_r.texi: Likewise.
3511         * doc/glibc-functions/setstate_r.texi: Likewise.
3512
3513         random_r: Support for MSVC 9.
3514         * lib/random_r.c: Include stdint.h, not inttypes.h.
3515
3516 2012-01-12  Eric Blake  <eblake@redhat.com>
3517
3518         inet_ntop: guard extra work by IF_LINT
3519         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3520         better code generation when not checking for warnings.
3521         Suggested by Paul Eggert and Jim Meyering.
3522
3523         strptime: fix regression on mingw
3524         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3525         Fix regression.  Reported by Bruno Haible.
3526
3527 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3528             Bruno Haible  <bruno@clisp.org>
3529
3530         copy-file: add error-code-returning variant.
3531         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3532         (qcopy_file_preserving): New declaration.
3533         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3534         copy_file_preserving. Change return type to 'int'. Don't emit an error
3535         message here.
3536         (copy_file_preserving): New function.
3537         * tests/test-copy-file.c: Include <stdlib.h>.
3538         (main): Test qcopy_file_preserving if the environment variable
3539         NO_STDERR_OUTPUT is set.
3540         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3541         with NO_STDERR_OUTPUT
3542         * tests/test-copy-file-2.sh: Likewise.
3543
3544 2012-01-10  Bruno Haible  <bruno@clisp.org>
3545
3546         copy-file: Use 'quote' module consistently.
3547         * lib/copy-file.c (copy_file_preserving): Use quote().
3548
3549         copy-file: Refactor.
3550         * lib/copy-file.c: Include quote.h.
3551         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3552         message here.
3553         * modules/copy-file (Depends-on): Add quote.
3554
3555         acl: Export qcopy_acl.
3556         * lib/acl.h (qcopy_acl): New declaration.
3557         * lib/copy-acl.c (qcopy_acl): Make non-static.
3558
3559         acl: Rename a local variable.
3560         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3561
3562         acl: Align return values of copy_acl and qcopy_acl.
3563         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3564         maybe < -1.
3565
3566 2012-01-11  Eric Blake  <eblake@redhat.com>
3567
3568         strptime: silence gcc warnings
3569         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3570         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3571         Reported by Daniel P. Berrange.
3572
3573         inet_ntop: silence gcc warning
3574         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3575         Reported by Daniel P. Berrange.
3576
3577 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3578
3579         getloadavg test: skip the test on GNU/Linux without /proc mounted
3580         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3581         file.  When /proc is not mounted, it always fails with ENOENT.
3582         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3583         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3584
3585 2012-01-10  Bruno Haible  <bruno@clisp.org>
3586
3587         regex: Avoid link error on MSVC 9.
3588         * modules/regex (Depends-on): Add wctype.
3589
3590 2012-01-10  Bruno Haible  <bruno@clisp.org>
3591
3592         doc: Mention --with-tests option.
3593         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3594         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3595         --with-tests.
3596         Reported by Reuben Thomas.
3597
3598 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3599
3600         users.txt: order package names lexicographically.
3601         * users.txt: Order package names lexicographically.
3602
3603 2012-01-10  Jim Meyering  <meyering@redhat.com>
3604
3605         maint.mk: fix description in comment
3606         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3607
3608         ignore-value: remove deprecated ignore_ptr function
3609         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3610         * NEWS: Note this.
3611
3612 2012-01-09  Jim Meyering  <meyering@redhat.com>
3613
3614         test-init.sh: avoid a subshell
3615         * tests/test-init.sh: Remove protective subshell.
3616         Suggested by Bernhard Voelker.  While a subshell is normally
3617         required to protect against older shells (Solaris, FreeBSD) that
3618         warn about a missing program before performing redirection, the
3619         shell-selection tests performed by init.sh probably exclude any
3620         offending shell.
3621
3622 2012-01-08  Bruno Haible  <bruno@clisp.org>
3623
3624         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3625         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3626         variable.
3627
3628 2012-01-08  Bruno Haible  <bruno@clisp.org>
3629
3630         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3631         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3632         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3633         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3634         macro.
3635         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3636         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3637         * lib/spawn_faction_addopen.c: Add workaround implementation if
3638         HAVE_WORKING_POSIX_SPAWN.
3639         * modules/spawn (Makefile): Substitute
3640         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3641         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3642         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3643         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3644         (Depends-on): Update conditions.
3645         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3646         the Solaris 11 bug.
3647
3648 2012-01-08  Bruno Haible  <bruno@clisp.org>
3649
3650         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3651         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3652         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3653         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3654         macro.
3655         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3656         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3657         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3658         HAVE_WORKING_POSIX_SPAWN.
3659         * modules/spawn (Makefile): Substitute
3660         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3661         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3662         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3663         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3664         (Depends-on): Update conditions.
3665         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3666         the Solaris 11 bug.
3667
3668 2012-01-08  Bruno Haible  <bruno@clisp.org>
3669
3670         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3671         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3672         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3674         HAVE_WORKING_POSIX_SPAWN.
3675         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3676         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3677         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3678         * lib/spawn_faction_addclose.c: Add workaround implementation if
3679         HAVE_WORKING_POSIX_SPAWN.
3680         * modules/spawn (Makefile): Substitute
3681         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3682         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3683         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3684         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3685         (Depends-on): Update conditions.
3686         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3687         the Solaris 11 bug.
3688
3689 2012-01-08  Bruno Haible  <bruno@clisp.org>
3690
3691         doc: Update for Solaris 11 2011-11.
3692         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3693         * m4/printf.m4: Update comments.
3694
3695 2012-01-08  Bruno Haible  <bruno@clisp.org>
3696
3697         mktime: Avoid compilation error on Solaris 11.
3698         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3699
3700 2012-01-08  Bruno Haible  <bruno@clisp.org>
3701
3702         doc: Small fix.
3703         * doc/posix-headers/nl_types.texi: Correct platforms list.
3704
3705 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3706
3707         Add lgpl-3.0 module.
3708         * MODULES.html.sh (Support for building documentation): Add
3709         lgpl-3.0.
3710         * modules/lgpl-3.0: New file.
3711
3712 2012-01-08  Jim Meyering  <meyering@redhat.com>
3713
3714         select.c: indent with spaces, not TABs
3715         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3716
3717 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3718
3719         quotearg: do not use grave accent for left quote
3720         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3721         locale_quoting_style.
3722         (quotearg_buffer_restyled): Fix example.
3723         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3724
3725 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3726
3727         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3728         Most programs do not have translation catalogs for English and much
3729         less separate catalogs for British and American English.  Drop the
3730         suggestion to translators about these two, and provide it
3731         automatically for Unicode locales.  Like most programs, even those
3732         using American English, we use single quotation marks.  This conflicts
3733         with the American typographic convention, but works better when you
3734         cite the entire error message within double quotes.  It also tries not
3735         to clash with established practice and with what non-gnulib programs
3736         will usually do.
3737         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3738         using an UTF-8 or GB-18030 locale.  The list of other locales with
3739         quotes was provided by Bruno Haible.
3740         (quotearg_buffer_restyled): Adjust instructions to translators.
3741         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3742         text, since this would be wrong when using Unicode.
3743         * modules/quotearg: Depend on c-strcaseeq.
3744
3745 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3746
3747         quotearg: fix Wikipedia link
3748         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3749
3750 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3751
3752         Fix for mingw with MSVC9.
3753         * m4/ld-version-script.m4: Check that compiler rejects version
3754         scripts with syntax errors.  Reported by Bruno Haible
3755         <bruno@clisp.org>.
3756
3757 2012-01-06  Bruno Haible  <bruno@clisp.org>
3758
3759         Talk about "native Windows API", not "Woe32".
3760         * lib/accept4.c: Update comments to mention native Windows.
3761         * lib/execute.c: Likewise.
3762         * lib/fatal-signal.c: Likewise.
3763         * lib/localcharset.c: Likewise.
3764         * lib/nanosleep.c: Likewise.
3765         * lib/nl_langinfo.c: Likewise.
3766         * lib/pclose.c: Likewise.
3767         * lib/pipe-filter-gi.c: Likewise.
3768         * lib/pipe-filter-ii.c: Likewise.
3769         * lib/pipe.c: Likewise.
3770         * lib/pipe2.c: Likewise.
3771         * lib/popen.c: Likewise.
3772         * lib/progreloc.c: Likewise.
3773         * lib/relocatable.c: Likewise.
3774         * lib/sigaction.c: Likewise.
3775         * lib/sigprocmask.c: Likewise.
3776         * lib/spawn-pipe.h: Likewise.
3777         * lib/spawn-pipe.c: Likewise.
3778         * lib/spawni.c: Likewise.
3779         * lib/stat-time.h: Likewise.
3780         * lib/w32spawn.h: Likewise.
3781         * tests/test-isatty.c: Likewise.
3782         * lib/config.charset: More comments.
3783         * doc/gnulib-intro.texi: Mention native Windows.
3784         * doc/posix-functions/_Exit_C99.texi: Likewise.
3785         * doc/posix-headers/fcntl.texi: Likewise.
3786
3787 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3788
3789         argp: Avoid crash if translator uses % characters in a translation.
3790         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3791         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3792
3793 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         doc: C11 and C++11 are now official
3796         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3797         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3798         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3799         * modules/stdalign:
3800         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3801
3802 2012-01-06  Bruno Haible  <bruno@clisp.org>
3803
3804         uc-is-grapheme-break tests: Tweak.
3805         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3806         message.
3807
3808 2012-01-06  Bruno Haible  <bruno@clisp.org>
3809
3810         test-init.sh: correct the test for diff -u
3811         * tests/test-init.sh: Also redirect stdout to /dev/null.
3812
3813 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         Use ', not `, for quoting output.
3816         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3817         (print_changelog_deltas, get_tool_versions, main program):
3818         * build-aux/git-version-gen:
3819         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3820         * build-aux/move-if-change (help):
3821         * build-aux/useless-if-before-free (usage, main program):
3822         * check-module (parse_module_file, usage)
3823         (find_included_lib_files, check_module):
3824         * lib/argmatch.c (main) [TEST]:
3825         * lib/argp-help.c (_help):
3826         * lib/getopt1.c (main) [TEST]:
3827         * lib/git-merge-changelog.c (usage):
3828         * lib/xstrtol-error.c (xstrtol_error):
3829         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3830         * m4/argz.m4 (gl_FUNC_ARGZ):
3831         * m4/bison.m4 (gl_BISON):
3832         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3833         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3834         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3835         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3836         * m4/gc-random.m4 (gl_GC_RANDOM):
3837         * m4/intl.m4 (gt_CHECK_DECL):
3838         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3840         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3841         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3842         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3843         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3844         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3845         * tests/test-dirname.c (main):
3846         * tests/test-getpass.c (main):
3847         * tests/test-iconvme.c (main):
3848         * tests/test-parse-datetime.c (LOG):
3849         * tests/test-xstrtoimax.sh:
3850         * tests/test-xstrtol.sh:
3851         * tests/test-xstrtoll.sh:
3852         * tests/test-xstrtoumax.sh:
3853         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3854         * top/GNUmakefile (abort-due-to-no-makefile):
3855         Quote 'like this', not `like this', as per the recent change to
3856         the GNU coding standards.
3857
3858 2012-01-05  Bruno Haible  <bruno@clisp.org>
3859
3860         strtoimax: Don't force a replacement on systems where intmax_t is int.
3861         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3862         'intmax_t' is not larger than 'int'.
3863         Reported by Pádraig Brady <P@draigBrady.com>.
3864
3865 2012-01-05  Bruno Haible  <bruno@clisp.org>
3866
3867         doc: Mention NetBSD bugs.
3868         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3869         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3870
3871 2012-01-05  Bruno Haible  <bruno@clisp.org>
3872
3873         strtoumax tests: Enhance tests.
3874         * tests/test-strtoumax.c (main): Add tests for large values.
3875
3876 2012-01-05  Bruno Haible  <bruno@clisp.org>
3877
3878         strtoimax: Work around AIX 5.1 bug.
3879         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3880         definition.
3881         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3882         Set HAVE_STRTOIMAX.
3883         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3884         REPLACE_STRTOIMAX.
3885         * modules/inttypes-incomplete (Makefile.am): Substitute
3886         REPLACE_STRTOIMAX.
3887         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3888         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3889         (Depends-on): Update conditions.
3890         * tests/test-strtoimax.c (main): Add tests for large values.
3891         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3892
3893 2012-01-05  Bruno Haible  <bruno@clisp.org>
3894
3895         inttypes: Modernize.
3896         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3897         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3898         (Makefile.am): Update inttypes.h rule.
3899
3900 2012-01-05  Jim Meyering  <meyering@redhat.com>
3901
3902         init.sh: don't waste a subshell just to redirect stderr
3903         * tests/init.sh: In testing for diff -u and diff -c, use a
3904         stderr-redirecting exec inside `...` rather than a subshell.
3905
3906         test-init.sh: avoid failure on HP-UX 11.00
3907         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3908         resolves to diff -c or cmp.  Reported by Bruno Haible.
3909
3910 2012-01-05  Bruno Haible  <bruno@clisp.org>
3911
3912         Tests for module 'strtoull'.
3913         * modules/strtoull-tests: New file.
3914         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3915
3916 2012-01-05  Bruno Haible  <bruno@clisp.org>
3917
3918         Tests for module 'strtoll'.
3919         * modules/strtoll-tests: New file.
3920         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3921
3922 2012-01-05  Bruno Haible  <bruno@clisp.org>
3923
3924         Tests for module 'strtoul'.
3925         * modules/strtoul-tests: New file.
3926         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3927
3928 2012-01-05  Bruno Haible  <bruno@clisp.org>
3929
3930         Tests for module 'strtol'.
3931         * modules/strtol-tests: New file.
3932         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3933
3934 2012-01-04  Jim Meyering  <meyering@redhat.com>
3935
3936         test-init.sh: accommodate Solaris 5.10's different diff -u output
3937         * tests/test-init.sh: Also exempt @@ lines from the comparison
3938         of diff output, since Solaris 5.10 and GNU diff formats differ.
3939         Reported by Stefano Lattarini.
3940
3941 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         test-posixtm: don't assume signed integer wraparound
3944         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3945         after signed integer overflow.  Inspired by (though it may not
3946         fix) Bruno Haible's bug report in
3947         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3948
3949         Spell out "Windows 9x" and "Windows XP".
3950         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3951         "Windows 9x" and "WinXP" with "Windows XP".
3952
3953 2012-01-04  Jim Meyering  <meyering@redhat.com>
3954
3955         test-vc-list-files-cvs.sh: remove obsolete comment
3956         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3957         double exit.  Now that's all encapsulated via skip_ and Exit.
3958
3959 2012-01-04  Bruno Haible  <bruno@clisp.org>
3960
3961         Talk about "native Windows API", not "Win32".
3962         * lib/classpath.c: Update comments to mention native Windows.
3963         * lib/csharpexec.c: Likewise.
3964         * lib/dup2.c: Likewise.
3965         * lib/error.c: Likewise.
3966         * lib/fcntl.c: Likewise.
3967         * lib/filename.h: Likewise.
3968         * lib/findprog.c: Likewise.
3969         * lib/get-rusage-as.c: Likewise.
3970         * lib/get-rusage-data.c: Likewise.
3971         * lib/getpagesize.c: Likewise.
3972         * lib/javaexec.c: Likewise.
3973         * lib/msvc-inval.c: Likewise.
3974         * lib/msvc-nothrow.c: Likewise.
3975         * lib/nanosleep.c: Likewise.
3976         * lib/nonblocking.c: Likewise.
3977         * lib/printf-parse.c: Likewise.
3978         * lib/setlocale.c: Likewise.
3979         * lib/sigaction.c: Likewise.
3980         * lib/strerror_r.c: Likewise.
3981         * lib/tmpdir.c: Likewise.
3982         * lib/vasnprintf.c: Likewise.
3983         * lib/w32spawn.h: Likewise.
3984         * lib/waitpid.c: Likewise.
3985         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3986         * m4/locale-ar.m4: Likewise.
3987         * m4/locale-fr.m4: Likewise.
3988         * m4/locale-ja.m4: Likewise.
3989         * m4/locale-tr.m4: Likewise.
3990         * m4/locale-zh.m4: Likewise.
3991         * m4/printf.m4: Likewise.
3992         * tests/test-cloexec.c: Likewise.
3993         * tests/test-copy-acl.sh: Likewise.
3994         * tests/test-copy-file.sh: Likewise.
3995         * tests/test-file-has-acl.sh: Likewise.
3996         * tests/test-set-mode-acl.sh: Likewise.
3997         * tests/test-dup-safer.c: Likewise.
3998         * tests/test-dup2.c: Likewise.
3999         * tests/test-dup3.c: Likewise.
4000         * tests/test-fcntl.c: Likewise.
4001         * tests/test-nonblocking-pipe.h: Likewise.
4002         * tests/test-nonblocking-socket.h: Likewise.
4003         * tests/test-pipe.c: Likewise.
4004         * tests/test-pipe2.c: Likewise.
4005         * tests/test-spawn-pipe-child.c: Likewise.
4006         * doc/acl-resources.txt: Likewise.
4007         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4008         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4009         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4010         * lib/localcharset.c: Update comments to mention native Windows.
4011         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4012         * lib/localename.c: Likewise.
4013         * lib/progreloc.c: Likewise.
4014         * lib/relocatable.c: Likewise.
4015         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4016         (windows_compute_revents): Renamed from win32_compute_revents.
4017         (windows_compute_revents_socket): Renamed from
4018         win32_compute_revents_socket.
4019         * lib/select.c: Update comments to mention native Windows.
4020         (windows_poll_handle): Renamed from win32_poll_handle.
4021         * m4/threadlib.m4: Update comments to mention native Windows.
4022         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4023         --enable-threads=windows instead of --enable-threads=win32. Set
4024         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4025         * lib/glthread/lock.h: Update comments to mention native Windows.
4026         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4027         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4028         USE_WIN32_THREADS.
4029         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4030         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4031         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4032         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4033         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4034         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4035         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4036         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4037         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4038         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4039         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4040         * tests/test-tls.c: Likewise.
4041         Rationale:
4042         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4043         on both 32-bit and 64-bit Windows systems.
4044         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4045         line of distinction is between "native Windows" on one side and Unix/
4046         POSIX systems on the other side. More details in
4047         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4048         Suggested by Paul Eggert.
4049
4050 2012-01-03  Bruno Haible  <bruno@clisp.org>
4051
4052         isatty: Support for MSVC 9.
4053         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4054         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4055         (_isatty_nothrow): New function.
4056         (isatty): Use it instead of _isatty.
4057         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4058         * lib/poll.c (IsConsoleHandle): Likewise.
4059         * lib/select.c (IsConsoleHandle): Likewise.
4060         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4061         (gl_PREREQ_ISATTY): New macro.
4062         * modules/isatty (Depends-on): Add msvc-inval.
4063         (configure.ac): Invoke gl_PREREQ_ISATTY.
4064
4065 2012-01-03  Jim Meyering  <meyering@redhat.com>
4066
4067         maint.mk: remove temporary transition aid from over 1.5 years ago
4068         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4069         purpose was to aid in the transition (avoiding silent malfunction)
4070         from that old name to the new _sc_search_regexp.  This shim was
4071         added by commit 219c504b.
4072
4073         init.sh: do not try to accommodate compare arguments starting with "-"
4074         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4075         compare arguments that start with "-".  Besides, we do not worry
4076         about this when invoking diff or cmp; why start now with sed?
4077         Using "--" to separate options from argument would trigger sed
4078         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4079         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4080
4081 2012-01-02  Bruno Haible  <bruno@clisp.org>
4082
4083         Enhance tests for module 'isatty'.
4084         * modules/isatty-tests (Depends-on): Add pipe-posix.
4085         * tests/test-isatty.c: Include <fcntl.h>.
4086         (DEV_NULL): New macro.
4087         (main): Test the resut of isatty() also on regular files, pipes, and
4088         /dev/null.
4089
4090         New module 'isatty'.
4091         * lib/unistd.in.h (isatty): New declaration.
4092         * lib/isatty.c: New file, based on an idea of
4093         Bastien Roucariès <roucaries.bastien@gmail.com>.
4094         * m4/isatty.m4: New file.
4095         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4096         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4097         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4098         REPLACE_ISATTY.
4099         * modules/isatty: New file.
4100         * doc/posix-functions/isatty.texi: Mention the new module.
4101         Suggested by Paolo Bonzini.
4102
4103 2012-01-02  Bruno Haible  <bruno@clisp.org>
4104
4105         canonicalize: Tweak 2011-12-29 commit.
4106         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4107         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4108
4109 2012-01-02  Jim Meyering  <meyering@redhat.com>
4110
4111         gitlog-to-changelog: describe input syntax in --help output
4112         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4113
4114         gitlog-to-changelog: fix typo in --help: show backslash before email @
4115         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4116         in sources, but not in actual output.
4117
4118 2011-12-30  Jim Meyering  <meyering@redhat.com>
4119
4120         gitlog-to-changelog: don't malfunction when name contains %-directive
4121         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4122         in a name string cause trouble.  E.g., with a user name of "%s",
4123         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4124
4125 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4126
4127         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4128         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4129         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4130         the "  (tiny change)" notation that is appended to the standard
4131         ChangeLog "date  name  email" header line.
4132
4133 2012-01-01  Jim Meyering  <meyering@redhat.com>
4134
4135         test-framework-sh: init.sh: fix "make dist" failure
4136         When using gnulib-tool's --with-tests option and any module that
4137         depends on test-framework-sh, "make dist" would fail due to the
4138         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4139         in the gltests directory, and not in the gllib/ directory.
4140         One way to work around that is to move the EXTRA_DIST += init.sh
4141         from the primary module to the -tests one:
4142         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4143         * modules/test-framework-sh (Makefile.am): ...not here.
4144         Reported by Tom G. Christensen in
4145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4146
4147         version-etc: update copyright year reported by --version
4148         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4149
4150 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4151
4152         canonicalize: only stat() if required
4153         * lib/canonicalize.c (canonicalize_filename_mode):
4154         Avoid calling l?stat() when both CAN_MISSING,
4155         and CAN_NOLINKS are set, as we neither need
4156         to resolve symlinks or test component existence.
4157
4158 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4159
4160         doc: cover st_ino issues once; add OpenVMS etc.
4161         * doc/posix-functions/stat.texi (stat):
4162         * doc/posix-functions/lstat.texi (lstat):
4163         * doc/posix-functions/fstatat.texi (fstatat):
4164         * doc/posix-functions/fstat.texi (fstat):
4165         Move general 'struct stat' stuff to sys_stat.texi,
4166         leaving behind a pointer.
4167         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4168         Merge duplicate info about 'struct stat' problems into here.
4169         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4170         and suggest partial workarounds.
4171
4172         same-inode: port to OpenVMS
4173         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4174         three st_ino values.
4175
4176 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4177
4178         canonicalize: fix references to stat() and lstat()
4179         * lib/canonicalize.c (canonicalize_filename_mode):
4180         Ensure references always resolve to a replacement
4181         function if required (even via a macro).
4182
4183 2011-12-30  Jim Meyering  <meyering@redhat.com>
4184
4185         gitlog-to-changelog: remove a little duplication
4186         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4187         rather than twice.
4188
4189 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4190
4191         canonicalize: add support for not resolving symlinks
4192         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4193         indicate we don't want to follow symlinks.  Also
4194         provide CAN_MODE_MASK to aid setting these existing
4195         mutually exclusive values.
4196         * lib/canonicalize.c (canonicalize_filename_mode):
4197         Extract the flags from can_mode parameter, which
4198         are currently just used to select between stat()
4199         and lstat().  Also ensure that mutually exclusive
4200         values are flagged immediately as invalid.
4201         * tests/test-canonicalize.c: Verify symlinks are
4202         not followed, and that invalid flag combinations
4203         are diagnosed.
4204
4205 2011-12-25  Jim Meyering  <meyering@redhat.com>
4206
4207         gitlog-to-changelog: do not clump multi-paragraph entries
4208         Identical header lines (date,name,email+coauthors) are suppressed,
4209         thus putting all entries with those same characteristics under
4210         a single header.  However, when a log entry consists of two or
4211         more paragraphs, it may not be clear where it starts and ends.
4212         This change makes it so that such an entry is always separated
4213         from others by a header line, even when that header would
4214         otherwise be suppressed.
4215         * build-aux/gitlog-to-changelog: Implement the above.
4216         Inspired by a related request from Stefano Lattarini in
4217         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4218
4219 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         announce-gen: fix `cmd' typo in diagnostic
4222         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4223         diagnostic: a missing '$' meant that the command was not output.
4224
4225 2011-12-23  Jim Meyering  <meyering@redhat.com>
4226
4227         test-framework-sh: distribute init.sh
4228         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4229         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4230         fail due to the lack of init.sh.
4231
4232         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4233         * modules/atexit-tests: Rather than listing tests/init.sh,
4234         now that there's a module for it, simply depend on that new module.
4235         * modules/closein-tests: Likewise.
4236         * modules/exclude-tests: Likewise.
4237         * modules/getcwd-tests: Likewise.
4238         * modules/perror-tests: Likewise.
4239         * modules/pread-tests: Likewise.
4240         * modules/pwrite-tests: Likewise.
4241         * modules/vc-list-files-tests: Likewise.
4242         * modules/verify-tests: Likewise.
4243         * modules/xalloc-die-tests: Likewise.
4244         * modules/xstrtoimax-tests: Likewise.
4245         * modules/xstrtol-tests: Likewise.
4246         * modules/xstrtoll-tests: Likewise.
4247         * modules/xstrtoumax-tests: Likewise.
4248         * modules/yesno-tests: Likewise.
4249
4250 2011-12-22  Jim Meyering  <meyering@redhat.com>
4251
4252         test-framework-sh: add minimal tests of init.sh's compare function
4253         * modules/test-framework-sh-tests: New file.
4254         * tests/test-init.sh: New file.
4255
4256         test-framework-sh: new module
4257         * modules/test-framework-sh: New file.
4258         * MODULES.html.sh (Support for maintaining and releasing projects):
4259         List it.
4260
4261         init.sh: do not emit simulated diff output to stderr
4262         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4263
4264 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4265
4266         .gitignore: ignore gnulib.dvi and regex.info
4267         * doc/.gitignore:add gnulib.dvi and regex.info
4268
4269 2011-12-22  Jim Meyering  <meyering@redhat.com>
4270
4271         init.sh: correct previous change
4272         * tests/init.sh (compare): My previous change was wrong.
4273         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4274
4275         init.sh: avoid unwarranted test failure when using "set -e"
4276         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4277         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4278         a use like "compare exp out" would get evoke an unconditional failure.
4279
4280 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4281
4282         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4283         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4284         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4285         autoreconf that did not.
4286         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4287         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4288
4289 2011-12-17  Jim Meyering  <meyering@redhat.com>
4290
4291         bootstrap: remove some now-unneeded code
4292         This script arose back when gnulib-tool was young.
4293         Since then, it has seen improvements that render much of this
4294         script unnecessary.  In particular, it can now make symlinks
4295         to the files it uses.  Also, I no longer see as much value in
4296         marking files as read-only via comments.
4297         If you relied on the symlink-creation feature of the preceding
4298         version of this script, you can get most of that functionality
4299         by adding the --symlink option to the definition of
4300         gnulib_tool_option_extras in your bootstrap.conf file.
4301         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4302         Run autopoint and libtoolize *before* gnulib-tool.
4303         After it, run an abbreviated autoreconf, rather than a loop around
4304         all tools.
4305         (slirp, bt_mark_as_generated): Remove functions.
4306
4307 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4308
4309         ftoastr: fix typo
4310         * lib/ftoastr.h: Fix misspelling in comment.
4311
4312 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4313
4314         * top/README-release: fix punctuation.
4315
4316 2011-12-17  Jim Meyering  <meyering@redhat.com>
4317
4318         bootstrap: correct the recent buildreq change
4319         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4320         had no effect.
4321         * build-aux/bootstrap (buildreq): Bracket each search term with
4322         "*...*", so that the shell "case" statement works as intended.
4323         Add comments.
4324
4325 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4326
4327         build: let bootstrap resort to wget when downloading .po files
4328         * build-aux/bootstrap (download_po_files): Fallback to wget when
4329         downloading the .po files via rsync fails.  This is necessary to
4330         bootstrap from behind a strict firewall.
4331
4332 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4333
4334         stdint: don't assume C++11 when compiling with g++
4335         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4337         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4338         work also in C++ before C++11, as that improperly inhibits
4339         generating a substitute stdint.h for that case.
4340
4341 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4342
4343         alloca: protect comment from gnulib-tool
4344         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4345         that gnulib-tool doesn't think it's a license, and munge it to
4346         say "GCC version 3".
4347
4348 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4349
4350         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4351         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4352         $(abs_top_builddir) instead of $(top_builddir).
4353
4354 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4355
4356         strftime-tests: also test nanoseconds
4357         * tests/test-strftime.c (T): Add a test of %N.
4358
4359 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4360
4361         inttypes, stdint: add C++11 support
4362         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4363         when including inttypes.h and stdint.h.  Support this change to
4364         the standard.
4365         * doc/posix-headers/inttypes.texi (inttypes.h):
4366         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4367         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4368         Define if not defined already, for the benefit of pre-C++11 hosts.
4369         Define the standard format macros (e.g., PRId8) always.
4370         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4371         Likewise, if __cpluspus.  Define the standard constant and limit
4372         macros (e.g., INT8_C, INT8_MAX) always.
4373         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4374         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4375         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4376         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4377         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4378         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4379         Likewise.
4380
4381 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4382
4383         nonblocking tests: Fix test failure on Linux/PPC.
4384         Suggested by Prerna Saxena in
4385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4386         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4387         Set to 1100000.
4388
4389 2011-12-12  Jim Meyering  <meyering@redhat.com>
4390
4391         argmatch: don't hard-code `' when listing valid option arguments
4392         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4393         use the quote function to add quotes.  Use fputs rather than
4394         fprintf for the format string with no format directive.
4395
4396 2011-12-07  Eric Blake  <eblake@redhat.com>
4397
4398         bootstrap: detect tools required by gnulib-tool
4399         * build-aux/bootstrap (buildreq): Provide minimum implicit
4400         dependencies.
4401         * DEPENDENCIES: Mention patch as a prereq.
4402
4403 2011-12-04  Bruno Haible  <bruno@clisp.org>
4404
4405         sethostname: Port to Windows platforms.
4406         * lib/sethostname.c: Provide an alternate implementation for Windows
4407         platforms.
4408         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4409         (main): Skip the test if sethostname() fails with EPERM. On Windows
4410         platforms, don't check the result of gethostname().
4411
4412 >>>>>>> snapshot-start
4413 2011-12-04  Bruno Haible  <bruno@clisp.org>
4414             Jim Meyering  <meyering@redhat.com>
4415
4416         tests: Avoid spurious error message on platforms without mktemp program.
4417         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4418
4419 <<<<<<< HEAD
4420 =======
4421 2011-12-04  Bruno Haible  <bruno@clisp.org>
4422
4423         sethostname: Fix documentation.
4424         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4425         "not fixed" section.
4426
4427 2011-12-03  Bruno Haible  <bruno@clisp.org>
4428
4429         gnulib-tool: Verify that the License field is present and non-empty.
4430         * gnulib-tool (func_get_license_raw): New function, extracted from
4431         func_get_license.
4432         (func_get_license): Use it. Warn if the module is not a test module and
4433         has no license.
4434         Suggested by Jim Meyering.
4435
4436 2011-12-03  Bruno Haible  <bruno@clisp.org>
4437
4438         sethostname tests: Fix link error on mingw.
4439         * tests/test-sethostname1.c: New file, extracted from
4440         tests/test-sethostname.c.
4441         * tests/test-sethostname2.c: New file, extracted from
4442         tests/test-sethostname.c.
4443         * tests/test-sethostname.c: Remove file.
4444         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4445         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4446         (Depends-on): Add gethostname.
4447         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4448         Link the latter with $(GETHOSTNAME_LIB).
4449
4450         sethostname tests: Fix compilation error on mingw.
4451         * tests/test-sethostname.c: Don't include <sys/types.h>.
4452         (geteuid): Use a dummy value without uid_t.
4453         * modules/sethostname-tests (Depends-on): Remove sys_types.
4454
4455         sethostname tests: Avoid a gcc warning.
4456         * tests/test-sethostname.c (main): Remove an unused variable.
4457
4458         Tweak last commit.
4459         * modules/sethostname-tests (Files): Sort by decreasing importance.
4460         (configure.ac): Check for geteuid.
4461         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4462         the test when there's nothing to test. Drop an unnecessary cast.
4463         Improve an error message. Verify that the final sethostname() call
4464         succeeds.
4465
4466 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4467
4468         Add a test suite for the sethostname module.
4469         * modules/sethostname-tests: New file.  A test program
4470         for the sethostname module.
4471         * tests/test-sethostname.c: Likewise.
4472
4473 2011-12-03  Bruno Haible  <bruno@clisp.org>
4474
4475         Tweak last commit.
4476         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4477         Fix preprocessor directives indentation. Fix typos.
4478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4479         * modules/unistd (Makefile): Likewise.
4480
4481 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4482
4483         Integrate the sethostname module into unistd.
4484         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4485         into the unistd.h header.
4486         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4487         preprocessor directives.
4488         * modules/unistd: Setup the Makefile substitutions of the
4489         SETHOSTNAME preprocessor directives.
4490
4491 2011-12-03  Bruno Haible  <bruno@clisp.org>
4492
4493         Tweak last commit.
4494         * lib/sethostname.c: Don't include <string.h>.
4495         (sethostname): No need to copy the argument string to the stack. Don't
4496         call clearerr. Preserve errno when fprintf failed.
4497         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4498         Don't invoke AC_REPLACE_FUNCS.
4499         * modules/sethostname (Link): Remove empty section.
4500         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4501         failure problem.
4502
4503 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4504
4505         New module 'sethostname'.
4506         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4507         for systems that lack it.
4508         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4509         sethostname declaration and function.
4510         * modules/sethostname: New file.  Define the sethostname module.
4511
4512 2011-12-03  Bruno Haible  <bruno@clisp.org>
4513
4514         Tweak last commit.
4515         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4516
4517 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4518
4519         Split the HOST_NAME_MAX detection into a separate m4 macro.
4520         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4521         macro so it can be used by the pending sethostname module.
4522
4523 >>>>>>> snapshot-start
4524 2011-12-03  Bruno Haible  <bruno@clisp.org>
4525
4526         Fix module descriptions syntax.
4527         * modules/argv-iter (License): Fix syntax.
4528         * modules/di-set (License): Likewise.
4529         * modules/ino-map (License): Likewise.
4530         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4531
4532 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         stdalign: port to Clang 3.0
4535         Problem reported by Simon Josefsson in
4536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4537         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4538         which has <stdalign.h> but which does not define alignof.
4539         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4540
4541 2011-12-01  Eric Blake  <eblake@redhat.com>
4542
4543         mktempd: silence dd usage
4544         * build-aux/mktempd (rand_bytes): Silence dd.
4545
4546 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4547
4548         manywarnings: Don't mention gcc version in docstring.
4549         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4550         Jim Meyering <meyering@redhat.com>.
4551
4552 2011-11-30  Jim Meyering  <meyering@redhat.com>
4553
4554         hash: mark a few floating point constants with "f" suffix
4555         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4556         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4557         floating point constants with "f", since they're destined to be
4558         saved/used as "float"s.
4559
4560 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4561
4562         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4563         * tests/test-float.c (test_long_double): Correct and re-enable the
4564         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4565
4566 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4567
4568         Avoid subtracting two pointers that don't point into the same block.
4569         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4570         only pointers into the same memory block are subtracted. We cannot
4571         assume that sizeof (ptrdiff_t) == sizeof (void *).
4572
4573 2011-11-29  Eric Blake  <eblake@redhat.com>
4574
4575         maint.mk: add syntax check for use of compare from init.sh
4576         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4577         moved here from coreutils.
4578
4579         manywarnings: drop -Wunsuffixed-float-constants
4580         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4581         '1.0D', which is the only way to silence this warning for 'double'.
4582
4583 2011-11-29  Jim Meyering  <meyering@redhat.com>
4584
4585         hash: mark compute_bucket_size with the pure attribute
4586         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4587
4588         quotearg, propername: correct pragma guard expression
4589         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4590         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4591
4592 2011-11-28  Jim Meyering  <meyering@redhat.com>
4593
4594         propername: do not mark proper_name with the const attribute
4595         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4596         since it examines data pointed to by its parameter.
4597         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4598         the suggestion from -Wsuggest-attribute=const.
4599
4600         propername: mark one more function as const
4601         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4602
4603 2011-11-27  Jim Meyering  <meyering@redhat.com>
4604
4605         mark functions with const and pure attributes
4606
4607         Mark functions per suggestions from gcc-4.6 when using these options:
4608         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4609         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4610         Follow these guidelines: when possible, apply the attribute to
4611         an extern declaration, not to its definition.  Apply it to the
4612         definition only when the definition is static.
4613         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4614         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4615         * lib/base64.h (isbase64): Likewise.
4616         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4617         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4618         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4619         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4620         (c_tolower, c_toupper): Likewise.
4621         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4622         * lib/chdir-long.c (find_non_slash): Likewise.
4623         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4624         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4625         * lib/file-type.h (file_type): Likewise.
4626         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4627         * lib/filevercmp.c (verrevcmp): Likewise.
4628         * lib/freadahead.h (freadahead): Likewise.
4629         * lib/fts.c (fts_maxarglen): Likewise.
4630         * lib/hash-pjw.h (hash_pjw): Likewise.
4631         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4632         * lib/hash.c (is_prime, next_prime): Likewise.
4633         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4634         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4635         (hash_table_ok, hash_get_first, hash_string): Likewise.
4636         (compute_bucket_size): Likewise.
4637         * lib/i-ring.h (i_ring_empty): Likewise.
4638         * lib/isnan.c (isnanl): Likewise.
4639         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4640         * lib/memcasecmp.h (memcasecmp): Likewise.
4641         * lib/memchr2.h (memchr2): Likewise.
4642         * lib/memcmp2.h (memcmp2): Likewise.
4643         * lib/parse-datetime.y (lookup_zone): Likewise.
4644         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4645         [!WINDOWS_SOCKETS]: Likewise.
4646         * lib/strnlen1.h (strnlen1): Likewise.
4647         * lib/uniwidth.in.h (uc_width): Likewise.
4648         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4649         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4650         (quoting_options_from_style): Add a comment.
4651         * lib/propername.h (proper_name): Add a comment.
4652
4653 2011-11-27  Bruno Haible  <bruno@clisp.org>
4654
4655         Remove unused macros from !_LIBC code in glibc-borrowed files.
4656         * lib/fnmatch.c (STRCOLL): Remove macro.
4657         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4658         * lib/glob.c (__stat, __readdir64): Remove macros.
4659         * lib/tempname.c (__open64, __xstat64): Remove macros.
4660         Suggested by Paul Eggert.
4661
4662 2011-11-27  Bruno Haible  <bruno@clisp.org>
4663
4664         getcwd: Fix link error on MSVC 9.
4665         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4666
4667 2011-11-27  Bruno Haible  <bruno@clisp.org>
4668
4669         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4670         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4671         HAVE_OPENDIR is 0.
4672         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4673         HAVE_CLOSEDIR is 0.
4674         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4675         is 0.
4676         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4677
4678 2011-11-27  Bruno Haible  <bruno@clisp.org>
4679
4680         getcwd: Fix bug from 2011-08-17.
4681         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4682         platforms that need it.
4683         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4684         code of 4 to be a failure, not a success. This ensures that
4685         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4686
4687 2011-11-27  Bruno Haible  <bruno@clisp.org>
4688
4689         binary-io tests: Avoid test failure on mingw when libtool is used.
4690         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4691         Don't verify the size of t-bin-out1.tmp here.
4692         * tests/test-binary-io.sh: Verify it here.
4693         Reported by Simon Josefsson.
4694
4695 2011-11-26  Bruno Haible  <bruno@clisp.org>
4696
4697         Fix conflict between two instantiations of module 'unistd'.
4698         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4699         ${include_guard_prefix} also in the autoconf snippet.
4700         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4702         GNULIB_UNISTD_H_GETOPT.
4703         * modules/getopt-posix (configure.ac): Set the
4704         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4705         * modules/getopt-gnu (configure.ac): Likewise.
4706         * modules/unistd (Makefile.am): Change the substitution value of
4707         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4708         Reported by Simon Josefsson.
4709
4710 2011-11-25  Bruno Haible  <bruno@clisp.org>
4711
4712         pagealign_alloc: Doc and comments.
4713         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4714         module.
4715         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4716
4717 2011-11-25  Jim Meyering  <meyering@redhat.com>
4718
4719         test-update-copyright.sh: avoid false-positive failure
4720         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4721         around false positive failure on Cygwin/Windows.  The latter was
4722         matching erroneously-created files with names like
4723         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4724
4725 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4726
4727         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4728         * m4/valgrind-tests.m4: Check that the parameters that will be
4729         used works, not just a subset of them.  Reported by Bruno Haible
4730         <bruno@clisp.org>.
4731
4732 2011-11-24  Jim Meyering  <meyering@redhat.com>
4733
4734         test-stdalign.c: comment out long double tests
4735         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4736         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4737         error: '_Alignas' specifiers cannot reduce alignment of \
4738         'static_longdouble_alignas'.
4739
4740 2011-11-22  Jim Meyering  <meyering@redhat.com>
4741
4742         init.sh: make "compare /dev/null FILE" output more readable
4743         * tests/init.sh (compare_): Document the preferred order of arguments.
4744         (emit_diff_u_header_): New function.
4745         (compare_dev_null_): Emit a simulated diff, rather than just the
4746         contents of the unexpected file.  Suggestion from Bruno Haible.
4747
4748 2011-11-21  Jim Meyering  <meyering@redhat.com>
4749             Eric Blake  <eblake@redhat.com>
4750
4751         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4752         * tests/init.sh: Make our compare function slightly more portable.
4753         Reported by Bruno Haible in
4754         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4755
4756 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4757
4758         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4759         before using it, in code that ends up in config.h.
4760
4761 2011-11-20  Bruno Haible  <bruno@clisp.org>
4762
4763         getcwd: Work around getcwd bug on AIX 5..7.
4764         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4765         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4766         Use a different value for gl_cv_func_getcwd_path_max. Move the
4767         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4768         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4769         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4770         Define HAVE_MINIMALLY_WORKING_GETCWD.
4771         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4772         where it is not even minimally working, that is, on AIX.
4773         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4774         m4/getcwd-path-max.m4.
4775         (main): Update exit code computation.
4776         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4777         getcwd does not handle long file names.
4778
4779 2011-11-20  Bruno Haible  <bruno@clisp.org>
4780
4781         getcwd: Fix bug from 2009-09-10.
4782         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4783         like "no".
4784
4785 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4786
4787         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4788
4789 2011-11-20  Bruno Haible  <bruno@clisp.org>
4790
4791         fma tests: Avoid shadowing local variables.
4792         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4793         expected.
4794
4795 2011-11-20  Bruno Haible  <bruno@clisp.org>
4796
4797         copysignf tests: Fix.
4798         * tests/test-copysignf.c: Fix signature check.
4799
4800 2011-11-20  Bruno Haible  <bruno@clisp.org>
4801
4802         fma: Remove unused code.
4803         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4804         unused macros.
4805
4806 2011-11-20  Bruno Haible  <bruno@clisp.org>
4807
4808         sethostname: Fix doc about AIX.
4809         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4810         sethostname; it has it.
4811
4812         sethostname: Mention more portability problems.
4813         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4814         problem.
4815         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4816
4817 2011-11-19  Bruno Haible  <bruno@clisp.org>
4818
4819         Depend on module fcntl-h when AT_FDCWD is used.
4820         * modules/utimens (Depends-on): Add fcntl-h.
4821         * modules/areadlinkat (Depends-on): Likewise.
4822         * modules/areadlinkat-with-size (Depends-on): Likewise.
4823         * modules/faccessat (Depends-on): Likewise.
4824         * modules/fchmodat (Depends-on): Likewise.
4825         * modules/fchownat (Depends-on): Likewise.
4826         * modules/getcwd (Depends-on): Likewise.
4827         * modules/mkdirat (Depends-on): Likewise.
4828         * modules/mkfifoat (Depends-on): Likewise.
4829         * modules/readlinkat (Depends-on): Likewise.
4830         * modules/symlinkat (Depends-on): Likewise.
4831         * modules/dup2-tests (Depends-on): Likewise.
4832         * modules/fdutimensat-tests (Depends-on): Likewise.
4833         * modules/futimens-tests (Depends-on): Likewise.
4834
4835 2011-11-19  Bruno Haible  <bruno@clisp.org>
4836
4837         euidaccess: Update a comment.
4838         * lib/euidaccess.c: Update comment about platforms with faccessat.
4839
4840 2011-11-19  Bruno Haible  <bruno@clisp.org>
4841
4842         openat: Fix file list.
4843         * modules/openat (Files): Remove lib/at-func.c.
4844
4845 2011-11-19  Bruno Haible  <bruno@clisp.org>
4846
4847         fstatat: Simplify.
4848         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4849         gnulib should define rpl_fstatat, there is a
4850         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4851
4852 2011-11-19  Bruno Haible  <bruno@clisp.org>
4853
4854         Ensure 'inline' can be used in tests/test-utimens-common.h.
4855         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4856         * modules/futimens-tests (configure.ac): Likewise.
4857         * modules/utimens-tests (configure.ac): Likewise.
4858         * modules/utimensat-tests (configure.ac): Likewise.
4859
4860 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4861
4862         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4863         not hash_insert0.
4864         (hash_insert_if_absent): Doc fix.
4865
4866 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4867
4868         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4869
4870 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4871
4872         test-getcwd: disambiguate exit status
4873         * tests/test-getcwd.c (test_long_name): Return 0..7.
4874         (main): Exit with an unambiguous exit status.  The old
4875         code yielded a mysterious mixture of two failure codes.
4876
4877         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4878         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4879         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4880         rpl_fstatat or fstatat.  This should fix the other problem
4881         reported by Kai Habel in
4882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4883         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4885         and I reproduced it on a Solaris 8 host we still have in production.
4886
4887 2011-11-18  Jim Meyering  <meyering@redhat.com>
4888
4889         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4890         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4891         Add a sentence to the comment.
4892         (hash_insert0): New function that simply calls hash_insert_if_absent.
4893         * lib/hash.h (hash_insert_if_absent): Declare it.
4894         (hash_insert0): Add deprecation attribute.
4895         (_GL_ATTRIBUTE_DEPRECATED): Define.
4896         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4897         not hash_insert0.
4898         * NEWS: Mention it, even though it's not really an incompatible change.
4899
4900 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4901
4902         openat: avoid compilation failure due to lack of <errno.h> inclusion
4903         * lib/openat.c: Include <errno.h>.
4904
4905 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4906
4907         * modules/getcwd (Depends-on): Add fdopendir.
4908         This fixes one of the two problems reported by Kai Habel in
4909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4910
4911         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4912         stdalign problem reported by Ian Beckwith in
4913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4914         * modules/crypto/gc-arcfour (Depends-on):
4915         Depend conditionally on crypto/arcfour.
4916         * modules/crypto/gc-arctwo (Depends-on):
4917         Depend conditionally on crypto/arctwo.
4918         * modules/crypto/gc-des (Depends-on):
4919         Depend conditionally on crypto/des.
4920         * modules/crypto/gc-hmac-md5 (Depends-on):
4921         Depend conditionally on crypto/hmac-md5.
4922         * modules/crypto/gc-hmac-sha1 (Depends-on):
4923         Depend conditionally on crypto/hmac-sha1.
4924         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4925         * modules/crypto/gc-md4 (Depends-on):
4926         Depend conditionally on crypto/md4.
4927         * modules/crypto/gc-md5 (Depends-on):
4928         Depend conditionally on crypto/md5.
4929         * modules/crypto/gc-rijndael (Depends-on):
4930         Depend conditionally on crypto/rijndael.
4931         * modules/crypto/gc-sha1 (Depends-on):
4932         Depend conditionally on crypto/sha1.
4933         * modules/crypto/gc-arcfour:
4934         * modules/crypto/gc-arctwo:
4935         * modules/crypto/gc-des:
4936         * modules/crypto/gc-hmac-md5:
4937         * modules/crypto/gc-hmac-sha1:
4938         * modules/crypto/gc-md2:
4939         * modules/crypto/gc-md4:
4940         * modules/crypto/gc-md5:
4941         * modules/crypto/gc-rijndael:
4942         * modules/crypto/gc-sha1:
4943         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4944         now that the conditional dependencies do the work for us.
4945
4946 2011-11-17  Jim Meyering  <meyering@redhat.com>
4947
4948         tests: factor st_ctime-comparison out of two headers
4949         * tests/test-utimens-common.h (ctime_compare): Define.
4950         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4951         * tests/test-lutimens.h (test_lutimens): Likewise.
4952         * tests/test-utimens.h (test_utimens): Likewise.
4953
4954         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4955         Invoke the test program via an init.sh-using wrapper.
4956         * tests/test-getcwd.sh: New file.
4957         * modules/getcwd-tests (Files): Add it.
4958         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4959
4960 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4961
4962         gitlog-to-changelog: support multi-author commits.
4963         The FSF cares about keeping track of all authors of patches to its
4964         projects, but Git doesn't provide obvious support for multi-author
4965         changesets. Consensus seems to be forming around the use of extra
4966         Signed-off-by inspired lines in the log message formatted as
4967         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4968         multi-author commits between version control systems.
4969         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4970         log message and output in standard ChangeLog multi-author format.
4971         Reported by Peter Rosin <peda@lysator.liu.se>
4972
4973 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4974             Bruno Haible  <bruno@clisp.org>
4975
4976         Fix some modules' file list.
4977         * modules/fstatat (Files): Add m4/lstat.m4.
4978         * modules/openat (Files): Likewise.
4979         * modules/unlinkat (Files): Likewise.
4980
4981 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4982
4983         maint.mk: fix tight-scope.mk generation in VPATH builds.
4984         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4985         reference with $(srcdir) so that the file is found correctly even
4986         when running `make syntax-check' in a VPATH build.
4987
4988 2011-11-13  Bruno Haible  <bruno@clisp.org>
4989             Jim Meyering  <meyering@redhat.com>
4990
4991         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4992         * tests/init.sh (compare): Remove "No differences encountered" or
4993         synonymous output from the 'diff' program.
4994
4995 2011-11-13  Bruno Haible  <bruno@clisp.org>
4996
4997         Makefile: Tweak indentation.
4998         * Makefile: Use tab as first character in every line that contains rule
4999         commands.
5000
5001 2011-11-13  Bruno Haible  <bruno@clisp.org>
5002
5003         Syntax check for copyright statements.
5004         * check-copyright: New file.
5005         * Makefile (sc_check_copyright): New rule.
5006
5007 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5008
5009         * build-aux/git-version-gen: Add --prefix to configure the tag
5010         match string.
5011
5012 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5013
5014         * build-aux/git-version-gen: Add --help and --version.
5015
5016 2011-11-12  Jim Meyering  <meyering@redhat.com>
5017
5018         revamp the other test-exclude?.sh scripts to use init.sh, too
5019         * tests/test-exclude1.sh: Use init.sh.
5020         * tests/test-exclude2.sh: Likewise.
5021         * tests/test-exclude3.sh: Likewise.
5022         * tests/test-exclude4.sh: Likewise.
5023         * tests/test-exclude5.sh: Likewise.
5024         * tests/test-exclude6.sh: Likewise.
5025         * tests/test-exclude7.sh: Likewise.
5026         * tests/test-exclude8.sh: Likewise.
5027         * modules/exclude-tests (Files): List init.sh.
5028
5029         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5030         These shell scripts ignored failure of the binary test-exclude,
5031         so making the latter return 77 didn't cause them to be skipped.
5032         * tests/test-exclude5.sh: Exit with test-exclude's error status
5033         when that program fails.  Revamp to use init.sh.
5034         * tests/test-exclude2.sh: Likewise.
5035
5036         test-exclude: fix a typo
5037         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5038
5039 2011-11-11  Bruno Haible  <bruno@clisp.org>
5040
5041         obstack: Fix compilation error on MSVC 9.
5042         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5043
5044 2011-11-11  Jim Meyering  <meyering@redhat.com>
5045
5046         test-exclude: skip tests rather than failing on deficient systems
5047         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5048         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5049         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5050         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5051
5052 2011-11-10  Bruno Haible  <bruno@clisp.org>
5053
5054         ptsname_r test: Avoid gcc warning on glibc systems.
5055         * tests/test-ptsname_r.c (null_ptr): New function.
5056         (test_errors): Use it.
5057
5058 2011-11-10  Bruno Haible  <bruno@clisp.org>
5059
5060         ptsname_r: Avoid compilation error on OSF/1 5.1.
5061         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5063         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5064         function is not declared or incompatibly declared.
5065         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5066         * modules/ptsname_r (Depends-on, configure.ac): Update.
5067         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5068
5069 2011-11-10  Bruno Haible  <bruno@clisp.org>
5070
5071         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5072         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5073         When cross-compiling, guess yes on all platforms except AIX.
5074         Reported by Ludovic Courtès <ludo@gnu.org>.
5075
5076 2011-11-09  Bruno Haible  <bruno@clisp.org>
5077
5078         ptsname_r tests: Fix bugs.
5079         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5080         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5081
5082 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5083
5084         fstatat: work with cross-compilation
5085         Problem reported by Ludovic Courtès in
5086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5087         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5088         "cross-compiling" and assume the bug is present.  Replace
5089         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5090         an inverted sense, to be more conservative about our assumptions.
5091         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5092
5093 2011-11-09  Bruno Haible  <bruno@clisp.org>
5094
5095         Improve MODULES.html output.
5096         * modules/mkfifoat (Description): Use the word "function".
5097         * modules/readlinkat (Description): Likewise.
5098         * modules/symlinkat (Description): Likewise.
5099
5100 2011-11-09  Eric Blake  <eblake@redhat.com>
5101
5102         ptsname_r-tests: new test module
5103         * modules/ptsname_r-tests: New module.
5104         * tests/test-ptsname_r.c: New file.
5105
5106         ptsname_r: new module
5107         * modules/ptsname_r: New module.
5108         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5109         * lib/ptsname.c (__ptsname_r): Split...
5110         * lib/ptsname_r.c: ...into new file.
5111         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5112         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5113         * modules/stdlib (Makefile.am): Substitute witnesses.
5114         * lib/stdlib.in.h (ptsname_r): Declare it.
5115         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5116         * MODULES.html.sh (Misc): Likewise.
5117         * modules/ptsname (Depends-on): Alter dependency.
5118         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5119
5120 2011-11-09  Jim Meyering  <meyering@redhat.com>
5121
5122         announce-gen: be more concise when there's only one URL+tarball
5123         * build-aux/announce-gen (get_tool_versions): When you distribute
5124         only one type of tarball, combine the first two "Here are..."
5125         sections and make the key-checking grammar independent of
5126         how many tarballs there are.
5127
5128 2011-11-09  Eric Blake  <eblake@redhat.com>
5129
5130         openpty: provide a stub on mingw
5131         * lib/pty.in.h (includes): Provide forward declarations.
5132         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5133
5134         raise: fix mingw handling of SIGPIPE
5135         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5136
5137 2011-11-08  Bruno Haible  <bruno@clisp.org>
5138
5139         More conditional dependencies.
5140         * modules/faccessat (Depends-on): Add conditions.
5141         * modules/fchmodat (Depends-on): Likewise.
5142         * modules/fchownat (Depends-on): Likewise.
5143         * modules/fstatat (Depends-on): Likewise.
5144         * modules/mkfifoat (Depends-on): Likewise.
5145         * modules/readlinkat (Depends-on): Likewise.
5146         * modules/symlinkat (Depends-on): Likewise.
5147         * modules/unlinkat (Depends-on): Likewise.
5148         * modules/utimensat (Depends-on): Likewise.
5149         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5150         * modules/linkat (Depends-on): Refine the conditions.
5151         * modules/renameat (Depends-on): Likewise.
5152
5153 2011-11-08  Bruno Haible  <bruno@clisp.org>
5154
5155         faccessat: Move AC_LIBOBJ invocation to module description.
5156         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5157         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5158         invocation from here...
5159         * modules/faccessat (configure.ac): ... to here. Invoke
5160         gl_PREREQ_FACCESSAT.
5161
5162 2011-11-08  Bruno Haible  <bruno@clisp.org>
5163
5164         faccessat: Simplify autoconf macro.
5165         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5166         gl_FUNC_EUIDACCESS.
5167
5168 2011-11-08  Bruno Haible  <bruno@clisp.org>
5169
5170         renameat: Fix dependencies.
5171         * modules/renameat (Depends-on): Add stdbool.
5172
5173 2011-11-08  Bruno Haible  <bruno@clisp.org>
5174
5175         mkfifoat: Fix module description.
5176         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5177         not gl_UNISTD_MODULE_INDICATOR.
5178
5179 2011-11-08  Bruno Haible  <bruno@clisp.org>
5180
5181         fstatat: Remove unused dependency.
5182         * modules/fstatat (Depends-on): Remove fstat.
5183
5184 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5185
5186         GNUmakefile: behave when Makefile is missing.
5187         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5188
5189 2011-11-08  Bruno Haible  <bruno@clisp.org>
5190
5191         openat: Conditionalize dependencies.
5192         * lib/openat.c: Reduce the scope of some #includes.
5193         * modules/openat (Depends-on): Add conditions.
5194
5195 2011-11-07  Jim Meyering  <meyering@redhat.com>
5196
5197         maint.mk: extract GPG key ID without using a temporary file
5198         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5199         without using a temporary file.  Based on a suggestion from Werner Koch
5200         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5201
5202 2011-11-07  Eric Blake  <eblake@redhat.com>
5203
5204         grantpt: fix typo
5205         * lib/stdlib.in.h (grantpt): Check correct function.
5206
5207         maint.mk: silence new syntax check
5208         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5209
5210 2011-11-06  Bruno Haible  <bruno@clisp.org>
5211
5212         Doc about floating-point and math API.
5213         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5214         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5215
5216 2011-11-06  Bruno Haible  <bruno@clisp.org>
5217
5218         stdalign tests: Skip the test when compiled by Sun C.
5219         * tests/test-stdalign.c (main): Skip the test on Sun C.
5220
5221 2011-11-06  Bruno Haible  <bruno@clisp.org>
5222
5223         ansi-c++-opt: Complete the 2011-06-05 change.
5224         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5225         does not support namespaces, set the variable to "no", not to ":".
5226
5227 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5230
5231 2011-11-06  Bruno Haible  <bruno@clisp.org>
5232
5233         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5234         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5235         (minus_zerol) [HP-UX]: New macro.
5236         (unary_minus) [HP-UX]: New function.
5237         (copysignl) [HP-UX]: Use unary_minus function.
5238
5239 2011-11-06  Bruno Haible  <bruno@clisp.org>
5240
5241         ldexp, ldexpf, ldexpl: Enhance tests.
5242         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5243         and tests/test-ldexpl.c.
5244         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5245         LDEXP, MIN_EXP, MAX_EXP): New macros.
5246         Include test-ldexp.h.
5247         (main): Just call test_function.
5248         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5249         infinity.h, nan.h.
5250         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5251         MAX_EXP): New macros.
5252         Include test-ldexp.h.
5253         (x, y): Remove variables.
5254         (main): Just call test_function.
5255         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5256         infinity.h, nan.h.
5257         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5258         MAX_EXP): New macros.
5259         Include test-ldexp.h.
5260         (x, y): Remove variables.
5261         (main): Just call test_function.
5262         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5263         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5264         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5265         (Depends-on): Add isnand-nolibm, signbit, float.
5266         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5267         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5268         (Depends-on): Add isnanf-nolibm, signbit, float.
5269
5270 2011-11-06  Bruno Haible  <bruno@clisp.org>
5271
5272         math tests: Cosmetics.
5273         * tests/test-math-c++.cc: Reorder declarations.
5274
5275 2011-11-05  Bruno Haible  <bruno@clisp.org>
5276
5277         fma*: Simplify test.
5278         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5279         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5280
5281         Tests for module 'fmal'.
5282         * modules/fmal-tests: New file.
5283         * tests/test-fmal1.c: New file.
5284         * tests/test-fmal2.c: New file.
5285
5286         New module 'fmal'.
5287         * lib/math.in.h (fmal): New declaration.
5288         * lib/fmal.c: New file.
5289         * m4/fmal.m4: New file.
5290         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5292         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5293         REPLACE_FMAL.
5294         * modules/fmal: New file.
5295         * doc/posix-functions/fmal.texi: Mention the new module and the various
5296         bugs.
5297
5298         Tests for module 'fmaf'.
5299         * modules/fmaf-tests: New file.
5300         * tests/test-fmaf1.c: New file.
5301         * tests/test-fmaf2.c: New file.
5302
5303         New module 'fmaf'.
5304         * lib/math.in.h (fmaf): New declaration.
5305         * lib/fmaf.c: New file.
5306         * m4/fmaf.m4: New file.
5307         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5309         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5310         REPLACE_FMAF.
5311         * modules/fmaf: New file.
5312         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5313         bugs.
5314
5315         Tests for module 'fma'.
5316         * modules/fma-tests: New file.
5317         * tests/test-fma1.c: New file.
5318         * tests/test-fma1.h: New file.
5319         * tests/test-fma2.c: New file.
5320         * tests/test-fma2.h: New file.
5321
5322         New module 'fma'.
5323         * lib/math.in.h (fma): New declaration.
5324         * lib/fma.c: New file.
5325         * m4/fma.m4: New file.
5326         * m4/fegetround.m4: New file.
5327         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5329         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5330         REPLACE_FMA.
5331         * modules/fma: New file.
5332         * doc/posix-functions/fma.texi: Mention the new module and the various
5333         bugs.
5334
5335         Extend gl_MATHFUNC.
5336         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5337         Support 'void' as argument type.
5338         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5339
5340 2011-11-05  Jim Meyering  <meyering@redhat.com>
5341
5342         maint.mk: also prohibit inclusion of dirent.h without use
5343         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5344
5345 2011-11-05  Bruno Haible  <bruno@clisp.org>
5346
5347         ldexpl tests: Avoid test failure on MSVC 9.
5348         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5349         value. Needed in order to enforce the conversion from a value greater
5350         than LDBL_MAX to Infinity.
5351
5352 2011-11-05  Bruno Haible  <bruno@clisp.org>
5353
5354         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5355         * modules/at-internal: New file, extracted from modules/openat.
5356         * modules/openat-h: New file.
5357         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5358         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5359         * modules/openat (Description): Add reference to POSIX function.
5360         (Files): Remove lib/openat.h, lib/openat-proc.c.
5361         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5362         intprops, unistd.
5363         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5364         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5365         gl_FCNTL_MODULE_INDICATOR.
5366         (Include): Remove unistd.h, openat.h.
5367         * modules/areadlinkat (Files): Add lib/at-func.c.
5368         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5369         openat-die, openat-h, save-cwd.
5370         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5371         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5372         openat-die, openat-h, save-cwd, unistd.
5373         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5374         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5375         openat-h, save-cwd. Remove fcntl-h, openat.
5376         * modules/fchmodat (Files): Remove lib/openat.h.
5377         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5378         openat, stdbool, unistd.
5379         * modules/fchownat (Files): Remove lib/openat.h.
5380         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5381         openat, stdbool, sys_stat.
5382         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5383         lib/openat-proc.c.
5384         (Depends-on): Add at-internal.
5385         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5386         * modules/fstatat (Files): Remove lib/openat.h.
5387         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5388         stdbool, unistd.
5389         * modules/fts (Depends-on): Add openat-h.
5390         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5391         openat.
5392         * modules/mkdirat (Files): Remove lib/openat.h.
5393         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5394         openat, stdbool, sys_stat.
5395         * modules/mkfifoat (Files): Add lib/at-func.c.
5396         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5397         openat-h, save-cwd. Remove fcntl-h, openat.
5398         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5399         * modules/readlinkat (Files): Add lib/at-func.c.
5400         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5401         openat-h, save-cwd. Remove fcntl-h, openat.
5402         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5403         openat.
5404         * modules/selinux-at (Files): Add lib/at-func.c.
5405         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5406         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5407         * modules/symlinkat (Files): Add lib/at-func.c.
5408         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5409         openat-h, save-cwd. Remove fcntl-h, openat.
5410         * modules/unlinkat (Files): Remove lib/openat.h.
5411         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5412         stdbool.
5413         * modules/utimensat (Files): Add lib/at-func.c.
5414         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5415         openat-die, openat-h, save-cwd.
5416         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5417         * modules/fdutimensat-tests (Depends-on): Add openat.
5418         * modules/fstatat-tests (Depends-on): Add openat-h.
5419         * modules/readlinkat-tests (Depends-on): Add openat.
5420         * modules/symlinkat-tests (Depends-on): Add openat.
5421
5422 2011-11-05  Bruno Haible  <bruno@clisp.org>
5423
5424         openat: Include <stdbool.h>.
5425         * lib/openat.c: Include <stdbool.h>.
5426
5427 2011-11-04  Bruno Haible  <bruno@clisp.org>
5428
5429         fchownat, renameat, unlinkat: Fix dependencies.
5430         * modules/fchownat (Depends-on): Add fstatat.
5431         * modules/renameat (Depends-on): Likewise.
5432         * modules/unlinkat (Depends-on): Likewise.
5433
5434 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         openat: remove direct dependency on dirent
5437         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5438         and hasn't been needed ever since fdopendir was split into its own
5439         module on 2009-08-31.
5440         * modules/openat (Depends-on): Remove dirent.
5441
5442 2011-11-04  Bruno Haible  <bruno@clisp.org>
5443
5444         renameat: Optimize code size.
5445         * modules/renameat (configure.ac): Don't compile at-func2.c if
5446         REPLACE_RENAMEAT is 1.
5447
5448 2011-11-04  Bruno Haible  <bruno@clisp.org>
5449
5450         openat tests: Fix file list.
5451         * modules/openat-tests (Files): Add tests/test-open.h.
5452
5453 2011-11-04  Bruno Haible  <bruno@clisp.org>
5454
5455         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5456         * modules/fchmodat (Depends-on): Add openat-die.
5457         * modules/fchownat (Depends-on): Likewise.
5458         * modules/linkat (Depends-on): Likewise.
5459         * modules/renameat (Depends-on): Likewise.
5460         * modules/openat (Depends-on): Add dirent.
5461
5462 2011-11-04  Jim Meyering  <meyering@redhat.com>
5463
5464         at-func*.c: fix comments
5465         * lib/at-func2.c: Correct/improve first-line comment.
5466         * lib/at-func.c: Correct grammar in first-line comment.
5467
5468 2011-11-04  Bruno Haible  <bruno@clisp.org>
5469
5470         New module 'mkdirat', split off from module 'openat'.
5471         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5472         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5473         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5474         * modules/mkdirat: New file, extracted from modules/openat.
5475         * modules/openat (Files): Remove lib/mkdirat.c.
5476         (Depends-on): Remove mkdir.
5477         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5478         (Include): Remove <sys/stat.h>.
5479         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5480         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5481         tests/test-mkdir.h.
5482         (Depends-on): Remove ignore-value.
5483         (Makefile.am): Remove rules for test-mkdirat.
5484         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5485         of module 'openat'.
5486         * NEWS: Mention the change.
5487
5488 2011-11-04  Bruno Haible  <bruno@clisp.org>
5489
5490         closedir: Avoid warning on mingw.
5491         * lib/closedir.c: Include <unistd.h>.
5492
5493 2011-11-04  Bruno Haible  <bruno@clisp.org>
5494
5495         New module 'fstatat', split off from module 'openat'.
5496         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5497         defined.
5498         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5499         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5500         gl_FUNC_FSTATAT.
5501         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5502         * modules/fstatat: New file, extracted from modules/openat.
5503         * modules/openat (Files): Remove lib/fstatat.c.
5504         (Depends-on): Remove lstat.
5505         (configure.ac): Remove AC_LIBOBJ of fstatat.
5506         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5507         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5508         tests/test-lstat.h, tests/test-stat.h.
5509         (Depends-on): Remove getcwd-lgpl.
5510         (Makefile.am): Remove rules for test-fstatat.
5511         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5512         of module 'openat'.
5513         * NEWS: Mention the change.
5514         * modules/getcwd (Depends-on): Add fstatat.
5515         * modules/linkat (Depends-on): Likewise.
5516         * modules/mkfifoat-tests (Depends-on): Likewise.
5517         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5518
5519 2011-11-03  Bruno Haible  <bruno@clisp.org>
5520
5521         New module 'unlinkat', split off from module 'openat'.
5522         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5523         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5524         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5525         * modules/unlinkat: New file, extracted from modules/openat. Correct
5526         the dependency conditions.
5527         * modules/openat (Files): Remove lib/unlinkat.c.
5528         (Depends-on): Remove rmdir, unlink.
5529         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5530         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5531         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5532         tests/test-rmdir.h, tests/test-unlink.h.
5533         (Depends-on): Remove unlinkdir.
5534         (Makefile.am): Remove rules for test-unlinkat.
5535         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5536         of module 'openat'.
5537         * NEWS: Mention the change.
5538         * modules/linkat-tests (Depends-on): Add unlinkat.
5539         * modules/mkfifoat-tests (Depends-on): Likewise.
5540         * modules/readlinkat-tests (Depends-on): Likewise.
5541
5542 2011-11-02  Bruno Haible  <bruno@clisp.org>
5543
5544         New module 'fchmodat', split off from module 'openat'.
5545         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5546         defined.
5547         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5548         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5549         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5550         * modules/fchmodat: New file, extracted from modules/openat.
5551         * modules/openat (Files): Remove lib/fchmodat.c.
5552         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5553         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5554         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5555         (Makefile.am): Remove rules for test-fchmodat.
5556         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5557         of module 'openat'.
5558         * NEWS: Mention the change.
5559
5560 2011-11-02  Jim Meyering  <meyering@redhat.com>
5561
5562         putenv: indent #definition of "environ" to placate cppi
5563         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5564
5565         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5566         Git logs are often treated as immutable, because editing them
5567         changes the SHA1 checksums of all descendants.  Thus, errors in
5568         git logs tend to stay there forever.  However, when we generate
5569         a ChangeLog file -- typically for distribution -- from that git log,
5570         we can actually make corrections in the generated file.  The key
5571         lies in recording in machine-readable/applicable form the desired
5572         corrections.  See --help for description and an example.
5573         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5574         (usage): Describe it; alphabetize option descriptions.
5575         (main): Honor the new option, carefully.
5576
5577 2011-11-01  Jim Meyering  <meyering@redhat.com>
5578
5579         gitlog-to-changelog: avoid an infloop
5580         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5581         that ends up being empty.
5582
5583 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5584
5585         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5586         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5587         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5588         contains (possibly-quoted) backslashes.  This should avoid
5589         all-too-common shell bugs if COMPLICATED contains backslashes in
5590         the "wrong" places.  Reported by David Evans in
5591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5592         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5593         because we want ASCII ranges.  Is there some reason we don't use
5594         the C locale everywhere in this script?
5595         (func_module, top level): Avoid unwanted pathname expansion when
5596         $repo_url_prefix or $repo_url_suffix_repl contain shell
5597         metacharacters like '?' and '*'.
5598
5599 2011-11-01  Bruno Haible  <bruno@clisp.org>
5600
5601         fchownat: Improve description.
5602         * modules/fchownat (Description): Add link to function.
5603
5604 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5605
5606         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5607         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5609         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5610
5611 2011-11-01  Bruno Haible  <bruno@clisp.org>
5612
5613         alignof: Avoid collision with stdalign module.
5614         * lib/alignof.h (alignof): Remove macro.
5615         * NEWS: Mention the change.
5616         Reported by Paul Eggert.
5617
5618 2011-11-01  Bruno Haible  <bruno@clisp.org>
5619
5620         New module 'fchownat', split off from module 'openat'.
5621         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5622         defined.
5623         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5624         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5625         invoke gl_FUNC_FCHOWNAT.
5626         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5627         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5628         * modules/fchownat: New file, extracted from modules/openat.
5629         * modules/openat (Files): Remove lib/fchownat.c.
5630         (Depends-on): Remove lchown.
5631         (configure.ac): Remove AC_LIBOBJ of fchownat.
5632         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5633         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5634         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5635         (Depends-on): Remove mgetgroups, usleep, stat-time.
5636         (configure.ac): Remove test for getegid.
5637         (Makefile.am): Remove rules for test-fchownat.
5638         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5639         of module 'openat'.
5640         * NEWS: Mention the change.
5641
5642 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5643
5644         stdalign: port better to MSVC and to Sun C 5.11
5645         This fixes some of the problems reported by Bruno Haible in
5646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5647         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5648         shortcomings of MSVC and of Sun C 5.11.
5649         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5650         around __declspec arg.
5651         * modules/stdalign-tests (Files): Add tests/macros.h.
5652         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5653         Include macros.h, for ASSERT.
5654         (DECLARE_ALIGNED): Remove.
5655         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5656         to catch bug), and to 1 if not (simplifies the rest of the code).
5657         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5658         (CHECK_AUTO): Remove.
5659         (CHECK_ALIGNED): Check only the alignment of the static vars,
5660         since auto var alignment isn't supported by Sun C 5.11.
5661         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5662         ASSERT failures are easier to diagnose.
5663
5664 2011-10-31  Bruno Haible  <bruno@clisp.org>
5665
5666         doc about some IRIX 5.3 problems.
5667         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5668         on IRIX 5.3.
5669         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5670         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5671         5.3.
5672         * doc/posix-functions/grantpt.texi: Likewise.
5673         * doc/posix-functions/unlockpt.texi: Likewise.
5674         * doc/posix-functions/lgamma.texi: Likewise.
5675         * doc/posix-functions/nextafter.texi: Likewise.
5676         * doc/posix-functions/remainder.texi: Likewise.
5677         * doc/posix-functions/select.texi: Mention misplaced declaration on
5678         IRIX 5.3.
5679         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5680
5681 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5682
5683         gitlog-to-changelog: fix git-log invocation.
5684         git-log mishandles date strings before 1970-01-01 UTC, and there is
5685         no use to specify --since=1970-01-01 by default anyway.
5686         * build-aux/gitlog-to-changelog: By default, when no --since option
5687         was given, do not specify explicit --since option to git-log.
5688
5689 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5690
5691         gitlog-to-changelog: new option --append-dot.
5692         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5693         first non-blank line of each commit message terminated with a dot.
5694
5695 2011-10-30  Bruno Haible  <bruno@clisp.org>
5696
5697         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5698         * lib/ffsl.h: Include <config.h>.
5699         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5700
5701 2011-10-30  Jim Meyering  <meyering@redhat.com>
5702
5703         GNUmakefile: reenable "make syntax-check" for most projects
5704         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5705         build-aux variable", "syntax-check" would do nothing but succeed with
5706         the "No version control files detected..." diagnostic (unless you
5707         happened to override _build-aux via cfg.mk).
5708         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5709         to precede inclusion of maint.mk.  Otherwise, these variables would
5710         be used undefined in any project that does not override the default.
5711
5712 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5713
5714         gitlog-to-changelog: treat a message with only blank lines as empty.
5715         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5716         trailing blank lines before the code that issues a warning about an
5717         empty commit message.
5718
5719 2011-10-30  Jim Meyering  <meyering@redhat.com>
5720
5721         test-parse-datetime.c: avoid new DST-related false positive test failure
5722         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5723         based on the time/date we'll convert, not the current time.
5724         Otherwise, the moment we cross a DST boundary like today's in
5725         Europe, (CEST to CET), that offset ends up being one hour off.
5726
5727 2011-10-27  Bruno Haible  <bruno@clisp.org>
5728
5729         fstat: Tweak documentation.
5730         * modules/fstat (Description): More precise description.
5731
5732 2011-10-27  Bruno Haible  <bruno@clisp.org>
5733
5734         Update documentation regarding 'largefile' module.
5735         * doc/posix-functions/fstat.texi: Tweak wording.
5736         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5737         problems with huge directories and/or small ino_t types.
5738         * doc/posix-functions/readdir.texi: Likewise.
5739         * doc/posix-functions/rewinddir.texi: Likewise.
5740
5741 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5742
5743         maint.mk: don't maintain a second build-aux variable.
5744         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5745         depends on GNUmakefile, which already maintains a cfg.mk
5746         overridable $(_build-aux) for projects with a non-standard
5747         build-aux directory location, although without the $(srcdir)
5748         prefix.  Use that variable consistently instead of introducing a
5749         second one.  Adjust all call sites.
5750
5751 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5752
5753         Add stdalign module and use it in other modules.
5754         This is based on a previous proposal by Bruno Haible
5755         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5756
5757         stdalign: new module
5758         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5759         * modules/stdalign: New files.
5760         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5761         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5762
5763         stdalign-tests: new module
5764         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5765
5766         argp: use stdalign
5767         * lib/argp-parse.c: Include <stdalign.h>.
5768         (alignof): Remove.
5769         * modules/argp (Depends-on): Add stdalign.
5770
5771         crypto libraries: use stdalign
5772         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5773         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5774         Do not include <stdlib.h> twice, in md4.c.
5775         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5776         because we are accessing a pointer's bit-pattern, not a size.
5777         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5778         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5779         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5780         * modules/crypto/sha512: Likewise.
5781
5782         sys_socket: use stdalign, not alignof
5783         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5784         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5785
5786 2011-10-27  Bruno Haible  <bruno@clisp.org>
5787
5788         raise test: Avoid a test failure on Linux/MIPS.
5789         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5790         because 99 is a valid signal on Linux/MIPS.
5791
5792 2011-10-27  Bruno Haible  <bruno@clisp.org>
5793
5794         nonblocking tests: Fix test failure on Linux/MIPS.
5795         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5796         Set to 270000.
5797
5798 2011-10-27  Bruno Haible  <bruno@clisp.org>
5799
5800         utimensat: Work around problem on Linux/hppa.
5801         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5802         values.
5803         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5804
5805 2011-10-25  Jim Meyering  <meyering@redhat.com>
5806
5807         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5808         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5809         after symbols like NULL, size_t, etc.
5810         Reported by Alfred M. Szmidt.
5811
5812         maint.mk: exempt ENODATA from a syntax-check rule
5813         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5814         from the sc_prohibit_always-defined_macros syntax-check rule.
5815         Add a comment.  See this for more details:
5816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5817
5818 2011-10-23  Jim Meyering  <meyering@redhat.com>
5819
5820         fts: close parent dir FD before returning from post-traversal fts_read
5821         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5822         unlink A, even though an FD open on A remained.  This is suboptimal
5823         (holding a file descriptor open longer than needed), but otherwise not
5824         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5825         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5826         that represents a real problem: it causes the removal of A to fail
5827         with e.g., "rm: cannot remove `A': Device or resource busy"
5828
5829         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5830         directory file descriptors.  After completing the final, FTS_DP,
5831         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5832         cache, but then proceeded to add a new FD to it via the subsequent
5833         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5834         final file descriptor would be closed only via fts_close's call to
5835         fd_ring_clear.  Now, it is usually closed earlier, via the final
5836         FTS_DP-returning fts_read call.
5837         * lib/fts.c (restore_initial_cwd): New function, converted from
5838         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5839         Update callers.
5840         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5841         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5842
5843 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5844             Bruno Haible  <bruno@clisp.org>
5845             Jim Meyering  <jim@meyering.net>
5846
5847         readme-release: improve safety of release prep instructions.
5848         * README-release: Don't git pull all branches when only master
5849         is needed for the release process.
5850         Run make maintainer-clean before changing trees and merging.
5851         Don't try to run ./configure right after git pull in case files
5852         that influence the bootstrap process have changed, move the
5853         ./configure step to after running ./bootstrap.
5854         Don't bootstrap "one last time"... it's the first time!
5855
5856 2011-10-22  Bruno Haible  <bruno@clisp.org>
5857
5858         errno, strerror-override: Support for MSVC 10.
5859         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5860         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5861         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5862         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5863         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5864         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5865         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5866         Assign values compatible with MSVC 10.
5867         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5868         New macros.
5869         (GNULIB_defined_EWINSOCK): New macro.
5870         * lib/strerror-override.c (strerror_override): Update accordingly.
5871         * lib/strerror-override.h: Likewise.
5872         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5873         longer equal to the corresponding errno value.
5874         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5875
5876 2011-10-22  Bruno Haible  <bruno@clisp.org>
5877
5878         perror: Recognize when test program crashes.
5879         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5880         strerror, set gl_cv_func_perror_works to no.
5881         Reported by Daniel Richard G. <skunk@iskunk.org>.
5882
5883         perror: Fix indentation.
5884         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5885
5886 2011-10-22  Bruno Haible  <bruno@clisp.org>
5887
5888         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5889         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5890         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5891         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5892         functions, not as a macro.
5893         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5894         macros.
5895         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5896         absence of macro.
5897         Suggested by Eric Blake.
5898         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5899
5900 2011-10-21  Bruno Haible  <bruno@clisp.org>
5901
5902         relocatable-prog-wrapper: Don't leave object files behind.
5903         * build-aux/install-reloc: Re-synchronize list of .o files to be
5904         removed with list of compilation units.
5905
5906 2011-10-20  Bruno Haible  <bruno@clisp.org>
5907
5908         openpty, posix_openpt: Remove code duplication.
5909         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5910         * lib/openpty.c: Include <stdlib.h>.
5911         (openpty): Use posix_openpt on all platforms except IRIX.
5912         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5913
5914 2011-10-20  Bruno Haible  <bruno@clisp.org>
5915
5916         unlockpt: Detect invalid argument.
5917         * lib/unlockpt.c: Include <fcntl.h>.
5918         (unlockpt): Check whether fd is valid, using fcntl().
5919         * modules/unlockpt (Depends-on): Add fcntl-h.
5920
5921 2011-10-20  Bruno Haible  <bruno@clisp.org>
5922
5923         openpty: Avoid compilation error on AIX 6.1.
5924         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5925
5926 2011-10-20  Bruno Haible  <bruno@clisp.org>
5927
5928         posix_openpt: Support for OpenBSD.
5929         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5930         (posix_openpt) [OpenBSD]: New code.
5931         * lib/grantpt.c: Include <fcntl.h>.
5932         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5933         * modules/grantpt (Depends-on): Add fcntl-h.
5934
5935 2011-10-20  Bruno Haible  <bruno@clisp.org>
5936
5937         posix_openpt test: Coding style.
5938         * tests/test-posix_openpt.c: Use GNU coding style.
5939
5940 2011-10-20  Bruno Haible  <bruno@clisp.org>
5941
5942         grantpt: Support --avoid=pt_chown.
5943         * modules/grantpt (Files): Add lib/pty-private.h.
5944
5945 2011-10-20  Bruno Haible  <bruno@clisp.org>
5946
5947         posix_openpt: Fix autoconf macro.
5948         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5949         unneeded check for _getpty.
5950
5951 2011-10-20  Bruno Haible  <bruno@clisp.org>
5952
5953         openpty: Update comments.
5954         * lib/openpty.c: Add comments about Minix.
5955
5956 2011-10-19  Eric Blake  <eblake@redhat.com>
5957
5958         openpty: relax license
5959         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5960
5961         pt_chown: use configmake to simplify build
5962         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5963
5964         ptsname and others: relax license
5965         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5966         * modules/unlockpt (License): Likewise.
5967         * modules/pt_chown (License): Likewise.
5968         * modules/ptsname (License): Likewise.
5969         * modules/ttyname_r (License): Likewise.
5970
5971 2011-10-19  Jim Meyering  <meyering@redhat.com>
5972
5973         posix_openpt: remove spurious #endif
5974         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5975
5976 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5977
5978         maint.mk: Respect $(build_aux) in web-manual rule.
5979         * top/maint.mk (web-manual): Find gen-announce script in user's
5980         $(build_aux) directory instead of hard-coding 'build-aux'.
5981
5982 2011-10-19  Bruno Haible  <bruno@clisp.org>
5983
5984         posix_openpt: Fix compilation error.
5985         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5986         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5987         Mention the openpty module as an alternative.
5988
5989 2011-10-19  Bruno Haible  <bruno@clisp.org>
5990
5991         Support for old NeXTstep 3.3 frexp().
5992         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5993         execution time of the test to 5 seconds.
5994         Reported by Daniel Richard G. <skunk@iskunk.org>.
5995
5996 2011-10-19  Bruno Haible  <bruno@clisp.org>
5997
5998         Support for old NeXTstep 3.3 sed.
5999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6000         part, use /.../, not \|...|. Escape periods in the header file name.
6001         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6002         Reported by Daniel Richard G. <skunk@iskunk.org>.
6003
6004 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6005
6006         Support for old NeXTstep 3.3 gcc.
6007         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6008         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6009         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6010         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6011         * lib/regex.h (_Restrict_arr_): Likewise.
6012         * lib/regex_internal.h (re_token_t): Likewise.
6013         * lib/regexec.c (check_node_accept_bytes): Likewise.
6014         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6015
6016 2011-10-18  Eric Blake  <eblake@redhat.com>
6017
6018         posix_openpt: new module
6019         * modules/posix_openpt: New module.
6020         * m4/posix_openpt.m4: New file.
6021         * lib/posix_openpt.c: Likewise.
6022         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6023         (gl_STDLIB_H_DEFAULTS): Set defaults.
6024         * modules/stdlib (Makefile.am): Substitute macros.
6025         * lib/stdlib.in.h (posix_openpt): Declare.
6026         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6027         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6028         * modules/posix_openpt-tests: New test module.
6029         * tests/test-posix_openpt.c: New test.
6030
6031 2011-10-15  Bruno Haible  <bruno@clisp.org>
6032
6033         xstrtoll: Fix compilation failure.
6034         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6035         from lib/strtol.c.
6036         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6037         some platforms.
6038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6039
6040 2011-10-15  Bruno Haible  <bruno@clisp.org>
6041
6042         vasnprintf: Optimize bit search operation.
6043         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6045         gl_DOUBLE_EXPONENT_LOCATION.
6046         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6047         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6048         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6049         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6050         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6051         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6052         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6053         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6054         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6055
6056 2011-10-15  Bruno Haible  <bruno@clisp.org>
6057
6058         vasnprintf: Fix comments.
6059         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6060
6061 2011-10-14  Bruno Haible  <bruno@clisp.org>
6062
6063         Tests for module 'integer_length_ll'.
6064         * modules/integer_length_ll-tests: New file.
6065         * tests/test-integer_length_ll.c: New file.
6066
6067         New module 'integer_length_ll'.
6068         * lib/integer_length_ll.c: New file.
6069         * modules/integer_length_ll: New file.
6070
6071 2011-10-14  Bruno Haible  <bruno@clisp.org>
6072
6073         Tests for module 'integer_length_l'.
6074         * modules/integer_length_l-tests: New file.
6075         * tests/test-integer_length_l.c: New file.
6076
6077         New module 'integer_length_l'.
6078         * lib/integer_length_l.c: New file.
6079         * modules/integer_length_l: New file.
6080
6081 2011-10-14  Bruno Haible  <bruno@clisp.org>
6082
6083         Tests for module 'integer_length'.
6084         * modules/integer_length-tests: New file.
6085         * tests/test-integer_length.c: New file.
6086
6087         New module 'integer_length'.
6088         * lib/integer_length.h: New file.
6089         * lib/integer_length.c: New file.
6090         * modules/integer_length: New file.
6091
6092 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6093
6094         popen: Fix dependency conditions.
6095         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6096
6097 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6098
6099         perror: Fix autoconf test.
6100         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6101         <stdlib.h> and <string.h>.
6102
6103 2011-10-14  Bruno Haible  <bruno@clisp.org>
6104
6105         ffsl: Optimize on 64-bit platforms.
6106         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6107         unrolling.
6108
6109 2011-10-13  Bruno Haible  <bruno@clisp.org>
6110
6111         ffsl: Optimize on 32-bit platforms.
6112         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6113         use ffs() without a loop.
6114
6115         ffsl, ffsll: Optimize for GCC.
6116         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6117         * lib/ffsl.c (GCC_BUILTIN): New macro.
6118         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6119
6120 2011-10-13  Bruno Haible  <bruno@clisp.org>
6121
6122         ffs, bcopy, memset: Support symbol renaming via config.h.
6123         * lib/ffs.c: Include <config.h>.
6124         * lib/bcopy.c: Likewise.
6125         * lib/memset.c: Likewise.
6126
6127 2011-10-10  Bruno Haible  <bruno@clisp.org>
6128
6129         atanl: Simplify for platforms where 'long double' == 'double'.
6130         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6131         alternative implementation.
6132         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6133         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6134         * modules/atanl (Depends-on): Add atan. Update conditions.
6135
6136 2011-10-10  Bruno Haible  <bruno@clisp.org>
6137
6138         acosl: Simplify for platforms where 'long double' == 'double'.
6139         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6140         alternative implementation.
6141         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6142         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6143         * modules/acosl (Depends-on): Add acos. Update conditions.
6144
6145 2011-10-10  Bruno Haible  <bruno@clisp.org>
6146
6147         asinl: Simplify for platforms where 'long double' == 'double'.
6148         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6149         alternative implementation.
6150         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6151         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6152         * modules/asinl (Depends-on): Add asin. Update conditions.
6153
6154 2011-10-10  Bruno Haible  <bruno@clisp.org>
6155
6156         tanl: Simplify for platforms where 'long double' == 'double'.
6157         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6158         implementation.
6159         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6160         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6161         * modules/tanl (Depends-on): Add tan. Update conditions.
6162         (configure.ac): Don't compile trigl.c if
6163         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6164
6165 2011-10-10  Bruno Haible  <bruno@clisp.org>
6166
6167         cosl: Simplify for platforms where 'long double' == 'double'.
6168         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6169         implementation.
6170         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6171         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6172         * modules/cosl (Depends-on): Add cos. 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         sinl: Simplify for platforms where 'long double' == 'double'.
6179         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6180         implementation.
6181         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6182         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6183         * modules/sinl (Depends-on): Add sin. Update conditions.
6184         (configure.ac): Don't compile sincosl.c and trigl.c if
6185         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6186
6187 2011-10-10  Bruno Haible  <bruno@clisp.org>
6188
6189         logl: Simplify for platforms where 'long double' == 'double'.
6190         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6191         implementation.
6192         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6193         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6194         * modules/logl (Depends-on): Add log. Update conditions.
6195
6196 2011-10-10  Bruno Haible  <bruno@clisp.org>
6197
6198         expl: Simplify for platforms where 'long double' == 'double'.
6199         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6200         implementation.
6201         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6202         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6203         * modules/expl (Depends-on): Add exp. Update conditions.
6204
6205 2011-10-10  Bruno Haible  <bruno@clisp.org>
6206
6207         sqrtl: Simplify for platforms where 'long double' == 'double'.
6208         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6209         alternative implementation.
6210         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6211         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6212         * modules/sqrtl (Depends-on): Update conditions.
6213
6214 2011-10-10  Bruno Haible  <bruno@clisp.org>
6215
6216         ldexpl: Simplify for platforms where 'long double' == 'double'.
6217         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6218         alternative implementation.
6219         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6220         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6221         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6222
6223 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6224
6225         ffsll: set correct witness
6226         * modules/ffsll (configure.ac): Fix typo.
6227
6228 2011-10-10  Bruno Haible  <bruno@clisp.org>
6229
6230         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6231         * lib/printf-frexpl.c: Include <config.h>.
6232         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6233         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6234         second time.
6235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6236         gl_LONG_DOUBLE_VS_DOUBLE.
6237         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6238         conditions.
6239
6240 2011-10-10  Bruno Haible  <bruno@clisp.org>
6241
6242         frexpl: Simplify for platforms where 'long double' == 'double'.
6243         * lib/frexpl.c: Include <config.h>.
6244         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6245         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6246         time.
6247         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6248         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6249         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6250         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6251         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6252         conditions.
6253
6254 2011-10-10  Jim Meyering  <meyering@redhat.com>
6255
6256         test-renameat: don't leave behind a temporary file
6257         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6258           ERROR: files left in build directory after distclean:
6259           ./gltests/test-renameat.too
6260           make[1]: *** [distcleancheck] Error 1
6261         Reported by Tom G. Christensen.
6262
6263 2011-10-09  Bruno Haible  <bruno@clisp.org>
6264
6265         rint: Determine RINT_LIBM correctly on AIX 7.
6266         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6267         directly, not only through a function pointer. Also accept an optional
6268         4th argument with extra code.
6269         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6270         rintf() call by gcc when optimizing.
6271
6272         mathfunc.m4: Refactor.
6273         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6274         m4 variable.
6275
6276 2011-10-09  Bruno Haible  <bruno@clisp.org>
6277
6278         rintl: Simplify for platforms where 'long double' == 'double'.
6279         * lib/rintl.c: Include <config.h>.
6280         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6281         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6282         time.
6283         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6284         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6285         * modules/rintl (Depends-on): Add rint. Update conditions.
6286
6287 2011-10-09  Bruno Haible  <bruno@clisp.org>
6288
6289         roundl: Simplify for platforms where 'long double' == 'double'.
6290         * lib/roundl.c: Include <config.h>.
6291         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6292         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6293         time.
6294         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6295         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6296         * modules/roundl (Depends-on): Add round. Update conditions.
6297
6298 2011-10-09  Bruno Haible  <bruno@clisp.org>
6299
6300         truncl: Simplify for platforms where 'long double' == 'double'.
6301         * lib/truncl.c: Include <config.h>.
6302         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6303         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6304         time.
6305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6306         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6307         * modules/truncl (Depends-on): Add trunc. Update conditions.
6308
6309 2011-10-09  Bruno Haible  <bruno@clisp.org>
6310
6311         ceill: Simplify for platforms where 'long double' == 'double'.
6312         * lib/ceill.c: Include <config.h>.
6313         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6314         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6315         time.
6316         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6317         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6318         * modules/ceill (Depends-on): Add ceil. Update conditions.
6319
6320 2011-10-09  Bruno Haible  <bruno@clisp.org>
6321
6322         floorl: Simplify for platforms where 'long double' == 'double'.
6323         * lib/floorl.c: Include <config.h>.
6324         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6325         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6326         time.
6327         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6328         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6329         * modules/floorl (Depends-on): Add floor. Update conditions.
6330
6331 2011-10-09  Bruno Haible  <bruno@clisp.org>
6332
6333         rint: Fix ordering constraints.
6334         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6335         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6336         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6337
6338 2011-10-09  Bruno Haible  <bruno@clisp.org>
6339
6340         copysignl: Simplify for platforms where 'long double' == 'double'.
6341         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6342         alternative.
6343         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6344         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6345         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6346
6347 2011-10-09  Bruno Haible  <bruno@clisp.org>
6348
6349         Tests for module 'rintl'.
6350         * modules/rintl-tests: New file.
6351         * tests/test-rintl.c: New file.
6352
6353         New module 'rintl'.
6354         * lib/math.in.h (rintl): New declaration.
6355         * lib/rintl.c: New file.
6356         * m4/rintl.m4: New file.
6357         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6359         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6360         * modules/rintl: New file.
6361         * tests/test-math-c++.cc: Check the declaration of rintl.
6362         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6363         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6364         * doc/posix-functions/rintl.texi: Mention the new module.
6365
6366 2011-10-09  Bruno Haible  <bruno@clisp.org>
6367
6368         Tests for module 'rintf'.
6369         * modules/rintf-tests: New file.
6370         * tests/test-rintf.c: New file.
6371
6372         New module 'rintf'.
6373         * lib/math.in.h (rintf): New declaration.
6374         * lib/rintf.c: New file.
6375         * m4/rintf.m4: New file.
6376         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6378         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6379         * modules/rintf: New file.
6380         * tests/test-math-c++.cc: Check the declaration of rintf.
6381         * doc/posix-functions/rintf.texi: Mention the new module.
6382
6383 2011-10-09  Bruno Haible  <bruno@clisp.org>
6384
6385         rint: Support for MSVC.
6386         * lib/math.in.h (rint): New declaration.
6387         * lib/rint.c: New file.
6388         * m4/rint.m4: New file.
6389         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6391         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6392         * modules/rint (Description): Fix.
6393         (Files): Add lib/rint.c, m4/rint.m4.
6394         (Depends-on): Add math.
6395         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6396         gl_MATH_MODULE_INDICATOR.
6397         * tests/test-math-c++.cc: Check the declaration of rint.
6398         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6399         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6400         * doc/posix-functions/rint.texi: Mention the replacement provided by
6401         the module.
6402
6403         rint tests: More tests.
6404         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6405         minus-zero.h, infinity.h, nan.h.
6406         (main): Skip the test if the current rounding mode is not standard. Add
6407         tests for negative numbers, minus zero, infinity, NaN.
6408         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6409         tests/nan.h.
6410         (Depends-on): Add isnand-nolibm.
6411
6412 2011-10-09  Bruno Haible  <bruno@clisp.org>
6413
6414         Tests for module 'copysignl'.
6415         * modules/copysignl-tests: New file.
6416         * tests/test-copysignl.c: New file.
6417
6418         New module 'copysignl'.
6419         * lib/math.in.h (copysignl): New declaration.
6420         * lib/copysignl.c: New file.
6421         * m4/copysignl.m4: New file.
6422         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6424         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6425         HAVE_COPYSIGNL.
6426         * modules/copysignl: New file.
6427         * tests/test-math-c++.cc: Check the declaration of copysignl.
6428         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6429         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6430         * doc/posix-functions/copysignl.texi: Mention the new module.
6431
6432 2011-10-09  Bruno Haible  <bruno@clisp.org>
6433
6434         Tests for module 'copysignf'.
6435         * modules/copysignf-tests: New file.
6436         * tests/test-copysignf.c: New file.
6437
6438         New module 'copysignf'.
6439         * lib/math.in.h (copysignf): New declaration.
6440         * lib/copysignf.c: New file.
6441         * m4/copysignf.m4: New file.
6442         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6444         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6445         HAVE_COPYSIGNF.
6446         * modules/copysignf: New file.
6447         * tests/test-math-c++.cc: Check the declaration of copysignf.
6448         * doc/posix-functions/copysignf.texi: Mention the new module.
6449
6450 2011-10-09  Bruno Haible  <bruno@clisp.org>
6451
6452         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6454         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6455         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6456         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6457         gl_SIGNAL_H_DEFAULTS.
6458
6459 2011-10-09  Bruno Haible  <bruno@clisp.org>
6460
6461         poll: Make macro safer.
6462         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6463         ac_cv_header_poll_h is not set.
6464
6465 2011-10-09  Bruno Haible  <bruno@clisp.org>
6466
6467         copysign: Provide replacement.
6468         * lib/math.in.h (copysign): New declaration.
6469         * lib/copysign.c: New file.
6470         * m4/copysign.m4: New file.
6471         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6473         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6474         HAVE_COPYSIGN.
6475         * modules/copysign (Description): Clarify.
6476         (Files): Add lib/copysign.c, m4/copysign.m4.
6477         (Depends-on): Add math, signbit.
6478         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6479         gl_MATH_MODULE_INDICATOR.
6480         * tests/test-math-c++.cc: Check the declaration of copysign.
6481         * doc/posix-functions/copysign.texi: Mention the effects of the module
6482         on Minix and MSVC.
6483
6484 2011-10-09  Bruno Haible  <bruno@clisp.org>
6485
6486         isinf: Ensure macro on AIX 5.1.
6487         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6488         macro.
6489         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6490
6491 2011-10-09  Bruno Haible  <bruno@clisp.org>
6492
6493         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6494         * modules/snprintf-posix-tests (configure.ac): Require
6495         gl_LONG_DOUBLE_VS_DOUBLE.
6496         * modules/sprintf-posix-tests (configure.ac): Likewise.
6497         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6498         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6499         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6500         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6501         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6502         tests on platforms where 'long double' is the same as 'double'.
6503         * tests/test-sprintf-posix.h (test_function): Likewise.
6504         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6505         * tests/test-vasprintf-posix.c (test_function): Likewise.
6506
6507         *printf: Fix for platforms where 'long double' == 'double'.
6508         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6509         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6510         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6511         * modules/fprintf-posix (Files): Likewise.
6512         * modules/obstack-printf-posix (Files): Likewise.
6513         * modules/snprintf-posix (Files): Likewise.
6514         * modules/sprintf-posix (Files): Likewise.
6515         * modules/vasnprintf (Files): Likewise.
6516         * modules/vasnprintf-posix (Files): Likewise.
6517         * modules/vasprintf-posix (Files): Likewise.
6518         * modules/vdprintf-posix (Files): Likewise.
6519         * modules/vfprintf-posix (Files): Likewise.
6520         * modules/vsnprintf-posix (Files): Likewise.
6521         * modules/vsprintf-posix (Files): Likewise.
6522         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6523         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6524         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6525         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6526         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6527         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6528         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6529
6530         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6531         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6532         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6533         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6534         'long double'.
6535         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6536
6537         isinf: Fix for platforms where 'long double' == 'double'.
6538         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6539         Don't blindly assume 80-bit 'long double'.
6540
6541         isfinite: Fix for platforms where 'long double' == 'double'.
6542         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6543         Don't blindly assume 80-bit 'long double'.
6544
6545         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6546         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6547         * modules/isfinite-tests (configure.ac): Require
6548         gl_LONG_DOUBLE_VS_DOUBLE.
6549         * modules/isinf-tests (configure.ac): Likewise.
6550         * modules/isnan-tests (configure.ac): Likewise.
6551         * modules/isnanl-tests (configure.ac): Likewise.
6552         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6553         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6554         tests on platforms where 'long double' is the same as 'double'.
6555         * tests/test-isinf.c (test_isinfl): Likewise.
6556         * tests/test-isnan.c (test_long_double): Likewise.
6557         * tests/test-isnanl.h (main): Likewise.
6558
6559 2011-10-08  Bruno Haible  <bruno@clisp.org>
6560
6561         Tests for module 'tanhf'.
6562         * modules/tanhf-tests: New file.
6563         * tests/test-tanhf.c: New file.
6564
6565         New module 'tanhf'.
6566         * lib/math.in.h (tanhf): New declaration.
6567         * lib/tanhf.c: New file.
6568         * m4/tanhf.m4: New file.
6569         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6571         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6572         * modules/tanhf: New file.
6573         * tests/test-math-c++.cc: Check the declaration of tanhf.
6574         * doc/posix-functions/tanhf.texi: Mention the new module.
6575
6576         tanh: Use a .m4 file.
6577         * m4/tanh.m4: New file.
6578         * modules/tanh (Files): Add it.
6579         (configure.ac): Just invoke gl_FUNC_TANH.
6580
6581 2011-10-08  Bruno Haible  <bruno@clisp.org>
6582
6583         Tests for module 'coshf'.
6584         * modules/coshf-tests: New file.
6585         * tests/test-coshf.c: New file.
6586
6587         New module 'coshf'.
6588         * lib/math.in.h (coshf): New declaration.
6589         * lib/coshf.c: New file.
6590         * m4/coshf.m4: New file.
6591         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6593         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6594         * modules/coshf: New file.
6595         * tests/test-math-c++.cc: Check the declaration of coshf.
6596         * doc/posix-functions/coshf.texi: Mention the new module.
6597
6598         cosh: Use a .m4 file.
6599         * m4/cosh.m4: New file.
6600         * modules/cosh (Files): Add it.
6601         (configure.ac): Just invoke gl_FUNC_COSH.
6602
6603 2011-10-08  Bruno Haible  <bruno@clisp.org>
6604
6605         Tests for module 'sinhf'.
6606         * modules/sinhf-tests: New file.
6607         * tests/test-sinhf.c: New file.
6608
6609         New module 'sinhf'.
6610         * lib/math.in.h (sinhf): New declaration.
6611         * lib/sinhf.c: New file.
6612         * m4/sinhf.m4: New file.
6613         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6615         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6616         * modules/sinhf: New file.
6617         * tests/test-math-c++.cc: Check the declaration of sinhf.
6618         * doc/posix-functions/sinhf.texi: Mention the new module.
6619
6620         sinh: Use a .m4 file.
6621         * m4/sinh.m4: New file.
6622         * modules/sinh (Files): Add it.
6623         (configure.ac): Just invoke gl_FUNC_SINH.
6624
6625 2011-10-08  Bruno Haible  <bruno@clisp.org>
6626
6627         Tests for module 'atan2f'.
6628         * modules/atan2f-tests: New file.
6629         * tests/test-atan2f.c: New file.
6630
6631         New module 'atan2f'.
6632         * lib/math.in.h (atan2f): New declaration.
6633         * lib/atan2f.c: New file.
6634         * m4/atan2f.m4: New file.
6635         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6637         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6638         * modules/atan2f: New file.
6639         * tests/test-math-c++.cc: Check the declaration of atan2f.
6640         * doc/posix-functions/atan2f.texi: Mention the new module.
6641
6642         atan2: Use a .m4 file.
6643         * m4/atan2.m4: New file.
6644         * modules/atan2 (Files): Add it.
6645         (configure.ac): Just invoke gl_FUNC_ATAN2.
6646
6647 2011-10-08  Bruno Haible  <bruno@clisp.org>
6648
6649         Tests for module 'atanf'.
6650         * modules/atanf-tests: New file.
6651         * tests/test-atanf.c: New file.
6652
6653         New module 'atanf'.
6654         * lib/math.in.h (atanf): New declaration.
6655         * lib/atanf.c: New file.
6656         * m4/atanf.m4: New file.
6657         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6659         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6660         * modules/atanf: New file.
6661         * tests/test-math-c++.cc: Check the declaration of atanf.
6662         * doc/posix-functions/atanf.texi: Mention the new module.
6663
6664         atan: Use a .m4 file.
6665         * m4/atan.m4: New file.
6666         * modules/atan (Files): Add it.
6667         (configure.ac): Just invoke gl_FUNC_ATAN.
6668
6669 2011-10-08  Bruno Haible  <bruno@clisp.org>
6670
6671         Tests for module 'acosf'.
6672         * modules/acosf-tests: New file.
6673         * tests/test-acosf.c: New file.
6674
6675         New module 'acosf'.
6676         * lib/math.in.h (acosf): New declaration.
6677         * lib/acosf.c: New file.
6678         * m4/acosf.m4: New file.
6679         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6681         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6682         * modules/acosf: New file.
6683         * tests/test-math-c++.cc: Check the declaration of acosf.
6684         * doc/posix-functions/acosf.texi: Mention the new module.
6685
6686         acos: Use a .m4 file.
6687         * m4/acos.m4: New file.
6688         * modules/acos (Files): Add it.
6689         (configure.ac): Just invoke gl_FUNC_ACOS.
6690
6691 2011-10-08  Bruno Haible  <bruno@clisp.org>
6692
6693         Tests for module 'asinf'.
6694         * modules/asinf-tests: New file.
6695         * tests/test-asinf.c: New file.
6696
6697         New module 'asinf'.
6698         * lib/math.in.h (asinf): New declaration.
6699         * lib/asinf.c: New file.
6700         * m4/asinf.m4: New file.
6701         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6703         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6704         * modules/asinf: New file.
6705         * tests/test-math-c++.cc: Check the declaration of asinf.
6706         * doc/posix-functions/asinf.texi: Mention the new module.
6707
6708         asin: Use a .m4 file.
6709         * m4/asin.m4: New file.
6710         * modules/asin (Files): Add it.
6711         (configure.ac): Just invoke gl_FUNC_ASIN.
6712
6713 2011-10-08  Bruno Haible  <bruno@clisp.org>
6714
6715         Tests for module 'tanf'.
6716         * modules/tanf-tests: New file.
6717         * tests/test-tanf.c: New file.
6718
6719         New module 'tanf'.
6720         * lib/math.in.h (tanf): New declaration.
6721         * lib/tanf.c: New file.
6722         * m4/tanf.m4: New file.
6723         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6725         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6726         * modules/tanf: New file.
6727         * tests/test-math-c++.cc: Check the declaration of tanf.
6728         * doc/posix-functions/tanf.texi: Mention the new module.
6729
6730         tan: Use a .m4 file.
6731         * m4/tan.m4: New file.
6732         * modules/tan (Files): Add it.
6733         (configure.ac): Just invoke gl_FUNC_TAN.
6734
6735 2011-10-08  Bruno Haible  <bruno@clisp.org>
6736
6737         Tests for module 'cosf'.
6738         * modules/cosf-tests: New file.
6739         * tests/test-cosf.c: New file.
6740
6741         New module 'cosf'.
6742         * lib/math.in.h (cosf): New declaration.
6743         * lib/cosf.c: New file.
6744         * m4/cosf.m4: New file.
6745         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6746         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6747         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6748         * modules/cosf: New file.
6749         * tests/test-math-c++.cc: Check the declaration of cosf.
6750         * doc/posix-functions/cosf.texi: Mention the new module.
6751
6752         cos: Use a .m4 file.
6753         * m4/cos.m4: New file.
6754         * modules/cos (Files): Add it.
6755         (configure.ac): Just invoke gl_FUNC_COS.
6756
6757 2011-10-08  Bruno Haible  <bruno@clisp.org>
6758
6759         Tests for module 'sinf'.
6760         * modules/sinf-tests: New file.
6761         * tests/test-sinf.c: New file.
6762
6763         New module 'sinf'.
6764         * lib/math.in.h (sinf): New declaration.
6765         * lib/sinf.c: New file.
6766         * m4/sinf.m4: New file.
6767         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6769         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6770         * modules/sinf: New file.
6771         * tests/test-math-c++.cc: Check the declaration of sinf.
6772         * doc/posix-functions/sinf.texi: Mention the new module.
6773
6774         sin: Use a .m4 file.
6775         * m4/sin.m4: New file.
6776         * modules/sin (Files): Add it.
6777         (configure.ac): Just invoke gl_FUNC_SIN.
6778
6779 2011-10-08  Bruno Haible  <bruno@clisp.org>
6780
6781         Tests for module 'powf'.
6782         * modules/powf-tests: New file.
6783         * tests/test-powf.c: New file.
6784
6785         New module 'powf'.
6786         * lib/math.in.h (powf): New declaration.
6787         * lib/powf.c: New file.
6788         * m4/powf.m4: New file.
6789         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6791         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6792         * modules/powf: New file.
6793         * tests/test-math-c++.cc: Check the declaration of powf.
6794         * doc/posix-functions/powf.texi: Mention the new module.
6795
6796         pow: Use a .m4 file.
6797         * m4/pow.m4: New file.
6798         * modules/pow (Files): Add it.
6799         (configure.ac): Just invoke gl_FUNC_POW.
6800
6801 2011-10-08  Bruno Haible  <bruno@clisp.org>
6802
6803         Tests for module 'log10f'.
6804         * modules/log10f-tests: New file.
6805         * tests/test-log10f.c: New file.
6806
6807         New module 'log10f'.
6808         * lib/math.in.h (log10f): New declaration.
6809         * lib/log10f.c: New file.
6810         * m4/log10f.m4: New file.
6811         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6813         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6814         * modules/log10f: New file.
6815         * tests/test-math-c++.cc: Check the declaration of log10f.
6816         * doc/posix-functions/log10f.texi: Mention the new module.
6817
6818         log10: Use a .m4 file.
6819         * m4/log10.m4: New file.
6820         * modules/log10 (Files): Add it.
6821         (configure.ac): Just invoke gl_FUNC_LOG10.
6822
6823 2011-10-08  Bruno Haible  <bruno@clisp.org>
6824
6825         Tests for module 'logf'.
6826         * modules/logf-tests: New file.
6827         * tests/test-logf.c: New file.
6828
6829         New module 'logf'.
6830         * lib/math.in.h (logf): New declaration.
6831         * lib/logf.c: New file.
6832         * m4/logf.m4: New file.
6833         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6835         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6836         * modules/logf: New file.
6837         * tests/test-math-c++.cc: Check the declaration of logf.
6838         * doc/posix-functions/logf.texi: Mention the new module.
6839
6840         log: Use a .m4 file.
6841         * m4/log.m4: New file.
6842         * modules/log (Files): Add it.
6843         (configure.ac): Just invoke gl_FUNC_LOG.
6844
6845 2011-10-08  Bruno Haible  <bruno@clisp.org>
6846
6847         Tests for module 'expf'.
6848         * modules/expf-tests: New file.
6849         * tests/test-expf.c: New file.
6850
6851         New module 'expf'.
6852         * lib/math.in.h (expf): New declaration.
6853         * lib/expf.c: New file.
6854         * m4/expf.m4: New file.
6855         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6857         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6858         * modules/expf: New file.
6859         * tests/test-math-c++.cc: Check the declaration of expf.
6860         * doc/posix-functions/expf.texi: Mention the new module.
6861
6862         exp: Use a .m4 file.
6863         * m4/exp.m4: New file.
6864         * modules/exp (Files): Add it.
6865         (configure.ac): Just invoke gl_FUNC_EXP.
6866
6867 2011-10-08  Bruno Haible  <bruno@clisp.org>
6868
6869         Tests for module 'sqrtf'.
6870         * modules/sqrtf-tests: New file.
6871         * tests/test-sqrtf.c: New file.
6872
6873         New module 'sqrtf'.
6874         * lib/math.in.h (sqrtf): New declaration.
6875         * lib/sqrtf.c: New file.
6876         * m4/sqrtf.m4: New file.
6877         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6879         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6880         * modules/sqrtf: New file.
6881         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6882         * doc/posix-functions/sqrtf.texi: Mention the new module.
6883
6884 2011-10-08  Bruno Haible  <bruno@clisp.org>
6885
6886         Tests: Avoid link failures w.r.t. libintl.
6887         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6888         $(LIBINTL).
6889         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6890         $(LIBINTL).
6891         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6892         against $(LIBINTL).
6893         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6894         $(LIBINTL).
6895         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6896         $(LIBINTL).
6897         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6898
6899 2011-10-08  Bruno Haible  <bruno@clisp.org>
6900
6901         pow tests: Defeat compiler optimizations.
6902         * tests/test-pow.c (main): Assign arguments to x and y before use.
6903
6904 2011-10-08  Bruno Haible  <bruno@clisp.org>
6905
6906         gnulib-tool: Improve last commit.
6907         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6908         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6909         ignore dependencies that are not among the modules list.
6910
6911 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6912
6913         gnulib-tool: don't follow dependencies to avoided modules
6914         This fixes a bug that is related to the previous one.
6915         * gnulib-tool (func_modules_transitive_closure)
6916         (func_emit_autoconf_snippets):
6917         Check whether a dependency is acceptable before using it.
6918         (--extract-dependencies): Report an error if --avoid is also used,
6919         since this combination of options is not yet supported.
6920
6921         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6922         Problem reported by Peter Dyballa in
6923         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6924         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6925         when echoing "$condition".
6926
6927 2011-10-07  Bruno Haible  <bruno@clisp.org>
6928
6929         Fix documentation about math functions on MacOS X.
6930         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6931         MacOS X 10.5.
6932         * doc/posix-functions/fdim.texi: Likewise.
6933         * doc/posix-functions/feclearexcept.texi: Likewise.
6934         * doc/posix-functions/fegetenv.texi: Likewise.
6935         * doc/posix-functions/fegetround.texi: Likewise.
6936         * doc/posix-functions/feholdexcept.texi: Likewise.
6937         * doc/posix-functions/feraiseexcept.texi: Likewise.
6938         * doc/posix-functions/fesetenv.texi: Likewise.
6939         * doc/posix-functions/fesetround.texi: Likewise.
6940         * doc/posix-functions/fetestexcept.texi: Likewise.
6941         * doc/posix-functions/feupdateenv.texi: Likewise.
6942         * doc/posix-functions/fmax.texi: Likewise.
6943         * doc/posix-functions/fmin.texi: Likewise.
6944         * doc/posix-functions/log2.texi: Likewise.
6945         * doc/posix-functions/modff.texi: Likewise.
6946         * doc/posix-functions/nan.texi: Likewise.
6947         * doc/posix-functions/nanf.texi: Likewise.
6948         * doc/posix-functions/nextafterf.texi: Likewise.
6949         * doc/posix-functions/remquo.texi: Likewise.
6950
6951 2011-10-07  Bruno Haible  <bruno@clisp.org>
6952
6953         modff: Drop assumption about library that defines modff.
6954         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6955         AC_CHECK_FUNCS.
6956         * modules/modff (Files): Add m4/mathfunc.m4.
6957
6958 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6959
6960         raise tests: Avoid a GCC warning.
6961         * tests/test-raise.c (handler): Use _Noreturn.
6962
6963 2011-10-07  Bruno Haible  <bruno@clisp.org>
6964
6965         Tests for module 'ldexpf'.
6966         * modules/ldexpf-tests: New file.
6967         * tests/test-ldexpf.c: New file.
6968
6969         New module 'ldexpf'.
6970         * lib/math.in.h (ldexpf): New declaration.
6971         * lib/ldexpf.c: New file.
6972         * m4/ldexpf.m4: New file.
6973         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6975         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6976         * modules/ldexpf: New file.
6977         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6978         * doc/posix-functions/ldexpf.texi: Mention the new module.
6979
6980 2011-10-06  Bruno Haible  <bruno@clisp.org>
6981
6982         frexpf: Work around problems on IRIX and mingw.
6983         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6985         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6986         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6987         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6988         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6989         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6990
6991 2011-10-06  Bruno Haible  <bruno@clisp.org>
6992
6993         fabsf: Drop assumption about library that defines fabsf.
6994         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6995         AC_CHECK_FUNCS.
6996         * modules/fabsf (Files): Add m4/mathfunc.m4.
6997
6998 2011-10-06  Bruno Haible  <bruno@clisp.org>
6999
7000         frexpf: Drop assumption about library that defines frexpf.
7001         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7002         'int *', 'float *', 'long double *', 'float', 'long double'.
7003         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7004         AC_CHECK_FUNCS.
7005         * modules/frexpf (Files): Add m4/mathfunc.m4.
7006
7007         Tests for module 'frexpf'.
7008         * modules/frexpf-tests: New file.
7009         * tests/test-frexpf.c: New file.
7010
7011         New module 'frexpf'.
7012         * lib/math.in.h (frexpf): New declaration.
7013         * lib/frexpf.c: New file.
7014         * m4/frexpf.m4: New file.
7015         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7017         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7018         * modules/frexpf: New file.
7019         * tests/test-math-c++.cc: Check the declaration of frexpf.
7020         * doc/posix-functions/frexpf.texi: Mention the new module.
7021
7022 2011-10-06  Bruno Haible  <bruno@clisp.org>
7023
7024         math: Sort function declarations of math.in.h.
7025         * lib/math.in.h (frexp, logb): Move declarations.
7026
7027 2011-10-05  Bruno Haible  <bruno@clisp.org>
7028
7029         Tests for module 'modff'.
7030         * modules/modff-tests: New file.
7031         * tests/test-modff.c: New file.
7032
7033         New module 'modff'.
7034         * lib/math.in.h (modff): New declaration.
7035         * lib/modff.c: New file.
7036         * m4/modff.m4: New file.
7037         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7039         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7040         * modules/modff: New file.
7041         * tests/test-math-c++.cc: Check the declaration of modff.
7042         * doc/posix-functions/modff.texi: Mention the new module.
7043
7044         modf tests: Make test sharper.
7045         * tests/test-modf.c (main): Strengthen upper bound.
7046
7047         modf: Use a .m4 file.
7048         * m4/modf.m4: New file.
7049         * modules/modf (Files): Add it.
7050         (configure.ac): Just invoke gl_FUNC_MODF.
7051
7052 2011-10-05  Bruno Haible  <bruno@clisp.org>
7053
7054         Tests for module 'fmodf'.
7055         * modules/fmodf-tests: New file.
7056         * tests/test-fmodf.c: New file.
7057
7058         New module 'fmodf'.
7059         * lib/math.in.h (fmodf): New declaration.
7060         * lib/fmodf.c: New file.
7061         * m4/fmodf.m4: New file.
7062         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7064         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7065         * modules/fmodf: New file.
7066         * tests/test-math-c++.cc: Check the declaration of fmodf.
7067         * doc/posix-functions/fmodf.texi: Mention the new module.
7068
7069         fmod: Use a .m4 file.
7070         * m4/fmod.m4: New file.
7071         * modules/fmod (Files): Add it.
7072         (configure.ac): Just invoke gl_FUNC_FMOD.
7073
7074 2011-10-05  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'fabsf'.
7077         * modules/fabsf-tests: New file.
7078         * tests/test-fabsf.c: New file.
7079
7080         New module 'fabsf'.
7081         * lib/math.in.h (fabsf): New declaration.
7082         * lib/fabsf.c: New file.
7083         * m4/fabsf.m4: New file.
7084         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7086         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7087         * modules/fabsf: New file.
7088         * tests/test-math-c++.cc: Check the declaration of fabsf.
7089         * doc/posix-functions/fabsf.texi: Mention the new module.
7090
7091         fabs: Use a .m4 file.
7092         * m4/fabs.m4: New file.
7093         * modules/fabs (Files): Add it.
7094         (configure.ac): Just invoke gl_FUNC_FABS.
7095
7096 2011-10-05  Jim Meyering  <meyering@redhat.com>
7097
7098         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7099         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7100         ls -lL regression introduced in coreutils-8.12, it does so at the
7101         cost of an additional stat call in the common case.  Besides, now
7102         that the kernel change that prompted commit 95f7c57f has been reverted
7103         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7104         we have no use for commit 95f7c57f, "file-has-acl: use
7105         acl_extended_file_nofollow if available".
7106
7107 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7108
7109         file-has-acl: revert unintended change in behavior of ls -L
7110         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7111         derived from...
7112         (file_has_acl): ...code here.  Call it.
7113         This problem was introduced with 2011-07-22 commit 95f7c57f,
7114         "file-has-acl: use acl_extended_file_nofollow if available".
7115         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7116
7117 2011-10-03  Bruno Haible  <bruno@clisp.org>
7118
7119         poll: Avoid link errors on MSVC.
7120         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7121         * modules/poll (Depends-on): Add sockets.
7122         (Link): New section.
7123         * NEWS: Mention the change.
7124         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7125         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7126         $(LIB_POLL) instead of $(LIBSOCKET).
7127
7128 2011-10-03  Bruno Haible  <bruno@clisp.org>
7129
7130         sys_select tests: Fix link error on MSVC 9.
7131         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7132         with $(LIB_SELECT) instead of $(LIBSOCKET).
7133
7134 2011-10-03  Bruno Haible  <bruno@clisp.org>
7135
7136         sys_select: Fix compilation error on mingw.
7137         * lib/sys_select.in.h: On native Windows, include <io.h>.
7138
7139 2011-10-03  Bruno Haible  <bruno@clisp.org>
7140
7141         wmemset: Support for MSVC.
7142         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7143         whether wmemset() exists.
7144
7145 2011-10-03  Bruno Haible  <bruno@clisp.org>
7146
7147         wmemmove: Support for MSVC.
7148         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7149         whether wmemmove() exists.
7150
7151 2011-10-03  Bruno Haible  <bruno@clisp.org>
7152
7153         wmemcpy: Support for MSVC.
7154         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7155         whether wmemcpy() exists.
7156
7157 2011-10-03  Bruno Haible  <bruno@clisp.org>
7158
7159         wmemcmp: Support for MSVC.
7160         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7161         whether wmemcmp() exists.
7162
7163 2011-10-03  Bruno Haible  <bruno@clisp.org>
7164
7165         wmemchr: Support for MSVC.
7166         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7167         whether wmemchr() exists.
7168
7169 2011-10-03  Bruno Haible  <bruno@clisp.org>
7170
7171         glthread/*, strsignal: Support for MSVC.
7172         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7173         including <winsock.h> on MSVC 9.
7174         * lib/glthread/lock.h: Likewise.
7175         * lib/glthread/thread.h: Likewise.
7176         * lib/glthread/tls.h: Likewise.
7177         * lib/glthread/yield.h: Likewise.
7178         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7179         if HAVE_UNISTD_H is false.
7180         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7181
7182 2011-10-03  Bruno Haible  <bruno@clisp.org>
7183
7184         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7185         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7186         Set to 100000.
7187
7188 2011-10-03  Bruno Haible  <bruno@clisp.org>
7189
7190         acl: Fix specification.
7191         * lib/file-has-acl.c (file_has_acl): Fix specification.
7192
7193 2011-10-03  Bruno Haible  <bruno@clisp.org>
7194
7195         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7196         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7197         (compute_curr_prefix, shared_library_fullname,
7198         find_shared_library_fullname, get_shared_library_fullname, relocate):
7199         Use it together with PIC && INSTALLDIR.
7200         Reported by <jojelino@gmail.com>
7201         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7202
7203 2011-10-01  Jim Meyering  <meyering@redhat.com>
7204
7205         maint.mk: adjust a release-related rule not to require use of gzip
7206         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7207         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7208         projects that build only .tar.xz files.  Also fix an erroneous test.
7209
7210         test-linkat: don't leave behind a temporary file
7211         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7212         Otherwise, coreutils' "make distcheck" would fail with this:
7213           Only in /c/cu/tests/torture/coreutils/test/\
7214             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7215           make[2]: *** [my-distcheck] Error 1
7216
7217         float, math: add omitted file
7218         * lib/itold.c: Add file, required for yesterday's float change.
7219
7220 2011-10-01  Bruno Haible  <bruno@clisp.org>
7221
7222         isinf: Fix for OpenBSD/x86.
7223         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7224         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7225         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7226
7227 2011-10-01  Bruno Haible  <bruno@clisp.org>
7228
7229         isfinite: Fix syntax error in configure test.
7230         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7231
7232         isfinite: Fix typo.
7233         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7234         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7235
7236 2011-10-01  Bruno Haible  <bruno@clisp.org>
7237
7238         nonblocking tests: Fix test failure on Linux/IA-64.
7239         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7240         Set to 270000.
7241
7242 2011-10-01  Bruno Haible  <bruno@clisp.org>
7243
7244         mkfifoat tests: Fix a test failure on mingw.
7245         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7246         with error ENOSYS.
7247
7248 2011-09-30  Bruno Haible  <bruno@clisp.org>
7249
7250         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7251         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7252         'long double'. Set REPLACE_ITOLD.
7253         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7254         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7255         * lib/itold.c: New file.
7256         * modules/float (Files): Add lib/itold.c.
7257         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7258         (Makefile.am): Substitute REPLACE_ITOLD.
7259         * modules/math (Depends-on): Add float.
7260         (Makefile.am): Substitute REPLACE_ITOLD.
7261         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7262         * doc/posix-headers/math.texi: Likewise.
7263         * doc/posix-functions/logl.texi: Likewise.
7264
7265 2011-09-30  Bruno Haible  <bruno@clisp.org>
7266
7267         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7268         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7269         Set to 140000.
7270
7271 2011-09-30  Bruno Haible  <bruno@clisp.org>
7272
7273         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7274         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7275         invocation, say "right after AC_PROG_CC_STDC", not "right after
7276         AC_PROG_CC".
7277         Reported by Gary V. Vaughan <gary@gnu.org>.
7278
7279 2011-09-30  Bruno Haible  <bruno@clisp.org>
7280
7281         Centralize C99 requirement.
7282         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7283         * modules/stdarg (configure.ac-early): Invoke it instead of
7284         AC_PROG_CC_STDC.
7285         Reported by Gary V. Vaughan and Paul Eggert.
7286
7287 2011-09-29  Bruno Haible  <bruno@clisp.org>
7288
7289         float: Fix LDBL_MAX value on Linux/PowerPC.
7290         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7291         on Linux/PowerPC.
7292         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7293         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7294         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7295         platform.
7296         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7297
7298 2011-09-29  Bruno Haible  <bruno@clisp.org>
7299
7300         doc: Improve doc about gl_EARLY.
7301         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7302         AC_PROG_CC_STDC invocation.
7303         Reported by Gary V. Vaughan <gary@gnu.org>.
7304
7305 2011-09-28  Bruno Haible  <bruno@clisp.org>
7306
7307         fgetc, fputc, fread, fwrite tests: Fix link error.
7308         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7309         on non-MSVC platforms.
7310         * tests/test-fputc.c (main): Likewise.
7311         * tests/test-fread.c (main): Likewise.
7312         * tests/test-fwrite.c (main): Likewise.
7313         Reported by Jim Meyering.
7314
7315 2011-09-27  Bruno Haible  <bruno@clisp.org>
7316
7317         fputc, fwrite tests: Avoid test failure on MSVC.
7318         * tests/test-fgetc.c: Include msvc-inval.h.
7319         (main): Invoke gl_msvc_inval_ensure_handler.
7320         * tests/test-fputc.c: Include msvc-inval.h.
7321         (main): Invoke gl_msvc_inval_ensure_handler.
7322         * tests/test-fread.c: Include msvc-inval.h.
7323         (main): Invoke gl_msvc_inval_ensure_handler.
7324         * tests/test-fwrite.c: Include msvc-inval.h.
7325         (main): Invoke gl_msvc_inval_ensure_handler.
7326         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7327         * modules/fputc-tests (Depends-on): Likewise.
7328         * modules/fread-tests (Depends-on): Likewise.
7329         * modules/fwrite-tests (Depends-on): Likewise.
7330
7331 2011-09-27  Bruno Haible  <bruno@clisp.org>
7332
7333         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7334         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7335         (raise): Remove older, duplicated declaration.
7336         (_gl_raise_SIGPIPE): New declaration.
7337         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7338         (rpl_raise): Remove function.
7339         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7340         a gnulib-defined SIGPIPE here.
7341         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7342         'sigprocmask' has detected missing signal-blocking and the module
7343         'sigpipe' is enabled.
7344         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7345
7346 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7347
7348         base64-tests: avoid memory leak
7349         * tests/test-base64.c (main): Plug memory leak.
7350
7351         base32: new module
7352         * modules/base32: New module.
7353         * lib/base32.c: New file.
7354         * lib/base32.h: Likewise.
7355         * m4/base32.m4: Likewise.
7356         * modules/base32-tests: New test.
7357         * tests/test-base32.c: Likewise.
7358         * MODULES.html.sh (Misc): Mention it.
7359
7360 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7361
7362         gnulib: use more-standard license notice wording
7363         * gnulib-tool (func_emit_copyright_notice): When emitting a
7364         license notice into a file, use the standard wording as suggested
7365         by the current information for GNU maintainers, except say "file"
7366         rather than "program".  The new wording gives a license version
7367         number, which addresses an issue raised by Glenn Morris in
7368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7369         * m4/onceonly.m4: Use that same wording here, too.
7370
7371         dup2: minor simplification
7372         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7373         as lib/dup2.c no longer uses 'inline'.
7374
7375 2011-09-25  Bruno Haible  <bruno@clisp.org>
7376
7377         strings: Fix compilation error on MSVC.
7378         * lib/strings.in.h: Include <stddef.h> for size_t.
7379
7380 2011-09-25  Bruno Haible  <bruno@clisp.org>
7381
7382         fflush et al.: Document limitation on MSVC.
7383         * doc/posix-functions/fflush.texi: Document possible crash in handling
7384         mode other than DEFAULT_HANDLING.
7385         * doc/posix-functions/fgetc.texi: Likewise.
7386         * doc/posix-functions/fputc.texi: Likewise.
7387         * doc/posix-functions/fread.texi: Likewise.
7388         * doc/posix-functions/fwrite.texi: Likewise.
7389
7390 2011-09-25  Bruno Haible  <bruno@clisp.org>
7391
7392         msvc-inval: Allow three invalid parameter handling modes.
7393         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7394         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7395         macros.
7396         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7397         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7398         SANE_LIBRARY_HANDLING as a no-op.
7399         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7400         <stdlib.h>.
7401         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7402
7403 2011-09-25  Bruno Haible  <bruno@clisp.org>
7404
7405         msvc-inval: Make handler multithread-safe.
7406         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7407         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7408         declarations.
7409         (gl_msvc_inval_current): New declaration.
7410         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7411         Operate on the structure returned by gl_msvc_inval_current().
7412         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7413         Remove varaiables.
7414         (tls_index, tls_initialized): New variables.
7415         (not_per_thread): New variable.
7416         (gl_msvc_inval_current): New function.
7417         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7418         returned by gl_msvc_inval_current().
7419
7420 2011-09-25  Bruno Haible  <bruno@clisp.org>
7421
7422         msvc-inval: Install handler globally.
7423         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7424         !_MSC_VER.
7425         (gl_msvc_invalid_parameter_handler): Remove declaration.
7426         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7427         declarations.
7428         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7429         Install the handler globally, don't uninstall it.
7430         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7431         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7432         currently valid, call RaiseException instead.
7433         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7434         for !_MSC_VER.
7435
7436 2011-09-25  Bruno Haible  <bruno@clisp.org>
7437
7438         strerror_r-posix: Fix for MSVC 9.
7439         * lib/strerror_r.c (local_snprintf): New function.
7440         (snprintf): Define to local_snprintf, not to _snprintf.
7441
7442 2011-09-25  Bruno Haible  <bruno@clisp.org>
7443
7444         ftruncate: Support for MSVC 9.
7445         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7446         (chsize_nothrow): New function.
7447         (chsize): Redefine as a macro.
7448         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7449         * modules/ftruncate (Depends-on): Add msvc-inval.
7450
7451 2011-09-25  Bruno Haible  <bruno@clisp.org>
7452
7453         New module 'fstat'.
7454         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7455         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7456         * lib/fchdir.c (rpl_fstat): Remove function.
7457         * m4/fstat.m4: New file.
7458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7459         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7460         declared.
7461         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7462         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7463         * modules/fstat: New file.
7464         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7465         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7466         is set.
7467         * doc/posix-functions/fstat.texi: Mention the new module and the
7468         problem on MSVC.
7469         * NEWS: Mention the change.
7470         * modules/acl (Depends-on): Add fstat.
7471         * modules/chdir-safer (Depends-on): Likewise.
7472         * modules/chown (Depends-on): Likewise.
7473         * modules/copy-file (Depends-on): Likewise.
7474         * modules/fchdir (Depends-on): Likewise.
7475         * modules/fdopendir (Depends-on): Likewise.
7476         * modules/fopen (Depends-on): Likewise.
7477         * modules/fts (Depends-on): Likewise.
7478         * modules/getcwd (Depends-on): Likewise.
7479         * modules/isapipe (Depends-on): Likewise.
7480         * modules/linkat (Depends-on): Likewise.
7481         * modules/lseek (Depends-on): Likewise.
7482         * modules/mkdir-p (Depends-on): Likewise.
7483         * modules/open (Depends-on): Likewise.
7484         * modules/openat (Depends-on): Likewise.
7485         * modules/read-file (Depends-on): Likewise.
7486         * modules/renameat (Depends-on): Likewise.
7487         * modules/utimens (Depends-on): Likewise.
7488
7489 2011-09-25  Bruno Haible  <bruno@clisp.org>
7490
7491         linkat: Fix compilation on MSVC 9.
7492         * lib/linkat.c: Don't include <stdint.h>.
7493
7494 2011-09-25  Bruno Haible  <bruno@clisp.org>
7495
7496         fclose: Support for MSVC 9.
7497         * lib/fclose.c: Include msvc-inval.h.
7498         (fclose_nothrow): New function.
7499         (rpl_fclose): Use it.
7500         * modules/fclose (Depends-on): Add msvc-inval.
7501         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7502
7503 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         dup2: minor simplifications
7506         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7507         that it's a performance win.
7508         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7509         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7510
7511 2011-09-24  Jim Meyering  <meyering@redhat.com>
7512
7513         test-futimens: avoid a warning from gcc -Wshadow
7514         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7515         to avoid a shadowing warning.
7516
7517 2011-09-24  Bruno Haible  <bruno@clisp.org>
7518
7519         fdopen: Support for MSVC 9.
7520         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7521         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7522         * lib/fdopen.c: Include msvc-inval.h.
7523         (fdopen_nothrow): New function.
7524         (rpl_fdopen): Use it.
7525         * modules/fdopen (Depends-on): Add msvc-inval.
7526         * modules/fclose-tests (Depends-on): Add fdopen.
7527         * modules/fflush-tests (Depends-on): Likewise.
7528         * modules/fgetc-tests (Depends-on): Likewise.
7529         * modules/fputc-tests (Depends-on): Likewise.
7530         * modules/fread-tests (Depends-on): Likewise.
7531         * modules/freopen-tests (Depends-on): Likewise.
7532         * modules/fseeko-tests (Depends-on): Likewise.
7533         * modules/ftello-tests (Depends-on): Likewise.
7534         * modules/fwrite-tests  (Depends-on): Likewise.
7535         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7536
7537 2011-09-24  Bruno Haible  <bruno@clisp.org>
7538
7539         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7540         * modules/fgetc-tests (Depends-on): Add unistd.
7541         * modules/fputc-tests (Depends-on): Likewise.
7542         * modules/fread-tests (Depends-on): Likewise.
7543         * modules/fwrite-tests (Depends-on): Likewise.
7544
7545 2011-09-24  Bruno Haible  <bruno@clisp.org>
7546
7547         dup: Simplify autoconf test.
7548         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7549         on gl_MSVC_INVAL's result.
7550
7551 2011-09-24  Bruno Haible  <bruno@clisp.org>
7552
7553         Tests for function fwrite().
7554         * modules/fwrite-tests: New file.
7555         * tests/test-fwrite.c: New file.
7556         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7557
7558         Tests for function fread().
7559         * modules/fread-tests: New file.
7560         * tests/test-fread.c: New file.
7561         * modules/stdio-tests (Depends-on): Add fread-tests.
7562
7563         Activate fputc tests.
7564         * modules/stdio-tests (Depends-on): Add fputc-tests.
7565
7566         Enhance fgetc, fputc tests.
7567         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7568         * tests/test-fputc.c (main): Likewise.
7569
7570 2011-09-24  Bruno Haible  <bruno@clisp.org>
7571
7572         write: Support for MSVC 9.
7573         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7574         is not 1.
7575         * lib/write.c (write_nothrow): New function.
7576         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7577         not 1. Use write_nothrow.
7578         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7579         invalid parameter handler.
7580         (gl_PREREQ_WRITE): New macro.
7581         * modules/write (Depends-on): Add msvc-inval.
7582         (configure.ac): Invoke gl_PREREQ_WRITE.
7583         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7584
7585 2011-09-24  Bruno Haible  <bruno@clisp.org>
7586
7587         read: Fix last commit.
7588         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7589
7590 2011-09-24  Bruno Haible  <bruno@clisp.org>
7591
7592         dup2: Fix last commit.
7593         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7594         (rpl_dup2): Disable fcntl workaround on native Windows.
7595
7596         sigprocmask: Make code safer.
7597         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7598         section that changes macro definitions for this compilation unit.
7599
7600 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         dup2: clarify by coalescing Windows-specific material
7603         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7604         "msvc-nothrow.h"' to the Windows-specific section, so that the
7605         Emacs source need not contain these include files.
7606         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7607         Windows-specific fixes into this function rather than just the
7608         nothrow fix, as this shortens and clarifies the code.  Always
7609         define as a function, as that's a bit cleaner than having it be
7610         sometimes a function and sometimes a macro.
7611         (rpl_dup2): Move the Windows-specific stuff out of here and into
7612         ms_windows_dup2.  Don't protect the Haiku-related fix with
7613         "#if !defined __linux__", as the same code also works around
7614         a Linux kernel bug, and it doesn't add any system calls on any
7615         platform.  Add comment about FreeBSD 6.1.
7616
7617         sigprocmask: move #include directive
7618         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7619         Windows-specific section, so that the Emacs source need not
7620         contain msvc-inval.h.
7621
7622 2011-09-23  Bruno Haible  <bruno@clisp.org>
7623
7624         read: Support for MSVC 9.
7625         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7626         is not 1.
7627         * lib/read.c (read_nothrow): New function.
7628         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7629         read_nothrow.
7630         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7631         invalid parameter handler.
7632         (gl_PREREQ_READ): New macro.
7633         * modules/read (Depends-on): Add msvc-inval.
7634         (configure.ac): Invoke gl_PREREQ_READ.
7635         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7636
7637 2011-09-23  Bruno Haible  <bruno@clisp.org>
7638
7639         close: Support for MSVC 9.
7640         * lib/close.c: Include <errno.h>, msvc-inval.h.
7641         (close_nothrow): New function.
7642         (rpl_close): Use it.
7643         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7644         invalid parameter handler.
7645         * modules/close (Depends-on): Add msvc-inval.
7646         * modules/dup2-tests (Depends-on): Add close.
7647         * modules/dup3-tests (Depends-on): Likewise.
7648         * modules/fcntl-tests (Depends-on): Likewise.
7649         * modules/spawn-pipe-tests (Depends-on): Likewise.
7650         * modules/unistd-safer-tests (Depends-on): Likewise.
7651         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7652
7653 2011-09-23  Bruno Haible  <bruno@clisp.org>
7654
7655         New module 'dup'.
7656         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7657         Allow replacement.
7658         * lib/dup.c: New file.
7659         * lib/fchdir.c (rpl_dup): Remove function.
7660         * m4/dup.m4: New file.
7661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7662         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7663         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7664         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7665         * modules/dup: New file.
7666         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7667         'dup' module is in use.
7668         * modules/fdopendir (Depends-on): Add dup.
7669         * modules/fdutimensat-tests (Depends-on): Likewise.
7670         * modules/fts (Depends-on): Likewise.
7671         * modules/futimens-tests (Depends-on): Likewise.
7672         * modules/posix_spawnp-tests (Depends-on): Likewise.
7673         * modules/unistd-safer-tests (Depends-on): Likewise.
7674         * modules/utimens-tests (Depends-on): Likewise.
7675         * doc/posix-functions/dup.texi: Mention the new module and the problem
7676         on MSVC.
7677
7678 2011-09-23  Bruno Haible  <bruno@clisp.org>
7679
7680         getdtablesize: Support for MSVC 9.
7681         * lib/getdtablesize.c: Include msvc-inval.h.
7682         (_setmaxstdio_nothrow): New function.
7683         (_setmaxstdio): Redefine it.
7684         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7685         * modules/getdtablesize (Depends-on): Add msvc-inval.
7686         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7687
7688 2011-09-23  Bruno Haible  <bruno@clisp.org>
7689
7690         signal-h: Rename from signal.
7691         * modules/signal-h: Renamed from modules/signal.
7692         * modules/pthread_sigmask (Depends-on): Update.
7693         * modules/raise (Depends-on): Likewise.
7694         * modules/sigaction (Depends-on): Likewise.
7695         * modules/sigpipe (Depends-on): Likewise.
7696         * modules/sigprocmask (Depends-on): Likewise.
7697         * modules/sys_select (Depends-on): Likewise.
7698         * modules/signal-h-tests: Renamed from modules/signal-tests.
7699         (Files, Depends-on, Makefile.am): Update.
7700         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7701         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7702         (Files, Makefile.am): Update.
7703         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7704         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7705         * modules/signal: New placeholder file.
7706         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7707         * doc/posix-headers/signal.texi: Update.
7708         * NEWS: Mention the change.
7709
7710 2011-09-23  Bruno Haible  <bruno@clisp.org>
7711
7712         sigprocmask: Avoid crashes through signal() on MSVC 9.
7713         * lib/sigprocmask.c: Include msvc-inval.h.
7714         (signal_nothrow): New function.
7715         (signal): Redefine it.
7716         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7717         * modules/sigprocmask (Depends-on): Add msvc-inval.
7718         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7719
7720 2011-09-23  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'raise'.
7723         * modules/raise-tests: New file.
7724         * tests/test-raise.c: New file.
7725
7726         raise: Support for MSVC.
7727         * lib/signal.in.h (raise): New declaration.
7728         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7729         for native Windows platforms.
7730         * m4/raise.m4: New file.
7731         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7732         HAVE_RAISE, REPLACE_RAISE.
7733         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7734         REPLACE_RAISE.
7735         * modules/raise (Status, Notice): Remove fields.
7736         (Files): Add m4/raise.m4.
7737         (Depends-on): Add signal, msvc-inval.
7738         (configure.ac): Use the common idioms.
7739         (Maintainer): Add me.
7740         * tests/test-signal-c++.cc: Check the signature of raise.
7741         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7742
7743 2011-09-23  Bruno Haible  <bruno@clisp.org>
7744
7745         pipe2: Fix compilation on pre-C99 compilers.
7746         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7747
7748 2011-09-23  Bruno Haible  <bruno@clisp.org>
7749
7750         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7751         * lib/msvc-nothrow.h: New file.
7752         * lib/msvc-nothrow.c: New file.
7753         * m4/msvc-nothrow.m4: New file.
7754         * modules/msvc-nothrow: New file.
7755         * lib/dup2.c: Include msvc-nothrow.h.
7756         (rpl_dup2): No need to protect _get_osfhandle call here.
7757         * lib/accept4.c: Include msvc-nothrow.h.
7758         * lib/error.c: Likewise.
7759         * lib/fcntl.c: Likewise.
7760         * lib/lseek.c: Likewise.
7761         * lib/nonblocking.c: Likewise.
7762         * lib/poll.c: Likewise.
7763         * lib/read.c: Likewise.
7764         * lib/select.c: Likewise.
7765         * lib/sockets.h: Likewise.
7766         * lib/sockets.c: Likewise.
7767         * lib/stdio-read.c: Likewise.
7768         * lib/stdio-write.c: Likewise.
7769         * lib/write.c: Likewise.
7770         * lib/w32sock.h: Likewise.
7771         * lib/w32spawn.h: Likewise.
7772         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7773         * lib/fsync.c: Likewise.
7774         * lib/isapipe.c: Likewise.
7775         * modules/dup2 (Depends-on): Add msvc-nothrow.
7776         * modules/accept4 (Depends-on): Likewise.
7777         * modules/error (Depends-on): Likewise.
7778         * modules/fcntl (Depends-on): Likewise.
7779         * modules/lseek (Depends-on): Likewise.
7780         * modules/nonblocking (Depends-on): Likewise.
7781         * modules/poll (Depends-on): Likewise.
7782         * modules/read (Depends-on): Likewise.
7783         * modules/select (Depends-on): Likewise.
7784         * modules/sockets (Depends-on): Likewise.
7785         * modules/sigpipe (Depends-on): Likewise.
7786         * modules/write (Depends-on): Likewise.
7787         * modules/accept (Depends-on): Likewise.
7788         * modules/bind (Depends-on): Likewise.
7789         * modules/connect (Depends-on): Likewise.
7790         * modules/gethostname (Depends-on): Likewise.
7791         * modules/getpeername (Depends-on): Likewise.
7792         * modules/getsockname (Depends-on): Likewise.
7793         * modules/getsockopt (Depends-on): Likewise.
7794         * modules/ioctl (Depends-on): Likewise.
7795         * modules/listen (Depends-on): Likewise.
7796         * modules/recv (Depends-on): Likewise.
7797         * modules/recvfrom (Depends-on): Likewise.
7798         * modules/send (Depends-on): Likewise.
7799         * modules/sendto (Depends-on): Likewise.
7800         * modules/setsockopt (Depends-on): Likewise.
7801         * modules/shutdown (Depends-on): Likewise.
7802         * modules/socket (Depends-on): Likewise.
7803         * modules/execute (Depends-on): Likewise.
7804         * modules/spawn-pipe (Depends-on): Likewise.
7805         * modules/flock (Depends-on): Likewise.
7806         * modules/fsync (Depends-on): Likewise.
7807         * modules/isapipe (Depends-on): Likewise.
7808         * tests/test-cloexec.c: Include msvc-nothrow.h.
7809         * tests/test-dup-safer.c: Likewise.
7810         * tests/test-dup2.c: Likewise.
7811         * tests/test-dup3.c: Likewise.
7812         * tests/test-fcntl.c: Likewise.
7813         * tests/test-pipe.c: Likewise.
7814         * tests/test-pipe2.c: Likewise.
7815         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7816         * modules/unistd-safer-tests (Depends-on): Likewise.
7817         * modules/dup2-tests (Depends-on): Likewise.
7818         * modules/dup3-tests (Depends-on): Likewise.
7819         * modules/fcntl-tests (Depends-on): Likewise.
7820         * modules/pipe-posix-tests (Depends-on): Likewise.
7821         * modules/pipe2-tests (Depends-on): Likewise.
7822
7823 2011-09-23  Bruno Haible  <bruno@clisp.org>
7824
7825         dup2: Make code more maintainable.
7826         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7827         (rpl_dup2): Use it.
7828         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7829         * modules/dup2 (configure.ac): Invoke it.
7830         Reported by Paul Eggert.
7831
7832 2011-09-23  Bruno Haible  <bruno@clisp.org>
7833
7834         msvc-inval: Fix compilation error.
7835         * lib/msvc-inval.h: Include <excpt.h>.
7836
7837 2011-09-23  Bruno Haible  <bruno@clisp.org>
7838
7839         mkdir: Tweak for MSVC 9.
7840         * lib/sys_stat.in.h: Update comments.
7841         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7842
7843         Tests for module 'chdir'.
7844         * modules/chdir-tests: New file.
7845         * tests/test-chdir.c: New file.
7846
7847         New module 'chdir'.
7848         * modules/chdir: New file.
7849         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7850         (chdir): New declaration.
7851         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7852         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7853         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7854         * tests/test-unistd-c++.cc: Check signature of chdir.
7855         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7856         * modules/chdir-long (Depends-on): Add chdir.
7857         * modules/fchdir (Depends-on): Likewise.
7858         * modules/rename (Depends-on): Likewise.
7859         * modules/savewd (Depends-on): Likewise.
7860
7861         rmdir: Support for mingw, MSVC 9.
7862         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7863         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7864
7865         getcwd: Tweak for MSVC 9.
7866         * lib/unistd.in.h: Update comments.
7867         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7868
7869 2011-09-22  Bruno Haible  <bruno@clisp.org>
7870
7871         strerror_r-posix: Avoid a link error on MSVC.
7872         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7873         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7874
7875 2011-09-22  Bruno Haible  <bruno@clisp.org>
7876
7877         select: Avoid link errors on MSVC.
7878         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7879         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7880         * modules/pselect (Link): Likewise.
7881         * NEWS: Mention the change.
7882         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7883         test-select-stdin against $(LIB_SELECT).
7884         * modules/pselect-tests (Makefile.am): Link test-pselect against
7885         $(LIB_SELECT).
7886
7887 2011-09-22  Bruno Haible  <bruno@clisp.org>
7888
7889         select: Avoid compilation error on MSVC.
7890         * lib/select.c: Don't include <stdbool.h>.
7891
7892 2011-09-21  Bruno Haible  <bruno@clisp.org>
7893
7894         Consolidate all uses of PATH_MAX in *.m4 files.
7895         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7896         macros.
7897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7898         and gl_PATHMAX_SNIPPET.
7899         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7901         * modules/chdir-long (Files): Add m4/pathmax.m4.
7902         * modules/getcwd (Files): Likewise.
7903
7904 2011-09-21  Bruno Haible  <bruno@clisp.org>
7905
7906         ftruncate: Un-deprecate, concentrate on Win32 support.
7907         * modules/ftruncate (Status, Notice): Remove sections.
7908         (Depends-on): Add largefile.
7909         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7910         non-mingw platforms.
7911         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7912         include <io.h>.
7913         * modules/perror-tests (Depends-on): Add ftruncate.
7914         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7915         'ftruncate' module.
7916
7917 2011-09-21  Bruno Haible  <bruno@clisp.org>
7918
7919         Add dependencies to new dirent related modules.
7920         * modules/opendir (Depends-on): Add closedir.
7921         * modules/getcwd (Depends-on): Add opendir, closedir.
7922         * modules/dirent-safer-tests (Depends-on): Likewise.
7923         * modules/fdopendir-tests (Depends-on): Likewise.
7924         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7925         * modules/renameat-tests (Depends-on): Likewise.
7926
7927 2011-09-21  Bruno Haible  <bruno@clisp.org>
7928
7929         opendir: Avoid compilation error on mingw.
7930         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7931         * modules/opendir (Depends-on): Add unistd.
7932
7933 2011-09-21  Bruno Haible  <bruno@clisp.org>
7934
7935         ftruncate tests: Avoid a test failure on mingw.
7936         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7937
7938 2011-09-21  Bruno Haible  <bruno@clisp.org>
7939
7940         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7941         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7942         native Windows.
7943
7944 2011-09-21  Bruno Haible  <bruno@clisp.org>
7945
7946         New module 'fdopen'.
7947         * lib/stdio.in.h (fdopen): New declaration.
7948         * lib/fdopen.c: New file.
7949         * m4/fdopen.m4: New file.
7950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7951         REPLACE_FDOPEN.
7952         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7953         REPLACE_FDOPEN.
7954         * modules/fdopen: New file.
7955         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7956         * tests/test-stdio-c++.cc: Check signature of fdopen.
7957         * doc/posix-functions/fdopen.texi: Mention the new module.
7958
7959 2011-09-21  Bruno Haible  <bruno@clisp.org>
7960
7961         unlockpt tests: Avoid test failure on NetBSD 5.1.
7962         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7963         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7964
7965 2011-09-21  Bruno Haible  <bruno@clisp.org>
7966
7967         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7968         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7969         * tests/test-getlogin_r.c (main): Likewise.
7970
7971 2011-09-20  Bruno Haible  <bruno@clisp.org>
7972
7973         time tests: Don't require pid_t.
7974         * doc/posix-headers/time.texi: Revert last change.
7975         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7976         * tests/test-time.c: Comment out the check for pid_t.
7977
7978 2011-09-20  Bruno Haible  <bruno@clisp.org>
7979
7980         fsync tests: Avoid a test failure on mingw.
7981         * tests/test-fsync.c (main): Allow a failure with EIO.
7982
7983 2011-09-20  Bruno Haible  <bruno@clisp.org>
7984
7985         euidaccess: Update comments.
7986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7987
7988 2011-09-20  Bruno Haible  <bruno@clisp.org>
7989
7990         Ensure EBADF returns for socket functions on mingw.
7991         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7992         descriptor is invalid.
7993         * lib/bind.c (rpl_bind): Likewise.
7994         * lib/connect.c (rpl_connect): Likewise.
7995         * lib/getpeername.c (rpl_getpeername): Likewise.
7996         * lib/getsockname.c (rpl_getsockname): Likewise.
7997         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7998         * lib/listen.c (rpl_listen): Likewise.
7999         * lib/recv.c (rpl_recv): Likewise.
8000         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8001         * lib/send.c (rpl_send): Likewise.
8002         * lib/sendto.c (rpl_sendto): Likewise.
8003         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8004         * lib/shutdown.c (rpl_shutdown): Likewise.
8005
8006 2011-09-20  Bruno Haible  <bruno@clisp.org>
8007
8008         select tests: EBADF tests.
8009         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8010         test_bad_fd): New functions.
8011         (test_function): Invoke also test_bad_fd.
8012
8013 2011-09-20  Bruno Haible  <bruno@clisp.org>
8014
8015         Tests for module 'posix_spawn_file_actions_addopen.
8016         * modules/posix_spawn_file_actions_addopen-tests: New file.
8017         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8018
8019         Tests for module 'posix_spawn_file_actions_adddup2'.
8020         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8021         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8022
8023         Tests for module 'posix_spawn_file_actions_addclose'.
8024         * modules/posix_spawn_file_actions_addclose-tests: New file.
8025         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8026
8027 2011-09-20  Bruno Haible  <bruno@clisp.org>
8028
8029         Tests for module 'unlockpt'.
8030         * modules/unlockpt-tests: New file.
8031         * tests/test-unlockpt.c: New file.
8032         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8033
8034         Tests for module 'grantpt'.
8035         * modules/grantpt-tests: New file.
8036         * tests/test-grantpt.c: New file.
8037         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8038
8039 2011-09-20  Bruno Haible  <bruno@clisp.org>
8040
8041         freopen tests: EBADF tests.
8042         * tests/test-freopen.c: Include errno.h, unistd.h.
8043         (main): Add tests for EBADF, commented out for the moment.
8044
8045         fclose tests: EBADF tests.
8046         * tests/test-fclose.c (main): Add tests for EBADF.
8047
8048         fflush tests: EBADF tests.
8049         * tests/test-fflush.c: Include errno.h, macros.h.
8050         (main): Add tests for EBADF.
8051
8052         ftello tests: EBADF tests.
8053         * tests/test-ftello4.sh: New file.
8054         * tests/test-ftello4.c: New file.
8055         * modules/ftello-tests (Files): Add them.
8056         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8057
8058         fseeko tests: EBADF tests.
8059         * tests/test-fseeko4.sh: New file.
8060         * tests/test-fseeko4.c: New file.
8061         * modules/fseeko-tests (Files): Add them.
8062         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8063
8064         Tests for function fputc().
8065         * modules/fputc-tests: New file.
8066         * tests/test-fputc.c: New file.
8067         * modules/stdio-tests (Depends-on): Add fputc-tests.
8068
8069         Tests for function fgetc().
8070         * modules/fgetc-tests: New file.
8071         * tests/test-fgetc.c: New file.
8072         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8073
8074         Tests for function fdopen().
8075         * modules/fdopen-tests: New file.
8076         * tests/test-fdopen.c: New file.
8077         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8078
8079         Tests for module 'vdprintf'.
8080         * modules/vdprintf-tests: New file.
8081         * tests/test-vdprintf.c: New file.
8082
8083         Tests for module 'dprintf'.
8084         * modules/dprintf-tests: New file.
8085         * tests/test-dprintf.c: New file.
8086
8087 2011-09-20  Bruno Haible  <bruno@clisp.org>
8088
8089         Tests for module 'ioctl'.
8090         * modules/ioctl-tests: New file.
8091         * tests/test-ioctl.c: New file.
8092
8093 2011-09-20  Bruno Haible  <bruno@clisp.org>
8094
8095         fcntl tests: EBADF tests.
8096         * tests/test-fcntl.c (main): Add more tests for EBADF.
8097
8098 2011-09-20  Bruno Haible  <bruno@clisp.org>
8099
8100         utimensat tests: EBADF tests.
8101         * tests/test-utimensat.c (main): Add tests for EBADF.
8102
8103         renameat tests: EBADF tests.
8104         * tests/test-renameat.c (main): Add tests for EBADF.
8105
8106         mkfifoat tests: EBADF tests.
8107         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8108
8109         readlinkat tests: EBADF tests.
8110         * tests/test-readlinkat.c (main): Add tests for EBADF.
8111
8112         symlinkat tests: EBADF tests.
8113         * tests/test-symlinkat.c (main): Add tests for EBADF.
8114
8115         linkat tests: EBADF tests.
8116         * tests/test-linkat.c (main): Add tests for EBADF.
8117
8118         Tests for module 'faccessat'.
8119         * modules/faccessat-tests: New file.
8120         * tests/test-faccessat.c: New file.
8121
8122         fdopendir tests: EBADF tests.
8123         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8124
8125         openat tests: EBADF tests.
8126         * tests/test-fchownat.c (main): Add tests for EBADF.
8127         * tests/test-fstatat.c (main): Likewise.
8128         * tests/test-mkdirat.c (main): Likewise.
8129         * tests/test-openat.c (main): Likewise.
8130         * tests/test-unlinkat.c (main): Likewise.
8131         * tests/test-fchmodat.c: New file.
8132         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8133         (Makefile.am): Also run 'test-fchmodat'.
8134
8135 2011-09-20  Bruno Haible  <bruno@clisp.org>
8136
8137         utimens, futimens, fdutimensat tests: EBADF tests.
8138         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8139
8140         Tests for function fstat().
8141         * modules/fstat-tests: New file.
8142         * tests/test-fstat.c: New file.
8143         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8144
8145 2011-09-20  Bruno Haible  <bruno@clisp.org>
8146
8147         test-ttyname_r tests: EBADF tests.
8148         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8149
8150         Tests for module 'isatty'.
8151         * modules/isatty-tests: New file.
8152         * tests/test-isatty.c: New file.
8153
8154         Tests for module 'write'.
8155         * modules/write-tests: New file.
8156         * tests/test-write.c: New file.
8157
8158         Tests for module 'read'.
8159         * modules/read-tests: New file.
8160         * tests/test-read.c: New file.
8161
8162         pwrite tests: EBADF tests.
8163         * tests/test-pwrite.c (main): Add tests for EBADF.
8164
8165         pread tests: EBADF tests.
8166         * tests/test-pread.c (main): Add tests for EBADF.
8167
8168         lseek tests: EBADF tests.
8169         * tests/test-lseek.c (main): Add more tests for EBADF.
8170
8171         Tests for module 'ftruncate'.
8172         * modules/ftruncate-tests: New file.
8173         * tests/test-ftruncate.sh: New file.
8174         * tests/test-ftruncate.c: New file.
8175
8176         fsync tests: EBADF tests.
8177         * tests/test-fsync.c (main): Add more tests for EBADF.
8178
8179         fdatasync tests: EBADF tests.
8180         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8181
8182         Tests for module 'fchown'.
8183         * modules/fchown-tests: New file.
8184         * tests/test-fchown.c: New file.
8185
8186         Tests for module 'fchmod'.
8187         * modules/fchmod-tests: New file.
8188         * tests/test-fchmod.c: New file.
8189
8190         fchdir tests: EBADF tests.
8191         * tests/test-fchdir.c (main): Add more tests for EBADF.
8192
8193         dup2 tests: EBADF tests.
8194         * tests/test-dup2.c (main): Add more tests for EBADF.
8195
8196         Tests for module 'dup'.
8197         * modules/dup-tests: New file.
8198         * tests/test-dup.c: New file.
8199
8200         Tests for module 'close'.
8201         * modules/close-tests: New file.
8202         * tests/test-close.c: New file.
8203
8204 2011-09-20  Bruno Haible  <bruno@clisp.org>
8205
8206         Tests for module 'shutdown'.
8207         * modules/shutdown-tests: New file.
8208         * tests/test-shutdown.c: New file.
8209
8210         Tests for module 'setsockopt'.
8211         * modules/setsockopt-tests: New file.
8212         * tests/test-setsockopt.c: New file.
8213
8214         Tests for module 'sendto'.
8215         * modules/sendto-tests: New file.
8216         * tests/test-sendto.c: New file.
8217
8218         Tests for module 'send'.
8219         * modules/send-tests: New file.
8220         * tests/test-send.c: New file.
8221
8222         Tests for module 'recvfrom'.
8223         * modules/recvfrom-tests: New file.
8224         * tests/test-recvfrom.c: New file.
8225
8226         Tests for module 'recv'.
8227         * modules/recv-tests: New file.
8228         * tests/test-recv.c: New file.
8229
8230         Tests for module 'listen'.
8231         * modules/listen-tests: New file.
8232         * tests/test-listen.c: New file.
8233
8234         Tests for module 'getsockopt'.
8235         * modules/getsockopt-tests: New file.
8236         * tests/test-getsockopt.c: New file.
8237
8238         Tests for module 'getsockname'.
8239         * modules/getsockname-tests: New file.
8240         * tests/test-getsockname.c: New file.
8241
8242         Tests for module 'getpeername'.
8243         * modules/getpeername-tests: New file.
8244         * tests/test-getpeername.c: New file.
8245
8246         Tests for module 'connect'.
8247         * modules/connect-tests: New file.
8248         * tests/test-connect.c: New file.
8249
8250         Tests for module 'bind'.
8251         * modules/bind-tests: New file.
8252         * tests/test-bind.c: New file.
8253
8254         accept4 tests: Fix for native Windows.
8255         * tests/test-accept4.c: Include sockets.h.
8256         (main): Invoke gl_sockets_startup.
8257         * modules/accept4-tests (Depends-on): Add sockets.
8258
8259         accept tests: Fix for native Windows.
8260         * tests/test-accept.c: Include sockets.h.
8261         (main): Invoke gl_sockets_startup.
8262         * modules/accept-tests (Depends-on): Add sockets.
8263
8264 2011-09-19  Bruno Haible  <bruno@clisp.org>
8265
8266         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8267         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8268         do...while(0).
8269         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8270         Suggested by Paul Eggert.
8271
8272 2011-09-19  Bruno Haible  <bruno@clisp.org>
8273
8274         sched: Ensure pid_t is defined.
8275         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8276         not define pid_t.
8277         * lib/sched.in.h: Include <sys/types.h>.
8278         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8280
8281 2011-09-19  Bruno Haible  <bruno@clisp.org>
8282
8283         msvc-inval: Ensure the entire expansion is a single statement.
8284         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8285         of braces.
8286
8287 2011-09-19  Jim Meyering  <meyering@redhat.com>
8288
8289         tests: use printf, not echo in init.sh's warn_ function
8290         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8291         misbehave when given strings containing a backslash or starting
8292         with e.g., -n.  James Youngman suggested setting IFS.
8293
8294 2011-09-19  Eric Blake  <eblake@redhat.com>
8295
8296         futimens: enhance test
8297         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8298         closed non-negative fd.
8299
8300         date: accept 'hence' as opposite of 'ago'
8301         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8302         * tests/test-parse-datetime.c (main): Enhance test.
8303         Suggested by Jesse Wilson.
8304
8305 2011-09-19  Jim Meyering  <meyering@redhat.com>
8306
8307         getcwd: don't fail in a deep directory on a system without openat
8308         Before this change, getcwd would fail when called from a directory
8309         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8310         the non-openat implementation used "..", "../..", "../../..", etc.
8311         to access ancestor directories.  With too many, that string would
8312         be longer than PATH_MAX.
8313         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8314         using gnulib's openat replacement.
8315         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8316         we're using the replacement function.
8317
8318 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8319
8320         maint.mk: avoid warnings from perl about missing files
8321         * top/maint.mk (def_sym_regex): Ignore files listed in
8322         $(gl_other_headers_) that do not exist, say because a project
8323         does not use a corresponding module.
8324
8325 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8326
8327         stat: use pathmax.h only if needed
8328         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8329         This is better for Emacs, which does not have a mingw port and
8330         therefore can avoid the pathmax module.
8331
8332         utimens: remove dependency on dup2
8333         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8334         to work around the Linux kernel bug.
8335         * modules/utimens (Depends-on): Remove dup2.
8336
8337 2011-09-18  Bruno Haible  <bruno@clisp.org>
8338
8339         inet_ntop, inet_pton: Look for it also in libresolv.
8340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8341         libnsl, search for it in libresolv.
8342         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8343         Needed on Solaris 7.
8344
8345 2011-09-18  Bruno Haible  <bruno@clisp.org>
8346
8347         accept, accept4 tests: Avoid link error on Solaris.
8348         * modules/accept-tests (Makefile.am): Link test-accept against
8349         $(LIBSOCKET).
8350         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8351         $(LIBSOCKET).
8352
8353         accept4: Avoid link error on Solaris.
8354         * modules/accept4 (Link): New section.
8355
8356         socket functions: Avoid link errors on Solaris.
8357         * modules/accept (Depends-on): Add socketlib.
8358         (Link): New section.
8359         * modules/bind (Depends-on): Add socketlib.
8360         (Link): New section.
8361         * modules/connect (Depends-on): Add socketlib.
8362         (Link): New section.
8363         * modules/getpeername (Depends-on): Add socketlib.
8364         (Link): New section.
8365         * modules/getsockname (Depends-on): Add socketlib.
8366         (Link): New section.
8367         * modules/getsockopt (Depends-on): Add socketlib.
8368         (Link): New section.
8369         * modules/listen (Depends-on): Add socketlib.
8370         (Link): New section.
8371         * modules/recv (Depends-on): Add socketlib.
8372         (Link): New section.
8373         * modules/recvfrom (Depends-on): Add socketlib.
8374         (Link): New section.
8375         * modules/send (Depends-on): Add socketlib.
8376         (Link): New section.
8377         * modules/sendto (Depends-on): Add socketlib.
8378         (Link): New section.
8379         * modules/setsockopt (Depends-on): Add socketlib.
8380         (Link): New section.
8381         * modules/shutdown (Depends-on): Add socketlib.
8382         (Link): New section.
8383         * modules/socket (Depends-on): Add socketlib.
8384         (Link): New section.
8385
8386 2011-09-18  Bruno Haible  <bruno@clisp.org>
8387
8388         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8389         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8390         than 5 seconds.
8391         * modules/ptsname-tests (configure.ac): Test for alarm.
8392
8393 2011-09-18  Bruno Haible  <bruno@clisp.org>
8394
8395         posix_spawn_file_actions_add*: Fix module dependencies.
8396         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8397         posix_spawn_file_actions_init.
8398         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8399         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8400
8401 2011-09-18  Bruno Haible  <bruno@clisp.org>
8402
8403         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8404         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8405         * tests/test-renameat.c (main): Likewise.
8406
8407 2011-09-18  Bruno Haible  <bruno@clisp.org>
8408
8409         Tests for module 'accept4'.
8410         * modules/accept4-tests: New file.
8411         * tests/test-accept4.c: New file.
8412
8413 2011-09-18  Bruno Haible  <bruno@clisp.org>
8414
8415         Tests for module 'accept'.
8416         * modules/accept-tests: New file.
8417         * tests/test-accept.c: New file.
8418
8419 2011-09-18  Bruno Haible  <bruno@clisp.org>
8420
8421         dup2: Support for MSVC.
8422         * lib/dup2.c: Include msvc-inval.h.
8423         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8424         _get_osfhandle calls.
8425         * modules/dup2 (Depends-on): Add msvc-inval.
8426         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8427
8428         New module 'msvc-inval'.
8429         * lib/msvc-inval.h: New file.
8430         * lib/msvc-inval.c: New file.
8431         * m4/msvc-inval.m4: New file.
8432         * modules/msvc-inval: New file.
8433
8434 2011-09-17  Bruno Haible  <bruno@clisp.org>
8435
8436         Tests for module 'pclose'.
8437         * modules/pclose-tests: New file.
8438
8439         New module 'pclose'.
8440         * lib/stdio.in.h (pclose): New declaration.
8441         * lib/pclose.c: New file.
8442         * m4/pclose.m4: New file.
8443         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8444         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8445         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8446         * modules/pclose: New file.
8447         * modules/popen-tests (Depends-on): Add pclose.
8448         * modules/popen-safer-tests (Depends-on): Likewise.
8449         * doc/posix-functions/pclose.texi: Mention the new module.
8450
8451 2011-09-17  Bruno Haible  <bruno@clisp.org>
8452
8453         popen: Support for MSVC.
8454         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8455         * lib/popen.c (popen): Provide alternate definition for native Windows.
8456         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8458         * modules/popen (Depends-on, configure.ac): Update condition.
8459         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8460         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8461         fixed.
8462
8463 2011-09-17  Bruno Haible  <bruno@clisp.org>
8464
8465         isnanl, isnand, isnanf: Work around MSVC bug.
8466         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8467
8468 2011-09-17  Bruno Haible  <bruno@clisp.org>
8469
8470         sys_socket tests: Fix recent mistake.
8471         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8472
8473 2011-09-17  Bruno Haible  <bruno@clisp.org>
8474
8475         putenv: Support for MSVC.
8476         * modules/putenv (Depends-on): Add environ.
8477         * lib/putenv.c (environ): Disable declaration.
8478         * lib/unistd.in.h: Update comment.
8479
8480 2011-09-17  Bruno Haible  <bruno@clisp.org>
8481
8482         math: Avoid macro redefinition warnings on MSVC.
8483         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8484         Undefine before redefining.
8485
8486 2011-09-17  Bruno Haible  <bruno@clisp.org>
8487
8488         doc: Mention functions which are declared as macros.
8489         * doc/posix-functions/*[fl].texi: Mention that some functions are
8490         defined as macros with arguments only.
8491
8492 2011-09-17  Bruno Haible  <bruno@clisp.org>
8493
8494         Add dependencies to new dirent related modules.
8495         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8496         * modules/fts (Depends-on): Likewise.
8497         * modules/glob (Depends-on): Likewise.
8498         * modules/savedir (Depends-on): Likewise.
8499         * modules/scandir (Depends-on): Likewise.
8500         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8501         * modules/fdopendir (Depends-on): Add opendir.
8502
8503 2011-09-17  Bruno Haible  <bruno@clisp.org>
8504
8505         inet_pton: Support for MSVC on Windows Vista or newer.
8506         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8507         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8508         HAVE_DECL_INET_PTON is defined.
8509         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8510         On platforms with <winsock2.h>, test whether inet_pton is declared in
8511         <ws2tcpip.h>. If so, arrange to replace it.
8512         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8513         REPLACE_INET_PTON.
8514         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8515         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8516         (Depends-on, configure.ac): Update condition.
8517         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8518
8519 2011-09-17  Bruno Haible  <bruno@clisp.org>
8520
8521         inet_ntop: Support for MSVC on Windows Vista or newer.
8522         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8523         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8524         HAVE_DECL_INET_NTOP is defined.
8525         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8526         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8527         <ws2tcpip.h>. If so, arrange to replace it.
8528         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8529         REPLACE_INET_NTOP.
8530         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8531         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8532         (Depends-on, configure.ac): Update condition.
8533         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8534
8535 2011-09-16  Eric Blake  <eblake@redhat.com>
8536
8537         test-fsync: yet another enhancement
8538         * tests/test-fsync.c (main): Also test behavior on read-only text
8539         file.
8540
8541 2011-09-16  Bruno Haible  <bruno@clisp.org>
8542
8543         Enhance fsync, fdatasync tests.
8544         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8545         * tests/test-fdatasync.c (main): Likewise.
8546
8547 2011-09-16  Bruno Haible  <bruno@clisp.org>
8548
8549         Support for MSVC compiler: Ensure mode_t gets defined.
8550         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8551         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8553         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8554         * tests/test-fcntl-h.c: Check that mode_t is defined.
8555         * tests/test-sys_stat.c: Likewise.
8556         * tests/test-sys_types.c: Likewise.
8557         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8558         * doc/posix-headers/sys_stat.texi: Likewise.
8559         * doc/posix-headers/sys_types.texi: Likewise.
8560
8561 2011-09-16  Bruno Haible  <bruno@clisp.org>
8562
8563         sys_stat: Support for MSVC.
8564         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8565         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8566         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8567         MSVC.
8568
8569 2011-09-16  Bruno Haible  <bruno@clisp.org>
8570
8571         Support for MSVC compiler: Ensure off_t gets defined.
8572         * lib/unistd.in.h: Include <sys/types.h>.
8573         * tests/test-fcntl-h.c: Check that off_t is defined.
8574         * tests/test-sys_stat.c: Likewise.
8575         * tests/test-sys_types.c: Likewise.
8576
8577 2011-09-16  Eric Blake  <eblake@redhat.com>
8578
8579         fdatasync: port to Solaris
8580         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8581         * modules/fdatasync (Link): Document it.
8582         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8583
8584         fdatasync: port to MacOS X 10.7
8585         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8586         declared.
8587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8588         * modules/unistd (Makefile.am): Substitute it.
8589         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8590         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8591
8592         fdatasync: minor improvements
8593         * modules/fdatasync (Depends-on): Add condition for fsync.
8594         * lib/fdatasync.c (fdatasync): Add comment.
8595         * tests/test-unistd-c++.cc: Test fdatasync.
8596
8597         unistd: update refs to newer POSIX
8598         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8599         Suggested by Bruno Haible.
8600
8601         fdatasync: new module
8602         * modules/fsync (Description): Document difference to fdatasync.
8603         * modules/fdatasync: New module.
8604         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8605         * lib/fdatasync.c (fdatasync): Likewise.
8606         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8607         defaults.
8608         * modules/unistd (Makefile.am): Set witnesses.
8609         * lib/unistd.in.h (fdatasync): Declare.
8610         * MODULES.html.sh: Document it.
8611         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8612         * modules/fdatasync-tests: New test.
8613         * tests/test-fdatasync.c: Likewise.
8614
8615 2011-09-16  Eric Blake  <eblake@redhat.com>
8616
8617         test-fsync: enhance tests
8618         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8619         * tests/test-fsync.c (main): Enhance test.
8620
8621 2011-09-15  Bruno Haible  <bruno@clisp.org>
8622
8623         Support for MSVC compiler: Ensure ssize_t gets defined.
8624         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8625         * doc/posix-headers/stdio.texi: Likewise.
8626         * modules/stdio (Depends-on): Add ssize_t.
8627         * modules/sys_socket (Depends-on): Likewise.
8628         * modules/sys_types (Depends-on): Likewise.
8629         * modules/sys_uio (Depends-on): Likewise.
8630         * modules/unistd (Depends-on): Likewise.
8631         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8632         * tests/test-sys_types.c: Check that ssize_t is defined.
8633
8634 2011-09-14  Bruno Haible  <bruno@clisp.org>
8635
8636         Avoid using #, the m4 comment starter character, near brackets.
8637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8638         delimiter character in sed expressions.
8639         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8640         Suggested by Eric Blake.
8641
8642         Properly quote AC_CHECK_DECLS' 4th argument.
8643         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8644         argument.
8645         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8646         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8647         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8648         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8649         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8650         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8652         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8653         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8654         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8656         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8657         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8658         * m4/isinf.m4 (gl_ISINF): Likewise.
8659         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8660         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8661         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8662         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8663         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8664         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8665         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8666         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8667         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8668         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8669         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8671         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8672         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8674         Reported by Eric Blake.
8675
8676         Properly quote AC_CHECK_DECL's 4th argument.
8677         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8678         argument.
8679         * m4/argp.m4 (gl_ARGP): Likewise.
8680         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8681         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8682         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8683         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8684         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8685         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8687         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8688         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8689         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8690         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8691         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8692         Reported by Eric Blake.
8693
8694 2011-09-14  Eric Blake  <eblake@redhat.com>
8695
8696         opendir: avoid compile warning
8697         * lib/opendir.c (includes): Always include errno.h.
8698         Reported by Tatsuro MATSUOKA.
8699
8700 2011-09-14  Jim Meyering  <meyering@redhat.com>
8701
8702         maint.mk: sc_tight_scope: propagate failure from sub-make
8703         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8704         Reported by Martin von Gagern.
8705
8706 2011-09-13  Bruno Haible  <bruno@clisp.org>
8707
8708         tempname: Support for MSVC.
8709         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8710         MSVC.
8711         * modules/tempname (Depends-on): Add fcntl-h.
8712
8713 2011-09-13  Bruno Haible  <bruno@clisp.org>
8714
8715         sys_time: Support for MSVC.
8716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8717         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8718         include <winsock2.h>.
8719         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8720         function declarations that collide with POSIX.
8721         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8722         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8723
8724 2011-09-13  Bruno Haible  <bruno@clisp.org>
8725
8726         stat: Support for MSVC.
8727         * lib/stat.c: Include pathmax.h.
8728         * modules/stat (Depends-on): Add pathmax.
8729
8730         pathmax: Support for native Windows.
8731         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8732
8733 2011-09-12  Bruno Haible  <bruno@clisp.org>
8734
8735         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8736         * lib/dirent.in.h (struct dirent): New type.
8737         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8738         DT_WHT): New macros.
8739         (DIR): New type.
8740         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8741         (readdir, rewinddir): New declarations.
8742         * lib/dirent-private.h: New file.
8743         * lib/opendir.c: New file.
8744         * lib/readdir.c: New file.
8745         * lib/rewinddir.c: New file.
8746         * lib/closedir.c: New file.
8747         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8748         * m4/opendir.m4: New file.
8749         * m4/readdir.m4: New file.
8750         * m4/rewinddir.m4: New file.
8751         * m4/closedir.m4: New file.
8752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8753         REPLACE_CLOSEDIR here.
8754         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8755         readdir, rewinddir are declared.
8756         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8757         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8758         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8759         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8760         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8761         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8762         * modules/opendir: New file.
8763         * modules/readdir: New file.
8764         * modules/rewinddir: New file.
8765         * modules/closedir: New file.
8766         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8767         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8768         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8769         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8770         * NEWS: Mention the 'fchdir' change.
8771
8772 2011-09-11  Bruno Haible  <bruno@clisp.org>
8773
8774         asm-underscore.m4: Support for MSVC.
8775         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8776         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8777
8778 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8779
8780         Doc about crypt functions.
8781         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8782         needing for _GNU_SOURCE to get crypt.
8783         * doc/posix-functions/encrypt.texi: Likewise.
8784         * doc/posix-functions/setkey.texi: Likewise.
8785
8786 2011-09-11  Bruno Haible  <bruno@clisp.org>
8787
8788         doc: Update regarding MSVC 9.
8789         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8790         tested".
8791         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8792         * doc/posix-headers/*.texi: Likewise.
8793         * doc/pastposix-functions/*.texi: Likewise.
8794         * doc/glibc-functions/*.texi: Likewise.
8795         * doc/glibc-headers/*.texi: Likewise.
8796
8797 2011-09-11  Bruno Haible  <bruno@clisp.org>
8798
8799         unistd et al.: Don't assume <unistd.h> exists.
8800         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8801         does not exist.
8802         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8803         exist. But include <stdlib.h>.
8804         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8805         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8806         symlink() does not exist.
8807         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8808         include <io.h> instead.
8809         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8810         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8811         include <direct.h> instead.
8812         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8813         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8814         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8815         <io.h> instead.
8816         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8817         correctly if the system does not have hard links.
8818         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8819         <direct.h> instead.
8820         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8821         it when looking for function declarations.
8822         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8823         <direct.h> and <io.h> instead.
8824         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8825
8826 2011-09-11  Bruno Haible  <bruno@clisp.org>
8827
8828         strcase: Support for MSVC.
8829         * modules/strcase (Status, Notice): Remove obsoletion mark.
8830         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8831         * doc/posix-functions/strncasecmp.texi: Likewise.
8832
8833         strings: Don't assume <strings.h> exists.
8834         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8835         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8836         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8837         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8838
8839 2011-09-11  Bruno Haible  <bruno@clisp.org>
8840
8841         dirent: Don't assume <dirent.h> exists.
8842         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8843         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8844         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8845         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8846
8847 2011-09-11  Bruno Haible  <bruno@clisp.org>
8848
8849         Fix wint_t on MSVC.
8850         * lib/wchar.in.h (wint_t): On MSVC, override it.
8851         * lib/wctype.in.h (wint_t): Likewise.
8852         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8853         MSVC.
8854         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8855         * doc/posix-headers/wctype.texi: Likewise.
8856
8857 2011-09-11  Bruno Haible  <bruno@clisp.org>
8858
8859         sys_types: Fix typo.
8860         * lib/sys_types.in.h: Fix typo in comment.
8861         Reported by Paul Eggert.
8862
8863         Support for MSVC compiler: Ensure size_t gets defined.
8864         * modules/strings (Depends-on): Add 'sys_types'.
8865         * modules/sys_uio (Depends-on): Likewise.
8866         * lib/sys_uio.in.h: Update comment.
8867
8868         C++ tests for module 'sys_types'.
8869         * modules/sys_types-c++-tests: New file.
8870         * tests/test-sys_types-c++.cc: New file.
8871
8872         Tests for module 'sys_types'.
8873         * modules/sys_types-tests: New file.
8874         * tests/test-sys_types.c: New file.
8875
8876         New module 'sys_types'.
8877         * lib/sys_types.in.h: New file.
8878         * m4/sys_types_h.m4: New file.
8879         * modules/sys_types: New file.
8880         * doc/posix-headers/sys_types.texi: Mention the new module and the
8881         size_t problem on MSVC 9.
8882
8883 2011-09-11  Bruno Haible  <bruno@clisp.org>
8884
8885         Support for MSVC compiler: Avoid division by a literal 0.
8886         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8887         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8888         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8889         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8890         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8891         * tests/infinity.h: New file.
8892         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8893         on MSVC.
8894         * tests/test-ceilf1.c: Include infinity.h.
8895         (main): Use Infinityf.
8896         * tests/test-ceil1.c: Include infinity.h.
8897         (main): Use Infinityd.
8898         * tests/test-ceill.c: Include infinity.h.
8899         (main): Use Infinityl.
8900         * tests/test-dprintf-posix.c: Include infinity.h.
8901         (test_function): Use Infinityd.
8902         * tests/test-floorf1.c: Include infinity.h.
8903         (main): Use Infinityf.
8904         * tests/test-floor1.c: Include infinity.h.
8905         (main): Use Infinityd.
8906         * tests/test-floorl.c: Include infinity.h.
8907         (main): Use Infinityl.
8908         * tests/test-fprintf-posix.c: Include infinity.h.
8909         (test_function): Use Infinityd.
8910         * tests/test-frexp.c: Include infinity.h.
8911         (main): Use Infinityd.
8912         * tests/test-frexpl.c: Include infinity.h.
8913         (main): Use Infinityl.
8914         * tests/test-isfinite.c: Include infinity.h.
8915         (test_isfinitef): Use Infinityf.
8916         (test_isfinited): Use Infinityd.
8917         (test_isfinitel): Use Infinityl.
8918         * tests/test-isinf.c: Include infinity.h.
8919         (test_isinff): Use Infinityf.
8920         (test_isinfd): Use Infinityd.
8921         (test_isinfl): Use Infinityl.
8922         * tests/test-isnan.c: Include infinity.h.
8923         (test_float): Use Infinityf.
8924         (test_double): Use Infinityd.
8925         (test_long_double): Use Infinityl.
8926         * tests/test-isnanf.h: Include infinity.h.
8927         (main): Use Infinityf.
8928         * tests/test-isnand.h: Include infinity.h.
8929         (main): Use Infinityd.
8930         * tests/test-isnanl.h: Include infinity.h.
8931         (main): Use Infinityl.
8932         * tests/test-ldexpl.c: Include infinity.h.
8933         (main): Use Infinityl.
8934         * tests/test-printf-posix.h: Include infinity.h.
8935         (test_function): Use Infinityd.
8936         * tests/test-roundf1.c: Include infinity.h.
8937         (main): Use Infinityf.
8938         * tests/test-round1.c: Include infinity.h.
8939         (main): Use Infinityd.
8940         * tests/test-roundl.c: Include infinity.h.
8941         (main): Use Infinityl.
8942         * tests/test-signbit.c: Include infinity.h.
8943         (test_signbitf): Use Infinityf.
8944         (test_signbitd): Use Infinityd.
8945         (test_signbitl): Use Infinityl.
8946         * tests/test-snprintf-posix.h: Include infinity.h.
8947         (test_function): Use Infinityd, Infinityl.
8948         * tests/test-sprintf-posix.h: Include infinity.h.
8949         (test_function): Use Infinityd, Infinityl.
8950         * tests/test-truncf1.c: Include infinity.h.
8951         (main): Use Infinityf.
8952         * tests/test-trunc1.c: Include infinity.h.
8953         (main): Use Infinityd.
8954         * tests/test-truncl.c: Include infinity.h.
8955         (main): Use Infinityl.
8956         * tests/test-vasnprintf-posix.c: Include infinity.h.
8957         (test_function): Use Infinityd, Infinityl.
8958         * tests/test-vasprintf-posix.c: Include infinity.h.
8959         (test_function): Use Infinityd, Infinityl.
8960         * modules/ceilf-tests (Files): Add tests/infinity.h.
8961         * modules/ceil-tests (Files): Likewise.
8962         * modules/ceill-tests (Files): Likewise.
8963         * modules/dprintf-posix-tests (Files): Likewise.
8964         * modules/floorf-tests (Files): Likewise.
8965         * modules/floor-tests (Files): Likewise.
8966         * modules/floorl-tests (Files): Likewise.
8967         * modules/fprintf-posix-tests (Files): Likewise.
8968         * modules/frexp-tests (Files): Likewise.
8969         * modules/frexp-nolibm-tests (Files): Likewise.
8970         * modules/frexpl-tests (Files): Likewise.
8971         * modules/frexpl-nolibm-tests (Files): Likewise.
8972         * modules/isfinite-tests (Files): Likewise.
8973         * modules/isinf-tests (Files): Likewise.
8974         * modules/isnan-tests (Files): Likewise.
8975         * modules/isnanf-tests (Files): Likewise.
8976         * modules/isnanf-nolibm-tests (Files): Likewise.
8977         * modules/isnand-tests (Files): Likewise.
8978         * modules/isnand-nolibm-tests (Files): Likewise.
8979         * modules/isnanl-tests (Files): Likewise.
8980         * modules/isnanl-nolibm-tests (Files): Likewise.
8981         * modules/ldexpl-tests (Files): Likewise.
8982         * modules/printf-posix-tests (Files): Likewise.
8983         * modules/roundf-tests (Files): Likewise.
8984         * modules/round-tests (Files): Likewise.
8985         * modules/roundl-tests (Files): Likewise.
8986         * modules/signbit-tests (Files): Likewise.
8987         * modules/snprintf-posix-tests (Files): Likewise.
8988         * modules/sprintf-posix-tests (Files): Likewise.
8989         * modules/truncf-tests (Files): Likewise.
8990         * modules/trunc-tests (Files): Likewise.
8991         * modules/truncl-tests (Files): Likewise.
8992         * modules/vasnprintf-posix-tests (Files): Likewise.
8993         * modules/vasprintf-posix-tests (Files): Likewise.
8994         * modules/vdprintf-posix-tests (Files): Likewise.
8995         * modules/vfprintf-posix-tests (Files): Likewise.
8996         * modules/vprintf-posix-tests (Files): Likewise.
8997         * modules/vsnprintf-posix-tests (Files): Likewise.
8998         * modules/vsprintf-posix-tests (Files): Likewise.
8999         * modules/xprintf-posix-tests (Files): Likewise.
9000
9001 2011-09-11  Bruno Haible  <bruno@clisp.org>
9002
9003         Ensure pid_t gets defined.
9004         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9005         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9006         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9007         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9008         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9009         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9010         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9011         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9012         * tests/test-fcntl-h.c: Check that pid_t is defined.
9013         * tests/test-sched.c: Likewise.
9014         * tests/test-termios.c: Likewise.
9015         * tests/test-time.c: Likewise.
9016         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9017         * doc/posix-headers/signal.texi: Likewise.
9018         * doc/posix-headers/sys_types.texi: Likewise.
9019         * doc/posix-headers/time.texi: Likewise.
9020
9021 2011-09-11  Bruno Haible  <bruno@clisp.org>
9022
9023         acl: Fix compilation on Solaris 10 (older version).
9024         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9025         of ACE_EVERYONE.
9026         * lib/set-mode-acl.c (qset_acl): Likewise.
9027         Reported by Christian Jullien <eligis@orange.fr>.
9028
9029 2011-09-10  Bruno Haible  <bruno@clisp.org>
9030
9031         iconv, unsetenv: Add support for MSVC compiler.
9032         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9033         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9034
9035 2011-09-10  Bruno Haible  <bruno@clisp.org>
9036
9037         *printf: Add support for MSVC compiler.
9038         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9039         handles the exception caused by the %n directive. When cross-compiling,
9040         guess no on native Windows.
9041         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9042         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9043         emulate it through vsnprintf.
9044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9045         * doc/posix-functions/dprintf.texi: Update documentation regarding
9046         MSVC 9.
9047         * doc/posix-functions/fprintf.texi: Likewise.
9048         * doc/posix-functions/printf.texi: Likewise.
9049         * doc/posix-functions/snprintf.texi: Likewise.
9050         * doc/posix-functions/sprintf.texi: Likewise.
9051         * doc/posix-functions/swprintf.texi: Likewise.
9052         * doc/posix-functions/vdprintf.texi: Likewise.
9053         * doc/posix-functions/vfprintf.texi: Likewise.
9054         * doc/posix-functions/vprintf.texi: Likewise.
9055         * doc/posix-functions/vsnprintf.texi: Likewise.
9056         * doc/posix-functions/vsprintf.texi: Likewise.
9057         * doc/glibc-functions/asprintf.texi: Likewise.
9058         * doc/glibc-functions/obstack_printf.texi: Likewise.
9059         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9060         * doc/glibc-functions/vasprintf.texi: Likewise.
9061
9062 2011-09-10  Bruno Haible  <bruno@clisp.org>
9063
9064         nocrash: Add support for native Windows.
9065         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9066
9067 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9068             Bruno Haible  <bruno@clisp.org>
9069
9070         absolute-header, include-next: Add support for MSVC compiler.
9071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9072         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9073         directory separator in #line directives.
9074         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9075         recognize also backslash as directory separator in #line directives.
9076
9077 2011-09-08  Jim Meyering  <meyering@redhat.com>
9078
9079         maint.mk: mark the post-release commit log with "maint: " prefix
9080         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9081         one-line commit-log summary.
9082
9083 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9084             Bruno Haible  <bruno@clisp.org>
9085
9086         Doc about crypt functions.
9087         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9088         systems.
9089         * doc/posix-functions/encrypt.texi: Likewise.
9090         * doc/posix-functions/setkey.texi: Likewise.
9091
9092 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9093
9094         * lib/gc.h: Fix copyright header.
9095
9096 2011-09-07  Bruno Haible  <bruno@clisp.org>
9097
9098         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9099         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9100         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9101
9102 2011-09-07  Bruno Haible  <bruno@clisp.org>
9103
9104         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9105         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9106         * lib/freopen.c: Likewise.
9107         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9108         * lib/lstat.c: Likewise.
9109         * lib/stat.c: Likewise.
9110         * lib/open.c: Use different syntax for include of <fcntl.h>.
9111         * lib/openat.c: Include fcntl.h again, explicitly.
9112
9113 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9114
9115         parse-datetime: document the newly accepted format
9116         * doc/parse-datetime.texi (Combined date and time of day items):
9117         New section.
9118
9119 2011-09-06  Bruno Haible  <bruno@clisp.org>
9120
9121         acl: Fix a test failure on newer Solaris 10 with ZFS.
9122         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9123         ENOSYS as no ACL.
9124         Reported by Jim Meyering.
9125
9126 2011-09-06  Bruno Haible  <bruno@clisp.org>
9127
9128         acl: Update for AIX >= 5.3 with NFS.
9129         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9130         ENOSYS as no ACL.
9131
9132         acl: Fix a test failure on AIX >= 5.3 with NFS.
9133         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9134         as no ACL.
9135
9136 2011-09-06  Bruno Haible  <bruno@clisp.org>
9137
9138         acl: Fix a test failure on IRIX 6.5 with NFS.
9139         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9140         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9141         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9142         * lib/copy-acl.c (qcopy_acl): Likewise.
9143
9144 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9145
9146         openat: port to AIX 7.1 with large files
9147         AIX 7.1 does a "#define openat open64at" if large files are in use,
9148         so we can't simply #undef openat.  Use the orig_openat trick (similar
9149         to orig_open in lib/open.c) to work around the problem.  Problem
9150         reported by Kevin Brott for GNU tar, in the thread containing
9151         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9152         * lib/openat.c (__need_system_fcntl_h): Define first.
9153         Include <fcntl.h> and <sys/types.h> before undefining.
9154         (orig_openat) [HAVE_OPENAT]: New inline function.
9155         (openat) [HAVE_OPENAT]: Do not undef.
9156         (rpl_openat): Use orig_openat, not openat.
9157
9158 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9159             Bruno Haible  <bruno@clisp.org>
9160
9161         acl: Avoid errors on NonStop Kernel.
9162         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9163         ENOTSUP errors.
9164
9165 2011-09-05  Bruno Haible  <bruno@clisp.org>
9166
9167         acl: Clean up Solaris code.
9168         * lib/acl-internal.h: Remove no-op #if.
9169         * lib/file-has-acl.c: Likewise.
9170         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9171         * lib/copy-acl.c (qcopy_acl): Likewise.
9172
9173 2011-09-05  Bruno Haible  <bruno@clisp.org>
9174
9175         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9176         binaries built on the original Solaris 10.
9177         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9178         trivial.
9179
9180 2011-09-05  Bruno Haible  <bruno@clisp.org>
9181
9182         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9183         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9184         10.
9185         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9186         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9187         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9188         instead of acl_get, facl_get, acl_set, facl_set.
9189
9190 2011-09-05  Bruno Haible  <bruno@clisp.org>
9191
9192         copy-file: Try unit tests on more file systems.
9193         * tests/test-copy-file-1.sh: New file.
9194         * tests/test-copy-file-2.sh: New file.
9195         * modules/copy-file-tests (Files): Add them.
9196         (Makefile.am): Add them to TESTS.
9197
9198         acl: Try unit tests on more file systems.
9199         * tests/test-file-has-acl-1.sh: New file.
9200         * tests/test-file-has-acl-2.sh: New file.
9201         * tests/test-set-mode-acl-1.sh: New file.
9202         * tests/test-set-mode-acl-2.sh: New file.
9203         * tests/test-copy-acl-1.sh: New file.
9204         * tests/test-copy-acl-2.sh: New file.
9205         * modules/acl-tests (Files): Add them.
9206         (Makefile.am): Add them to TESTS.
9207
9208 2011-09-04  Bruno Haible  <bruno@clisp.org>
9209
9210         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9211         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9212         10.
9213         (OLD_ALLOW, OLD_DENY): New macros.
9214         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9215         ACE_ACCESS_ALLOWED_ACE_TYPE.
9216         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9217         ACE_ACCESS_DENIED_ACE_TYPE.
9218         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9219         (NEW_ACE_EXECUTE): Fix value.
9220         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9221         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9222         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9223         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9224         NEW_ACE_SYNCHRONIZE): New macros.
9225         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9226         instead of acl_fromtext, acl_set, facl_set.
9227         Fixes a coreutils/tests/cp/perm failure.
9228
9229 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9230
9231         openat: test for fstatat (..., 0) bug
9232         Further testing with tar suggests that fstatat (..., 0)
9233         does not work in general, on AIX 7.1; see
9234         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9235         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9236         replacement fstatat (which is what older AIX releases were using
9237         anyway).
9238         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9239         use is now changed to orig_fstatat.  This was probably the right
9240         thing to do anyway.
9241         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9242         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9243         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9244         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9245         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9246         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9247         if the bug is found.
9248
9249         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9250         This tests for another fstatat bug on AIX 7.1:
9251         fstatat (AT_FDCWD, ..., 0) does not work.  See
9252         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9253         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9254         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9255         (rpl_fstatat): Adjust so that it works around either (or both)
9256         bugs if present.
9257         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9258
9259 2011-09-03  Karl Berry  <karl@gnu.org>
9260
9261         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9262         in index entries.
9263
9264 2011-09-02  Bruno Haible  <bruno@clisp.org>
9265
9266         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9267         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9268         values of AR, ARFLAGS, RANLIB.
9269         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9270
9271 2011-09-02  Bruno Haible  <bruno@clisp.org>
9272
9273         Find 'ar' program that fits with --host argument.
9274         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9275
9276 2011-09-02  Bruno Haible  <bruno@clisp.org>
9277
9278         tests: init.sh: Support any non-GNU diff.
9279         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9280         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9281         Solaris 8.
9282
9283 2011-09-02  Bruno Haible  <bruno@clisp.org>
9284
9285         tests: init.sh: work also with any non-GNU diff that supports -u
9286         * tests/init.sh: Relax check for diff -u support.
9287         Rather than checking for GNU diff via --version, simply check
9288         for support for -u itself.  Useful at least on OpenBSD 4.9,
9289         AIX 7.1, IRIX 6.5, and Solaris 10.
9290
9291 2011-09-01  Bruno Haible  <bruno@clisp.org>
9292
9293         strtoimax, strtoumax: Document problem on HP-UX 11.
9294         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9295         * doc/posix-functions/strtoumax.texi: Likewise.
9296
9297 2011-09-01  Bruno Haible  <bruno@clisp.org>
9298
9299         strtoumax: Avoid link error on OSF/1 with DTK cc.
9300         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9301         defined as a function.
9302         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9303         strtoumax is defined, not whether it is declared.
9304
9305 2011-09-01  Bruno Haible  <bruno@clisp.org>
9306
9307         strtoimax: Avoid link error on OSF/1 with DTK cc.
9308         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9309         defined as a function.
9310         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9311         strtoimax is defined, not whether it is declared.
9312
9313 2011-09-01  Bruno Haible  <bruno@clisp.org>
9314
9315         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9316         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9317         as a function.
9318         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9319         whether it is declared.
9320
9321 2011-09-01  Bruno Haible  <bruno@clisp.org>
9322
9323         imaxabs: Avoid link error on OSF/1 with DTK cc.
9324         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9325         as a function.
9326         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9327         whether it is declared.
9328
9329 2011-09-01  Bruno Haible  <bruno@clisp.org>
9330
9331         Tests for module 'strtoumax'.
9332         * modules/strtoumax-tests: New file.
9333         * tests/test-strtoumax.c: New file.
9334
9335         Tests for module 'strtoimax'.
9336         * modules/strtoimax-tests: New file.
9337         * tests/test-strtoimax.c: New file.
9338
9339         Tests for module 'imaxdiv'.
9340         * modules/imaxdiv-tests: New file.
9341         * tests/test-imaxdiv.c: New file.
9342
9343         Tests for module 'imaxabs'.
9344         * modules/imaxabs-tests: New file.
9345         * tests/test-imaxabs.c: New file.
9346
9347 2011-09-01  Bruno Haible  <bruno@clisp.org>
9348
9349         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9350         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9351         pthread_create.
9352
9353 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         openat: work around AIX 7.1 fstatat issue
9356         This should fix the problem that was not properly fixed
9357         in the previous change, dated 2011-08-30.
9358         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9359         __need_system_stat_h defined.
9360         (orig_fstatat) [HAVE_FSTATAT]: New function.
9361         (rpl_fstatat): Go back to the old way of doing things,
9362         except call orig_fstatat instead of fstatat.
9363         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9364         Remove unnecessary check whether fstatat fills in st_size etc.
9365
9366 2011-09-01  Bruno Haible  <bruno@clisp.org>
9367
9368         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9369         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9370         just include the system's header.
9371
9372 2011-08-31  Jim Meyering  <meyering@redhat.com>
9373
9374         tests: avoid spurious assertion failure in test-float.c on ppc64
9375         * tests/test-float.c (test_long_double): Comment out an assertion,
9376         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9377         with gcc-4.4.4.
9378
9379         maint: indent with spaces, not TABs
9380         I need to get in the habit of running gnulib's "make check".
9381         Both of these would have been caught.
9382         * m4/largefile.m4: Indent with spaces, not TABs.
9383         * lib/parse-datetime.y (iso_8601_time): Likewise.
9384         Spotted by Pádraig Brady.
9385
9386         test-parse-datetime.c: accommodate a relatively strict gcc warning
9387         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9388         to avoid a warning from gcc's -Werror=missing-declarations.
9389         Insert a few spaces-before-funcall-parenthesis.
9390
9391 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9392
9393         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9394         The parser now accepts ISO 8601 date-time strings with "T" as the
9395         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9396         with a space between the date and time strings.  Now it also parses
9397         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9398         variants like "2004-02-29T16:21:42.333-07:00"
9399         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9400         of day representation using the 'T' separator character.
9401         * doc/parse-datetime.texi (General date syntax): replace use of
9402         deprecated --iso-8601 option with --rfc-3339 in example of date
9403         command output formats that can be parsed.
9404         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9405         lib/parse-datetime.y.
9406         (gmt_offset): New function.
9407         (main): Add additional test cases to validate ISO8601 extended
9408         date and time of day parsing.
9409
9410 2011-08-31  Bruno Haible  <bruno@clisp.org>
9411
9412         freopen: Documentation.
9413         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9414         name.
9415         Reported by Claudio Bley <claudio.bley@gmail.com>.
9416
9417 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9418
9419         freopen: Don't crash if the filename argument is NULL.
9420         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9421         NULL.
9422
9423 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         openat: work around AIX 7.1 fstatat bug
9426         Problem reported by Kevin Brott for GNU tar, in the thread containing
9427         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9428         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9429         FSTATAT_ST_SIZE_ETC_BROKEN.
9430         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9431         rpl_fstatat.
9432         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9433         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9434         AC_CHECK_FUNCS_ONCE for fstatat.
9435         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9436         fchmodat, mkdirat, openat and unlinkat.
9437
9438 2011-08-30  Bruno Haible  <bruno@clisp.org>
9439
9440         Avoid endless recursions if config.h includes some header files.
9441         * lib/fopen.c (__need_FILE): Define already before including config.h.
9442         * lib/freopen.c (__need_FILE): Likewise.
9443         * lib/open.c (__need_system_fcntl_h): Likewise.
9444         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9445         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9446         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9447
9448 2011-08-25  Karl Berry  <karl@gnu.org>
9449
9450         * config/srclist.txt (ylwrap): new try.
9451         * build-aux/ylwrap: new file.
9452
9453 2011-08-23  Bruno Haible  <bruno@clisp.org>
9454
9455         tmpdir: Use a good default directory on native Windows.
9456         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9457         (P_tmpdir): Default to _P_tmpdir on native Windows.
9458         (path_search): On native Windows, try the value returned by GetTempPath
9459         before trying P_tmpdir.
9460         * modules/tmpdir (Depends-on): Add pathmax.
9461         Suggested by John Darrington <john@darrington.wattle.id.au>.
9462
9463 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9464
9465         doc: fix typo in README-release
9466         * top/README-release: Capitalize first word of a sentence.
9467
9468 2011-08-19  Jim Meyering  <meyering@redhat.com>
9469
9470         fts: do not exhaust memory when processing million-entry directories
9471         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9472         directory would require about 256*N bytes of memory.  Thus, it was
9473         easy to construct a directory too large to be processed by any of
9474         those tools.  With this change, fts' maximum memory utilization is
9475         now limited to around 30MB.
9476         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9477         (fts_read): When we've processed the final entry (i.e., when
9478         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9479         using the parent entry to read any remaining entries.  Dispatch
9480         depending on what fts_build returns:
9481         - NULL+stop, aka failure: stop
9482         - NULL otherwise: move up in the dir hierarchy
9483         - non-NULL: handle this new entry
9484         (fts_build): Declare and use new local, continue_readdir.
9485         Prepare to be called from fts_read, when the entries
9486         from a partially-read directory have just been exhausted.
9487         In that case, we'll skip the opendir and instead use the parent's
9488         fts_dirp and derive dir_fd from that.
9489         Finally, in the readdir loop, if we read max_entries entries,
9490         exit the loop ensuring *not* to call closedir.  This is required
9491         so that fts_dirp can be reused on a subsequent call.
9492         Prompted by Ben England's report of memory exhaustion in find
9493         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9494
9495         maint: fts: move decl of `dp' down into while loop; split a long line
9496         * lib/fts.c (fts_build): No semantic change.
9497
9498         fts: add/use new struct member, fts_dirp
9499         We are about to use this to manage any directory with
9500         too many entries to read all of them into memory at once.
9501         To do that, we'll need to save the DIR* pointer in each
9502         affected FTSENT struct.
9503         * lib/fts_.h: Include <dirent.h>.
9504         (struct FTSENT) [fts_dirp]: New member.
9505         * lib/fts.c (closedir_and_clear): Define.
9506         Use it in place of closedir so that we are sure to
9507         clear the new fts_dirp member when done with it.
9508         (fts_alloc): Initialize the new member.
9509         (fts_lfree): Free, if needed.
9510
9511         maint: fts: give __opendir2 a new parameter and rename
9512         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9513         than surreptitiously using sole caller's "dir_fd".
9514         (fts_opendir): Rename from __opendir2.
9515
9516         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9517         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9518
9519         maint: fts.c: correct off-by-one indentation
9520         * lib/fts.c (fts_build): Correct indentation, change style
9521         of a couple of block comments, and bracing style.
9522
9523         maint: fts.c: move __opendir2 #define "up" out of function body
9524         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9525
9526         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9527         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9528         out for a long time and besides was useful only on BSD systems.
9529
9530 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9531
9532         regex: port to Stratus OpenVOS
9533         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9534         define to empty, rather than attempting nonportable optimizations.
9535         Problem reported by Paul Green in:
9536         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9537         and fix suggested by Eric Blake in:
9538         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9539
9540 2011-08-17  Eric Blake  <eblake@redhat.com>
9541
9542         getcwd: fix test failures on mingw
9543         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9544         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9545         test if long directory cannot be created, and allow mingw errno.
9546
9547         getcwd-lgpl: fix m4 to match relaxed test for BSD
9548         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9549         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9550         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9551         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9552         signature problem.
9553
9554         getcwd: fix compilation on mingw64
9555         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9556         getcwd.
9557         Reported by Marc-André Lureau.
9558
9559         pipe2: silence compiler warning
9560         * lib/pipe2.c (pipe2): Hide label if it is not used.
9561
9562 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9563
9564         relocatable-prog: fix link error
9565         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9566         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9567         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9568         into modules/relocatable-lib without noticing that
9569         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9570         also needs to build relocatable.c.
9571
9572 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9576         shell code: it contained a 'break' that was not in a loop.
9577         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9578         via a shell-language loop; this may have been true in old Autoconf
9579         versions, but it's not true in Autoconf 2.68.  I found this bug
9580         when testing coreutils git on Solaris 8, whose shell complains
9581         about the syntax error.
9582
9583 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9584
9585         * lib/base64.c: Fix comment to reference RFC 4648.
9586         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9587         <gvtulder@gmail.com>.
9588
9589 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9590
9591         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9592
9593         po/Makefile.in.in: fix make -q problem
9594         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9595         rule, since there's no file named 'check-macro-version' and its
9596         use as a file breaks make -q.
9597         (all): Don't depend on check-macro-version.
9598         (CHECK_MACRO_VERSION): New macro.
9599         (stamp-po): Use it.
9600
9601         configmake: fix make -q problem
9602         * modules/configmake (configmake.h): Update configmake.h's time stamp
9603         even if the file does not change.  Otherwise, 'make -q' fails.
9604         Problem reported by Simon Josefsson in
9605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9606
9607 2011-08-11  Jim Meyering  <meyering@redhat.com>
9608
9609         git-version-gen: correct the advice in a comment
9610         * build-aux/git-version-gen: Correct comment.
9611         Don't recommend to list .tarball-version in .gitignore.
9612
9613 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         base64: fix off-by-one buffer size bug
9616         Problem and (trivial) fix reported by Gijs van Tulder in
9617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9618         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9619         * tests/test-base64.c (main): Catch the bug.
9620
9621 2011-08-10  Eric Blake  <eblake@redhat.com>
9622
9623         closein: correct comments
9624         * lib/closein.c (close_stdin): Improve comments.
9625
9626 2011-08-09  Bruno Haible  <bruno@clisp.org>
9627
9628         More tests for 'fseeko'.
9629         * tests/test-fseeko3.c: New file, from Eric Blake.
9630         * tests/test-fseeko3.sh: New file.
9631         * modules/fseeko-tests (Files): Add them.
9632         (TESTS): Add test-fseeko3.sh.
9633         (check_PROGRAMS): Add test-fseeko3.
9634
9635 2011-08-09  Eric Blake  <eblake@redhat.com>
9636
9637         fseeko: remove unneeded hack
9638         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9639
9640         fseeko: fix bug on glibc
9641         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9642         Reported by John W. Eaton.
9643
9644 2011-08-08  Bruno Haible  <bruno@clisp.org>
9645
9646         unictype/base: Fix interoperability with preinstalled libunistring.
9647         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9648         Reported by Simon Josefsson.
9649
9650 2011-08-08  Bruno Haible  <bruno@clisp.org>
9651
9652         iswblank: Detect declaration correctly.
9653         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9654         AC_CHECK_DECLS invocation.
9655
9656 2011-08-08  Bruno Haible  <bruno@clisp.org>
9657
9658         tcgetsid: Detect declaration correctly.
9659         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9660         AC_CHECK_DECLS invocation.
9661         Reported by Simon Josefsson.
9662
9663 2011-08-08  Eric Blake  <eblake@redhat.com>
9664
9665         largefile: fix typo that regressed large file support
9666         * modules/largefile (configure.ac-early): Fix section name.
9667
9668 2011-08-06  Karl Berry  <karl@gnu.org>
9669
9670         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9671         a separate module.
9672
9673 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9674
9675         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9676         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9677         get prototype for free.
9678
9679 2011-08-04  Bruno Haible  <bruno@clisp.org>
9680
9681         Tests for module 'pathmax'.
9682         * modules/pathmax-tests: New file.
9683         * tests/test-pathmax.c: New file.
9684
9685         canonicalize-lgpl: Support larger filenames on the Hurd.
9686         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9687         Reported by Paul Eggert.
9688
9689         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9690         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9691         * lib/chdir-long.h: Include pathmax.h.
9692         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9693         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9694         (PATH_MAX): Remove code that is done by pathmax.h.
9695         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9696         * lib/tmpfile.c: Add a comment.
9697         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9698         * modules/chdir-long (Depends-on): Add pathmax.
9699         * modules/getcwd (Depends-on): Add pathmax.
9700         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9701         is not defined.
9702         * doc/posix-headers/limits.texi: Mention the pathmax module.
9703         * NEWS: Mention the change.
9704
9705 2011-08-02  Bruno Haible  <bruno@clisp.org>
9706
9707         pthread_sigmask: Actually use results of gl_THREADLIB.
9708         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9709         gl_THREADLIB, not gl_[]THREADLIB.
9710         Reported by Eric Blake.
9711
9712 2011-08-02  Jim Meyering  <meyering@redhat.com>
9713
9714         maint.mk: relax the default _gl_TS_function_match regexp
9715         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9716         space between function name and "(" in an "extern" declaration.
9717         That would fail to match a decl with no space there: extern void foo();
9718
9719 2011-07-31  Iain Nicol  <iain@thenicols.net>
9720
9721         git-version-gen: document that EXTRA_DIST must include .version
9722         * build-aux/git-version-gen: In the how-to-use comment, document
9723         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9724         will fail when run from an unpacked distribution tarball.
9725
9726 2011-08-01  Bruno Haible  <bruno@clisp.org>
9727
9728         wctype-h: Fix last change.
9729         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9730         REPLACE_TOWLOWER to 0.
9731         Reported by Sam Steingold <sds@gnu.org>.
9732
9733 2011-07-31  Bruno Haible  <bruno@clisp.org>
9734
9735         frexpl: Update autoconf test.
9736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9737         according to changes of 2011-06-20.
9738
9739 2011-07-31  Bruno Haible  <bruno@clisp.org>
9740
9741         sys_utsname: Add support for Minix.
9742         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9743         <sys/utsname.h>.
9744         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9745         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9746
9747 2011-07-31  Bruno Haible  <bruno@clisp.org>
9748
9749         strings: Add support for Minix.
9750         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9751         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9752         * doc/posix-headers/strings.texi: Document the Minix problem.
9753
9754 2011-07-31  Bruno Haible  <bruno@clisp.org>
9755
9756         wctype-h: Add support for Minix.
9757         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9758         REPLACE_TOWLOWER.
9759         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9760         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9761         REPLACE_ISWCNTRL.
9762
9763 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9766         This is a performance improvement for 64-bit hosts: it causes the
9767         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9768
9769 2011-07-31  Bruno Haible  <bruno@clisp.org>
9770
9771         stdioext: Add support for Minix.
9772         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9773         * lib/fpurge.c (fpurge): Likewise.
9774         * lib/freadahead.c (freadahead): Likewise.
9775         * lib/freadable.c (freadable): Likewise.
9776         * lib/freading.c (freading): Likewise.
9777         * lib/freadptr.c (freadptr): Likewise.
9778         * lib/freadseek.c (freadptrinc): Likewise.
9779         * lib/fseeko.c (rpl_fseeko): Likewise.
9780         * lib/fseterr.c (fseterr): Likewise.
9781         * lib/fwritable.c (fwritable): Likewise.
9782         * lib/fwriting.c (fwriting): Likewise.
9783         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9784         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9785
9786 2011-07-31  Bruno Haible  <bruno@clisp.org>
9787
9788         errno: Port to Minix.
9789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9790         ECONNABORTED are defined.
9791         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9792         GNULIB_defined_ECONNABORTED): New macros.
9793         * lib/strerror-override.h (strerror_override): Test also
9794         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9795         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9796         ECONNABORTED.
9797         * doc/posix-headers/errno.texi: Mention the Minix problem.
9798
9799 2011-07-31  Bruno Haible  <bruno@clisp.org>
9800
9801         Work around declaration collisions on Minix.
9802         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9803         defined, set REPLACE_MBSINIT.
9804         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9805         defined, set REPLACE_MBRTOWC.
9806         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9807         set REPLACE_MBRLEN.
9808         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9809         defined, set REPLACE_MBSRTOWCS.
9810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9811         defined, set REPLACE_WCRTOMB.
9812         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9813         defined, set REPLACE_WCSRTOMBS.
9814
9815 2011-07-31  Bruno Haible  <bruno@clisp.org>
9816
9817         Add support for Minix with ACK compiler.
9818         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9819         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9820         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9821
9822 2011-07-31  Bruno Haible  <bruno@clisp.org>
9823
9824         Documentation about Minix.
9825         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9826         * doc/glibc-headers/*.texi: Likewise.
9827         * doc/posix-functions/*.texi: Likewise.
9828         * doc/glibc-functions/*.texi: Likewise.
9829
9830 2011-07-31  Bruno Haible  <bruno@clisp.org>
9831
9832         snippet/warn-on-use: Fix indentation.
9833         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9834
9835 2011-07-25  Jim Meyering  <meyering@redhat.com>
9836
9837         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9838         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9839         commands.
9840
9841 2011-07-27  Jim Meyering  <meyering@redhat.com>
9842
9843         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9844         * top/maint.mk (gl_extract_significant_defines_): Now that
9845         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9846         gnulib/lib/signal.in.h, and now that we recommend to
9847         define-if-undefined those two symbols in application code,
9848         we must filter them out of the "significant" list.
9849         This avoids a "make syntax-check" failure in coreutils.
9850
9851 2011-07-26  Eric Blake  <eblake@redhat.com>
9852
9853         warnings: add comments about previous patch
9854         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9855         * m4/include_next.m4: Likewise.
9856         * m4/warn-on-use.m4: Likewise.
9857         * m4/warnings.m4: Likewise, and simplify use.
9858         Suggested by Stefano Lattarini.
9859
9860         include-next, warnings: support older autoconf
9861         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9862         AS_VAR_PUSHDEF in a way that works with older autoconf.
9863         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9864         Reported by Daniel P. Berrange.
9865
9866 2011-07-25  Bruno Haible  <bruno@clisp.org>
9867
9868         fseek, ftell: Fix doc.
9869         * doc/posix-functions/fseek.texi: Reword statement about
9870         AC_SYS_LARGEFILE.
9871         * doc/posix-functions/ftell.texi: Likewise.
9872
9873 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9874             Bruno Haible  <bruno@clisp.org>
9875
9876         Add dependencies to the 'largefile' module.
9877         * modules/fopen (Depends-on): Add 'largefile'.
9878         * modules/freopen (Depends-on): Likewise.
9879         * modules/fseeko (Depends-on): Likewise.
9880         * modules/ftello (Depends-on): Likewise.
9881         * modules/glob (Depends-on): Likewise.
9882         * modules/lseek (Depends-on): Likewise.
9883         * modules/lstat (Depends-on): Likewise.
9884         * modules/mkostemp (Depends-on): Likewise.
9885         * modules/mkostemps (Depends-on): Likewise.
9886         * modules/mkstemp (Depends-on): Likewise.
9887         * modules/mkstemps (Depends-on): Likewise.
9888         * modules/open (Depends-on): Likewise.
9889         * modules/openat (Depends-on): Likewise.
9890         * modules/pread (Depends-on): Likewise.
9891         * modules/pwrite (Depends-on): Likewise.
9892         * modules/scandir (Depends-on): Likewise.
9893         * modules/stat (Depends-on): Likewise.
9894         * modules/tmpfile (Depends-on): Likewise.
9895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9896         since the containing module now depends on the largefile module.
9897         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9898         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9899         off_t is fixed by gnulib.
9900         * doc/posix-functions/freopen.texi: Likewise.
9901         * doc/posix-functions/fseeko.texi: Likewise.
9902         * doc/posix-functions/fstatat.texi: Likewise.
9903         * doc/posix-functions/ftello.texi: Likewise.
9904         * doc/posix-functions/glob.texi: Likewise.
9905         * doc/posix-functions/lseek.texi: Likewise.
9906         * doc/posix-functions/lstat.texi: Likewise.
9907         * doc/posix-functions/mkstemp.texi: Likewise.
9908         * doc/posix-functions/open.texi: Likewise.
9909         * doc/posix-functions/openat.texi: Likewise.
9910         * doc/posix-functions/pread.texi: Likewise.
9911         * doc/posix-functions/pwrite.texi: Likewise.
9912         * doc/posix-functions/scandir.texi: Likewise.
9913         * doc/posix-functions/stat.texi: Likewise.
9914         * doc/posix-functions/tmpfile.texi: Likewise.
9915         * doc/glibc-functions/mkostemp.texi: Likewise.
9916         * doc/glibc-functions/mkostemps.texi: Likewise.
9917         * doc/glibc-functions/mkstemps.texi: Likewise.
9918
9919 2011-07-25  Bruno Haible  <bruno@clisp.org>
9920
9921         fcntl: Move AC_LIBOBJ invocation to module description.
9922         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9923         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9924
9925         fcntl: Remove call-in from fchdir.m4.
9926         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9928
9929         dup3: Remove potential call-in from fchdir.m4.
9930         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9932
9933         dup2: Move AC_LIBOBJ invocation to module description.
9934         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9935         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9936         Don't invoke AC_LIBOBJ.
9937         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9938
9939         dup2: Remove call-in from fchdir.m4.
9940         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9942
9943         fclose: Move AC_LIBOBJ invocation to module description.
9944         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9945         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9946         to 1.
9947         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9948
9949         fclose: Remove call-in from close.m4.
9950         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9951         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9952
9953         close: Move AC_LIBOBJ invocation to module description.
9954         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9955         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9956         1.
9957         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9958
9959         close: Remove call-in from fchdir.m4.
9960         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9962
9963         open: Move AC_LIBOBJ invocation to module description.
9964         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9965         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9966         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9967
9968         open: Remove call-in from fchdir.m4.
9969         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9971
9972         fchdir: Start to remove gl_REPLACE_* idiom.
9973         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9974         (gl_FUNC_FCHDIR): Invoke it.
9975
9976 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9977
9978         * lib/ftell.c (ftell): Comment out cast.
9979
9980         close: use gl_REPLACE_FCLOSE only if defined
9981         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9982         is defined.  The close module doesn't depend on the fclose module
9983         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9985         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9986
9987 2011-07-24  Jim Meyering  <meyering@redhat.com>
9988
9989         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9990         * tests/test-select.h (test_function): Declare as "static".
9991
9992 2011-07-24  Bruno Haible  <bruno@clisp.org>
9993
9994         doc: Mention the effects of AC_SYS_LARGEFILE.
9995         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9996         on this function.
9997         * doc/posix-functions/aio_error.texi: Likewise.
9998         * doc/posix-functions/aio_fsync.texi: Likewise.
9999         * doc/posix-functions/aio_read.texi: Likewise.
10000         * doc/posix-functions/aio_return.texi: Likewise.
10001         * doc/posix-functions/aio_suspend.texi: Likewise.
10002         * doc/posix-functions/aio_write.texi: Likewise.
10003         * doc/posix-functions/fgetpos.texi: Likewise.
10004         * doc/posix-functions/fopen.texi: Likewise.
10005         * doc/posix-functions/freopen.texi: Likewise.
10006         * doc/posix-functions/fsetpos.texi: Likewise.
10007         * doc/posix-functions/fstatvfs.texi: Likewise.
10008         * doc/posix-functions/ftruncate.texi: Likewise.
10009         * doc/posix-functions/ftw.texi: Likewise.
10010         * doc/posix-functions/getrlimit.texi: Likewise.
10011         * doc/posix-functions/glob.texi: Likewise.
10012         * doc/posix-functions/lio_listio.texi: Likewise.
10013         * doc/posix-functions/lockf.texi: Likewise.
10014         * doc/posix-functions/mkstemp.texi: Likewise.
10015         * doc/posix-functions/mmap.texi: Likewise.
10016         * doc/posix-functions/nftw.texi: Likewise.
10017         * doc/posix-functions/openat.texi: Likewise.
10018         * doc/posix-functions/opendir.texi: Likewise.
10019         * doc/posix-functions/posix_fadvise.texi: Likewise.
10020         * doc/posix-functions/posix_fallocate.texi: Likewise.
10021         * doc/posix-functions/pread.texi: Likewise.
10022         * doc/posix-functions/pwrite.texi: Likewise.
10023         * doc/posix-functions/readdir.texi: Likewise.
10024         * doc/posix-functions/readdir_r.texi: Likewise.
10025         * doc/posix-functions/rewinddir.texi: Likewise.
10026         * doc/posix-functions/scandir.texi: Likewise.
10027         * doc/posix-functions/seekdir.texi: Likewise.
10028         * doc/posix-functions/setrlimit.texi: Likewise.
10029         * doc/posix-functions/statvfs.texi: Likewise.
10030         * doc/posix-functions/telldir.texi: Likewise.
10031         * doc/posix-functions/tmpfile.texi: Likewise.
10032         * doc/posix-functions/truncate.texi: Likewise.
10033         * doc/glibc-functions/fallocate.texi: Likewise.
10034         * doc/glibc-functions/fstatfs.texi: Likewise.
10035         * doc/glibc-functions/fts_children.texi: Likewise.
10036         * doc/glibc-functions/fts_read.texi: Likewise.
10037         * doc/glibc-functions/getdirentries.texi: Likewise.
10038         * doc/glibc-functions/mkostemp.texi: Likewise.
10039         * doc/glibc-functions/mkostemps.texi: Likewise.
10040         * doc/glibc-functions/mkstemps.texi: Likewise.
10041         * doc/glibc-functions/preadv.texi: Likewise.
10042         * doc/glibc-functions/pwritev.texi: Likewise.
10043         * doc/glibc-functions/sendfile.texi: Likewise.
10044         * doc/glibc-functions/statfs.texi: Likewise.
10045
10046 2011-07-24  Bruno Haible  <bruno@clisp.org>
10047
10048         doc: Fix typo.
10049         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10050
10051 2011-07-24  Bruno Haible  <bruno@clisp.org>
10052
10053         doc: Mention fsusage.
10054         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10055
10056 2011-07-24  Bruno Haible  <bruno@clisp.org>
10057
10058         doc: Mention new glibc headers and functions.
10059         * doc/glibc-headers/gshadow.texi: New file.
10060         * doc/glibc-functions/endsgent.texi: New file.
10061         * doc/glibc-functions/fgetsgent.texi: New file.
10062         * doc/glibc-functions/fgetsgent_r.texi: New file.
10063         * doc/glibc-functions/getsgent.texi: New file.
10064         * doc/glibc-functions/getsgent_r.texi: New file.
10065         * doc/glibc-functions/getsgnam.texi: New file.
10066         * doc/glibc-functions/getsgnam_r.texi: New file.
10067         * doc/glibc-functions/putsgent.texi: New file.
10068         * doc/glibc-functions/setsgent.texi: New file.
10069         * doc/glibc-functions/sgetsgent.texi: New file.
10070         * doc/glibc-functions/sgetsgent_r.texi: New file.
10071         * doc/glibc-functions/malloc_info.texi: New file.
10072         * doc/glibc-functions/preadv.texi: New file.
10073         * doc/glibc-functions/pwritev.texi: New file.
10074         * doc/glibc-functions/register_printf_modifier.texi: New file.
10075         * doc/glibc-functions/register_printf_specifier.texi: New file.
10076         * doc/glibc-functions/register_printf_type.texi: New file.
10077         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10078         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10079         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10080         * doc/glibc-functions/pthread_getname_np.texi: New file.
10081         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10082         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10083         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10084         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10085         * doc/glibc-functions/pthread_setname_np.texi: New file.
10086         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10087         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10088         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10089         * doc/glibc-functions/qsort_r.texi: New file.
10090         * doc/glibc-functions/quick_exit.texi: New file.
10091         * doc/glibc-functions/syncfs.texi: New file.
10092         * doc/gnulib.texi: Include them.
10093         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10094         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10095         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10096         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10097         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10098         * doc/glibc-functions/execvpe.texi: Likewise.
10099
10100 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10101
10102         ftell: don't include <unistd.h>
10103         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10104         guaranteed to define off_t, and the ftell module depends on the
10105         stdio module.
10106
10107         ftell: do not assume wraparound signed arithmetic
10108         * lib/ftell.c: Include <limits.h>.
10109         (ftell): Don't assume wraparound signed arithmetic.
10110
10111 2011-07-24  Bruno Haible  <bruno@clisp.org>
10112
10113         close: No longer depend on module 'fclose'.
10114         * modules/close (Depends-on): Remove fclose.
10115         * NEWS: Mention the change.
10116         Suggested by Sam Steingold <sds@gnu.org>.
10117
10118 2011-07-24  Bruno Haible  <bruno@clisp.org>
10119
10120         fsusage: Enable large volume support on AIX >= 5.2.
10121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10122         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10123         instead of STAT_STATVFS.
10124         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10125
10126         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10127         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10128         f_blocks field only on MacOS X.
10129
10130         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10132         * modules/fsusage (Depends-on): Add largefile.
10133
10134 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10135
10136         * README: Modernize discussion of signed integers.
10137         Assuming overflow wraparound is no longer safe.
10138         Mention ones' complement and signed magnitude.
10139
10140 2011-07-22  Bruno Haible  <bruno@clisp.org>
10141
10142         select tests, pselect tests: Refactor.
10143         * tests/test-select.h: New file, extracted from tests/test-select.c.
10144         (select_fn): New type.
10145         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10146         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10147         test_pipe): Add my_select argument.
10148         (test_function): Renamed from main. Add my_select argument.
10149         * tests/test-select.c: Move most code to tests/test-select.h. Include
10150         test-select.h.
10151         * modules/select-tests (Files): Add tests/test-select.h.
10152         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10153         (my_select, main): New functions.
10154         * modules/pselect-tests (Files): Add tests/test-select.h,
10155         tests/macros.h, tests/signature.h.
10156         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10157         (configure.ac): Check for <sys/wait.h>.
10158
10159 2011-07-22  Bruno Haible  <bruno@clisp.org>
10160
10161         sys_select tests: Check the signature of FD_*.
10162         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10163         signature tests from here...
10164         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10165         here.
10166         * modules/sys_select-tests (Files): Add tests/signature.h.
10167
10168 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10169
10170         largefile: new module, replacing large-inode
10171         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10172         * MODULES.html.sh: Add largefile, remove large-inode.
10173         * modules/largefile, m4/largefile.m4: New files.
10174         * modules/large-inode, m4/large-inode.m4: Remove.
10175
10176         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10178         implementations that use only 32 bits to count blocks.
10179         On typical hosts with 1024-byte blocks, this fails with file
10180         systems as small as 4 TiB.  Problem reported by Herb Wartens
10181         <http://debbugs.gnu.org/9140> and this should also fix a similar
10182         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10183
10184         large-inode: New module
10185         * MODULES.html.sh: Add it.
10186         * modules/large-inode, m4/large-inode.m4: New files.
10187
10188         extensions: Enable extensions on MacOS X 10.5 and later.
10189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10190
10191 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10192
10193         file-has-acl: use acl_extended_file_nofollow if available
10194         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10195         (acl_extended_file): New macro.
10196         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10197         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10198
10199 2011-07-21  Bruno Haible  <bruno@clisp.org>
10200
10201         Declare system functions in a way that works with C++.
10202         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10203         declare fdopendir as extern "C".
10204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10205         declare frexpl as extern "C".
10206         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10207         declare gai_strerror as extern "C".
10208         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10209         programs, declare gai_strerror as extern "C".
10210         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10211         declare getlogin_r as extern "C".
10212         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10213         as extern "C".
10214         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10215         declare ldexpl as extern "C".
10216         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10217         as extern "C".
10218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10219         program, declare getmntinfo as extern "C".
10220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10221         stpncpy as extern "C".
10222         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10223         program, declare __xpg_strerror_r as extern "C".
10224         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10225         strndup as extern "C".
10226         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10227         declare memset and bzero as extern "C".
10228         Reported by Sam Steingold <sds@gnu.org>.
10229
10230 2011-07-12  Jim Meyering  <meyering@redhat.com>
10231
10232         maint.mk: prohibit inclusion of "verify.h" without use
10233         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10234
10235 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10236
10237         timer-time: A new module to check for timer_settime()
10238         * m4/timer_time.m4: Check for the posix function.
10239         * modules/timer-time: Add the new module.
10240         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10241         Mention it.
10242
10243 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10244             Bruno Haible  <bruno@clisp.org>
10245
10246         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10247         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10248         not defined, assume POSIX threads and look for pthread_sigmask in
10249         $LIBS, without changing $CPPFLAGS.
10250
10251 2011-07-19  Bruno Haible  <bruno@clisp.org>
10252
10253         strstr: Update cross-compilation guess.
10254         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10255         CPUs, guess no, in view of glibc
10256         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10257         Suggested by Eric Blake. Reported by Reuben Thomas.
10258
10259 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10260
10261         getopt-gnu: suppress core dumps from detection code
10262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10263         to suppress core dumps that may well occur on glibc systems.
10264         * modules/getopt-gnu: Depend on nocrash.
10265
10266 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10267
10268         pthread_sigmask: ensure usleep is declared
10269         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10270         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10271
10272 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10273
10274         doc: Document NonStop portability issues.
10275         * doc/posix-functions/sigaction.texi (sigaction):
10276         * doc/posix-headers/signal.texi (signal.h):
10277         Document NonStop.  See Joachim Schmitz in
10278         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10279
10280 2011-07-15  Bruno Haible  <bruno@clisp.org>
10281
10282         ffsl, ffsll: Avoid unportable behaviour.
10283         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10284
10285 2011-07-15  Bruno Haible  <bruno@clisp.org>
10286
10287         ffs: More tests.
10288         * tests/test-ffs.c (NBITS): New macro.
10289         (main): Add more tests.
10290         * tests/test-ffsl.c (NBITS): New macro.
10291         (main): Add more tests.
10292         * tests/test-ffsll.c (NBITS): New macro.
10293         (main): Add more tests.
10294
10295 2011-07-15  Eric Blake  <eblake@redhat.com>
10296
10297         ffsl, ffsll: new modules
10298         * modules/ffsl: New file.
10299         * modules/ffsll: Likewise.
10300         * m4/ffsl.m4: Likewise.
10301         * m4/ffsll.m4: Likewise.
10302         * lib/ffsl.c: Likewise.
10303         * lib/ffsl.h: Likewise.
10304         * lib/ffsll.c: Likewise.
10305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10306         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10307         * modules/string (Makefile.am): Substitute witnesses.
10308         * lib/strings.in.h (ffsl, ffsll): Declare.
10309         * modules/ffsl-tests: New test file.
10310         * modules/ffsll-tests: Likewise.
10311         * tests/test-ffsl.c: Likewise.
10312         * tests/test-ffsll.c: Likewise.
10313         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10314         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10315         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10316
10317         ffs: fix m4 prerequisite
10318         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10319
10320         ffs: avoid undefined behavior
10321         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10322         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10323         Reported by Bruno Haible.
10324
10325 2011-07-12  Bruno Haible  <bruno@clisp.org>
10326
10327         pthread_sigmask: Rely on module 'threadlib'.
10328         * modules/pthread_sigmask (Depends-on): Add threadlib.
10329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10330         is defined.
10331
10332 2011-07-12  Bruno Haible  <bruno@clisp.org>
10333
10334         regex: Depend on module 'strcase'.
10335         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10336
10337 2011-07-12  Jim Meyering  <meyering@redhat.com>
10338
10339         warn-on-use: fix typo in file name
10340         * modules/snippet/warn-on-use (Files): Correct file name:
10341         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10342
10343 2011-07-12  Bruno Haible  <bruno@clisp.org>
10344
10345         strings: Document module.
10346         * doc/posix-headers/strings.texi: Mention module 'strings'.
10347
10348 2011-07-12  Bruno Haible  <bruno@clisp.org>
10349
10350         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10351         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10352         (Files, Makefile.am): Update.
10353         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10354         * modules/stdlib (Depends-on): Update.
10355
10356 2011-07-12  Bruno Haible  <bruno@clisp.org>
10357
10358         * NEWS: Mention the changes.
10359
10360         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10361         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10362         (Files, Makefile.am): Update.
10363         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10364         * modules/arpa_inet (Depends-on): Update.
10365         * modules/ctype (Depends-on): Update.
10366         * modules/dirent (Depends-on): Update.
10367         * modules/fcntl-h (Depends-on): Update.
10368         * modules/glob (Depends-on): Update.
10369         * modules/iconv-h (Depends-on): Update.
10370         * modules/inttypes-incomplete (Depends-on): Update.
10371         * modules/langinfo (Depends-on): Update.
10372         * modules/locale (Depends-on): Update.
10373         * modules/math (Depends-on): Update.
10374         * modules/netdb (Depends-on): Update.
10375         * modules/poll-h (Depends-on): Update.
10376         * modules/pty (Depends-on): Update.
10377         * modules/search (Depends-on): Update.
10378         * modules/signal (Depends-on): Update.
10379         * modules/spawn (Depends-on): Update.
10380         * modules/stdio (Depends-on): Update.
10381         * modules/stdlib (Depends-on): Update.
10382         * modules/string (Depends-on): Update.
10383         * modules/strings (Depends-on): Update.
10384         * modules/sys_file (Depends-on): Update.
10385         * modules/sys_ioctl (Depends-on): Update.
10386         * modules/sys_select (Depends-on): Update.
10387         * modules/sys_socket (Depends-on): Update.
10388         * modules/sys_stat (Depends-on): Update.
10389         * modules/sys_time (Depends-on): Update.
10390         * modules/sys_times (Depends-on): Update.
10391         * modules/sys_utsname (Depends-on): Update.
10392         * modules/sys_wait (Depends-on): Update.
10393         * modules/termios (Depends-on): Update.
10394         * modules/time (Depends-on): Update.
10395         * modules/unistd (Depends-on): Update.
10396         * modules/wchar (Depends-on): Update.
10397         * modules/wctype-h (Depends-on): Update.
10398         * MODULES.html.sh (Support for building libraries and executables):
10399         Update.
10400
10401         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10402         * modules/snippet/unused-parameter: Renamed from
10403         modules/unused-parameter.
10404         (Files, Makefile.am): Update.
10405         * build-aux/snippet/unused-parameter.h: Renamed from
10406         build-aux/unused-parameter.h.
10407         * modules/selinux-h (Depends-on): Update.
10408         * modules/unistr/base (Depends-on): Update.
10409         * MODULES.html.sh (Core language properties): Update.
10410
10411         Rename module 'link-warning' to 'snippet/link-warning'.
10412         * modules/snippet/link-warning: Renamed from modules/link-warning.
10413         (Files, Makefile.am): Update.
10414         * build-aux/snippet/link-warning.h: Renamed from
10415         build-aux/link-warning.h.
10416         * MODULES.html.sh (Support for building libraries and executables):
10417         Update.
10418
10419         Rename module 'c++defs' to 'snippet/c++defs'.
10420         * modules/snippet/c++defs: Renamed from modules/c++defs.
10421         (Files, Makefile.am): Update.
10422         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10423         * modules/arpa_inet (Depends-on): Update.
10424         * modules/ctype (Depends-on): Update.
10425         * modules/dirent (Depends-on): Update.
10426         * modules/fcntl-h (Depends-on): Update.
10427         * modules/glob (Depends-on): Update.
10428         * modules/iconv-h (Depends-on): Update.
10429         * modules/langinfo (Depends-on): Update.
10430         * modules/locale (Depends-on): Update.
10431         * modules/math (Depends-on): Update.
10432         * modules/netdb (Depends-on): Update.
10433         * modules/poll-h (Depends-on): Update.
10434         * modules/pty (Depends-on): Update.
10435         * modules/search (Depends-on): Update.
10436         * modules/signal (Depends-on): Update.
10437         * modules/spawn (Depends-on): Update.
10438         * modules/stdio (Depends-on): Update.
10439         * modules/stdlib (Depends-on): Update.
10440         * modules/string (Depends-on): Update.
10441         * modules/strings (Depends-on): Update.
10442         * modules/sys_ioctl (Depends-on): Update.
10443         * modules/sys_select (Depends-on): Update.
10444         * modules/sys_socket (Depends-on): Update.
10445         * modules/sys_stat (Depends-on): Update.
10446         * modules/sys_time (Depends-on): Update.
10447         * modules/sys_wait (Depends-on): Update.
10448         * modules/termios (Depends-on): Update.
10449         * modules/time (Depends-on): Update.
10450         * modules/unistd (Depends-on): Update.
10451         * modules/wchar (Depends-on): Update.
10452         * modules/wctype-h (Depends-on): Update.
10453
10454         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10455         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10456         (Files, Makefile.am): Update.
10457         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10458         * modules/argv-iter (Depends-on): Update.
10459         * modules/arpa_inet (Depends-on): Update.
10460         * modules/dirent (Depends-on): Update.
10461         * modules/fcntl-h (Depends-on): Update.
10462         * modules/fnmatch (Depends-on): Update.
10463         * modules/getopt-posix (Depends-on): Update.
10464         * modules/glob (Depends-on): Update.
10465         * modules/iconv-h (Depends-on): Update.
10466         * modules/inttypes-incomplete (Depends-on): Update.
10467         * modules/locale (Depends-on): Update.
10468         * modules/math (Depends-on): Update.
10469         * modules/netdb (Depends-on): Update.
10470         * modules/search (Depends-on): Update.
10471         * modules/signal (Depends-on): Update.
10472         * modules/spawn (Depends-on): Update.
10473         * modules/stdio (Depends-on): Update.
10474         * modules/stdlib (Depends-on): Update.
10475         * modules/string (Depends-on): Update.
10476         * modules/strings (Depends-on): Update.
10477         * modules/sys_socket (Depends-on): Update.
10478         * modules/sys_stat (Depends-on): Update.
10479         * modules/sys_time (Depends-on): Update.
10480         * modules/sys_times (Depends-on): Update.
10481         * modules/sys_utsname (Depends-on): Update.
10482         * modules/time (Depends-on): Update.
10483         * modules/unistd (Depends-on): Update.
10484         * modules/wchar (Depends-on): Update.
10485         * MODULES.html.sh (Support for building libraries and executables):
10486         Update.
10487
10488 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10489
10490         Improvements on _Noreturn and related modules.
10491
10492         modules/_Exit-tests: test _Noreturn too
10493         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10494         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10495         (main): Use them.
10496
10497         stdnoreturn, stdnoreturn-tests: remove modules
10498         They're not needed here and a bit premature for use elsewhere.  See
10499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10500         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10501         * tests/test-stdnoreturn.c: Remove files.
10502         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10503         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10504         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10505         and using noreturn.
10506         * modules/openat, modules/sigpipe-die, modules/xalloc:
10507         * modules/xmemdup0, modules/xstrtol:
10508         Remove dependency on stdnoreturn.
10509
10510         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10511         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10512         Reparenthesize to avoid GCC warning.
10513         Support Microsoft's syntax.
10514         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10515
10516         _Noreturn-tests: remove module
10517         * modules/_Noreturn-tests: Remove.
10518         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10519         * tests/test-_Noreturn.c: Remove.
10520         * tests/test-stdnoreturn.c: Merge from the old
10521         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10522
10523 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10524
10525         _Noreturn, stdnoreturn, and related modules.
10526
10527         * top/maint.mk: Adjust to new noreturn support.
10528         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10529         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10530
10531         xalloc: use stdnoreturn.h
10532         * lib/xalloc.h: Include <stdnoreturn.h>.
10533         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10534         * modules/xalloc (Depends-on): Add stdnoreturn.
10535
10536         xstrtol: use stdnoreturn.h
10537         * lib/xstrtol.h: Include <stdnoreturn.h>.
10538         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10539         * modules/xstrtol (Depends-on): Add stdnoreturn.
10540
10541         xmemdup0: use stdnoreturn.h
10542         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10543         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10544         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10545
10546         sigpipe-die: use stdnoreturn.h
10547         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10548         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10549         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10550
10551         openat: use stdnoreturn.h
10552         * lib/openat.h: Include <stdnoreturn.h>.
10553         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10554         * modules/openat (Depends-on): Add stdnoreturn.
10555
10556         * lib/openat-die.c (openat_save_fail): Modernize comment.
10557
10558         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10559
10560         * lib/glthread/thread.h: Modernize comment.
10561
10562         obstack: use _Noreturn
10563         * lib/obstack.c (__attribute__): Remove macro.
10564         (print_and_abort): Use _Noreturn.
10565
10566         c-stack: use _Noreturn
10567         * lib/c-stack.c (die, overflow_handler, segv_handler):
10568         Use _Noreturn rather than __attribute__((noreturn)).
10569
10570         argmatch-tests, exclude_tests: use _Noreturn
10571         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10572         Remove.
10573         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10574
10575         stdlib: use _Noreturn
10576         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10577         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10578         * modules/stdlib (Depends-on): Add _Noreturn.
10579         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10580
10581         stdnoreturn-tests: new module
10582         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10583
10584         stdnoreturn: new module
10585         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10586         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10587
10588         _Noreturn-tests: new module
10589         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10590
10591         _Noreturn: new module
10592         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10593         New section, mentioning it.
10594         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10595
10596         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10597
10598 2011-07-11  Eric Blake  <eblake@redhat.com>
10599
10600         ffs: new module
10601         * modules/ffs: New file.
10602         * m4/ffs.m4: Likewise.
10603         * lib/ffs.c: Likewise.
10604         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10605         * modules/strings (Makefile.am): Substitute witness.
10606         (Depends-on): Add c++defs.
10607         * lib/strings.in.h (ffs): Declare.
10608         * modules/ffs-tests: New test file.
10609         * tests/test-ffs.c: Test new module.
10610         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10611         * doc/posix-functions/ffs.texi (ffs): Likewise.
10612
10613         regex: avoid compiler warning
10614         * lib/regex.c (includes): Include <strings.h>, for use of
10615         strcasecmp in regcomp.c.
10616         Reported by Joachim Schmitz.
10617
10618 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10619
10620         stdint: respect system's intmax_t if INTMAX_MAX
10621         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10622         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10623         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10624         long but int64_t is long long, and where we will clash with the
10625         system intmax_t if we override it.  See
10626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10627         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10628         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10629         similarly for UINTMAX_C.
10630
10631 2011-07-08  Bruno Haible  <bruno@clisp.org>
10632
10633         pthread_sigmask tests: Avoid a compiler warning.
10634         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10635         non-zero.
10636
10637         sigprocmask tests: A better way to avoid a compiler warning.
10638         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10639         (main): Complain if system() returns non-zero.
10640         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10641
10642 2011-07-08  Bruno Haible  <bruno@clisp.org>
10643
10644         pthread_sigmask: Work around IRIX bug.
10645         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10646         bug.
10647         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10648         there may be unblocked pending signals.
10649         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10650
10651 2011-07-08  Bruno Haible  <bruno@clisp.org>
10652
10653         pthread_sigmask: Work around Cygwin bug.
10654         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10655         bug.
10656         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10657         the system's pthread_sigmask function.
10658         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10659
10660 2011-07-08  Bruno Haible  <bruno@clisp.org>
10661
10662         pthread_sigmask: Work around bug in single-threaded implementation.
10663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10664         FreeBSD, HP-UX, Solaris bug.
10665         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10666         * lib/pthread_sigmask.c: Include <stddef.h>.
10667         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10668         the system's pthread_sigmask function.
10669         * modules/pthread_sigmask (configure.ac): Invoke
10670         gl_PREREQ_PTHREAD_SIGMASK.
10671         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10672         HP-UX, Solaris.
10673
10674 2011-07-08  Eric Blake  <eblake@redhat.com>
10675
10676         test-sigprocmask: avoid compiler warning
10677         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10678         * tests/test-sigprocmask.c (main): Use it to silence warning.
10679         Reported by Jim Meyering.
10680
10681         test-snprintf: avoid compiler warning
10682         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10683         * tests/test-vsnprintf.c (main): Likewise.
10684         Reported by Jim Meyering.
10685
10686 2011-07-08  Bruno Haible  <bruno@clisp.org>
10687
10688         Tests for module 'pthread_sigmask'.
10689         * modules/pthread_sigmask-tests: New file.
10690         * tests/test-pthread_sigmask1.c: New file, based on
10691         tests/test-sigprocmask.c.
10692         * tests/test-pthread_sigmask2.c: New file.
10693
10694 2011-07-08  Jim Meyering  <meyering@redhat.com>
10695
10696         test-getopt.h: avoid warning about an unused variable
10697         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10698
10699 2011-07-07  Jim Meyering  <meyering@redhat.com>
10700
10701         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10702         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10703         now that it no longer contains leading TABs.
10704         Remove unused "url=FIXME" statement.
10705
10706 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10707
10708         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10709         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10710         When gl_THREADLIB is not in use, assume that the POSIX sematics
10711         are desired.  This is better for Emacs, which uses POSIX semantics
10712         on GNUish and/or POSIXish platforms, and does not use threads at
10713         all otherwise.
10714
10715         pthread_sigmask: fix typo when testing for libraries
10716         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10717         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10718
10719 2011-07-08  Eric Blake  <eblake@redhat.com>
10720
10721         fts: introduce FTS_NOATIME
10722         * lib/fts_.h (FTS_NOATIME): New bit flag.
10723         (FTS_OPTIONMASK): Adjust.
10724         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10725         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10726
10727 2011-07-08  Bruno Haible  <bruno@clisp.org>
10728
10729         Tests for module 'thread'.
10730         * modules/thread-tests: New file.
10731         * tests/test-thread_self.c: New file.
10732         * tests/test-thread_create.cc: New file.
10733
10734 2011-07-08  Bruno Haible  <bruno@clisp.org>
10735
10736         thread: Avoid gcc warnings when using gl_thread_self().
10737         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10738         'void *'.
10739         (gl_thread_self_pointer): Update.
10740
10741 2011-07-07  Bruno Haible  <bruno@clisp.org>
10742
10743         signal-c++-tests: Check declaration of pthread_sigmask.
10744         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10745         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10746         $(LIB_PTHREAD_SIGMASK).
10747
10748 2011-07-07  Bruno Haible  <bruno@clisp.org>
10749
10750         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10751         * lib/signal.in.h (pthread_sigmask): Override if
10752         REPLACE_PTHREAD_SIGMASK is 1.
10753         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10754         REPLACE_PTHREAD_SIGMASK.
10755         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10756         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10757         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10758         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10759         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10760
10761 2011-07-07  Bruno Haible  <bruno@clisp.org>
10762
10763         pthread_sigmask: Ensure declaration in <signal.h>.
10764         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10765         include <pthread.h>.
10766         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10767         problem.
10768
10769 2011-07-07  Bruno Haible  <bruno@clisp.org>
10770
10771         pthread_sigmask: Document the module.
10772         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10773
10774 2011-07-07  Bruno Haible  <bruno@clisp.org>
10775
10776         pthread_sigmask: Follow gnulib conventions.
10777         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10778         gl_PTHREAD_SIGMASK.
10779         * modules/pthread_sigmask (configure.ac): Update.
10780
10781 2011-07-07  Bruno Haible  <bruno@clisp.org>
10782
10783         pthread_sigmask: Make declaration C++ safe.
10784         * lib/signal.in.h: In two special conditions, just do an #include_next.
10785         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10786         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10787         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10788         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10789         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10790         not REPLACE_PTHREAD_MASK.
10791         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10792         not REPLACE_PTHREAD_MASK.
10793         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10794
10795 2011-07-07  Bruno Haible  <bruno@clisp.org>
10796
10797         pthread_sigmask: Fix return value.
10798         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10799         * lib/pthread_sigmask.c: New file.
10800         * modules/pthread_sigmask (Files): Add it.
10801         (configure.ac): Invoke AC_LIBOBJ.
10802
10803 2011-07-07  Eric Blake  <eblake@redhat.com>
10804
10805         getopt: more portable argv creation
10806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10807         const, use char arrays rather than strings.
10808         Suggested by Paul Eggert.
10809
10810 2011-07-07  Bruno Haible  <bruno@clisp.org>
10811
10812         Tests for module 'sigprocmask'.
10813         * modules/sigprocmask-tests: New file.
10814         * tests/test-sigprocmask.c: New file.
10815
10816 2011-07-07  Bruno Haible  <bruno@clisp.org>
10817
10818         float tests: Tweak.
10819         * tests/test-float.c (main): Tweak skip message.
10820
10821 2011-07-07  Eric Blake  <eblake@redhat.com>
10822
10823         getopt: avoid compiler warning during configure
10824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10825         assigning string literals to non-const pointer.
10826
10827         getopt-gnu: avoid crash in glibc getopt
10828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10829         * tests/test-getopt.h (test_getopt): Enhance test.
10830         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10831         * doc/posix-functions/getopt.texi (getopt): Document it.
10832         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10834         Likewise.
10835
10836 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10837
10838         getopt: handle W; without long options in getopt [BZ #12922]
10839         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10840         but no long options are defined, just return 'W'.
10841
10842 2011-07-07  Bruno Haible  <bruno@clisp.org>
10843
10844         Avoid literal tabs.
10845         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10846         variable containing a tab instead of a literal tab.
10847         Reported by Jim Meyering.
10848
10849 2011-07-07  Bruno Haible  <bruno@clisp.org>
10850
10851         Comments.
10852         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10853
10854 2011-07-06  Bruno Haible  <bruno@clisp.org>
10855
10856         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10857         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10858         <winsock2.h>.
10859         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10860         lib/sys_socket.in.h.
10861         (close, gethostname): Hide declarations from <winsock2.h>.
10862         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10863         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10864         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10865         (select): Don't override if gnulib's <sys/select.h> was already
10866         included.
10867         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10868         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10869         setsockopt, shutdown, select): Tweak indentation.
10870
10871 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10872
10873         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10874         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10875         in an application that does not use the sys_select module.
10876
10877 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10878
10879         poll: do not return 0 on timeout=-1
10880         * lib/poll.c: Loop with yield if no events occured
10881
10882 2011-07-06  Eric Blake  <eblake@redhat.com>
10883
10884         pthread_sigmask: always replace when not using pthread
10885         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10886         replacement when using some threading other than pthread.  Fix
10887         logic bug.
10888
10889 2011-07-06  Bruno Haible  <bruno@clisp.org>
10890
10891         Comments.
10892         * m4/printf.m4: Update comments about mingw.
10893
10894 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10895
10896         sys_select: define sigset_t more portably
10897         * lib/sys_select.in.h: Always include <sys/types.h>, since
10898         we now need sigset_t and mingw defines it there.
10899         Include <signal.h> before split inclusion guard, to avoid
10900         mishaps on Solaris, whose <signal.h> eventually includes us.
10901         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10902         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10903         which come from ...
10904         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10905         gl_CHECK_TYPE_SIGSET_T.
10906         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10907         does the real work.
10908         * modules/sys_select (Depends-on): Add 'signal'.
10909
10910         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10911         Suggested by Bruno Haible.
10912
10913         pselect: Use pthread_sigmask, not sigprocmask.
10914         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10915         multithreaded apps better than sigprocmask does.
10916         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10917         sigprocmask directly.
10918
10919 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10920
10921         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10922         Don't #undef,  since we don't need any underlying pselect.
10923         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10924         (Depends-on): Add select.
10925         (Link): Add $(LIBSOCKET).
10926         These changes suggested by Bruno Haible.
10927
10928         pselect: document better
10929         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10930         * doc/posix-functions/pselect.texi (pselect): Document new module.
10931
10932         pthread_sigmask: new module
10933         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10934         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10935         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10936         This is done only as a macro; I don't know how well that'll
10937         work for C++.  Move <sys/types.h> include before the include_next,
10938         to avoid mishap on Solaris.
10939         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10940         * modules/signal (Makefile.am): Substitute the check's results.
10941         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10942
10943         test-pselect: new module
10944         * modules/pselect-tests, tests/test-pselect.c: New files.
10945         * tests/test-select.c, tests/test-sys_select-c++.cc:
10946         If TEST_PSELECT is defined, test pselect instead of testing select.
10947
10948         * tests/test-sys_select.c (sigset_t): Test for it, too.
10949         Suggested by Bruno Haible.
10950
10951 2011-07-05  Eric Blake  <eblake@redhat.com>
10952
10953         snprintf: guarantee %1$d, for libintl
10954         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10955         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10956         * doc/posix-functions/snprintf.texi (snprintf): Update.
10957         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10958         * tests/test-snprintf.c (main): Enhance test.
10959         * tests/test-vsnprintf.c (main): Likewise.
10960
10961 2011-07-05  Jim Meyering  <meyering@redhat.com>
10962
10963         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10964         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10965         per Bruno's request, to accommodate this idiom (no space after "#")
10966         even when the function is inside an #if block:
10967         char *
10968         gets (char *s)
10969         #undef gets
10970         {
10971           ...
10972         }
10973
10974 2011-07-04  Jim Meyering  <meyering@redhat.com>
10975
10976         maint: indent with spaces, not TABs, and add a rule to check this
10977         * tests/test-userspec.c: Indent with spaces, not TABs.
10978         * tests/test-argp.c: Likewise.
10979         * tests/test-c-stack2.sh: Likewise.
10980         * tests/test-parse-duration.sh: Likewise
10981         * m4/strtod.m4: Likewise.
10982         * m4/alloca.m4: Likewise.
10983         * m4/pselect.m4: Likewise.
10984         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10985
10986 2011-07-03  Jim Meyering  <meyering@redhat.com>
10987
10988         maint.mk: correct omissions in prohibit_argmatch_without_use check
10989         This rule would mistakenly report that argmatch.h is included without
10990         use even when both the argmatch and invalid_arg macro were used.
10991         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10992         of argmatch and invalid_arg.
10993
10994 2011-07-03  Bruno Haible  <bruno@clisp.org>
10995
10996         Comments about EINTR.
10997         * lib/safe-read.h: Explain the purpose of this module.
10998         * lib/safe-write.h: Likewise.
10999         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11000         module.
11001         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11002         module.
11003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11004
11005 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         xnanosleep: Rewrite to use new dtotimespec module.
11008         It has the conversion code that used to be in xnanosleep.
11009         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11010         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11011         (TIME_T_MAX): Remove.
11012         (xnanosleep): Rewrite in terms of dtotimespec.
11013         * modules/xnanosleep (Depends-on): Add dtotimespec.
11014         Remove intprops, stdbool.
11015
11016         timespec-add, timespec-sub: new modules
11017         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11018         * lib/timespec-add.c, lib/timespec-sub.c:
11019         * modules/timespec-add, modules/timespec-sub: New files.
11020
11021         dtotimespec: new module
11022         * lib/timespec.h (dtotimespec): New decl.
11023         * lib/dtotimespec.c, modules/dtotimespec: New files.
11024
11025         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11026
11027         pselect: new module
11028         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11029         (pselect): New decls.
11030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11031         since the standard pselect decl uses 'restrict'.
11032         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11033         HAVE_PSELECT, REPLACE_PSELECT.
11034         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11035         HAVE_PSELECT, REPLACE_PSELECT.
11036         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11037
11038         sys_select: don't depend on sys_socket
11039         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11041         This fix works on GNU and GNU-like platforms, but has not been tested
11042         on native Windows.
11043         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11044         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11045         gl_HEADER_SYS_SOCKET.
11046         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11047         gl_PREREQ_SYS_H_WINSOCK2.
11048
11049 2011-06-29  Eric Blake  <eblake@redhat.com>
11050
11051         pipe2: fix C89 compile problem
11052         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11053         Reported by Bruno Haible.
11054
11055         pipe, pipe2: don't corrupt fd on error
11056         * lib/pipe.c (pipe): Leave fd unchanged on error.
11057         * lib/pipe2.c (pipe2): Likewise.
11058         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11059         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11060
11061 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11062
11063         mmap-anon: do not use regular expressions inadvertently
11064         * m4/mmap-anon.m4: Remove trailing period from strings sought
11065         in the output.
11066
11067 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         nanosleep: fix integer overflow problem
11070         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11071         arithmetic wraps around on overflow.
11072
11073         nanosleep: simplify carrying
11074         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11075         first call to the underyling nanosleep, not for the last one.
11076         This doesn't fix any bugs, but it simplifies the computation of
11077         the remaining delay.  Found while auditing integer overflow issues.
11078
11079         dup2: remove test for existence of fcntl
11080         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11081         "#if HAVE_FCNTL", in the configure-time test program.
11082         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11083         and therefore speeds up "configure" a bit.  Found while
11084         adding the dup2 module to Emacs.
11085
11086 2011-06-24  Eric Blake  <eblake@redhat.com>
11087
11088         maint.mk: enhance useless header checks
11089         * top/maint.mk (_sc_header_without_use): Check both include
11090         styles.
11091         (sc_prohibit_assert_without_use)
11092         (sc_prohibit_close_stream_without_use)
11093         (sc_prohibit_getopt_without_use)
11094         (sc_prohibit_quotearg_without_use)
11095         (sc_prohibit_quote_without_use)
11096         (sc_prohibit_long_options_without_use)
11097         (sc_prohibit_inttostr_without_use)
11098         (sc_prohibit_ignore_value_without_use)
11099         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11100         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11101         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11102         (sc_prohibit_hash_pjw_without_use)
11103         (sc_prohibit_safe_read_without_use)
11104         (sc_prohibit_argmatch_without_use)
11105         (sc_prohibit_canonicalize_without_use)
11106         (sc_prohibit_root_dev_ino_without_use)
11107         (sc_prohibit_openat_without_use)
11108         (sc_prohibit_c_ctype_without_use)
11109         (sc_prohibit_signal_without_use)
11110         (sc_prohibit_stdio--_without_use)
11111         (sc_prohibit_stdio-safer_without_use)
11112         (sc_prohibit_strings_without_use)
11113         (sc_prohibit_intprops_without_use)
11114         (sc_prohibit_stddef_without_use)
11115         (sc_prohibit_xfreopen_without_use): Update clients.
11116
11117 2011-06-24  Jim Meyering  <meyering@redhat.com>
11118
11119         syntax-check: keep one maint.mk rule in sync with its header
11120         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11121         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11122         I prefer to avoid temporary files here, so use <(...), but that
11123         is not supported by /bin/sh, so...
11124         (SHELL): Define to /bin/bash.
11125
11126 2011-06-24  Eric Blake  <eblake@redhat.com>
11127
11128         maint.mk: update sc_prohibit_intprops_without_use
11129         * top/maint.mk (_intprops_names): Match recent changes.
11130
11131 2011-06-24  Bruno Haible  <bruno@clisp.org>
11132
11133         strerror-override: No-op tweak.
11134         * lib/strerror-override.h (strerror_override): Reorder conditions,
11135         for consistency with lib/strerror-override.c.
11136
11137 2011-06-23  Eric Blake  <eblake@redhat.com>
11138
11139         maint.mk: test further PATH_MAX issues
11140         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11141         (sc_prohibit_path_max_allocation): ...and also test alloca.
11142         Suggested by Jim Meyering.
11143
11144 2011-06-22  Eric Blake  <eblake@redhat.com>
11145
11146         maint.mk: add syntax-check to avoid char[PATH_MAX]
11147         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11148
11149         stat: be robust to PATH_MAX definition
11150         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11151         * modules/stat (Depends-on): Add verify.
11152
11153         link: work around IRIX bug
11154         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11155         * lib/link.c (rpl_link): Work around it.
11156         * tests/test-link.h (test_link): Enhance test.
11157         * doc/posix-functions/link.texi (link): Document the bug.
11158
11159         getopt: silence clang warning
11160         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11161         dereference.
11162         Reported by Gustavo Martin Domato.
11163
11164 2011-06-22  Jim Meyering  <meyering@redhat.com>
11165
11166         bootstrap: do not insert a blank line into each .gitignore file
11167         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11168
11169 2011-06-21  Eric Blake  <eblake@redhat.com>
11170
11171         perror: test for output mismatch
11172         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11173         perror on IRIX.
11174
11175         strerror_r: fix OpenBSD behavior on out-of-range
11176         * lib/strerror_r.c (strerror_r): Always use maximal string.
11177         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11178
11179         strerror_r: fix OpenBSD behavior on 0
11180         * lib/strerror-override.c (strerror_override): Also override 0
11181         when needed.
11182         * lib/strerror-override.h (strerror_override): Likewise.
11183         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11184         earlier.
11185         * lib/strerror_r.c (strerror_r): Likewise.
11186         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11187         behavior...
11188         (gl_FUNC_STRERROR_0): ...into new macro.
11189         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11190         is overridden.
11191         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11192         * modules/strerror-override (Files): Add strerror.m4.
11193         (configure.ac): Also provide override for 0 when needed.
11194         * doc/posix-functions/strerror.texi (strerror): Document this.
11195         * doc/posix-functions/perror.texi (perror): Likewise.
11196
11197         perror: adjust array size
11198         * modules/perror (Depends-on): Add strerror-override.
11199         * lib/perror.c (perror): Use it to avoid magic number.
11200
11201         strerror-override: reduce size
11202         * lib/strerror-override.c (strerror_override): Use fewer lines.
11203
11204 2011-06-20  Bruno Haible  <bruno@clisp.org>
11205
11206         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11207         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11208
11209 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         alloca: port to compilers that can optimize like GCC 4.6.0
11212         * lib/alloca.c (find_stack_direction): New signature, taken from
11213         Autoconf git.  This works with GCC 4.6.0.  This code should never
11214         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11215         be used with other compilers that optimize as well as GCC 4.6.0 does.
11216         (alloca): Adjust to new signature.
11217         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11218         New macro, which patches Autoconf in a similar way.
11219
11220         c-stack: stop worrying about stack direction
11221         * lib/c-stack.c (find_stack_direction): Remove.
11222         (segv_handler): Don't worry about stack direction growth, as it's
11223         too much of a pain to configure this correctly, given how compilers
11224         are optimizing-away our stack-growth detection code.  Instead, assume
11225         that any access to just before or just after the stack is OK.
11226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11227         Don't require AC_FUNC_ALLOCA; no longer needed.
11228
11229 2011-06-20  Eric Blake  <eblake@redhat.com>
11230
11231         test-stat: don't allocate PATH_MAX bytes
11232         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11233         PATH_MAX-sized buffer.
11234         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11235         * modules/stat-tests (Depends-on): Likewise.
11236         * tests/test-fstatat.c (includes): Drop pathmax.h.
11237         * tests/test-stat.c (includes): Likewise.
11238         Reported by Bruno Haible.
11239
11240 2011-06-20  Bruno Haible  <bruno@clisp.org>
11241
11242         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11243         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11244         * lib/float.c: New file.
11245         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11246         REPLACE_FLOAT_LDBL.
11247         * modules/float (Files): Add lib/float.c.
11248         (configure.ac): Invoke AC_LIBOBJ.
11249         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11250
11251 2011-06-20  Bruno Haible  <bruno@clisp.org>
11252
11253         Tests for module 'float'.
11254         * modules/float-tests: New file.
11255         * tests/test-float.c: New file.
11256
11257 2011-06-19  Bruno Haible  <bruno@clisp.org>
11258
11259         isinf: Coding style.
11260         * lib/isinf.c: Use GNU coding style.
11261
11262 2011-06-19  Bruno Haible  <bruno@clisp.org>
11263
11264         linkat test: Avoid test failure on AIX 7.1.
11265         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11266         * tests/test-link.h (test_link): Likewise.
11267
11268 2011-06-19  Bruno Haible  <bruno@clisp.org>
11269
11270         pread test: Avoid test failure on OpenBSD 4.9.
11271         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11272
11273 2011-06-19  Bruno Haible  <bruno@clisp.org>
11274
11275         sprintf-posix: Fix test failure on AIX 7.1.
11276         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11277         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11278         on AIX.
11279         * doc/posix-functions/fprintf.texi: Likewise.
11280         * doc/posix-functions/printf.texi: Likewise.
11281         * doc/posix-functions/snprintf.texi: Likewise.
11282         * doc/posix-functions/sprintf.texi: Likewise.
11283         * doc/posix-functions/vdprintf.texi: Likewise.
11284         * doc/posix-functions/vfprintf.texi: Likewise.
11285         * doc/posix-functions/vprintf.texi: Likewise.
11286         * doc/posix-functions/vsnprintf.texi: Likewise.
11287         * doc/posix-functions/vsprintf.texi: Likewise.
11288
11289 2011-06-19  Bruno Haible  <bruno@clisp.org>
11290
11291         roundl-ieee: Fix test failure on AIX 7.1.
11292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11293         * doc/posix-functions/roundl.texi: Mention problem with negative
11294         arguments.
11295
11296 2011-06-19  Bruno Haible  <bruno@clisp.org>
11297
11298         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11299         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11300         * doc/posix-functions/round.texi: Mention problem with negative
11301         arguments.
11302         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11303
11304 2011-06-19  Bruno Haible  <bruno@clisp.org>
11305
11306         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11308         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11309         * doc/posix-functions/roundf.texi: Mention problem with negative
11310         arguments.
11311         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11312
11313 2011-06-19  Bruno Haible  <bruno@clisp.org>
11314
11315         ceilf-ieee: Work around bug on MacOS X 10.5.
11316         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11317
11318         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11319         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11320         IEEE compliant, avoid compiler optimizations.
11321         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11322         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11323         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11324         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11325         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11326         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11327         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11328         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11329         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11330         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11331
11332 2011-06-19  Bruno Haible  <bruno@clisp.org>
11333
11334         ceilf-ieee: Work around bug on AIX 7.1.
11335         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11336         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11337
11338 2011-06-19  Bruno Haible  <bruno@clisp.org>
11339
11340         ceil-ieee: Work around bug on AIX 7.1.
11341         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11342         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11343
11344 2011-06-18  Bruno Haible  <bruno@clisp.org>
11345
11346         fsync test: Avoid test failure on MacOS X and AIX.
11347         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11348         EINVAL.
11349
11350 2011-06-18  Bruno Haible  <bruno@clisp.org>
11351
11352         openat, fdopendir tests: Fix link errors.
11353         * modules/openat-tests (Depends-on): Add progname.
11354         * modules/fdopendir-tests (Depends-on): Likewise.
11355         * tests/test-fchownat.c: Include progname.h.
11356         (main): Call set_program_name.
11357         * tests/test-fstatat.c: Include progname.h.
11358         (main): Call set_program_name.
11359         * tests/test-mkdirat.c: Include progname.h.
11360         (main): Call set_program_name.
11361         * tests/test-openat.c: Include progname.h.
11362         (main): Call set_program_name.
11363         * tests/test-unlinkat.c: Include progname.h.
11364         (main): Call set_program_name.
11365         * tests/test-fdopendir.c: Include progname.h.
11366         (main): Call set_program_name.
11367
11368 2011-06-18  Bruno Haible  <bruno@clisp.org>
11369
11370         Doc update.
11371         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11372         HP-UX.
11373         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11374
11375 2011-06-18  Bruno Haible  <bruno@clisp.org>
11376
11377         getcwd tests: Avoid compilation error on HP-UX 11.31.
11378         * modules/getcwd-tests (Depends-on): Add pathmax.
11379         * tests/test-getcwd.c: Include pathmax.h.
11380
11381 2011-06-18  Bruno Haible  <bruno@clisp.org>
11382
11383         isfinite, isinf: Fix link error on AIX 6 and 7.
11384         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11385         needed, also test the macro with a 'float' argument.
11386         * m4/isinf.m4 (gl_ISINF): Likewise.
11387
11388 2011-06-18  Bruno Haible  <bruno@clisp.org>
11389
11390         getloadavg: Don't clobber LIBS. Regression from previous commit.
11391         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11392         AC_CHECK_LIB from here...
11393         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11394         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11395         gl_func_getloadavg_done.
11396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11397
11398 2011-06-18  Bruno Haible  <bruno@clisp.org>
11399
11400         clean-temp: Improve documentation.
11401         * lib/clean-temp.h: Explain better how to use this module.
11402         Reported by John Darrington <john@darrington.wattle.id.au>.
11403
11404 2011-06-17  Bruno Haible  <bruno@clisp.org>
11405
11406         pread, pwrite: Avoid cc warning on AIX.
11407         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11408         (pwrite): Likewise.
11409
11410 2011-06-17  Bruno Haible  <bruno@clisp.org>
11411
11412         spawn-pipe tests: Fix link error.
11413         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11415
11416 2011-06-17  Bruno Haible  <bruno@clisp.org>
11417
11418         Tests: Remove unnecessary dependency.
11419         * modules/canonicalize-tests (Depends-on): Remove progname.
11420         * modules/chown-tests (Depends-on): Likewise.
11421         * modules/dirname-tests (Depends-on): Likewise.
11422         * modules/fdopendir-tests (Depends-on): Likewise.
11423         * modules/fdutimensat-tests (Depends-on): Likewise.
11424         * modules/hash-tests (Depends-on): Likewise.
11425         * modules/lchown-tests (Depends-on): Likewise.
11426         * modules/linkat-tests (Depends-on): Likewise.
11427         * modules/renameat-tests (Depends-on): Likewise.
11428         * modules/spawn-pipe-tests (Depends-on): Likewise.
11429         * modules/utimensat-tests (Depends-on): Likewise.
11430
11431 2011-06-17  Bruno Haible  <bruno@clisp.org>
11432
11433         spawn-pipe tests: Fix link error.
11434         * tests/test-spawn-pipe-child.c: Undefine fflush.
11435
11436 2011-06-17  Bruno Haible  <bruno@clisp.org>
11437
11438         Fix tests link errors.
11439         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11440         * modules/chown-tests (Makefile.am): Don't link test-chown with
11441         LIBINTL.
11442         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11443         LIBINTL.
11444         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11445         LIBINTL.
11446         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11447         LIBINTL.
11448
11449 2011-06-16  Bruno Haible  <bruno@clisp.org>
11450
11451         crypto/gc-sha1: Fix recent regression.
11452         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11453         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11454
11455         crypto/gc-md5: Fix recent regression.
11456         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11457
11458         crypto/gc-md4: Fix recent regression.
11459         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11460         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11461
11462         crypto/gc-arctwo: Fix recent regression.
11463         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11464         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11465
11466         crypto/gc-rijndael: Fix recent regression.
11467         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11468         (configure.ac): Invoke AC_LIBOBJ here.
11469         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11470         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11471
11472         crypto/gc-hmac-sha1: Fix recent regression.
11473         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11474         (configure.ac): Invoke AC_LIBOBJ here.
11475         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11477
11478         crypto/gc-hmac-md5: Fix recent regression.
11479         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11480         (configure.ac): Invoke AC_LIBOBJ here.
11481         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11483
11484         crypto/gc-des: Fix recent regression.
11485         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11486         (configure.ac): Invoke AC_LIBOBJ here.
11487         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11489
11490         crypto/gc-arcfour: Fix recent regression.
11491         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11492         (configure.ac): Invoke AC_LIBOBJ here.
11493         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11495
11496 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11497
11498         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11499         After the 2011-05-21 change, this macro requires
11500         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11501         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11502
11503 2011-06-16  Bruno Haible  <bruno@clisp.org>
11504
11505         fprintftime: Move AC_LIBOBJ invocations to module description.
11506         * m4/fprintftime.m4: Remove file.
11507         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11508         (configure.ac): Remove gl_FPRINTFTIME call.
11509         (Makefile.am): Augment lib_SOURCES.
11510         Reported by Jim Meyering.
11511
11512 2011-06-16  Bruno Haible  <bruno@clisp.org>
11513
11514         tmpfile-safer: Finish 2011-05-23 commit.
11515         * m4/stdio-safer.m4: Really remove file.
11516         Reported by Jim Meyering.
11517
11518 2011-06-16  Bruno Haible  <bruno@clisp.org>
11519
11520         syntax-check: Fix typo.
11521         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11522         printf-posix.m4.
11523         Reported by Jim Meyering.
11524
11525 2011-06-13  Jim Meyering  <meyering@redhat.com>
11526
11527         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11528         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11529
11530 2011-05-23  Bruno Haible  <bruno@clisp.org>
11531
11532         yesno: Move AC_LIBOBJ invocations to module description.
11533         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11534         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11535
11536 2011-05-23  Bruno Haible  <bruno@clisp.org>
11537
11538         xstrtol: Move AC_LIBOBJ invocations to module description.
11539         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11540         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11541
11542 2011-05-23  Bruno Haible  <bruno@clisp.org>
11543
11544         xstrtold: Move AC_LIBOBJ invocations to module description.
11545         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11546         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11547
11548 2011-05-23  Bruno Haible  <bruno@clisp.org>
11549
11550         xstrtod: Move AC_LIBOBJ invocations to module description.
11551         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11552         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11553
11554 2011-05-23  Bruno Haible  <bruno@clisp.org>
11555
11556         xnanosleep: Move AC_LIBOBJ invocations to module description.
11557         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11558         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11559
11560 2011-05-23  Bruno Haible  <bruno@clisp.org>
11561
11562         xgetcwd: Move AC_LIBOBJ invocations to module description.
11563         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11564         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11565
11566 2011-05-23  Bruno Haible  <bruno@clisp.org>
11567
11568         xalloc: Move AC_LIBOBJ invocations to module description.
11569         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11570         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11571
11572 2011-05-23  Bruno Haible  <bruno@clisp.org>
11573
11574         write-any-file: Move AC_LIBOBJ invocations to module description.
11575         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11576         invocation.
11577         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11578
11579 2011-05-23  Bruno Haible  <bruno@clisp.org>
11580
11581         utimens: Move AC_LIBOBJ invocations to module description.
11582         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11583         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11584
11585 2011-05-23  Bruno Haible  <bruno@clisp.org>
11586
11587         utimecmp: Move AC_LIBOBJ invocations to module description.
11588         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11589         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11590
11591 2011-05-23  Bruno Haible  <bruno@clisp.org>
11592
11593         userspec: Move AC_LIBOBJ invocations to module description.
11594         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11595         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11596
11597 2011-05-23  Bruno Haible  <bruno@clisp.org>
11598
11599         unlinkdir: Move AC_LIBOBJ invocations to module description.
11600         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11601         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11602
11603 2011-05-23  Bruno Haible  <bruno@clisp.org>
11604
11605         unistd-safer: Move AC_LIBOBJ invocations to module description.
11606         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11607         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11608
11609 2011-05-23  Bruno Haible  <bruno@clisp.org>
11610
11611         tempname: Move AC_LIBOBJ invocations to module description.
11612         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11613         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11614
11615 2011-05-23  Bruno Haible  <bruno@clisp.org>
11616
11617         strftime: Move AC_LIBOBJ invocations to module description.
11618         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11619         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11620
11621 2011-05-23  Bruno Haible  <bruno@clisp.org>
11622
11623         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11624         * m4/stdlib-safer.m4: Remove file.
11625         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11626         (configure.ac): Remove gl_STDLIB_SAFER call.
11627         (Makefile.am): Augment lib_SOURCES.
11628
11629 2011-05-23  Bruno Haible  <bruno@clisp.org>
11630
11631         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11632         * m4/stdio-safer.m4: Remove file.
11633         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11634         (configure.ac): Remove gl_TMPFILE_SAFER call.
11635         (Makefile.am): Augment lib_SOURCES.
11636
11637 2011-05-23  Bruno Haible  <bruno@clisp.org>
11638
11639         popen-safer: Move AC_LIBOBJ invocations to module description.
11640         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11641         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11642         (configure.ac): Remove gl_POPEN_SAFER call.
11643         (Makefile.am): Augment lib_SOURCES.
11644
11645 2011-05-23  Bruno Haible  <bruno@clisp.org>
11646
11647         freopen-safer: Move AC_LIBOBJ invocations to module description.
11648         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11649         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11650         (configure.ac): Remove gl_FREOPEN_SAFER call.
11651         (Makefile.am): Augment lib_SOURCES.
11652
11653 2011-05-23  Bruno Haible  <bruno@clisp.org>
11654
11655         fopen-safer: Move AC_LIBOBJ invocations to module description.
11656         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11657         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11658         (configure.ac): Remove gl_FOPEN_SAFER call.
11659         (Makefile.am): Augment lib_SOURCES.
11660
11661 2011-05-23  Bruno Haible  <bruno@clisp.org>
11662
11663         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11664         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11665         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11666
11667 2011-05-23  Bruno Haible  <bruno@clisp.org>
11668
11669         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11670         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11671         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11672
11673 2011-05-23  Bruno Haible  <bruno@clisp.org>
11674
11675         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11676         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11677         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11678
11679 2011-05-23  Bruno Haible  <bruno@clisp.org>
11680
11681         settime: Move AC_LIBOBJ invocations to module description.
11682         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11683         * modules/settime (Makefile.am): Augment lib_SOURCES.
11684
11685 2011-05-23  Bruno Haible  <bruno@clisp.org>
11686
11687         savedir: Move AC_LIBOBJ invocations to module description.
11688         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11689         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11690
11691 2011-05-23  Bruno Haible  <bruno@clisp.org>
11692
11693         save-cwd: Move AC_LIBOBJ invocations to module description.
11694         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11695         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11696
11697 2011-05-23  Bruno Haible  <bruno@clisp.org>
11698
11699         same: Move AC_LIBOBJ invocations to module description.
11700         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11701         * modules/same (Makefile.am): Augment lib_SOURCES.
11702
11703 2011-05-23  Bruno Haible  <bruno@clisp.org>
11704
11705         safe-write: Move AC_LIBOBJ invocations to module description.
11706         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11707         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11708         instead of gl_SAFE_WRITE.
11709         (Makefile.am): Augment lib_SOURCES.
11710
11711 2011-05-23  Bruno Haible  <bruno@clisp.org>
11712
11713         safe-read: Move AC_LIBOBJ invocations to module description.
11714         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11715         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11716         of gl_SAFE_READ.
11717         (Makefile.am): Augment lib_SOURCES.
11718
11719 2011-05-23  Bruno Haible  <bruno@clisp.org>
11720
11721         safe-alloc: Move AC_LIBOBJ invocations to module description.
11722         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11723         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11724
11725 2011-05-23  Bruno Haible  <bruno@clisp.org>
11726
11727         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11728         * m4/rijndael.m4: Remove file.
11729         * modules/crypto/rijndael (Files): Remove it.
11730         (configure.ac): Remove gl_RIJNDAEL call.
11731         (Makefile.am): Augment lib_SOURCES.
11732
11733 2011-05-23  Bruno Haible  <bruno@clisp.org>
11734
11735         readtokens: Move AC_LIBOBJ invocations to module description.
11736         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11737         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11738
11739 2011-05-23  Bruno Haible  <bruno@clisp.org>
11740
11741         read-file: Move AC_LIBOBJ invocations to module description.
11742         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11743         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11744         of gl_FUNC_READ_FILE.
11745         (Makefile.am): Augment lib_SOURCES.
11746
11747 2011-05-23  Bruno Haible  <bruno@clisp.org>
11748
11749         quotearg: Move AC_LIBOBJ invocations to module description.
11750         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11751         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11752
11753 2011-05-23  Bruno Haible  <bruno@clisp.org>
11754
11755         quote: Move AC_LIBOBJ invocations to module description.
11756         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11757         * modules/quote (Makefile.am): Augment lib_SOURCES.
11758
11759 2011-05-23  Bruno Haible  <bruno@clisp.org>
11760
11761         posixver: Move AC_LIBOBJ invocations to module description.
11762         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11763         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11764
11765 2011-05-23  Bruno Haible  <bruno@clisp.org>
11766
11767         posixtm: Move AC_LIBOBJ invocations to module description.
11768         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11769         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11770
11771 2011-05-23  Bruno Haible  <bruno@clisp.org>
11772
11773         physmem: Move AC_LIBOBJ invocations to module description.
11774         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11775         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11776
11777 2011-05-23  Bruno Haible  <bruno@clisp.org>
11778
11779         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11780         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11781         invocation.
11782         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11783
11784 2011-05-23  Bruno Haible  <bruno@clisp.org>
11785
11786         mpsort: Move AC_LIBOBJ invocations to module description.
11787         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11788         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11789
11790 2011-05-23  Bruno Haible  <bruno@clisp.org>
11791
11792         modechange: Move AC_LIBOBJ invocations to module description.
11793         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11794         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11795
11796 2011-05-23  Bruno Haible  <bruno@clisp.org>
11797
11798         mkdir-p: Move AC_LIBOBJ invocations to module description.
11799         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11800         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11801
11802 2011-05-23  Bruno Haible  <bruno@clisp.org>
11803
11804         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11805         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11806         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11807
11808 2011-05-23  Bruno Haible  <bruno@clisp.org>
11809
11810         mgetgroups: Move AC_LIBOBJ invocations to module description.
11811         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11812         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11813
11814 2011-05-23  Bruno Haible  <bruno@clisp.org>
11815
11816         memxor: Move AC_LIBOBJ invocations to module description.
11817         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11818         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11819
11820 2011-05-23  Bruno Haible  <bruno@clisp.org>
11821
11822         memcoll: Move AC_LIBOBJ invocations to module description.
11823         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11824         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11825
11826 2011-05-23  Bruno Haible  <bruno@clisp.org>
11827
11828         memcasecmp: Move AC_LIBOBJ invocations to module description.
11829         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11830         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11831
11832 2011-05-23  Bruno Haible  <bruno@clisp.org>
11833
11834         crypto/md5: Move AC_LIBOBJ invocations to module description.
11835         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11836         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11837
11838 2011-05-23  Bruno Haible  <bruno@clisp.org>
11839
11840         crypto/md4: Move AC_LIBOBJ invocations to module description.
11841         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11842         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11843
11844 2011-05-23  Bruno Haible  <bruno@clisp.org>
11845
11846         crypto/md2: Move AC_LIBOBJ invocations to module description.
11847         * m4/md2.m4: Remove file.
11848         * modules/crypto/md2 (Files): Remove it.
11849         (configure.ac): Remove gl_MD2 call.
11850         (Makefile.am): Augment lib_SOURCES.
11851
11852 2011-05-23  Bruno Haible  <bruno@clisp.org>
11853
11854         long-options: Move AC_LIBOBJ invocations to module description.
11855         * m4/long-options.m4: Remove file.
11856         * modules/long-options (Files): Remove it.
11857         (configure.ac): Remove gl_LONG_OPTIONS call.
11858         (Makefile.am): Augment lib_SOURCES.
11859
11860 2011-05-23  Bruno Haible  <bruno@clisp.org>
11861
11862         i-ring: Move AC_LIBOBJ invocations to module description.
11863         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11864         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11865
11866 2011-05-23  Bruno Haible  <bruno@clisp.org>
11867
11868         idcache: Move AC_LIBOBJ invocations to module description.
11869         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11870         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11871
11872 2011-05-23  Bruno Haible  <bruno@clisp.org>
11873
11874         human: Move AC_LIBOBJ invocations to module description.
11875         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11876         * modules/human (Makefile.am): Augment lib_SOURCES.
11877
11878 2011-05-23  Bruno Haible  <bruno@clisp.org>
11879
11880         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11881         * m4/hmac-sha1.m4: Remove file.
11882         * modules/crypto/hmac-sha1 (Files): Remove it.
11883         (configure.ac): Remove gl_HMAC_SHA1 call.
11884         (Makefile.am): Augment lib_SOURCES.
11885
11886 2011-05-23  Bruno Haible  <bruno@clisp.org>
11887
11888         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11889         * m4/hmac-md5.m4: Remove file.
11890         * modules/crypto/hmac-md5 (Files): Remove it.
11891         (configure.ac): Remove gl_HMAC_MD5 call.
11892         (Makefile.am): Augment lib_SOURCES.
11893
11894 2011-05-23  Bruno Haible  <bruno@clisp.org>
11895
11896         hash: Move AC_LIBOBJ invocations to module description.
11897         * m4/hash.m4: Remove file.
11898         * modules/hash (Files): Remove it.
11899         (configure.ac): Remove gl_HASH call.
11900         (Makefile.am): Augment lib_SOURCES.
11901
11902 2011-05-23  Bruno Haible  <bruno@clisp.org>
11903
11904         hard-locale: Move AC_LIBOBJ invocations to module description.
11905         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11906         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11907
11908 2011-05-23  Bruno Haible  <bruno@clisp.org>
11909
11910         getugroups: Move AC_LIBOBJ invocations to module description.
11911         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11912         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11913
11914 2011-05-23  Bruno Haible  <bruno@clisp.org>
11915
11916         gettime: Move AC_LIBOBJ invocations to module description.
11917         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11918         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11919
11920 2011-05-23  Bruno Haible  <bruno@clisp.org>
11921
11922         getndelim2: Move AC_LIBOBJ invocations to module description.
11923         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11924         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11925
11926 2011-05-23  Bruno Haible  <bruno@clisp.org>
11927
11928         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11929         * m4/gc-pbkdf2-sha1.m4: Remove file.
11930         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11931         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11932         (Makefile.am): Augment lib_SOURCES.
11933
11934 2011-05-23  Bruno Haible  <bruno@clisp.org>
11935
11936         fts: Move AC_LIBOBJ invocations to module description.
11937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11938         * modules/fts (configure.ac): ... to here.
11939
11940 2011-05-23  Bruno Haible  <bruno@clisp.org>
11941
11942         file-type: Move AC_LIBOBJ invocations to module description.
11943         * m4/file-type.m4: Remove file.
11944         * modules/file-type (Files): Remove it.
11945         (configure.ac): Remove gl_FILE_TYPE call.
11946         (Makefile.am): Augment lib_SOURCES.
11947
11948 2011-05-23  Bruno Haible  <bruno@clisp.org>
11949
11950         filenamecat*: Respect rules for use of AC_LIBOBJ.
11951         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11952         Remove AC_LIBOBJ invocation.
11953         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11954         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11955
11956 2011-05-23  Bruno Haible  <bruno@clisp.org>
11957
11958         filemode: Move AC_LIBOBJ invocations to module description.
11959         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11960         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11961
11962 2011-05-23  Bruno Haible  <bruno@clisp.org>
11963
11964         openat-safer: Move AC_LIBOBJ invocations to module description.
11965         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11966         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11967
11968 2011-05-23  Bruno Haible  <bruno@clisp.org>
11969
11970         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11971         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11972         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11973
11974 2011-05-23  Bruno Haible  <bruno@clisp.org>
11975
11976         exclude: Move AC_LIBOBJ invocations to module description.
11977         * m4/exclude.m4: Remove file.
11978         * modules/exclude (Files): Remove it.
11979         (configure.ac): Remove gl_EXCLUDE call.
11980         (Makefile.am): Augment lib_SOURCES.
11981
11982 2011-05-23  Bruno Haible  <bruno@clisp.org>
11983
11984         dirname*: Respect rules for use of AC_LIBOBJ.
11985         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11986         invocations.
11987         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11988         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11989
11990 2011-05-23  Bruno Haible  <bruno@clisp.org>
11991
11992         dirent-safer: Move AC_LIBOBJ invocations to module description.
11993         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11994         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11995
11996 2011-05-23  Bruno Haible  <bruno@clisp.org>
11997
11998         crypto/des: Move AC_LIBOBJ invocations to module description.
11999         * m4/des.m4: Remove file.
12000         * modules/crypto/des (Files): Remove it.
12001         (configure.ac): Remove gl_DES call.
12002         (Makefile.am): Augment lib_SOURCES.
12003
12004 2011-05-23  Bruno Haible  <bruno@clisp.org>
12005
12006         cycle-check: Move AC_LIBOBJ invocations to module description.
12007         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12008         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12009
12010 2011-05-23  Bruno Haible  <bruno@clisp.org>
12011
12012         c-strtold: Move AC_LIBOBJ invocations to module description.
12013         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12014         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12015
12016 2011-05-23  Bruno Haible  <bruno@clisp.org>
12017
12018         c-strtod: Move AC_LIBOBJ invocations to module description.
12019         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12020         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12021
12022 2011-05-23  Bruno Haible  <bruno@clisp.org>
12023
12024         crc: Move AC_LIBOBJ invocations to module description.
12025         * m4/crc.m4: Remove file.
12026         * modules/crc (Files): Remove it.
12027         (configure.ac): Remove gl_CRC call.
12028         (Makefile.am): Augment lib_SOURCES.
12029
12030 2011-05-23  Bruno Haible  <bruno@clisp.org>
12031
12032         close-stream: Move AC_LIBOBJ invocations to module description.
12033         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12034         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12035
12036 2011-05-23  Bruno Haible  <bruno@clisp.org>
12037
12038         closeout: Move AC_LIBOBJ invocations to module description.
12039         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12040         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12041
12042 2011-05-23  Bruno Haible  <bruno@clisp.org>
12043
12044         closein: Move AC_LIBOBJ invocations to module description.
12045         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12046         * modules/closein (Makefile.am): Augment lib_SOURCES.
12047
12048 2011-05-23  Bruno Haible  <bruno@clisp.org>
12049
12050         cloexec: Move AC_LIBOBJ invocations to module description.
12051         * m4/cloexec.m4: Remove file.
12052         * modules/cloexec (Files): Remove it.
12053         (configure.ac): Remove gl_CLOEXEC call.
12054         (Makefile.am): Augment lib_SOURCES.
12055
12056 2011-05-23  Bruno Haible  <bruno@clisp.org>
12057
12058         check-version: Move AC_LIBOBJ invocations to module description.
12059         * m4/check-version.m4: Remove file.
12060         * modules/check-version (Files): Remove it.
12061         (configure.ac): Remove gl_CHECK_VERSION call.
12062         (Makefile.am): Augment lib_SOURCES.
12063
12064 2011-05-23  Bruno Haible  <bruno@clisp.org>
12065
12066         chdir-safer: Move AC_LIBOBJ invocations to module description.
12067         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12068         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12069
12070 2011-05-23  Bruno Haible  <bruno@clisp.org>
12071
12072         canonicalize: Move AC_LIBOBJ invocations to module description.
12073         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12074         AC_LIBOBJ invocation.
12075         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12076
12077 2011-05-23  Bruno Haible  <bruno@clisp.org>
12078
12079         canon-host: Move AC_LIBOBJ invocations to module description.
12080         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12081         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12082         instead of gl_CANON_HOST.
12083         (Makefile.am): Augment lib_SOURCES.
12084
12085 2011-05-23  Bruno Haible  <bruno@clisp.org>
12086
12087         backupfile: Move AC_LIBOBJ invocations to module description.
12088         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12089         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12090
12091 2011-05-23  Bruno Haible  <bruno@clisp.org>
12092
12093         argmatch: Move AC_LIBOBJ invocations to module description.
12094         * m4/argmatch.m4: Remove file.
12095         * modules/argmatch (Files): Remove it.
12096         (configure.ac): Remove gl_ARGMATCH call.
12097         (Makefile.am): Augment lib_SOURCES.
12098
12099 2011-05-23  Bruno Haible  <bruno@clisp.org>
12100
12101         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12102         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12103         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12104
12105 2011-05-23  Bruno Haible  <bruno@clisp.org>
12106
12107         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12108         * m4/arcfour.m4: Remove file.
12109         * modules/crypto/arcfour (Files): Remove it.
12110         (configure.ac): Remove gl_ARCFOUR call.
12111         (Makefile.am): Augment lib_SOURCES.
12112
12113 2011-05-22  Bruno Haible  <bruno@clisp.org>
12114
12115         write: Move AC_LIBOBJ invocations to module description.
12116         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12117         * modules/write (configure.ac): ... to here.
12118
12119 2011-05-22  Bruno Haible  <bruno@clisp.org>
12120
12121         wmemset: Move AC_LIBOBJ invocations to module description.
12122         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12123         here...
12124         * modules/wmemset (configure.ac): ... to here.
12125
12126 2011-05-22  Bruno Haible  <bruno@clisp.org>
12127
12128         wmemmove: Move AC_LIBOBJ invocations to module description.
12129         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12130         here...
12131         * modules/wmemmove (configure.ac): ... to here.
12132
12133 2011-05-22  Bruno Haible  <bruno@clisp.org>
12134
12135         wmemcpy: Move AC_LIBOBJ invocations to module description.
12136         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12137         here...
12138         * modules/wmemcpy (configure.ac): ... to here.
12139
12140 2011-05-22  Bruno Haible  <bruno@clisp.org>
12141
12142         wmemcmp: Move AC_LIBOBJ invocations to module description.
12143         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12144         here...
12145         * modules/wmemcmp (configure.ac): ... to here.
12146
12147 2011-05-22  Bruno Haible  <bruno@clisp.org>
12148
12149         wmemchr: Move AC_LIBOBJ invocations to module description.
12150         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12151         here...
12152         * modules/wmemchr (configure.ac): ... to here.
12153
12154 2011-05-22  Bruno Haible  <bruno@clisp.org>
12155
12156         wcswidth: Move AC_LIBOBJ invocations to module description.
12157         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12158         here...
12159         * modules/wcswidth (configure.ac): ... to here.
12160
12161 2011-05-22  Bruno Haible  <bruno@clisp.org>
12162
12163         wcwidth: Respect rules for use of AC_LIBOBJ.
12164         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12165         invocation from here...
12166         * modules/wcwidth (configure.ac): ... to here.
12167         (Depends-on): Update conditions.
12168
12169 2011-05-22  Bruno Haible  <bruno@clisp.org>
12170
12171         wctype: Move AC_LIBOBJ invocations to module description.
12172         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12173         invocation from here...
12174         * modules/wctype (configure.ac): ... to here.
12175         (Depends-on): Update conditions.
12176
12177 2011-05-22  Bruno Haible  <bruno@clisp.org>
12178
12179         wctrans: Move AC_LIBOBJ invocations to module description.
12180         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12181         invocation from here...
12182         * modules/wctrans (configure.ac): ... to here.
12183
12184 2011-05-22  Bruno Haible  <bruno@clisp.org>
12185
12186         wctomb: Move AC_LIBOBJ invocations to module description.
12187         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12188         invocations from here...
12189         * modules/wctomb (configure.ac): ... to here.
12190
12191 2011-05-22  Bruno Haible  <bruno@clisp.org>
12192
12193         wctob: Move AC_LIBOBJ invocations to module description.
12194         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12195         gl_PREREQ_WCTOB invocations from here...
12196         * modules/wctob (configure.ac): ... to here.
12197         (Depends-on): Update conditions.
12198
12199 2011-05-22  Bruno Haible  <bruno@clisp.org>
12200
12201         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12202         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12203         here...
12204         * modules/wcsxfrm (configure.ac): ... to here.
12205
12206 2011-05-22  Bruno Haible  <bruno@clisp.org>
12207
12208         wcstok: Move AC_LIBOBJ invocations to module description.
12209         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12210         * modules/wcstok (configure.ac): ... to here.
12211
12212 2011-05-22  Bruno Haible  <bruno@clisp.org>
12213
12214         wcsstr: Move AC_LIBOBJ invocations to module description.
12215         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12216         * modules/wcsstr (configure.ac): ... to here.
12217
12218 2011-05-22  Bruno Haible  <bruno@clisp.org>
12219
12220         wcsspn: Move AC_LIBOBJ invocations to module description.
12221         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12222         * modules/wcsspn (configure.ac): ... to here.
12223
12224 2011-05-22  Bruno Haible  <bruno@clisp.org>
12225
12226         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12227         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12228         gl_PREREQ_WCSRTOMBS invocations from here...
12229         * modules/wcsrtombs (configure.ac): ... to here.
12230
12231 2011-05-22  Bruno Haible  <bruno@clisp.org>
12232
12233         wcsrchr: Move AC_LIBOBJ invocations to module description.
12234         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12235         here...
12236         * modules/wcsrchr (configure.ac): ... to here.
12237
12238 2011-05-22  Bruno Haible  <bruno@clisp.org>
12239
12240         wcspbrk: Move AC_LIBOBJ invocations to module description.
12241         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12242         here...
12243         * modules/wcspbrk (configure.ac): ... to here.
12244
12245 2011-05-22  Bruno Haible  <bruno@clisp.org>
12246
12247         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12248         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12249         gl_PREREQ_WCSNRTOMBS invocations from here...
12250         * modules/wcsnrtombs (configure.ac): ... to here.
12251
12252 2011-05-22  Bruno Haible  <bruno@clisp.org>
12253
12254         wcsnlen: Move AC_LIBOBJ invocations to module description.
12255         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12256         here...
12257         * modules/wcsnlen (configure.ac): ... to here.
12258
12259 2011-05-22  Bruno Haible  <bruno@clisp.org>
12260
12261         wcsncpy: Move AC_LIBOBJ invocations to module description.
12262         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12263         here...
12264         * modules/wcsncpy (configure.ac): ... to here.
12265
12266 2011-05-22  Bruno Haible  <bruno@clisp.org>
12267
12268         wcsncmp: Move AC_LIBOBJ invocations to module description.
12269         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12270         here...
12271         * modules/wcsncmp (configure.ac): ... to here.
12272
12273 2011-05-22  Bruno Haible  <bruno@clisp.org>
12274
12275         wcsncat: Move AC_LIBOBJ invocations to module description.
12276         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12277         here...
12278         * modules/wcsncat (configure.ac): ... to here.
12279
12280 2011-05-22  Bruno Haible  <bruno@clisp.org>
12281
12282         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12283         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12284         from here...
12285         * modules/wcsncasecmp (configure.ac): ... to here.
12286
12287 2011-05-22  Bruno Haible  <bruno@clisp.org>
12288
12289         wcslen: Move AC_LIBOBJ invocations to module description.
12290         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12291         * modules/wcslen (configure.ac): ... to here.
12292
12293 2011-05-22  Bruno Haible  <bruno@clisp.org>
12294
12295         wcsdup: Move AC_LIBOBJ invocations to module description.
12296         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12297         * modules/wcsdup (configure.ac): ... to here.
12298
12299 2011-05-22  Bruno Haible  <bruno@clisp.org>
12300
12301         wcscspn: Move AC_LIBOBJ invocations to module description.
12302         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12303         here...
12304         * modules/wcscspn (configure.ac): ... to here.
12305
12306 2011-05-22  Bruno Haible  <bruno@clisp.org>
12307
12308         wcscpy: Move AC_LIBOBJ invocations to module description.
12309         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12310         * modules/wcscpy (configure.ac): ... to here.
12311
12312 2011-05-22  Bruno Haible  <bruno@clisp.org>
12313
12314         wcscoll: Move AC_LIBOBJ invocations to module description.
12315         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12316         here...
12317         * modules/wcscoll (configure.ac): ... to here.
12318
12319 2011-05-22  Bruno Haible  <bruno@clisp.org>
12320
12321         wcscmp: Move AC_LIBOBJ invocations to module description.
12322         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12323         * modules/wcscmp (configure.ac): ... to here.
12324
12325 2011-05-22  Bruno Haible  <bruno@clisp.org>
12326
12327         wcschr: Move AC_LIBOBJ invocations to module description.
12328         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12329         * modules/wcschr (configure.ac): ... to here.
12330
12331 2011-05-22  Bruno Haible  <bruno@clisp.org>
12332
12333         wcscat: Move AC_LIBOBJ invocations to module description.
12334         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12335         * modules/wcscat (configure.ac): ... to here.
12336
12337 2011-05-22  Bruno Haible  <bruno@clisp.org>
12338
12339         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12340         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12341         here...
12342         * modules/wcscasecmp (configure.ac): ... to here.
12343
12344 2011-05-22  Bruno Haible  <bruno@clisp.org>
12345
12346         wcrtomb: Move AC_LIBOBJ invocations to module description.
12347         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12348         invocations from here...
12349         * modules/wcrtomb (configure.ac): ... to here.
12350
12351 2011-05-22  Bruno Haible  <bruno@clisp.org>
12352
12353         wcpncpy: Move AC_LIBOBJ invocations to module description.
12354         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12355         here...
12356         * modules/wcpncpy (configure.ac): ... to here.
12357
12358 2011-05-22  Bruno Haible  <bruno@clisp.org>
12359
12360         wcpcpy: Move AC_LIBOBJ invocations to module description.
12361         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12362         * modules/wcpcpy (configure.ac): ... to here.
12363
12364 2011-05-22  Bruno Haible  <bruno@clisp.org>
12365
12366         waitpid: Move AC_LIBOBJ invocations to module description.
12367         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12368         invocation from here...
12369         * modules/waitpid (configure.ac): ... to here.
12370
12371 2011-05-22  Bruno Haible  <bruno@clisp.org>
12372
12373         utimensat: Move AC_LIBOBJ invocations to module description.
12374         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12375         here...
12376         * modules/utimensat (configure.ac): ... to here.
12377
12378 2011-05-22  Bruno Haible  <bruno@clisp.org>
12379
12380         usleep: Move AC_LIBOBJ invocations to module description.
12381         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12382         here...
12383         * modules/usleep (configure.ac): ... to here.
12384
12385 2011-05-22  Bruno Haible  <bruno@clisp.org>
12386
12387         unlockpt: Move AC_LIBOBJ invocations to module description.
12388         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12389         gl_PREREQ_UNLOCKPT invocations from here...
12390         * modules/unlockpt (configure.ac): ... to here.
12391
12392 2011-05-22  Bruno Haible  <bruno@clisp.org>
12393
12394         unlink: Respect rules for use of AC_LIBOBJ.
12395         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12396         * modules/unlink (configure.ac): ... to here.
12397
12398 2011-05-22  Bruno Haible  <bruno@clisp.org>
12399
12400         uname: Move AC_LIBOBJ invocations to module description.
12401         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12402         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12403         here...
12404         * modules/uname (configure.ac): ... to here.
12405
12406 2011-05-22  Bruno Haible  <bruno@clisp.org>
12407
12408         ttyname_r: Move AC_LIBOBJ invocations to module description.
12409         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12410         gl_PREREQ_TTYNAME_R invocations from here...
12411         * modules/ttyname_r (configure.ac): ... to here.
12412
12413 2011-05-22  Bruno Haible  <bruno@clisp.org>
12414
12415         tsearch: Move AC_LIBOBJ invocations to module description.
12416         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12417         invocations from here...
12418         * modules/tsearch (configure.ac): ... to here.
12419
12420 2011-05-22  Bruno Haible  <bruno@clisp.org>
12421
12422         towctrans: Move AC_LIBOBJ invocations to module description.
12423         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12424         AC_LIBOBJ invocation from here...
12425         * modules/towctrans (configure.ac): ... to here.
12426
12427 2011-05-22  Bruno Haible  <bruno@clisp.org>
12428
12429         tmpfile: Move AC_LIBOBJ invocations to module description.
12430         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12431         invocations from here...
12432         * modules/tmpfile (configure.ac): ... to here.
12433
12434 2011-05-22  Bruno Haible  <bruno@clisp.org>
12435
12436         times: Move AC_LIBOBJ invocations to module description.
12437         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12438         * modules/times (configure.ac): ... to here.
12439
12440 2011-05-22  Bruno Haible  <bruno@clisp.org>
12441
12442         time_r: Move AC_LIBOBJ invocations to module description.
12443         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12444         invocations from here...
12445         * modules/time_r (configure.ac): ... to here.
12446
12447 2011-05-22  Bruno Haible  <bruno@clisp.org>
12448
12449         timegm: Move AC_LIBOBJ invocations to module description.
12450         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12451         invocations from here...
12452         * modules/timegm (configure.ac): ... to here.
12453
12454 2011-05-22  Bruno Haible  <bruno@clisp.org>
12455
12456         tcgetsid: Move AC_LIBOBJ invocations to module description.
12457         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12458         and gl_PREREQ_TCGETSID invocations from here...
12459         * modules/tcgetsid (configure.ac): ... to here.
12460         (Depends-on): Update conditions.
12461
12462 2011-05-22  Bruno Haible  <bruno@clisp.org>
12463
12464         symlinkat: Move AC_LIBOBJ invocations to module description.
12465         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12466         here...
12467         * modules/symlinkat (configure.ac): ... to here.
12468
12469 2011-05-22  Bruno Haible  <bruno@clisp.org>
12470
12471         symlink: Move AC_LIBOBJ invocations to module description.
12472         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12473         here...
12474         * modules/symlink (configure.ac): ... to here.
12475
12476 2011-05-22  Bruno Haible  <bruno@clisp.org>
12477
12478         strverscmp: Move AC_LIBOBJ invocations to module description.
12479         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12480         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12481         from here...
12482         * modules/strverscmp (configure.ac): ... to here.
12483
12484 2011-05-22  Bruno Haible  <bruno@clisp.org>
12485
12486         strtok_r: Move AC_LIBOBJ invocations to module description.
12487         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12488         and gl_PREREQ_STRTOK_R invocations from here...
12489         * modules/strtok_r (configure.ac): ... to here.
12490         (Depends-on): Update conditions.
12491
12492 2011-05-22  Bruno Haible  <bruno@clisp.org>
12493
12494         strtoumax: Move AC_LIBOBJ invocations to module description.
12495         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12497         from here...
12498         * modules/strtoumax (configure.ac): ... to here.
12499
12500 2011-05-22  Bruno Haible  <bruno@clisp.org>
12501
12502         strtoimax: Move AC_LIBOBJ invocations to module description.
12503         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12505         from here...
12506         * modules/strtoimax (configure.ac): ... to here.
12507
12508 2011-05-22  Bruno Haible  <bruno@clisp.org>
12509
12510         strtoull: Move AC_LIBOBJ invocations to module description.
12511         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12513         from here...
12514         * modules/strtoull (configure.ac): ... to here.
12515
12516 2011-05-22  Bruno Haible  <bruno@clisp.org>
12517
12518         strtoll: Move AC_LIBOBJ invocations to module description.
12519         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12521         here...
12522         * modules/strtoll (configure.ac): ... to here.
12523
12524 2011-05-22  Bruno Haible  <bruno@clisp.org>
12525
12526         strtoul: Move AC_LIBOBJ invocations to module description.
12527         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12528         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12529         * modules/strtoul (configure.ac): ... to here.
12530
12531 2011-05-22  Bruno Haible  <bruno@clisp.org>
12532
12533         strtol: Move AC_LIBOBJ invocations to module description.
12534         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12535         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12536         * modules/strtol (configure.ac): ... to here.
12537
12538 2011-05-22  Bruno Haible  <bruno@clisp.org>
12539
12540         strtod: Move AC_LIBOBJ invocations to module description.
12541         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12542         invocations from here...
12543         * modules/strtod (configure.ac): ... to here.
12544
12545 2011-05-22  Bruno Haible  <bruno@clisp.org>
12546
12547         strstr*: Move AC_LIBOBJ invocations to module description.
12548         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12549         invocations from here...
12550         * modules/strstr-simple (configure.ac): ... to here.
12551         * modules/strstr (configure.ac): ... and here.
12552
12553 2011-05-22  Bruno Haible  <bruno@clisp.org>
12554
12555         strsignal: Move AC_LIBOBJ invocations to module description.
12556         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12557         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12558         * modules/strsignal (configure.ac): ... to here.
12559         (Depends-on): Update conditions.
12560
12561 2011-05-22  Bruno Haible  <bruno@clisp.org>
12562
12563         strsep: Move AC_LIBOBJ invocations to module description.
12564         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12566         here...
12567         * modules/strsep (configure.ac): ... to here.
12568
12569 2011-05-22  Bruno Haible  <bruno@clisp.org>
12570
12571         strptime: Move AC_LIBOBJ invocations to module description.
12572         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12573         gl_PREREQ_STRPTIME invocations from here...
12574         * modules/strptime (configure.ac): ... to here.
12575
12576 2011-05-22  Bruno Haible  <bruno@clisp.org>
12577
12578         strpbrk: Move AC_LIBOBJ invocations to module description.
12579         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12580         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12581         here...
12582         * modules/strpbrk (configure.ac): ... to here.
12583
12584 2011-05-22  Bruno Haible  <bruno@clisp.org>
12585
12586         strnlen: Move AC_LIBOBJ invocations to module description.
12587         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12588         invocations from here...
12589         * modules/strnlen (configure.ac): ... to here.
12590
12591 2011-05-22  Bruno Haible  <bruno@clisp.org>
12592
12593         strndup: Move AC_LIBOBJ invocations to module description.
12594         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12595         invocations from here...
12596         * modules/strndup (configure.ac): ... to here.
12597         (Depends-on): Update conditions.
12598
12599 2011-05-22  Bruno Haible  <bruno@clisp.org>
12600
12601         strncat: Move AC_LIBOBJ invocations to module description.
12602         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12603         invocations from here...
12604         * modules/strncat (configure.ac): ... to here.
12605
12606 2011-05-22  Bruno Haible  <bruno@clisp.org>
12607
12608         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12609         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12610         invocations from here...
12611         * modules/strdup (configure.ac): ... to here.
12612         * modules/strdup-posix (configure.ac): ... and here.
12613
12614 2011-05-22  Bruno Haible  <bruno@clisp.org>
12615
12616         strcspn: Move AC_LIBOBJ invocations to module description.
12617         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12618         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12619         here...
12620         * modules/strcspn (configure.ac): ... to here.
12621
12622 2011-05-22  Bruno Haible  <bruno@clisp.org>
12623
12624         strchrnul: Move AC_LIBOBJ invocations to module description.
12625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12626         gl_PREREQ_STRCHRNUL invocations from here...
12627         * modules/strchrnul (configure.ac): ... to here.
12628
12629 2011-05-22  Bruno Haible  <bruno@clisp.org>
12630
12631         strcasestr*: Move AC_LIBOBJ invocations to module description.
12632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12633         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12634         * modules/strcasestr-simple (configure.ac): ... to here.
12635         * modules/strcasestr (configure.ac): ... and here.
12636
12637 2011-05-22  Bruno Haible  <bruno@clisp.org>
12638
12639         strcase: Move AC_LIBOBJ invocations to module description.
12640         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12641         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12642         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12643         gl_PREREQ_STRNCASECMP invocations from here...
12644         * modules/strcase (configure.ac): ... to here.
12645
12646 2011-05-22  Bruno Haible  <bruno@clisp.org>
12647
12648         stpncpy: Move AC_LIBOBJ invocations to module description.
12649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12650         here...
12651         * modules/stpncpy (configure.ac): ... to here.
12652
12653 2011-05-22  Bruno Haible  <bruno@clisp.org>
12654
12655         stpcpy: Move AC_LIBOBJ invocations to module description.
12656         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12658         here...
12659         * modules/stpcpy (configure.ac): ... to here.
12660
12661 2011-05-21  Bruno Haible  <bruno@clisp.org>
12662
12663         stat: Move AC_LIBOBJ invocations to module description.
12664         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12665         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12666         here...
12667         * modules/stat (configure.ac): ... to here.
12668
12669 2011-05-21  Bruno Haible  <bruno@clisp.org>
12670
12671         sleep: Move AC_LIBOBJ invocations to module description.
12672         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12673         * modules/sleep (configure.ac): ... to here.
12674
12675 2011-05-21  Bruno Haible  <bruno@clisp.org>
12676
12677         signbit: Move AC_LIBOBJ invocations to module description.
12678         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12679         * modules/signbit (configure.ac): ... to here.
12680
12681 2011-05-21  Bruno Haible  <bruno@clisp.org>
12682
12683         sigprocmask: Move AC_LIBOBJ invocations to module description.
12684         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12685         gl_PREREQ_SIGPROMASK invocations from here...
12686         * modules/sigprocmask (configure.ac): ... to here.
12687
12688 2011-05-21  Bruno Haible  <bruno@clisp.org>
12689
12690         sigaction: Move AC_LIBOBJ invocations to module description.
12691         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12692         gl_PREREQ_SIGACTION invocations from here...
12693         * modules/sigaction (configure.ac): ... to here.
12694
12695 2011-05-21  Bruno Haible  <bruno@clisp.org>
12696
12697         sig2str: Move AC_LIBOBJ invocations to module description.
12698         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12700         here...
12701         * modules/sig2str (configure.ac): ... to here.
12702
12703 2011-05-21  Bruno Haible  <bruno@clisp.org>
12704
12705         setlocale: Move AC_LIBOBJ invocations to module description.
12706         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12707         gl_PREREQ_SETLOCALE invocations from here...
12708         * modules/setlocale (configure.ac): ... to here.
12709
12710 2011-05-21  Bruno Haible  <bruno@clisp.org>
12711
12712         unsetenv: Move AC_LIBOBJ invocations to module description.
12713         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12714         and gl_PREREQ_UNSETENV invocations from here...
12715         * modules/unsetenv (configure.ac): ... to here.
12716         (Depends-on): Update.
12717
12718 2011-05-21  Bruno Haible  <bruno@clisp.org>
12719
12720         setenv: Move AC_LIBOBJ invocations to module description.
12721         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12722         here...
12723         * modules/setenv (configure.ac): ... to here.
12724
12725 2011-05-21  Bruno Haible  <bruno@clisp.org>
12726
12727         selinux-h: Move AC_LIBOBJ invocations to module description.
12728         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12729         AC_LIBOBJ invocation from here...
12730         * modules/selinux-h (configure.ac): ... to here.
12731
12732 2011-05-21  Bruno Haible  <bruno@clisp.org>
12733
12734         select: Respect rules for use of AC_LIBOBJ.
12735         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12736         here...
12737         * modules/select (configure.ac): ... to here.
12738
12739 2011-05-21  Bruno Haible  <bruno@clisp.org>
12740
12741         scandir: Move AC_LIBOBJ invocations to module description.
12742         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12743         invocations from here...
12744         * modules/scandir (configure.ac): ... to here.
12745
12746 2011-05-21  Bruno Haible  <bruno@clisp.org>
12747
12748         rpmatch: Move AC_LIBOBJ invocations to module description.
12749         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12751         here...
12752         * modules/rpmatch (configure.ac): ... to here.
12753
12754 2011-05-21  Bruno Haible  <bruno@clisp.org>
12755
12756         rmdir: Respect rules for use of AC_LIBOBJ.
12757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12758         * modules/rmdir (configure.ac): ... to here.
12759
12760 2011-05-21  Bruno Haible  <bruno@clisp.org>
12761
12762         renameat: Move AC_LIBOBJ invocations to module description.
12763         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12764         here...
12765         * modules/renameat (configure.ac): ... to here.
12766
12767 2011-05-21  Bruno Haible  <bruno@clisp.org>
12768
12769         rename: Respect rules for use of AC_LIBOBJ.
12770         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12771         here...
12772         * modules/rename (configure.ac): ... to here.
12773
12774 2011-05-21  Bruno Haible  <bruno@clisp.org>
12775
12776         remove: Move AC_LIBOBJ invocations to module description.
12777         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12778         here...
12779         * modules/remove (configure.ac): ... to here.
12780
12781 2011-05-21  Bruno Haible  <bruno@clisp.org>
12782
12783         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12784         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12785         macro.
12786         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12787         * modules/relocatable-lib (configure.ac): ... to here.
12788         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12789         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12790
12791 2011-05-21  Bruno Haible  <bruno@clisp.org>
12792
12793         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12794         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12795         here...
12796         * modules/relocatable-prog (configure.ac): ... to here.
12797
12798 2011-05-21  Bruno Haible  <bruno@clisp.org>
12799
12800         regex: Move AC_LIBOBJ invocations to module description.
12801         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12802         invocations from here...
12803         * modules/regex (configure.ac): ... to here.
12804
12805 2011-05-21  Bruno Haible  <bruno@clisp.org>
12806
12807         realloc-*: Move AC_LIBOBJ invocations to module description.
12808         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12809         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12810         AC_LIBOBJ invocations from here...
12811         * modules/realloc-gnu (configure.ac): ... to here.
12812         * modules/realloc-posix (configure.ac): ... and here.
12813
12814 2011-05-21  Bruno Haible  <bruno@clisp.org>
12815
12816         readutmp: Move AC_LIBOBJ invocations to module description.
12817         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12818         * modules/readutmp (configure.ac): ... to here.
12819
12820 2011-05-21  Bruno Haible  <bruno@clisp.org>
12821
12822         readlinkat: Move AC_LIBOBJ invocations to module description.
12823         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12824         here...
12825         * modules/readlinkat (configure.ac): ... to here.
12826
12827 2011-05-21  Bruno Haible  <bruno@clisp.org>
12828
12829         readlink: Move AC_LIBOBJ invocations to module description.
12830         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12831         gl_PREREQ_READLINK invocations from here...
12832         * modules/readlink (configure.ac): ... to here.
12833
12834 2011-05-21  Bruno Haible  <bruno@clisp.org>
12835
12836         readline: Move AC_LIBOBJ invocations to module description.
12837         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12838         gl_PREREQ_READLINE invocations from here...
12839         * modules/readline (configure.ac): ... to here.
12840
12841 2011-05-21  Bruno Haible  <bruno@clisp.org>
12842
12843         read: Move AC_LIBOBJ invocations to module description.
12844         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12845         * modules/read (configure.ac): ... to here.
12846
12847 2011-05-21  Bruno Haible  <bruno@clisp.org>
12848
12849         rawmemchr: Move AC_LIBOBJ invocations to module description.
12850         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12852         from here...
12853         * modules/rawmemchr (configure.ac): ... to here.
12854
12855 2011-05-21  Bruno Haible  <bruno@clisp.org>
12856
12857         random_r: Move AC_LIBOBJ invocations to module description.
12858         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12859         gl_PREREQ_RANDOM_R invocations from here...
12860         * modules/random_r (configure.ac): ... to here.
12861
12862 2011-05-21  Bruno Haible  <bruno@clisp.org>
12863
12864         pwrite: Move AC_LIBOBJ invocations to module description.
12865         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12866         * modules/pwrite (configure.ac): ... to here.
12867
12868 2011-05-21  Bruno Haible  <bruno@clisp.org>
12869
12870         putenv: Move AC_LIBOBJ invocations to module description.
12871         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12872         * modules/putenv (configure.ac): ... to here.
12873
12874 2011-05-21  Bruno Haible  <bruno@clisp.org>
12875
12876         login_tty: Move AC_LIBOBJ invocations to module description.
12877         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12878         * modules/login_tty (configure.ac): ... to here.
12879
12880 2011-05-21  Bruno Haible  <bruno@clisp.org>
12881
12882         openpty: Move AC_LIBOBJ invocations to module description.
12883         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12884         * modules/openpty (configure.ac): ... to here.
12885
12886 2011-05-21  Bruno Haible  <bruno@clisp.org>
12887
12888         forkpty: Move AC_LIBOBJ invocations to module description.
12889         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12890         * modules/forkpty (configure.ac): ... to here.
12891
12892 2011-05-21  Bruno Haible  <bruno@clisp.org>
12893
12894         ptsname: Move AC_LIBOBJ invocations to module description.
12895         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12896         invocations from here...
12897         * modules/ptsname (configure.ac): ... to here.
12898
12899 2011-05-21  Bruno Haible  <bruno@clisp.org>
12900
12901         pread: Move AC_LIBOBJ invocations to module description.
12902         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12903         * modules/pread (configure.ac): ... to here.
12904
12905 2011-05-21  Bruno Haible  <bruno@clisp.org>
12906
12907         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12908         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12909         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12910         * modules/posix_spawn (configure.ac): ... to here.
12911         * modules/posix_spawnp (configure.ac): ... and here.
12912
12913 2011-05-21  Bruno Haible  <bruno@clisp.org>
12914
12915         popen: Move AC_LIBOBJ invocations to module description.
12916         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12917         invocations from here...
12918         * modules/popen (configure.ac): ... to here.
12919
12920 2011-05-21  Bruno Haible  <bruno@clisp.org>
12921
12922         poll: Move AC_LIBOBJ invocations to module description.
12923         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12924         invocations from here...
12925         * modules/poll (configure.ac): ... to here.
12926
12927 2011-05-21  Bruno Haible  <bruno@clisp.org>
12928
12929         pipe-posix: Move AC_LIBOBJ invocations to module description.
12930         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12931         * modules/pipe-posix (configure.ac): ... to here.
12932
12933 2011-05-21  Bruno Haible  <bruno@clisp.org>
12934
12935         openat: Respect rules for use of AC_LIBOBJ.
12936         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12937         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12938         * modules/openat (configure.ac): ... to here.
12939
12940 2011-05-21  Bruno Haible  <bruno@clisp.org>
12941
12942         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12943         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12944         invocation from here...
12945         * modules/obstack-printf (configure.ac): ... to here.
12946         * modules/obstack-printf-posix (configure.ac): ... and here.
12947
12948 2011-05-21  Bruno Haible  <bruno@clisp.org>
12949
12950         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12951         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12952         from here...
12953         * modules/nl_langinfo (configure.ac): ... to here.
12954
12955 2011-05-21  Bruno Haible  <bruno@clisp.org>
12956
12957         nanosleep: Move AC_LIBOBJ invocations to module description.
12958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12959         gl_PREREQ_NANOSLEEP invocations from here...
12960         * modules/nanosleep (configure.ac): ... to here.
12961
12962 2011-05-21  Bruno Haible  <bruno@clisp.org>
12963
12964         mountlist: Move AC_LIBOBJ invocations to module description.
12965         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12966         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12967         * modules/mountlist (configure.ac): ... to here.
12968
12969 2011-05-21  Bruno Haible  <bruno@clisp.org>
12970
12971         mktime: Respect rules for use of AC_LIBOBJ.
12972         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12973         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12974         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12975         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12976         * modules/mktime (configure.ac): ... to here.
12977         * modules/mktime-internal (configure.ac): ... and here.
12978         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12979
12980 2011-05-21  Bruno Haible  <bruno@clisp.org>
12981
12982         mkstemps: Move AC_LIBOBJ invocations to module description.
12983         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12984         here...
12985         * modules/mkstemps (configure.ac): ... to here.
12986
12987 2011-05-21  Bruno Haible  <bruno@clisp.org>
12988
12989         mkstemp: Move AC_LIBOBJ invocations to module description.
12990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12991         gl_PREREQ_MKSTEMP invocations from here...
12992         * modules/mkstemp (configure.ac): ... to here.
12993
12994 2011-05-21  Bruno Haible  <bruno@clisp.org>
12995
12996         mkostemps: Move AC_LIBOBJ invocations to module description.
12997         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12998         here...
12999         * modules/mkostemps (configure.ac): ... to here.
13000
13001 2011-05-21  Bruno Haible  <bruno@clisp.org>
13002
13003         mkostemp: Move AC_LIBOBJ invocations to module description.
13004         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13005         gl_PREREQ_MKOSTEMP invocations from here...
13006         * modules/mkostemp (configure.ac): ... to here.
13007
13008 2011-05-21  Bruno Haible  <bruno@clisp.org>
13009
13010         mknod: Move AC_LIBOBJ invocations to module description.
13011         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13012         * modules/mknod (configure.ac): ... to here.
13013
13014 2011-05-21  Bruno Haible  <bruno@clisp.org>
13015
13016         mkfifoat: Move AC_LIBOBJ invocations to module description.
13017         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13018         here...
13019         * modules/mkfifoat (configure.ac): ... to here.
13020
13021 2011-05-21  Bruno Haible  <bruno@clisp.org>
13022
13023         mkfifo: Respect rules for use of AC_LIBOBJ.
13024         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13025         here...
13026         * modules/mkfifo (configure.ac): ... to here.
13027
13028 2011-05-21  Bruno Haible  <bruno@clisp.org>
13029
13030         mkdtemp: Move AC_LIBOBJ invocations to module description.
13031         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13032         invocations from here...
13033         * modules/mkdtemp (configure.ac): ... to here.
13034
13035 2011-05-21  Bruno Haible  <bruno@clisp.org>
13036
13037         mkdir: Move AC_LIBOBJ invocations to module description.
13038         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13039         * modules/mkdir (configure.ac): ... to here.
13040
13041 2011-05-21  Bruno Haible  <bruno@clisp.org>
13042
13043         memset: Move AC_LIBOBJ invocations to module description.
13044         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13046         here...
13047         * modules/memset (configure.ac): ... to here.
13048
13049 2011-05-21  Bruno Haible  <bruno@clisp.org>
13050
13051         memrchr: Move AC_LIBOBJ invocations to module description.
13052         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13054         here...
13055         * modules/memrchr (configure.ac): ... to here.
13056
13057 2011-05-21  Bruno Haible  <bruno@clisp.org>
13058
13059         mempcpy: Move AC_LIBOBJ invocations to module description.
13060         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13062         here...
13063         * modules/mempcpy (configure.ac): ... to here.
13064
13065 2011-05-21  Bruno Haible  <bruno@clisp.org>
13066
13067         memmove: Move AC_LIBOBJ invocations to module description.
13068         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13069         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13070         here...
13071         * modules/memmove (configure.ac): ... to here.
13072
13073 2011-05-21  Bruno Haible  <bruno@clisp.org>
13074
13075         memmem*: Move AC_LIBOBJ invocations to module description.
13076         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13077         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13078         here...
13079         (gl_FUNC_MEMMEM): ... and here...
13080         * modules/memmem-simple (configure.ac): ... to here.
13081         * modules/memmem (configure.ac): ... and here.
13082
13083 2011-05-21  Bruno Haible  <bruno@clisp.org>
13084
13085         memcpy: Move AC_LIBOBJ invocations to module description.
13086         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13088         here...
13089         * modules/memcpy (configure.ac): ... to here.
13090
13091 2011-05-21  Bruno Haible  <bruno@clisp.org>
13092
13093         memcmp: Simplify autoconf macro.
13094         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13095         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13096         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13097
13098 2011-05-21  Bruno Haible  <bruno@clisp.org>
13099
13100         memcmp: Move AC_LIBOBJ invocations to module description.
13101         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13102         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13103         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13104         * modules/memcmp (configure.ac): ... to here.
13105         (Depends-on): Update conditions.
13106
13107 2011-05-21  Bruno Haible  <bruno@clisp.org>
13108
13109         memchr: Respect rules for use of AC_LIBOBJ.
13110         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13111         invocations from here...
13112         * modules/memchr (configure.ac): ... to here.
13113
13114 2011-05-21  Bruno Haible  <bruno@clisp.org>
13115
13116         mbtowc: Move AC_LIBOBJ invocations to module description.
13117         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13118         invocations from here...
13119         * modules/mbtowc (configure.ac): ... to here.
13120
13121 2011-05-21  Bruno Haible  <bruno@clisp.org>
13122
13123         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13124         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13125         gl_PREREQ_MBSRTOWCS invocations from here...
13126         * modules/mbsrtowcs (configure.ac): ... to here.
13127
13128 2011-05-21  Bruno Haible  <bruno@clisp.org>
13129
13130         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13131         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13132         gl_PREREQ_MBSNRTOWCS invocations from here...
13133         * modules/mbsnrtowcs (configure.ac): ... to here.
13134
13135 2011-05-21  Bruno Haible  <bruno@clisp.org>
13136
13137         mbsinit: Move AC_LIBOBJ invocations to module description.
13138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13139         invocations from here...
13140         * modules/mbsinit (configure.ac): ... to here.
13141
13142 2011-05-21  Bruno Haible  <bruno@clisp.org>
13143
13144         mbrlen: Move AC_LIBOBJ invocations to module description.
13145         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13146         invocations from here...
13147         * modules/mbrlen (configure.ac): ... to here.
13148
13149 2011-05-21  Bruno Haible  <bruno@clisp.org>
13150
13151         mbrtowc: Respect rules for use of AC_LIBOBJ.
13152         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13153         invocations from here...
13154         * modules/mbrtowc (configure.ac): ... to here.
13155
13156 2011-05-21  Bruno Haible  <bruno@clisp.org>
13157
13158         malloc-*: Move AC_LIBOBJ invocations to module description.
13159         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13160         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13161         AC_LIBOBJ invocations from here...
13162         * modules/malloc-gnu (configure.ac): ... to here.
13163         * modules/malloc-posix (configure.ac): ... and here.
13164
13165 2011-05-21  Bruno Haible  <bruno@clisp.org>
13166
13167         lstat, openat: Respect rules for use of AC_LIBOBJ.
13168         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13169         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13170         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13171         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13172         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13173         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13174         here.
13175         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13176
13177 2011-05-21  Bruno Haible  <bruno@clisp.org>
13178
13179         lseek: Move AC_LIBOBJ invocations to module description.
13180         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13181         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13182         * modules/lseek (configure.ac): ... to here.
13183
13184 2011-05-21  Bruno Haible  <bruno@clisp.org>
13185
13186         linkat: Move AC_LIBOBJ invocations to module description.
13187         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13188         here...
13189         * modules/linkat (configure.ac): ... to here.
13190
13191 2011-05-21  Bruno Haible  <bruno@clisp.org>
13192
13193         link: Respect rules for use of AC_LIBOBJ.
13194         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13195         * modules/link (configure.ac): ... to here.
13196
13197 2011-05-21  Bruno Haible  <bruno@clisp.org>
13198
13199         lchown: Move AC_LIBOBJ invocations to module description.
13200         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13201         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13202         * modules/lchown (configure.ac): ... to here.
13203
13204 2011-05-21  Bruno Haible  <bruno@clisp.org>
13205
13206         iswctype: Move AC_LIBOBJ invocations to module description.
13207         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13208         here...
13209         * modules/iswctype (configure.ac): ... to here.
13210
13211 2011-05-21  Bruno Haible  <bruno@clisp.org>
13212
13213         iswblank: Move AC_LIBOBJ invocations to module description.
13214         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13215         here...
13216         * modules/iswblank (configure.ac): ... to here.
13217
13218 2011-05-21  Bruno Haible  <bruno@clisp.org>
13219
13220         atanl: Move AC_LIBOBJ invocations to module description.
13221         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13222         * modules/atanl (configure.ac): ... to here.
13223
13224 2011-05-21  Bruno Haible  <bruno@clisp.org>
13225
13226         acosl: Move AC_LIBOBJ invocations to module description.
13227         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13228         * modules/acosl (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         asinl: Respect rules for use of AC_LIBOBJ.
13233         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13234         * modules/asinl (configure.ac): ... to here.
13235
13236 2011-05-21  Bruno Haible  <bruno@clisp.org>
13237
13238         tanl: Move AC_LIBOBJ invocations to module description.
13239         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13240         * modules/tanl (configure.ac): ... to here.
13241
13242 2011-05-21  Bruno Haible  <bruno@clisp.org>
13243
13244         cosl: Move AC_LIBOBJ invocations to module description.
13245         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13246         * modules/cosl (configure.ac): ... to here.
13247
13248 2011-05-21  Bruno Haible  <bruno@clisp.org>
13249
13250         sinl: Move AC_LIBOBJ invocations to module description.
13251         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13252         * modules/sinl (configure.ac): ... to here.
13253
13254 2011-05-21  Bruno Haible  <bruno@clisp.org>
13255
13256         logl: Move AC_LIBOBJ invocations to module description.
13257         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13258         * modules/logl (configure.ac): ... to here.
13259
13260 2011-05-21  Bruno Haible  <bruno@clisp.org>
13261
13262         expl: Move AC_LIBOBJ invocations to module description.
13263         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13264         * modules/expl (configure.ac): ... to here.
13265
13266 2011-05-21  Bruno Haible  <bruno@clisp.org>
13267
13268         roundl: Move AC_LIBOBJ invocations to module description.
13269         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13270         * modules/roundl (configure.ac): ... to here.
13271
13272 2011-05-21  Bruno Haible  <bruno@clisp.org>
13273
13274         round: Move AC_LIBOBJ invocations to module description.
13275         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13276         * modules/round (configure.ac): ... to here.
13277
13278 2011-05-21  Bruno Haible  <bruno@clisp.org>
13279
13280         roundf: Move AC_LIBOBJ invocations to module description.
13281         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13282         * modules/roundf (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         truncl: Move AC_LIBOBJ invocations to module description.
13287         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13288         * modules/truncl (configure.ac): ... to here.
13289
13290 2011-05-21  Bruno Haible  <bruno@clisp.org>
13291
13292         trunc: Move AC_LIBOBJ invocations to module description.
13293         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13294         * modules/trunc (configure.ac): ... to here.
13295
13296 2011-05-21  Bruno Haible  <bruno@clisp.org>
13297
13298         truncf: Move AC_LIBOBJ invocations to module description.
13299         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13300         * modules/truncf (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         ceill: Move AC_LIBOBJ invocations to module description.
13305         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13306         * modules/ceill (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         ceil: Move AC_LIBOBJ invocations to module description.
13311         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13312         * modules/ceil (configure.ac): ... to here.
13313
13314 2011-05-21  Bruno Haible  <bruno@clisp.org>
13315
13316         ceilf: Move AC_LIBOBJ invocations to module description.
13317         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13318         * modules/ceilf (configure.ac): ... to here.
13319
13320 2011-05-21  Bruno Haible  <bruno@clisp.org>
13321
13322         floorl: Respect rules for use of AC_LIBOBJ.
13323         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13324         * modules/floorl (configure.ac): ... to here.
13325
13326 2011-05-21  Bruno Haible  <bruno@clisp.org>
13327
13328         floor: Respect rules for use of AC_LIBOBJ.
13329         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13330         * modules/floor (configure.ac): ... to here.
13331
13332 2011-05-21  Bruno Haible  <bruno@clisp.org>
13333
13334         floorf: Move AC_LIBOBJ invocations to module description.
13335         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13336         * modules/floorf (configure.ac): ... to here.
13337
13338 2011-05-20  Bruno Haible  <bruno@clisp.org>
13339
13340         sqrtl: Respect rules for use of AC_LIBOBJ.
13341         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13342         * modules/sqrtl (configure.ac): ... to here.
13343
13344 2011-05-20  Bruno Haible  <bruno@clisp.org>
13345
13346         ldexpl: Respect rules for use of AC_LIBOBJ.
13347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13348         * modules/ldexpl (configure.ac): ... to here.
13349
13350 2011-05-20  Bruno Haible  <bruno@clisp.org>
13351
13352         frexpl*: Respect rules for use of AC_LIBOBJ.
13353         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13354         invocation from here...
13355         * modules/frexpl (configure.ac): ... to here.
13356         * modules/frexpl-nolibm (configure.ac): ... and here.
13357
13358 2011-05-20  Bruno Haible  <bruno@clisp.org>
13359
13360         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13361         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13362         invocation from here...
13363         * modules/frexp (configure.ac): ... to here.
13364         * modules/frexp-nolibm (configure.ac): ... and here.
13365
13366 2011-05-20  Bruno Haible  <bruno@clisp.org>
13367
13368         isnan: Respect rules for use of AC_LIBOBJ.
13369         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13370         invocations here.
13371         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13372         REPLACE_ISNAN.
13373         * modules/isnand (configure.ac): Likewise.
13374         * modules/isnanl (configure.ac): Likewise.
13375
13376 2011-05-20  Bruno Haible  <bruno@clisp.org>
13377
13378         isnanl*: Respect rules for use of AC_LIBOBJ.
13379         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13380         invocation from here...
13381         * modules/isnanl (configure.ac): ... to here.
13382         * modules/isnanl-nolibm (configure.ac): ... and here.
13383
13384 2011-05-20  Bruno Haible  <bruno@clisp.org>
13385
13386         isnand*: Move AC_LIBOBJ invocations to module description.
13387         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13388         invocation from here...
13389         * modules/isnand (configure.ac): ... to here.
13390         * modules/isnand-nolibm (configure.ac): ... and here.
13391
13392 2011-05-20  Bruno Haible  <bruno@clisp.org>
13393
13394         isnanf*: Move AC_LIBOBJ invocations to module description.
13395         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13396         invocation from here...
13397         * modules/isnanf (configure.ac): ... to here.
13398         * modules/isnanf-nolibm (configure.ac): ... and here.
13399
13400 2011-05-20  Bruno Haible  <bruno@clisp.org>
13401
13402         isnan*: Separate the AC_LIBOBJ invocations.
13403         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13404         AC_LIBOBJ invocation.
13405         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13406         here.
13407         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13408         AC_LIBOBJ invocation.
13409         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13410         here.
13411         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13412         AC_LIBOBJ invocation.
13413         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13414         here.
13415         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13416
13417 2011-05-08  Bruno Haible  <bruno@clisp.org>
13418
13419         isinf: Move AC_LIBOBJ invocations to module description.
13420         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13421         * modules/isinf (configure.ac): ... to here.
13422
13423 2011-05-08  Bruno Haible  <bruno@clisp.org>
13424
13425         isfinite: Move AC_LIBOBJ invocations to module description.
13426         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13427         * modules/isfinite (configure.ac): ... to here.
13428
13429 2011-05-08  Bruno Haible  <bruno@clisp.org>
13430
13431         isblank: Move AC_LIBOBJ invocations to module description.
13432         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13433         here...
13434         * modules/isblank (configure.ac): ... to here.
13435
13436 2011-05-08  Bruno Haible  <bruno@clisp.org>
13437
13438         isapipe: Move AC_LIBOBJ invocations to module description.
13439         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13440         gl_PREREQ_ISAPIPE invocations from here...
13441         * modules/isapipe (configure.ac): ... to here.
13442         (Depends-on): Update condition.
13443
13444 2011-05-08  Bruno Haible  <bruno@clisp.org>
13445
13446         ioctl: Move AC_LIBOBJ invocations to module description.
13447         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13448         invocations from here...
13449         * modules/ioctl (configure.ac): ... to here.
13450         (Depends-on): Update condition.
13451
13452 2011-05-08  Bruno Haible  <bruno@clisp.org>
13453
13454         imaxdiv: Move AC_LIBOBJ invocations to module description.
13455         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13456         invocations from here...
13457         * modules/imaxdiv (configure.ac): ... to here.
13458
13459 2011-05-08  Bruno Haible  <bruno@clisp.org>
13460
13461         imaxabs: Move AC_LIBOBJ invocations to module description.
13462         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13463         invocations from here...
13464         * modules/imaxabs (configure.ac): ... to here.
13465
13466 2011-05-08  Bruno Haible  <bruno@clisp.org>
13467
13468         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13470         AC_LIBOBJ invocations from here...
13471         * modules/getaddrinfo (configure.ac): ... to here.
13472         (Depends-on): Add conditions.
13473
13474 2011-05-08  Bruno Haible  <bruno@clisp.org>
13475
13476         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13477         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13478         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13479         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13480         (gl_PREREQ_INET_PTON): ... from here.
13481         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13482         gl_PREREQ_INET_PTON here.
13483         (Depends-on): Update condition.
13484
13485 2011-05-08  Bruno Haible  <bruno@clisp.org>
13486
13487         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13488         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13489         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13490         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13491         (gl_PREREQ_INET_NTOP): ... from here.
13492         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13493         gl_PREREQ_INET_NTOP here.
13494         (Depends-on): Update condition.
13495
13496 2011-05-08  Bruno Haible  <bruno@clisp.org>
13497
13498         iconv_open: Move AC_LIBOBJ invocations to module description.
13499         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13500         AC_LIBOBJ invocations from here...
13501         * modules/iconv_open (configure.ac): ... to here.
13502
13503 2011-05-08  Bruno Haible  <bruno@clisp.org>
13504
13505         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13506         If module 'iconv_open' is among the main modules and module
13507         'iconv_open-utf' is among the tests dependencies, then
13508         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13509         return the special iconv_t values. Therefore iconv() and iconv_close()
13510         must support these special iconv_t values, already in lib, not only in
13511         tests.
13512         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13513         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13514         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13515         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13516         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13517         (Depends-on): Add the dependencies of iconv_open-utf.
13518         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13519         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13520         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13521
13522 2011-05-08  Bruno Haible  <bruno@clisp.org>
13523
13524         group-member: Move AC_LIBOBJ invocations to module description.
13525         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13526         gl_PREREQ_GROUP_MEMBER invocations from here...
13527         * modules/group-member (configure.ac): ... to here.
13528
13529 2011-05-08  Bruno Haible  <bruno@clisp.org>
13530
13531         grantpt: Move AC_LIBOBJ invocations to module description.
13532         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13533         invocations from here...
13534         * modules/grantpt (configure.ac): ... to here.
13535
13536 2011-05-08  Bruno Haible  <bruno@clisp.org>
13537
13538         glob: Move AC_LIBOBJ invocations to module description.
13539         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13540         from here...
13541         * modules/glob (configure.ac): ... to here.
13542
13543 2011-05-08  Bruno Haible  <bruno@clisp.org>
13544
13545         getusershell: Move AC_LIBOBJ invocations to module description.
13546         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13547         Move AC_LIBOBJ invocation from here...
13548         * modules/getusershell (configure.ac): ... to here.
13549         (Depends-on): Update condition.
13550
13551 2011-05-08  Bruno Haible  <bruno@clisp.org>
13552
13553         gettimeofday: Move AC_LIBOBJ invocations to module description.
13554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13555         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13556         gl_PREREQ_GETTIMEOFDAY invocations from here...
13557         * modules/gettimeofday (configure.ac): ... to here.
13558
13559 2011-05-08  Bruno Haible  <bruno@clisp.org>
13560
13561         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13562         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13563         just gl_FUNC_TZSET.
13564         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13565         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13566         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13567         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13568
13569 2011-05-08  Bruno Haible  <bruno@clisp.org>
13570
13571         getsubopt: Move AC_LIBOBJ invocations to module description.
13572         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13573         gl_PREREQ_GETSUBOPT invocations from here...
13574         * modules/getsubopt (configure.ac): ... to here.
13575
13576 2011-05-08  Bruno Haible  <bruno@clisp.org>
13577
13578         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13579         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13580         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13581         * modules/getpass-gnu (configure.ac): ... to here.
13582
13583 2011-05-08  Bruno Haible  <bruno@clisp.org>
13584
13585         getpass: Move AC_LIBOBJ invocations to module description.
13586         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13587         gl_PREREQ_GETPASS invocations from here...
13588         * modules/getpass (configure.ac): ... to here.
13589
13590 2011-05-08  Bruno Haible  <bruno@clisp.org>
13591
13592         getpagesize: Move AC_LIBOBJ invocations to module description.
13593         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13594         from here...
13595         * modules/getpagesize (configure.ac): ... to here.
13596
13597 2011-05-08  Bruno Haible  <bruno@clisp.org>
13598
13599         getopt: Move AC_LIBOBJ invocations to module description.
13600         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13601         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13602         invocations from here...
13603         * modules/getopt-gnu (configure.ac): ... to here.
13604         * modules/getopt-posix (configure.ac): ... and here.
13605         (Depends-on): Update condition.
13606
13607 2011-05-08  Bruno Haible  <bruno@clisp.org>
13608
13609         getopt, argp: Respect rules for use of AC_LIBOBJ.
13610         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13611         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13612         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13613         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13614
13615 2011-05-08  Bruno Haible  <bruno@clisp.org>
13616
13617         getlogin_r: Move AC_LIBOBJ invocations to module description.
13618         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13619         gl_PREREQ_GETLOGIN_R invocations from here...
13620         * modules/getlogin_r (configure.ac): ... to here.
13621
13622 2011-05-08  Bruno Haible  <bruno@clisp.org>
13623
13624         getlogin: Move AC_LIBOBJ invocations to module description.
13625         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13626         here...
13627         * modules/getlogin (configure.ac): ... to here.
13628
13629 2011-05-08  Bruno Haible  <bruno@clisp.org>
13630
13631         getloadavg: Move AC_LIBOBJ invocations to module description.
13632         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13633         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13634         * modules/getloadavg (configure.ac): ... to here.
13635
13636 2011-05-08  Bruno Haible  <bruno@clisp.org>
13637
13638         gethrxtime: Move AC_LIBOBJ invocations to module description.
13639         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13640         LIB_GETHRXTIME from here...
13641         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13642         invocations from here...
13643         * modules/gethrxtime (configure.ac): ... to here.
13644
13645 2011-05-08  Bruno Haible  <bruno@clisp.org>
13646
13647         gethostname: Move AC_LIBOBJ invocations to module description.
13648         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13649         gl_PREREQ_GETHOSTNAME invocations from here...
13650         * modules/gethostname (configure.ac): ... to here.
13651
13652 2011-05-08  Bruno Haible  <bruno@clisp.org>
13653
13654         getgroups: Move AC_LIBOBJ invocations to module description.
13655         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13656         here...
13657         * modules/getgroups (configure.ac): ... to here.
13658
13659 2011-05-08  Bruno Haible  <bruno@clisp.org>
13660
13661         getdtablesize: Move AC_LIBOBJ invocations to module description.
13662         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13663         invocation from here...
13664         * modules/getdtablesize (configure.ac): ... to here.
13665
13666 2011-05-08  Bruno Haible  <bruno@clisp.org>
13667
13668         getdomainname: Move AC_LIBOBJ invocations to module description.
13669         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13670         gl_PREREQ_GETDOMAINNAME invocations from here...
13671         * modules/getdomainname (configure.ac): ... to here.
13672
13673 2011-05-08  Bruno Haible  <bruno@clisp.org>
13674
13675         getline: Move AC_LIBOBJ invocations to module description.
13676         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13677         invocations from here...
13678         * modules/getline (configure.ac): ... to here.
13679
13680 2011-05-08  Bruno Haible  <bruno@clisp.org>
13681
13682         getline: Simplify.
13683         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13684         It's already handled through the module dependency.
13685
13686 2011-05-08  Bruno Haible  <bruno@clisp.org>
13687
13688         getdelim: Move AC_LIBOBJ invocations to module description.
13689         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13690         and gl_PREREQ_GETDELIM invocations from here...
13691         * modules/getdelim (configure.ac): ... to here.
13692         (Depends-on): Fix condition.
13693
13694 2011-05-08  Bruno Haible  <bruno@clisp.org>
13695
13696         getcwd: Move AC_LIBOBJ invocations to module description.
13697         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13698         invocations from here...
13699         * modules/getcwd (configure.ac): ... to here.
13700
13701 2011-05-08  Bruno Haible  <bruno@clisp.org>
13702
13703         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13704         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13705         here...
13706         * modules/getcwd-lgpl (configure.ac): ... to here.
13707
13708 2011-05-07  Bruno Haible  <bruno@clisp.org>
13709
13710         crypto/gc: Move AC_LIBOBJ invocations to module description.
13711         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13712         * modules/crypto/gc (configure.ac): ... to here.
13713
13714 2011-05-07  Bruno Haible  <bruno@clisp.org>
13715
13716         fwriting: Move AC_LIBOBJ invocations to module description.
13717         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13718         here...
13719         * modules/fwriting (configure.ac): ... to here.
13720
13721 2011-05-07  Bruno Haible  <bruno@clisp.org>
13722
13723         fwritable: Move AC_LIBOBJ invocations to module description.
13724         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13725         here...
13726         * modules/fwritable (configure.ac): ... to here.
13727
13728 2011-05-07  Bruno Haible  <bruno@clisp.org>
13729
13730         futimens: Move AC_LIBOBJ invocations to module description.
13731         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13732         here...
13733         * modules/futimens (configure.ac): ... to here.
13734
13735 2011-05-07  Bruno Haible  <bruno@clisp.org>
13736
13737         ftruncate: Move AC_LIBOBJ invocations to module description.
13738         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13739         gl_PREREQ_FTRUNCATE invocations from here...
13740         * modules/ftruncate (configure.ac): ... to here.
13741
13742 2011-05-07  Bruno Haible  <bruno@clisp.org>
13743
13744         fsync: Move AC_LIBOBJ invocations to module description.
13745         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13746         invocations from here...
13747         * modules/fsync (configure.ac): ... to here.
13748
13749 2011-05-07  Bruno Haible  <bruno@clisp.org>
13750
13751         fsusage: Move AC_LIBOBJ invocations to module description.
13752         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13753         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13754         * modules/fsusage (configure.ac): ... to here.
13755
13756 2011-05-07  Bruno Haible  <bruno@clisp.org>
13757
13758         freopen: Move AC_LIBOBJ invocations to module description.
13759         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13760         invocations from here...
13761         * modules/freopen (configure.ac): ... to here.
13762
13763 2011-05-07  Bruno Haible  <bruno@clisp.org>
13764
13765         free: Move AC_LIBOBJ invocations to module description.
13766         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13767         invocations from here...
13768         * modules/free (configure.ac): ... to here.
13769
13770 2011-05-07  Bruno Haible  <bruno@clisp.org>
13771
13772         freadable: Move AC_LIBOBJ invocations to module description.
13773         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13774         here...
13775         * modules/freadable (configure.ac): ... to here.
13776
13777 2011-05-07  Bruno Haible  <bruno@clisp.org>
13778
13779         fpurge: Move AC_LIBOBJ invocations to module description.
13780         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13781         invocations from here...
13782         * modules/fpurge (configure.ac): ... to here.
13783
13784 2011-05-07  Bruno Haible  <bruno@clisp.org>
13785
13786         fpending: Move AC_LIBOBJ invocations to module description.
13787         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13788         gl_FUNC_FPENDING.
13789         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13790         invocations from here...
13791         * modules/fpending (configure.ac): ... to here.
13792
13793 2011-05-07  Bruno Haible  <bruno@clisp.org>
13794
13795         fopen: Move AC_LIBOBJ invocations to module description.
13796         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13797         invocations from here...
13798         * modules/fopen (configure.ac): ... to here.
13799
13800 2011-05-07  Bruno Haible  <bruno@clisp.org>
13801
13802         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13803         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13804         gl_FUNC_FNMATCH_POSIX.
13805         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13806         invocations from here...
13807         * modules/fnmatch (configure.ac): ... to here.
13808         * modules/fnmatch-gnu (configure.ac): ... and here.
13809
13810 2011-05-07  Bruno Haible  <bruno@clisp.org>
13811
13812         flock: Move AC_LIBOBJ invocations to module description.
13813         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13814         invocations from here...
13815         * modules/flock (configure.ac): ... to here.
13816
13817 2011-05-07  Bruno Haible  <bruno@clisp.org>
13818
13819         fileblocks: Move AC_LIBOBJ invocations to module description.
13820         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13821         gl_PREREQ_FILEBLOCKS invocations from here...
13822         * modules/fileblocks (configure.ac): ... to here.
13823
13824 2011-05-06  Bruno Haible  <bruno@clisp.org>
13825
13826         fflush: Move AC_LIBOBJ invocations to module description.
13827         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13828         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13829         invocations from here...
13830         * modules/fflush (configure.ac): ... to here.
13831
13832 2011-05-06  Bruno Haible  <bruno@clisp.org>
13833
13834         fdopendir: Move AC_LIBOBJ invocations to module description.
13835         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13836         here...
13837         * modules/fdopendir (configure.ac): ... to here.
13838         (Depends-on): Improve conditions.
13839
13840 2011-05-06  Bruno Haible  <bruno@clisp.org>
13841
13842         _Exit: Move AC_LIBOBJ invocations to module description.
13843         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13844         invocations from here...
13845         * modules/_Exit (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         euidaccess: Respect rules for use of AC_LIBOBJ.
13850         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13851         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13852         from here...
13853         * modules/euidaccess (configure.ac): ... to here.
13854
13855 2011-05-06  Bruno Haible  <bruno@clisp.org>
13856
13857         error: Move AC_LIBOBJ invocations to module description.
13858         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13859         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13860         invocations from here...
13861         * modules/error (configure.ac): ... to here.
13862
13863 2011-05-06  Bruno Haible  <bruno@clisp.org>
13864
13865         duplocale: Move AC_LIBOBJ invocations to module description.
13866         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13867         gl_PREREQ_DUPLOCALE invocations from here...
13868         * modules/duplocale (configure.ac): ... to here.
13869
13870 2011-05-05  Bruno Haible  <bruno@clisp.org>
13871
13872         dirfd: Move AC_LIBOBJ invocations to module description.
13873         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13874         gl_FUNC_DIRFD.
13875         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13876         here...
13877         * modules/dirfd (configure.ac): ... to here.
13878         (Depends-on): Fix condition.
13879
13880 2011-05-05  Bruno Haible  <bruno@clisp.org>
13881
13882         chown: Respect rules for use of AC_LIBOBJ.
13883         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13884         * modules/chown (configure.ac): ... to here.
13885
13886 2011-05-05  Bruno Haible  <bruno@clisp.org>
13887
13888         chdir-long: Move AC_LIBOBJ invocations to module description.
13889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13890         gl_PREREQ_CHDIR_LONG invocations from here...
13891         * modules/chdir-long (configure.ac): ... to here.
13892
13893 2011-05-05  Bruno Haible  <bruno@clisp.org>
13894
13895         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13896         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13897         from here...
13898         * modules/canonicalize-lgpl (configure.ac): ... to here.
13899
13900 2011-05-05  Bruno Haible  <bruno@clisp.org>
13901
13902         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13903         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13904         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13905         REPLACE_CALLOC.
13906         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13907         * modules/calloc-gnu (configure.ac): Likewise.
13908
13909 2011-05-05  Bruno Haible  <bruno@clisp.org>
13910
13911         btowc: Move AC_LIBOBJ invocations to module description.
13912         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13913         invocations from here...
13914         * modules/btowc (configure.ac): ... to here.
13915
13916 2011-05-21  Bruno Haible  <bruno@clisp.org>
13917
13918         atexit: Move AC_LIBOBJ invocations to module description.
13919         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13921         here...
13922         * modules/atexit (configure.ac): ... to here.
13923
13924 2011-05-05  Bruno Haible  <bruno@clisp.org>
13925
13926         atoll: Move AC_LIBOBJ invocations to module description.
13927         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13928         invocations from here...
13929         * modules/atoll (configure.ac): ... to here.
13930
13931 2011-05-05  Bruno Haible  <bruno@clisp.org>
13932
13933         argz: Move AC_LIBOBJ invocations to module description.
13934         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13935         * modules/argz (configure.ac): ... to here.
13936
13937 2011-05-05  Bruno Haible  <bruno@clisp.org>
13938
13939         alphasort: Move AC_LIBOBJ invocations to module description.
13940         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13941         gl_PREREQ_ALPHASORT invocations from here...
13942         * modules/alphasort (configure.ac): ... to here.
13943
13944 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13945
13946         verify: new macro verify_expr; verify_true deprecated
13947         * NEWS: Mention this.
13948         * doc/verify.texi (Compile-time Assertions): Document this.
13949         * lib/verify.h (verify_true): Deprecate.
13950         (verify_expr): New macro.
13951         * tests/test-verify.c (function): Test verify_expr.
13952
13953 2011-06-14  Jim Meyering  <meyering@redhat.com>
13954
13955         init.sh: give more portable redirection-related advice in a comment
13956         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13957         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13958         for lots of discussion.  Stefano Lattarini suggested the solution
13959         of putting "9>&2" after the command.  Reported by Bruno Haible.
13960
13961 2011-06-13  Bruno Haible  <bruno@clisp.org>
13962
13963         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13964         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13965         'none'.
13966
13967 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13968
13969         ftoastr: use strtof only if HAVE_STRTOF
13970         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13972         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13973         * modules/ftoastr (configure.ac): Check for strtof.
13974
13975 2011-06-13  Bruno Haible  <bruno@clisp.org>
13976
13977         gnulib-tool: Addendum to 2011-06-08 commit.
13978         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13979         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13980
13981 2011-06-13  Bruno Haible  <bruno@clisp.org>
13982
13983         fseeko: Provide a non-inline replacement of fseek().
13984         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13985         * modules/fseeko (Depends-on): Add fseek.
13986         * modules/fseek (License): Change to LGPLv2+.
13987
13988 2011-06-13  Bruno Haible  <bruno@clisp.org>
13989
13990         ftello: Provide a non-inline replacement of ftell().
13991         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13992         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13993         not have ftello() (such as on mingw).
13994         * modules/ftello (Depends-on): Add ftell.
13995         * modules/ftell (License): Change to LGPLv2+.
13996
13997 2011-05-07  Bruno Haible  <bruno@clisp.org>
13998
13999         ftell: Move AC_LIBOBJ invocations to module description.
14000         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14001         * modules/ftell (configure.ac): ... to here.
14002
14003 2011-05-07  Bruno Haible  <bruno@clisp.org>
14004
14005         ftello: Respect rules for use of AC_LIBOBJ.
14006         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14007         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14008         here...
14009         * modules/ftello (configure.ac): ... to here.
14010
14011 2011-05-07  Bruno Haible  <bruno@clisp.org>
14012
14013         fseeko: Simplify.
14014         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14015         (gl_FUNC_FSEEKO): Inline it here.
14016
14017 2011-05-07  Bruno Haible  <bruno@clisp.org>
14018
14019         fseek: Move AC_LIBOBJ invocations to module description.
14020         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14021         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14022         * modules/fseek (configure.ac): ... to here.
14023
14024 2011-05-07  Bruno Haible  <bruno@clisp.org>
14025
14026         fseek: Respect rules for use of AC_LIBOBJ.
14027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14028         here...
14029         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14030
14031 2011-05-07  Bruno Haible  <bruno@clisp.org>
14032
14033         fseeko: Respect rules for use of AC_LIBOBJ.
14034         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14035         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14036         here...
14037         * modules/fseeko (configure.ac): ... to here.
14038
14039 2011-06-13  Bruno Haible  <bruno@clisp.org>
14040
14041         gnulib-tool: Allow comments in the 'Depends-on' section.
14042         * doc/gnulib.texi (Module description): Mention comment syntax in the
14043         Depends-on section.
14044         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14045
14046 2011-06-13  Bruno Haible  <bruno@clisp.org>
14047
14048         file-set.h: guard __attibute__ use, now that it's not always defined
14049         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14050         versions that support it.  This fixes a coreutils build failure with
14051         the vendor cc on HP-UX 11.31.
14052
14053 2011-06-12  Bruno Haible  <bruno@clisp.org>
14054
14055         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14056         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14057         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14058         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14059         (acl, aclsort): New declarations.
14060         (aclv_nontrivial): New declaration.
14061         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14062         (file_has_acl): Read also the second kind of HP-UX ACLs.
14063         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14064         kind of HP-UX ACLs if the first kind fails.
14065         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14066         second kind of HP-UX ACLs.
14067         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14068         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14069         agree.
14070         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14071         hpuxjfs.
14072         Handle hpuxjfs.
14073         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14074         hpuxjfs.
14075         Handle hpuxjfs.
14076         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14077         (func_test_same_acls): Use both lsacl and getacl.
14078         Handle hpuxjfs.
14079         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14080         (func_test_same_acls): Use both lsacl and getacl.
14081         Handle hpuxjfs.
14082
14083 2011-06-12  Bruno Haible  <bruno@clisp.org>
14084
14085         acl: Complete the 2010-08-10 fix.
14086         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14087         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14088         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14089         explicitly.
14090         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14091         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14092
14093 2011-06-12  Bruno Haible  <bruno@clisp.org>
14094
14095         spawn-pipe tests: Comments.
14096         * tests/test-spawn-pipe-child.c (main): Update comment.
14097         Reported by James Youngman <jay@gnu.org>.
14098
14099 2011-06-11  James Youngman  <jay@gnu.org>
14100
14101         New module 'stat-size'.
14102         * modules/stat-size: New module.  Provides macros for accessing
14103         file size information in instances of struct stat.  Depends on the
14104         fileblocks module because it calls st_blocks.
14105         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14106         * doc/gnulib.texi: Include stat-size.texi.
14107         * doc/stat-size.texi: Documentation for this module.
14108         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14109         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14110         AC_STRUCT_ST_BLOCKS.
14111
14112 2011-06-09  Bruno Haible  <bruno@clisp.org>
14113
14114         thread: Support pthreads-win32.
14115         * lib/glthread/thread.h (gl_thread_self): Define differently on
14116         pthreads-win32.
14117         (gl_null_thread): New declaration.
14118         (gl_thread_self_pointer): New macro.
14119         * lib/glthread/thread.c (gl_null_thread): New constant.
14120         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14121         gl_thread_self.
14122         * tests/test-tls.c: Likewise.
14123         Suggested by Paul Eggert. Reported by Eric Blake.
14124
14125 2011-06-09  Bruno Haible  <bruno@clisp.org>
14126
14127         thread: Fix confusion between NULL and 0.
14128         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14129         Reported by Paul Eggert.
14130
14131 2011-06-09  Bruno Haible  <bruno@clisp.org>
14132
14133         spawn-pipe tests: Avoid test failure on HP-UX 11.
14134         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14135         is closed.
14136
14137 2011-06-09  Bruno Haible  <bruno@clisp.org>
14138
14139         acl tests: Fix compilation error on HP-UX 11.
14140         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14141
14142 2011-06-09  Bruno Haible  <bruno@clisp.org>
14143
14144         rmdir: Avoid test failure on HP-UX 10.20.
14145         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14146         EEXIST.
14147
14148 2011-06-08  Eric Blake  <eblake@redhat.com>
14149
14150         perror: fix test on mingw
14151         * modules/perror-tests (Depends-on): Add dup2.
14152
14153         strerror_r-posix: fix on MacOS
14154         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14155         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14156         logic bug.
14157         * lib/strerror_r.c (strerror_r): Fix the bug.
14158         * lib/strerror.c (strerror): Likewise.
14159         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14160         problem.
14161         * doc/posix-functions/strerror.texi (strerror): Likewise.
14162         * doc/posix-functions/perror.texi (perror): Likewise.
14163         * tests/test-strerror.c (main): Enhance test.
14164         * tests/test-strerror_r.c (main): Likewise.
14165
14166 2011-06-08  Bruno Haible  <bruno@clisp.org>
14167
14168         gnulib-tool: Better isolation between different gnulib-tool invocations.
14169         * gnulib-tool: New option --witness-c-macro.
14170         (witness_c_macro): New variable.
14171         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14172         AM_CPPFLAGS define it as a C macro.
14173         (func_emit_tests_Makefile_am): Likewise.
14174         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14175         read it from there.
14176         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14177         m4_define, not AC_DEFUN.
14178         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14179         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14180         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14181         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14182         s|...|...|, to substitute the values of the GNULIB_* module indicator
14183         variables.
14184         * modules/dirent (Makefile.am): Likewise.
14185         * modules/fcntl-h (Makefile.am): Likewise.
14186         * modules/iconv-h (Makefile.am): Likewise.
14187         * modules/langinfo (Makefile.am): Likewise.
14188         * modules/locale (Makefile.am): Likewise.
14189         * modules/math (Makefile.am): Likewise.
14190         * modules/netdb (Makefile.am): Likewise.
14191         * modules/poll-h (Makefile.am): Likewise.
14192         * modules/pty (Makefile.am): Likewise.
14193         * modules/search (Makefile.am): Likewise.
14194         * modules/signal (Makefile.am): Likewise.
14195         * modules/spawn (Makefile.am): Likewise.
14196         * modules/stdio (Makefile.am): Likewise.
14197         * modules/stdlib (Makefile.am): Likewise.
14198         * modules/string (Makefile.am): Likewise.
14199         * modules/sys_ioctl (Makefile.am): Likewise.
14200         * modules/sys_select (Makefile.am): Likewise.
14201         * modules/sys_socket (Makefile.am): Likewise.
14202         * modules/sys_stat (Makefile.am): Likewise.
14203         * modules/sys_times (Makefile.am): Likewise.
14204         * modules/sys_utsname (Makefile.am): Likewise.
14205         * modules/sys_wait (Makefile.am): Likewise.
14206         * modules/termios (Makefile.am): Likewise.
14207         * modules/time (Makefile.am): Likewise.
14208         * modules/unistd (Makefile.am): Likewise.
14209         * modules/wchar (Makefile.am): Likewise.
14210
14211 2011-06-08  Eric Blake  <eblake@redhat.com>
14212
14213         strerror: simplify replacement
14214         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14215         * modules/strerror (configure.ac): No prereqs needed here...
14216         * modules/strerror-override (configure.ac): ...but this needs it.
14217         (Files): Add file for needed prereq macro.
14218
14219 2011-06-08  Bruno Haible  <bruno@clisp.org>
14220
14221         strerror_r-posix: Tweaks.
14222         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14223         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14224         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14225         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14226         (gl_FUNC_STRERROR_R): ... to here.
14227         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14228
14229 2011-06-07  Eric Blake  <eblake@redhat.com>
14230
14231         perror: document fixed bugs
14232         * doc/posix-functions/perror.texi (perror): Document recent
14233         patches.
14234
14235 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14236
14237         stat-time: get_stat_birthtime failure is better-defined
14238         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14239         return a timestamp whose tv_sec and tv_nsec values are both -1.
14240         Previously, the spec said only that the tv_nsec value was negative.
14241         This upward-compatible change simplifies GNU tar a bit.
14242
14243 2011-06-07  Eric Blake  <eblake@redhat.com>
14244
14245         strerror_r-posix: work around cygwin 1.7.9
14246         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14247         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14248         bug without replacing strerror_r.
14249         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14250         strerror_r is buggy, but without requiring strerror_r compilation.
14251         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14252
14253         test-perror: relax test to ignore cygwin bug
14254         * tests/test-perror2.c (main): Relax test on requiring detection
14255         of stream errors, and use unbuffered stream.
14256         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14257         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14258         * doc/posix-functions/fputc.texi (fputc): Likewise.
14259         * doc/posix-functions/fputs.texi (fputs): Likewise.
14260         * doc/posix-functions/fputws.texi (fputws): Likewise.
14261         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14262         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14263         * doc/posix-functions/getopt.texi (getopt): Likewise.
14264         * doc/posix-functions/perror.texi (perror): Likewise.
14265         * doc/posix-functions/printf.texi (printf): Likewise.
14266         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14267         * doc/posix-functions/psignal.texi (psignal): Likewise.
14268         * doc/posix-functions/putc.texi (putc): Likewise.
14269         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14270         Likewise.
14271         * doc/posix-functions/putchar.texi (putchar): Likewise.
14272         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14273         Likewise.
14274         * doc/posix-functions/puts.texi (puts): Likewise.
14275         * doc/posix-functions/putwc.texi (putwc): Likewise.
14276         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14277         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14278         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14279         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14280         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14281         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14282         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14283         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14284
14285 2011-05-22  Bruno Haible  <bruno@clisp.org>
14286
14287         strerror: Move AC_LIBOBJ invocations to module description.
14288         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14289         gl_PREREQ_STRERROR invocations from here...
14290         * modules/strerror (configure.ac): ... to here.
14291
14292 2011-05-21  Bruno Haible  <bruno@clisp.org>
14293
14294         perror: Use common idiom.
14295         * modules/perror (configure.ac): Reorder statements.
14296
14297 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14298
14299         tests: fix usage message in 'mktempd_'
14300         * tests/init.sh (mktempd_): In the usage message, use literal
14301         'mktempd_', not '$ME' (which is even undefined), as the name of
14302         the subroutine.
14303
14304 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14305
14306         tests init: new function 'fatal_', for hard errors
14307         Before this patch, the only way offered by tests/init.sh to
14308         properly signal a hard error was the `framework_failure_'
14309         function.  But the error message issued by that function,
14310         as its name would suggest, refers to a set-up failure in the
14311         testsuite, while hard errors can obviously also be due to
14312         other reasons.  The best way to fix this inconsistency is to
14313         introduce a new function with a more general error message.
14314         * tests/init.sh (fatal_): New function.
14315
14316 2011-06-06  Eric Blake  <eblake@redhat.com>
14317
14318         canonicalize-lgpl: use common idiom
14319         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14320         over newer POSIX -Rf.
14321         Reported by Bruno Haible.
14322
14323         canonicalize-lgpl: work around AIX realpath bug
14324         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14325         * doc/posix-functions/realpath.texi (realpath): Document it.
14326         Reported by Bruno Haible.
14327
14328         strerror: work around FreeBSD bug
14329         * lib/strerror.c (strerror): Special case 0.
14330         Reported by Bruno Haible.
14331
14332         strerror-override: avoid bloating errno module
14333         * modules/errno (Files, configure.ac): Move replacement strings...
14334         * modules/strerror-override: ...to new module.
14335         * modules/strerror (Depends-on): Add strerror-override.
14336         * modules/strerror_r-posix (Depends-on): Likewise.
14337         * MODULES.html.sh: Document new module.
14338         Reported by Bruno Haible.
14339
14340 2011-06-06  Bruno Haible  <bruno@clisp.org>
14341
14342         spawn-pipe tests: Rename program.
14343         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14344         * tests/test-spawn-pipe-child.c: Update comment.
14345         * tests/test-spawn-pipe.sh: Update.
14346         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14347
14348         spawn-pipe tests: Link the child program only against libc.
14349         * tests/test-spawn-pipe-child.c: New file, extracted from
14350         tests/test-spawn-pipe.c.
14351         (main): Expect only one argument.
14352         (is_open): New function, copied from tests/test-pipe.c.
14353         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14354         (child_main): Remove function.
14355         (test_pipe): Pass only one argument to the child program.
14356         (main): Remove child process code. Expect the child program's name as
14357         first argument.
14358         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14359         argument.
14360         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14361         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14362         test-spawn-pipe-child against no libraries.
14363
14364 2011-06-06  Bruno Haible  <bruno@clisp.org>
14365
14366         careadlinkat: Avoid mismatch between ssize_t and int.
14367         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14368         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14369
14370 2011-06-06  Jim Meyering  <meyering@redhat.com>
14371
14372         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14373         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14374         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14375
14376 2011-06-05  Bruno Haible  <bruno@clisp.org>
14377
14378         ansi-c++-opt: Interoperability with libtool.
14379         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14380         set the variable to "no", not to ":".
14381         * NEWS: Mention the change.
14382
14383 2011-06-05  Bruno Haible  <bruno@clisp.org>
14384
14385         acl: Fix test failure on AIX 7.
14386         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14387         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14388
14389 2011-06-05  Bruno Haible  <bruno@clisp.org>
14390
14391         pipe-filter-ii: Fix test failure on AIX and IRIX.
14392         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14393         with EAGAIN, retry with a smaller buffer size.
14394
14395 2011-06-05  Bruno Haible  <bruno@clisp.org>
14396
14397         localename: Fix link dependencies.
14398         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14399         * modules/localename-tests (Makefile.am): Link test-localename with
14400         $(LIBTHREAD).
14401
14402 2011-06-05  Bruno Haible  <bruno@clisp.org>
14403
14404         error: Avoid gcc warning.
14405         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14406
14407 2011-06-05  Bruno Haible  <bruno@clisp.org>
14408
14409         unsetenv: Avoid gcc warning.
14410         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14411
14412 2011-06-05  Bruno Haible  <bruno@clisp.org>
14413
14414         setenv: Avoid gcc warning.
14415         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14416
14417 2011-06-05  Bruno Haible  <bruno@clisp.org>
14418
14419         sys_select: Ensure memset is declared also on AIX 7.
14420         * lib/sys_select.in.h: Include <string.h> also on AIX.
14421         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14422         self-contained also on AIX 7.1.
14423
14424 2011-06-04  Jim Meyering  <meyering@redhat.com>
14425
14426         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14427         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14428         function name, "error".
14429         (_gl_translatable_diag_func_re): New configurable variable.
14430
14431 2011-06-04  Bruno Haible  <bruno@clisp.org>
14432
14433         getopt: Avoid gcc warning.
14434         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14435
14436 2011-06-04  Bruno Haible  <bruno@clisp.org>
14437
14438         strerror_r: Fix comments.
14439         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14440         commit.
14441
14442 2011-06-04  Bruno Haible  <bruno@clisp.org>
14443
14444         perror: Fix compilation error.
14445         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14446         Undefine fprintf, not sprintf.
14447         * modules/perror (Depends-on): Remove intprops, verify.
14448
14449 2011-06-04  Bruno Haible  <bruno@clisp.org>
14450
14451         setlocale: Enable replacement on Cygwin 1.5.
14452         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14453         Cygwin 1.5.x.
14454         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14455         LC_CTYPE category also exists on Cygwin 1.5.x.
14456
14457 2011-06-04  Bruno Haible  <bruno@clisp.org>
14458
14459         strerror-override: Don't disable symbol renamings.
14460         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14461         * lib/strerror-override.c: Include config.h.
14462         (strerror_override): Don't undefine.
14463
14464 2011-06-03  Bruno Haible  <bruno@clisp.org>
14465
14466         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14467         * lib/localename.h: Update copyright header.
14468         * lib/localename.c: Likewise.
14469         * lib/relocatable.h: Likewise.
14470         * lib/relocatable.c: Likewise.
14471
14472 2011-06-02  Bruno Haible  <bruno@clisp.org>
14473
14474         doc: Fix a module name.
14475         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14476
14477 2011-06-02  Bruno Haible  <bruno@clisp.org>
14478
14479         pipe2: Remove dependency on 'nonblocking' module.
14480         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14481         O_NONBLOCK is defined by gnulib.
14482         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14483         is zero.
14484         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14485         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14486         defined by gnulib.
14487         (get_nonblocking_flag): New function.
14488         (main): Test O_NONBLOCK flag only if it is nonzero.
14489         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14490
14491 2011-06-03  Jim Meyering  <meyering@redhat.com>
14492
14493         maint: three new prohibit-header-without-use rules
14494         Prohibit use of cloexec.h, posixver.h, same.h without use.
14495         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14496         (sc_prohibit_posixver_without_use): Likewise.
14497         (sc_prohibit_same_without_use): Likewise.
14498
14499 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14500
14501         allocator: 'die' routine is now given requested size
14502         * lib/allocator.h (struct allocator.die): New size arg.
14503         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14504         If the actual problem is an ssize_t limitation, not a size_t or
14505         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14506
14507 2011-06-01  Eric Blake  <eblake@redhat.com>
14508
14509         strerror: drop strerror_r dependency
14510         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14511         * lib/strerror-override.c (strerror_override): ...to new file.
14512         * lib/strerror-override.h: Add prototype.
14513         * lib/strerror-impl.h: Delete.
14514         * lib/strerror.c (strerror): New implementation.
14515         * modules/errno (Files): Add new files.
14516         (configure.ac): Compile new file as appropriate.
14517         * modules/strerror (Files): Drop unused file.
14518         (Depends-on): Drop strerror_r-posix.
14519         * MODULES.html.sh: Document strerror_r-posix.
14520         Requested by Sam Steingold.
14521
14522         perror: call strerror_r directly
14523         * modules/perror (Files): Drop strerror-impl.h.
14524         * lib/perror.c (perror): Use our own stack buffer, rather than
14525         calling a wrapper that uses static storage.
14526         * doc/posix-functions/perror.texi (perror): Document a limitation
14527         of our replacement.
14528
14529         strerror_r: fix includes for FreeBSD
14530         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14531         since we use abort on some platforms.
14532         Reported by Matthias Bolte.
14533
14534 2011-05-31  Bruno Haible  <bruno@clisp.org>
14535
14536         Fix link errors in tests: openat-die uses gettext-h.
14537         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14538         against $(LIBINTL).
14539         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14540         against $(LIBINTL).
14541         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14542         $(LIBINTL).
14543         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14544         against $(LIBINTL).
14545         * modules/linkat-tests (Makefile.am): Link test-linkat against
14546         $(LIBINTL).
14547         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14548         $(LIBINTL).
14549         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14550         against $(LIBINTL).
14551         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14552         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14553         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14554         $(LIBINTL).
14555         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14556         $(LIBINTL).
14557         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14558         $(LIBINTL).
14559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14560
14561 2011-05-31  Bruno Haible  <bruno@clisp.org>
14562
14563         Fix link errors in tests: wait-process uses gettext-h.
14564         * modules/nonblocking-pipe-tests (Makefile.am): Set
14565         test_nonblocking_pipe_main_LDADD.
14566         * modules/nonblocking-socket-tests (Makefile.am): Link
14567         test-nonblocking-socket-main against $(LIBINTL).
14568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14569
14570 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14571
14572         assert-h: work around 'verify' incompatibility
14573         * lib/verify.h: Use @...@ directives, not ifdef.
14574         * modules/assert-h (assert.h): Implement the directives.
14575         (assert.h): Substitute the symbol-prefix more consistently.
14576
14577 2011-05-29  Jim Meyering  <meyering@redhat.com>
14578
14579         trim: remove three superfluous assignments
14580         * lib/trim.c (trim2): Remove three superfluous assignments
14581         and correct brace positioning.
14582
14583 2011-05-29  Bruno Haible  <bruno@clisp.org>
14584
14585         wctype-h: Avoid namespace pollution on Solaris 2.6.
14586         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14587         identifiers.
14588         * doc/posix-headers/wctype.texi: Mention the problem.
14589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14590
14591 2011-05-28  Jim Meyering  <meyering@redhat.com>
14592
14593         parse-datetime.y: accommodate -Wstrict-overflow
14594         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14595         placate -Wstrict-overflow.
14596
14597         trim: avoid a warning from -O2 -Wstrict-overflow
14598         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14599
14600 2011-05-29  Bruno Haible  <bruno@clisp.org>
14601
14602         gnulib-tool: Fix bug in yesterday's commit.
14603         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14604         twice.
14605
14606 2011-05-29  Bruno Haible  <bruno@clisp.org>
14607
14608         Allow multiple gnulib generated include files to be combined.
14609         * gnulib-tool (func_compute_include_guard_prefix): New function.
14610         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14611         ${gl_include_guard_prefix} references.
14612         (func_import, func_create_testdir): Invoke
14613         func_compute_include_guard_prefix.
14614         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14615         * lib/ctype.in.h: Likewise.
14616         * lib/dirent.in.h: Likewise.
14617         * lib/errno.in.h: Likewise.
14618         * lib/fcntl.in.h: Likewise.
14619         * lib/float.in.h: Likewise.
14620         * lib/getopt.in.h: Likewise.
14621         * lib/iconv.in.h: Likewise.
14622         * lib/langinfo.in.h: Likewise.
14623         * lib/locale.in.h: Likewise.
14624         * lib/math.in.h: Likewise.
14625         * lib/netdb.in.h: Likewise.
14626         * lib/netinet_in.in.h: Likewise.
14627         * lib/poll.in.h: Likewise.
14628         * lib/pthread.in.h: Likewise.
14629         * lib/pty.in.h: Likewise.
14630         * lib/sched.in.h: Likewise.
14631         * lib/se-selinux.in.h: Likewise.
14632         * lib/search.in.h: Likewise.
14633         * lib/signal.in.h: Likewise.
14634         * lib/spawn.in.h: Likewise.
14635         * lib/stdarg.in.h: Likewise.
14636         * lib/stddef.in.h: Likewise.
14637         * lib/stdint.in.h: Likewise.
14638         * lib/stdio.in.h: Likewise.
14639         * lib/stdlib.in.h: Likewise.
14640         * lib/string.in.h: Likewise.
14641         * lib/strings.in.h: Likewise.
14642         * lib/sys_file.in.h: Likewise.
14643         * lib/sys_ioctl.in.h: Likewise.
14644         * lib/sys_select.in.h: Likewise.
14645         * lib/sys_socket.in.h: Likewise.
14646         * lib/sys_stat.in.h: Likewise.
14647         * lib/sys_time.in.h: Likewise.
14648         * lib/sys_times.in.h: Likewise.
14649         * lib/sys_uio.in.h: Likewise.
14650         * lib/sys_utsname.in.h: Likewise.
14651         * lib/sys_wait.in.h: Likewise.
14652         * lib/sysexits.in.h: Likewise.
14653         * lib/termios.in.h: Likewise.
14654         * lib/time.in.h: Likewise.
14655         * lib/unistd.in.h: Likewise.
14656         * lib/wchar.in.h: Likewise.
14657         * lib/wctype.in.h: Likewise.
14658         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14659         * modules/ctype (Makefile.am): Likewise.
14660         * modules/dirent (Makefile.am): Likewise.
14661         * modules/errno (Makefile.am): Likewise.
14662         * modules/fcntl-h (Makefile.am): Likewise.
14663         * modules/float (Makefile.am): Likewise.
14664         * modules/getopt-posix (Makefile.am): Likewise.
14665         * modules/iconv-h (Makefile.am): Likewise.
14666         * modules/langinfo (Makefile.am): Likewise.
14667         * modules/locale (Makefile.am): Likewise.
14668         * modules/math (Makefile.am): Likewise.
14669         * modules/netdb (Makefile.am): Likewise.
14670         * modules/netinet_in (Makefile.am): Likewise.
14671         * modules/poll-h (Makefile.am): Likewise.
14672         * modules/pthread (Makefile.am): Likewise.
14673         * modules/pty (Makefile.am): Likewise.
14674         * modules/sched (Makefile.am): Likewise.
14675         * modules/search (Makefile.am): Likewise.
14676         * modules/selinux-h (Makefile.am): Likewise.
14677         * modules/signal (Makefile.am): Likewise.
14678         * modules/spawn (Makefile.am): Likewise.
14679         * modules/stdarg (Makefile.am): Likewise.
14680         * modules/stddef (Makefile.am): Likewise.
14681         * modules/stdint (Makefile.am): Likewise.
14682         * modules/stdio (Makefile.am): Likewise.
14683         * modules/stdlib (Makefile.am): Likewise.
14684         * modules/string (Makefile.am): Likewise.
14685         * modules/strings (Makefile.am): Likewise.
14686         * modules/sys_file (Makefile.am): Likewise.
14687         * modules/sys_ioctl (Makefile.am): Likewise.
14688         * modules/sys_select (Makefile.am): Likewise.
14689         * modules/sys_socket (Makefile.am): Likewise.
14690         * modules/sys_stat (Makefile.am): Likewise.
14691         * modules/sys_time (Makefile.am): Likewise.
14692         * modules/sys_times (Makefile.am): Likewise.
14693         * modules/sys_uio (Makefile.am): Likewise.
14694         * modules/sys_utsname (Makefile.am): Likewise.
14695         * modules/sys_wait (Makefile.am): Likewise.
14696         * modules/sysexits (Makefile.am): Likewise.
14697         * modules/termios (Makefile.am): Likewise.
14698         * modules/time (Makefile.am): Likewise.
14699         * modules/unistd (Makefile.am): Likewise.
14700         * modules/wchar (Makefile.am): Likewise.
14701         * modules/wctype-h (Makefile.am): Likewise.
14702         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14703
14704 2011-05-29  Bruno Haible  <bruno@clisp.org>
14705
14706         assert-h: Allow multiple gnulib generated replacements to coexist.
14707         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14708
14709 2011-05-29  Bruno Haible  <bruno@clisp.org>
14710
14711         argp: Allow coexistence with strerror_r-posix module.
14712         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14713         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14714         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14715         not the glibc signature.
14716
14717 2011-05-28  Bruno Haible  <bruno@clisp.org>
14718
14719         gnulib-tool: Alternative structure of testdirs, similar to --import.
14720         * gnulib-tool: New option --single-configure.
14721         (func_usage): Document it.
14722         (single_configure): New variable.
14723         (func_modules_transitive_closure_separately,
14724         func_modules_transitive_closure_separately,
14725         func_determine_use_libtests, func_modules_add_dummy_separately,
14726         func_modules_to_filelist_separately): New functions, extracted from
14727         func_import.
14728         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14729         (func_import): Use the new functions.
14730         (func_create_testdir): Set final_modules. Handle $single_configure =
14731         true case.
14732
14733 2011-05-28  Bruno Haible  <bruno@clisp.org>
14734
14735         getloadavg: Remove an unreliable safety check.
14736         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14737         getloadavg.c is in place.
14738         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14739         Reported by Sam Steingold <sds@gnu.org>.
14740
14741 2011-05-28  Bruno Haible  <bruno@clisp.org>
14742
14743         doc: Cleanup yet another file produced by texinfo.tex.
14744         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14745
14746 2011-05-28  Bruno Haible  <bruno@clisp.org>
14747
14748         Finish the conditional dependencies mechanism.
14749         * gnulib-tool: New option --no-conditional-dependencies.
14750         (func_usage): Document it. Don't mark --conditional-dependencies as
14751         experimental.
14752         (cond_dependencies): The possible values can now be true, false, empty.
14753         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14754         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14755         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14756
14757 2011-05-28  Bruno Haible  <bruno@clisp.org>
14758
14759         doc: Use a recent texinfo.tex.
14760         * doc/Makefile (tex_opts): New variable.
14761         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14762
14763 2011-05-28  Jim Meyering  <meyering@redhat.com>
14764
14765         intprops.h: adjust comment to match code change
14766         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14767         only once, it *may* have side effects.  Also fix an unrelated typo.
14768         (_GL_INT_SIGNED): Likewise.
14769
14770 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14771
14772         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14773
14774 2011-05-26  Bruno Haible  <bruno@clisp.org>
14775
14776         mbsrchr: Avoid collision with system function on Interix.
14777         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14778         Reported by Markus Duft <mduft@gentoo.org>.
14779
14780 2011-05-15  James Youngman  <jay@gnu.org>
14781
14782         getopt: for ambiguous options, enumerate the possibilities.
14783         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14784         the ambiguous options when an ambiguous prefix is given. This was
14785         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14786         glibc change was
14787         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14788
14789 2011-05-25  Eric Blake  <eblake@redhat.com>
14790
14791         getcwd: work around mingw bug
14792         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14793         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14794         Reported by Matthias Bolte.
14795
14796 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         test-intprops: disable -Wtype-limits diagnostics
14799         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14800         diagnostics.  Otherwise, the integer overflow macros generate many
14801         diagnostics.  Reported by Jim Meyering in
14802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14803
14804         intprops: shorten, to pacify gcc -Woverlength-strings
14805         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14806         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14807         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14808         likely to run afoul of C compiler limits for string constant lengths.
14809         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14810
14811 2011-05-24  Eric Blake  <eblake@redhat.com>
14812
14813         docs: document recently fixed glibc printf bug
14814         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14815         * doc/posix-functions/printf.texi (printf): Likewise.
14816         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14817         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14818
14819         closein-tests: convert to init.sh
14820         * modules/closein-tests (Files): Add init.sh
14821         * tests/test-closein.sh Use it.
14822
14823         yesno-tests: convert to init.sh
14824         * modules/yesno-tests (Files): Add init.sh.
14825         * tests/test-yesno.sh: Use it.
14826
14827         atexit-tests: ensure reliable exit status
14828         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14829         Reported by Bruno Haible.
14830
14831 2011-05-24  Bruno Haible  <bruno@clisp.org>
14832
14833         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14835         gl_PREREQ_STRERROR_R invocations from here...
14836         * modules/strerror_r-posix (configure.ac): ... to here.
14837
14838 2011-05-24  Eric Blake  <eblake@redhat.com>
14839
14840         strerror_r: fix missing header
14841         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14842
14843         strerror_r: fix AIX test failures
14844         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14845         ERANGE failure.
14846
14847         strerror_r: fix Solaris test failures
14848         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14849         failures.
14850         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14851
14852         strerror_r: enforce POSIX recommendations
14853         * lib/strerror_r.c (safe_copy): New helper method.
14854         (strerror_r): Guarantee a non-empty string.
14855         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14856         recent POSIX rulings and to match our strerror guarantees.
14857         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14858
14859 2011-05-24  Jim Meyering  <meyering@redhat.com>
14860
14861         test-perror2.c: avoid warning about unused variable
14862         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14863
14864 2011-05-24  Eric Blake  <eblake@redhat.com>
14865
14866         perror: avoid spurious test failure on HP-UX
14867         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14868
14869         tests: fix logic bug in init.sh
14870         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14871         shell.
14872
14873 2011-05-24  Jim Meyering  <meyering@redhat.com>
14874
14875         utimensat: do not reference an out-of-scope buffer
14876         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14877         declared in an inner scope, yet "times" would be dereferenced outside
14878         the scope in which "ts" was valid.
14879         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14880         of ts[2] "out/up", so that the use of aliased "times" (via
14881         "times = ts;") does not end up referencing an out-of-scope "ts"
14882
14883         opendir-safer.c: don't clobber errno; don't close negative FD
14884         * lib/opendir-safer.c (opendir_safer):
14885         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14886         file descriptor, and more importantly, don't clobber the
14887         offending errno value with EINVAL.  Before, upon failure
14888         of dup_safer, we would pass the negative file descriptor to
14889         fdopendir, which would clobber errno.
14890
14891 2011-05-23  Bruno Haible  <bruno@clisp.org>
14892
14893         idcache: Fix module description.
14894         * modules/idcache (Include): Set to "idcache.h".
14895
14896 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14897
14898         gnulib-tool: fix portability problem with MacOS sed
14899         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14900         before the "}".  Problem reported by Leo in
14901         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14902         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14903         sed_extract_condition1, sed_extract_condition2.
14904
14905 2011-05-23  Bruno Haible  <bruno@clisp.org>
14906
14907         hash: Simplify autoconf macro.
14908         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14909
14910 2011-05-23  Bruno Haible  <bruno@clisp.org>
14911
14912         getugroups: Fix module description.
14913         * modules/getugroups (Include): Set to "getugroups.h".
14914
14915 2011-05-23  Bruno Haible  <bruno@clisp.org>
14916
14917         linkat: Simplify autoconf macro.
14918         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14919
14920 2011-05-23  Bruno Haible  <bruno@clisp.org>
14921             Eric Blake  <eblake@redhat.com>
14922
14923         linkat, renameat: Update dependencies.
14924         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14925         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14926         symlinkat.
14927
14928 2011-05-23  Jim Meyering  <meyering@redhat.com>
14929
14930         maint.mk: more tight_scope improvements
14931         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14932         (_gl_TS_headers): Define only in if-0'd block.
14933         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14934         sometimes we must *not* use it.  Adjust uses accordingly.
14935         (sc_tight_scope): Use much simpler grep-based test to determine
14936         whether we skip this rule.
14937
14938         maint.mk: generalize/improve the tight-scope rule
14939         * top/maint.mk: Emit a warning when the test is skipped.
14940         (_gl_TS_dir): Add $(srcdir)/ prefix.
14941         (_gl_TS_function_match): Simplify, rather than trying
14942         to enumerate common types.  Otherwise, it would fail to match an
14943         "extern unsigned char const *" declaration in idutils.
14944         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14945         a way to support use of that type of macro.
14946         (_gl_TS_var_match): Simplify regexp.
14947         (_gl_TS_obj_files): New configurable variable.
14948         (_gl_TS_headers): Likewise.
14949
14950 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14951
14952         verify: fix bug when gnulib <assert.h> is also included
14953         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14954         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14955         Perhaps there's a better way, but this fixes the immediate problem.
14956         Problem reported by Bruno Haible in
14957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14958
14959 2011-05-22  Bruno Haible  <bruno@clisp.org>
14960
14961         xgetcwd: Simplify autoconf macro.
14962         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14963
14964 2011-05-22  Bruno Haible  <bruno@clisp.org>
14965
14966         New module 'mktime-internal'.
14967         * modules/mktime-internal: New file.
14968         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14969         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14970         mktime_internal as a C macro if libc has __mktime_internal.
14971         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14972         conditions.
14973         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14974
14975 2011-05-22  Bruno Haible  <bruno@clisp.org>
14976
14977         timegm: Correct mktime replacement statements.
14978         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14979         defining mktime as a C macro. This completes a 2009-07-28 commit.
14980
14981 2011-05-22  Bruno Haible  <bruno@clisp.org>
14982
14983         timegm: Simplify autoconf macro.
14984         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14985
14986 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         clock-time: change to LGPLv2+.
14989         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14990         BSD-like but we have no mark for that; this is good enough for now.
14991
14992 2011-05-21  Bruno Haible  <bruno@clisp.org>
14993
14994         strerror_r: Fix comments.
14995         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14996
14997 2011-05-21  Bruno Haible  <bruno@clisp.org>
14998
14999         relocatable-prog-wrapper: Fix possible link error.
15000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15001         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15002         (gl_FUNC_SETENV): ... to here.
15003         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15004         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15005
15006 2011-05-21  Bruno Haible  <bruno@clisp.org>
15007
15008         relocatable-prog-wrapper: Assume strerror() exists.
15009         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15010         m4/strerror.m4.
15011         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15012         * lib/relocwrapper.c: Remove mention of strerror module.
15013         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15015         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15016         C macro.
15017
15018 2011-05-21  Bruno Haible  <bruno@clisp.org>
15019
15020         select: Simplify replacement idiom.
15021         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15022         Win32 platforms.
15023         * lib/sys_select.in.h (select): Simplify accordingly.
15024         * modules/select (Depends-on): Likewise.
15025
15026 2011-05-21  Bruno Haible  <bruno@clisp.org>
15027
15028         mkdir-p: Simplify autoconf macro.
15029         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15030         gl_FUNC_LCHOWN.
15031
15032 2011-05-21  Eric Blake  <eblake@redhat.com>
15033
15034         strerror_r: avoid clobbering strerror on cygwin
15035         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15036         fall back instead to sys_errlist.
15037         * modules/strerror (configure.ac): Add witness.
15038         * tests/test-strerror_r.c (main): Enhance test.
15039         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15040         * tests/test-perror2.c (main): Free memory before exit.
15041
15042 2011-05-21  Bruno Haible  <bruno@clisp.org>
15043
15044         mkdtemp: Use gnulib naming conventions.
15045         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15046         * modules/mkdtemp (configure.ac): Update.
15047
15048 2011-05-20  Eric Blake  <eblake@redhat.com>
15049
15050         strerror_r: avoid corrupting errno on Solaris
15051         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15052         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15053
15054         strerror_r: avoid compiler warning
15055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15056
15057         strerror_r: simplify AIX code
15058         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15059
15060         test-perror: avoid spurious failure on FreeBSD
15061         * modules/perror-tests (Depends-on): Add strerror, now that
15062         strerror_r no longer pulls it in.
15063
15064 2011-05-20  Bruno Haible  <bruno@clisp.org>
15065
15066         strerror_r-posix: Remove unused dependencies.
15067         * modules/strerror_r-posix (Depends-on): Remove strerror.
15068         Reported by Eric Blake.
15069
15070 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15071
15072         intprops: remove assumption about A|B representation
15073         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15074         is a valid integer if both A and B are.  Although this is true for
15075         all known practical hosts, the C standard doesn't guarantee it,
15076         and the code need not assume it.  Also, this change may work around
15077         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15079
15080 2011-05-20  Eric Blake  <eblake@redhat.com>
15081
15082         perror: work around FreeBSD bug
15083         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15084         is broken.  Move AC_LIBOBJ...
15085         * modules/perror (configure.ac): Here.
15086         * doc/posix-functions/perror.texi (perror): Document this.
15087         * tests/test-perror2.c (main): Enhance test.
15088
15089         test-perror: check for strerror interactions
15090         * tests/macros.h (STREQ): Add macro.
15091         * modules/perror-tests (Files): Add second test.
15092         * tests/test-perror2.c (main): New file.
15093         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15094
15095         test-perror: rewrite to use init script
15096         * modules/perror-tests (Files): Add init.sh.
15097         * tests/test-perror.sh: Use temporary directory.
15098
15099 2011-05-20  Jim Meyering  <meyering@redhat.com>
15100
15101         maint: replace misused "a" with "an"
15102         * doc/intprops.texi: "a integer"
15103         * doc/regex.texi: "a explanation"
15104         * lib/alignof.h: "a object"
15105         * lib/argmatch.h: "a explanation"
15106         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15107         * lib/stdint.in.h: "a integer"
15108         * lib/userspec.c: "a owner"
15109         * doc/gnulib.texi: Fix "a idea", and reword.
15110
15111 2011-05-19  Jim Meyering  <meyering@redhat.com>
15112
15113         maint: correct misuse of "a" and "an"
15114         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15115         * lib/argp-help.c: "an docum...": s/an/a/
15116         * lib/argp-parse.c: "An vector": s/An/A/
15117         * lib/execute.c: "an native": s/an/a/
15118         * lib/spawn-pipe.c: Likewise.
15119         * lib/gc.h: "an Gc_rc": s/an/a/
15120         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15121         * lib/fts.c: "an stat.st_dev": s/an/a/
15122
15123 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         intprops-tests: work around HP-UX 11.23 cc bug with constants
15126         * tests/test-intprops.c (VERIFY): New macro.
15127         (main): Use it, instead of verify, to work around the compiler bug; see
15128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15129
15130         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15131         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15132         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15133         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15134         (_GL_REMAINDER_OVERFLOW): Use it.
15135
15136         intprops-tests: revert unsigned part of previous change
15137         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15138         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15139         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15141
15142 2011-05-19  Bruno Haible  <bruno@clisp.org>
15143
15144         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15145         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15146         strerror_r() returned without filling the buffer.
15147         Reported by Eric Blake.
15148
15149 2011-05-19  Eric Blake  <eblake@redhat.com>
15150
15151         strerror_r: guarantee unchanged errno
15152         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15153         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15154         failure.
15155         * tests/test-strerror_r.c (main): Enhance test.
15156
15157 2011-05-19  Bruno Haible  <bruno@clisp.org>
15158
15159         strerror_r: Reorder #if blocks.
15160         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15161         for consistency with the previous commit.
15162
15163 2011-05-19  Bruno Haible  <bruno@clisp.org>
15164
15165         perror: Avoid clobbering the strerror buffer when possible.
15166         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15167         * lib/strerror.c: Include it.
15168         * modules/strerror (Files): Add lib/strerror-impl.h.
15169         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15170         (my_strerror): New function, defined through lib/strerror-impl.h.
15171         (perror): Use it instead of strerror.
15172         * modules/perror (Files): Add lib/strerror-impl.h.
15173         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15174
15175 2011-05-19  Eric Blake  <eblake@redhat.com>
15176
15177         strerror_r: fix on newer cygwin
15178         * lib/strerror_r.c (strerror_r): Cygwin now has
15179         __xpg_strerror_r, use it.
15180
15181 2011-05-19  Bruno Haible  <bruno@clisp.org>
15182
15183         strerror_r: Avoid clobbering the strerror buffer when possible.
15184         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15185         (sys_nerr, sys_errlist): New declarations.
15186         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15187         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15188         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15189
15190 2011-05-19  Bruno Haible  <bruno@clisp.org>
15191
15192         strerror_r: Fix test failure on mingw.
15193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15194         EXTEND_STRERROR_R.
15195         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15196         macros from errno.in.h instead.
15197
15198 2011-05-19  Eric Blake  <eblake@redhat.com>
15199
15200         strerror: relax test for Solaris
15201         * tests/test-strerror.c (main): Permit Solaris behavior.
15202         * tests/test-strerror_r.c (main): Likewise.
15203
15204         strerror: enforce POSIX ruling on strerror(0)
15205         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15206         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15207         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15208         * doc/posix-functions/strerror.texi (strerror): Document it.
15209         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15210         * tests/test-strerror.c (main): Strengthen test.
15211         * tests/test-strerror_r.c (main): Likewise.
15212
15213 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15214
15215         intprop-tests: port to older and more-pedantic compilers
15216         * modules/intprops-tests (Files): Add tests/macros.h.
15217         * tests/test-intprops.c: Include macros.h.
15218         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15219         it's no longer documented to expand to an integer constant expression.
15220         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15221         argument is floating point, as it's no longer documented to expand
15222         to an integer constant expression in that case.
15223         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15224         compiler bugs reported by Bruno Haible.  See
15225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15226         (U0, U1): New constants, to work around the same bugs.  Also,
15227         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15228
15229         intprops: work around C compiler bugs
15230         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15231         bug in Sun C 5.11 2010/08/13 and other compilers; see
15232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15233
15234         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15235         * doc/intprops.texi (Integer Type Determination): Fix
15236         documentation for TYPE_IS_INTEGER: it returns an constant
15237         expression, not an integer constant expression.  Fix doc for
15238         TYPE_SIGNED: it returns an integer constant expression only if its
15239         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15240         hardly worth documented that way....)
15241
15242 2011-05-18  Bruno Haible  <bruno@clisp.org>
15243
15244         strerror_r: Avoid clobbering the strerror buffer when possible.
15245         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15246         Handle gnulib defined errno values here. When strerror() returns NULL
15247         or an empty string, return EINVAL.
15248         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15249         gnulib defined errno values here.
15250         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15251
15252 2011-05-18  Eric Blake  <eblake@redhat.com>
15253
15254         fnmatch: avoid compiler warning
15255         * lib/fnmatch_loop.c (FCT): Use correct type.
15256         Reported by Matthias Bolte.
15257
15258 2011-05-13  Jim Meyering  <meyering@redhat.com>
15259
15260         maint.mk: three new prohibit_<HDR>_without_use rules
15261         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15262         (sc_prohibit_stdio-safer_without_use): Likewise.
15263         (sc_prohibit_xfreopen_without_use): Likewise.
15264
15265 2011-05-17  Jim Meyering  <meyering@redhat.com>
15266
15267         announce-gen: fail if the NEWS delta is empty
15268         If there's nothing noteworthy in NEWS, then either you forgot
15269         or you shouldn't be releasing.
15270         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15271
15272 2011-05-17  Pádraig Brady <P@draigBrady.com>
15273
15274         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15275         reserved symbols starting with double underscore from the check.
15276
15277 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15278
15279         intprops: add doc
15280         * doc/intprops.texi: New file, documenting intprops.
15281         * doc/gnulib.texi (Particular Modules): Include it.
15282
15283         verify: add doc to gnulib manual and fix example
15284         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15285         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15286         (Compile-time Assertions): Fix example so it can't overflow.
15287
15288 2011-05-17  Jim Meyering  <meyering@redhat.com>
15289
15290         warnings.m4: don't usurp save_CPPFLAGS variable name
15291         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15292
15293         doc: fix typo
15294         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15295
15296 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15297             Bruno Haible  <bruno@clisp.org>
15298
15299         doc: Tweak recent change.
15300         * README (Portability guidelines): Tweak new text.
15301         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15302         Interix 6.1.
15303
15304 2011-05-16  Eric Blake  <eblake@redhat.com>
15305
15306         inttypes: avoid autoconf warning
15307         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15308         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15309
15310 2011-05-16  Sam Steingold <sds@gnu.org>
15311         and Eric Blake  <eblake@redhat.com>
15312
15313         vc-list-files: accept multiple directory operands
15314         * build-aux/vc-list-files: Iterate over all remaining operands.
15315
15316 2011-05-16  Bruno Haible  <bruno@clisp.org>
15317
15318         Fix confusion regarding deprecated modules.
15319         * modules/calloc (Status, Notice): Mark module as deprecated, not
15320         obsolete.
15321         * modules/fnmatch-posix (Status, Notice): Likewise.
15322         * modules/getdate (Status, Notice): Likewise.
15323         * modules/getopt (Status, Notice): Likewise.
15324         * modules/malloc (Status, Notice): Likewise.
15325         * modules/pipe (Status, Notice): Likewise.
15326         * modules/realloc (Status, Notice): Likewise.
15327         * modules/rename-dest-slash (Status, Notice): Likewise.
15328         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15329         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15330         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15331         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15332         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15333
15334 2011-05-16  Bruno Haible  <bruno@clisp.org>
15335
15336         doc: List the target platforms.
15337         * doc/gnulib-intro.texi (Target Platforms): New section.
15338         * doc/gnulib.texi (Introduction): Update menu.
15339         * README (Portability guidelines): Refer to the new section. Update
15340         statement about oldest supported environment. Remove rationale why
15341         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15342         unportable C89 function.
15343         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15344         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15345
15346 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15349
15350 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15351
15352         intprops-tests: new module
15353         * modules/intprops-tests, tests/test-intprops.c: New files.
15354
15355         intprops: add safe, portable integer overflow checking
15356         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15357         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15358         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15359         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15360         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15361         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15362         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15363         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15364         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15365         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15366         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15367
15368 2011-05-12  James Youngman  <jay@gnu.org>
15369
15370         Add a test for glibc's Bugzilla bug #12378.
15371         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15372         doesn't allow the literal matching of a lone "[" (which is
15373         required by POSIX).
15374         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15375
15376 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15377
15378         Sync glibc change fixing Bugzilla bug #12378.
15379         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15380         beginning and fall back to matching as normal character if the
15381         string ends before the matching ']' is found.  This is what POSIX
15382         requires.
15383
15384 2011-05-13  Eric Blake  <eblake@redhat.com>
15385
15386         getcwd-lgpl: relax test for FreeBSD
15387         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15388         issue.
15389         * tests/test-getcwd-lgpl.c (main): Relax test.
15390         Reported by Matthias Bolte.
15391
15392 2011-05-11  Eric Blake  <eblake@redhat.com>
15393
15394         test-fflush: silence compiler warning
15395         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15396
15397 2011-05-11  Bruno Haible  <bruno@clisp.org>
15398
15399         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15400         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15401         * modules/canonicalize (Depends-on): Add 'nocrash'.
15402         * modules/canonicalize-lgpl (Depends-on): Likewise.
15403         * doc/posix-functions/realpath.texi: Update platforms list.
15404         Reported by Ryan Schmidt <ryandesign@macports.org>.
15405
15406 2011-05-11  Bruno Haible  <bruno@clisp.org>
15407
15408         group-member: Declare function in <unistd.h>.
15409         * lib/unistd.in.h (group_member): New declaration.
15410         * lib/group-member.h: Remove file.
15411         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15412         * tests/test-unistd-c++.cc: Check signature of group_member.
15413         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15414         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15415         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15417         HAVE_GROUP_MEMBER.
15418         * modules/group-member (Files): Remove lib/group-member.h.
15419         (Depends-on): Add unistd. Specify conditions.
15420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15421         (Include): Change to <unistd.h>.
15422         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15423         HAVE_GROUP_MEMBER.
15424         * NEWS: Mention the change.
15425         * lib/euidaccess.c: Don't include group-member.h.
15426
15427 2011-05-11  Bruno Haible  <bruno@clisp.org>
15428
15429         group-member: Document module.
15430         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15431         module.
15432
15433 2011-05-11  Bruno Haible  <bruno@clisp.org>
15434
15435         fclose: Fix mistake earlier today.
15436         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15437
15438 2011-05-11  Eric Blake  <eblake@redhat.com>
15439
15440         fclose: preserve fflush errors
15441         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15442         Reported by Jim Meyering.
15443
15444         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15445         * build-aux/bootstrap (check_versions): When no specific version
15446         is required, merely check that the app produces an exit status
15447         that indicates its existence.
15448
15449         maint.mk: drop redundant check
15450         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15451         the same but better.
15452
15453 2011-05-11  Bruno Haible  <bruno@clisp.org>
15454
15455         fclose: Fix possible link error.
15456         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15457         unregister_shadow_fd. Improve comments.
15458         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15459         Eric Blake.
15460
15461 2011-05-11  Jim Meyering  <meyering@redhat.com>
15462
15463         maint.mk: improve "can not" detection and generalize rule name
15464         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15465         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15466         Use the same technique as in sc_prohibit_doubled_word, so that
15467         we recognize "can not" also when the words are separated by a newline.
15468         Suggested by Eric Blake.
15469         (perl_filename_lineno_text_): Define.  Factored out of...
15470         (prohibit_doubled_word_): ...here.  Use the new definition.
15471         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15472         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15473         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15474
15475 2011-05-10  Eric Blake  <eblake@redhat.com>
15476
15477         fclose: avoid double close race when possible
15478         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15479         all but WINDOWS_SOCKETS.
15480
15481 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15482
15483         openat: correct new comment
15484         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15485
15486 2011-05-10  Jim Meyering  <meyering@redhat.com>
15487
15488         openat: add comments
15489         * lib/openat-proc.c (openat_proc_name): Add comments,
15490         mostly from Eric Blake.
15491
15492 2011-05-09  Eric Blake  <eblake@redhat.com>
15493
15494         openat: reduce syscalls in first probe of /proc
15495         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15496         be a directory.  Simplify the probe for .. bugs.
15497         * modules/openat (Depends-on): Drop same-inode.
15498         Reported by Bastien ROUCARIES.
15499
15500 2011-05-09  Jim Meyering  <meyering@redhat.com>
15501
15502         maint.mk: change semantics/name of tight_scope variables
15503         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15504         Rename variables to align with semantics that make them more useful.
15505
15506         maint.mk: tweak new rule's name not to impinge
15507         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15508         (sc_tight_scope): Use new rule name rather than $@-0.
15509
15510         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15511         * top/maint.mk (sc_tight_scope): New rule.
15512         (sc_tight_scope-0): New rule, ifdef'd out.
15513         (_gl_TS_dir): Default.
15514         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15515         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15516
15517 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15518
15519         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15520         Haible <bruno@clisp.org>.
15521
15522 2011-05-08  Bruno Haible  <bruno@clisp.org>
15523
15524         Comments.
15525         * m4/isnanf.m4: Add comment.
15526         * m4/isnanl.m4: Likewise.
15527
15528 2011-05-08  Bruno Haible  <bruno@clisp.org>
15529
15530         glob: Remove obsolete macro.
15531         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15532
15533 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         intprops: Sun C 5.11 supports __typeof__
15536         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15537         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15538         which is new.
15539         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15540
15541         intprops: switch to usual gnulib indenting and naming
15542         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15543         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15544
15545         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15546
15547 2011-05-08  Jim Meyering  <meyering@redhat.com>
15548
15549         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15550         * top/maint.mk (release-prep): Use make's --no-print-directory
15551         option when generating the announcement.  This eliminates the
15552         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15553         generated announcement template.
15554
15555 2011-05-08  Bruno Haible  <bruno@clisp.org>
15556
15557         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15558         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15559         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15560
15561 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         ignore-value, verify: Omit include files from lib_SOURCES.
15564         * modules/ignore-value, modules/verify (Makefile.am):
15565         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15566         that leads Automake to duplicate use of am__objects_... variables
15567         in Makefile.in.  See
15568         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15569
15570 2011-05-07  Bruno Haible  <bruno@clisp.org>
15571
15572         fclose: Simplify autoconf macro.
15573         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15574         defined.
15575
15576 2011-05-07  Bruno Haible  <bruno@clisp.org>
15577
15578         canonicalize-lgpl: Fix autoconf macro ordering bug.
15579         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15580         gl_STDLIB_H_DEFAULTS.
15581
15582 2011-05-06  Eric Blake  <eblake@redhat.com>
15583
15584         maintainer-makefile: make sc_po_check easier to tune
15585         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15586         to probe for strings, such as an alternate location for gnulib.
15587
15588         fclose: guarantee behavior on seekable stdin
15589         * modules/fclose (Depends-on): Add fflush.
15590         * doc/posix-functions/fclose.texi (fclose): Document this.
15591         * tests/test-fclose.c (main): Make test for this unconditional.
15592
15593 2011-05-06  Bruno Haible  <bruno@clisp.org>
15594
15595         fflush, fpurge: Relicense under LGPLv2+.
15596         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15597         * modules/fpurge (License): Likewise.
15598         With permission from Eric Blake and Jim Meyering.
15599         Suggested by Eric Blake.
15600
15601 2011-05-06  Karl Berry  <karl@gnu.org>
15602
15603         * MODULES.html.sh (func_all_modules): remove exit.
15604
15605 2011-05-06  Jim Meyering  <meyering@redhat.com>
15606
15607         maint.mk: use info-gnu@ as the default only for a stable release
15608         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15609         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15610         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15611         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15612
15613 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         assert-h: new module, which supports C1X-style static_assert
15616         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15617         * lib/verify.h: Revamp so that this can be copied into assert.h,
15618         while retaining the ability to use it standalone as before.
15619         Rename private identifiers so as not to encroach on the
15620         standard C namespace, since this is now used by assert.h.
15621         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15622         the old verify_true.
15623         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15624         the old verify_true.  Use _GL_VERIFY_TYPE.
15625         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15626         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15627         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15628         defined when this file is copied into the replacement assert.h.
15629         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15630         and _Static_assert is not built in.
15631         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15632         defined, and use the new macros mentioned above.
15633         * doc/posix-headers/assert.texi: Document this.
15634
15635 2011-05-05  Bruno Haible  <bruno@clisp.org>
15636
15637         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15638         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15639         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15640         gl_REPLACE_FCLOSE here.
15641         * modules/fflush (Depends-on): Remove fclose.
15642         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15643         combination with module 'fclose'.
15644
15645 2011-05-05  Bruno Haible  <bruno@clisp.org>
15646
15647         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15648         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15649         gl_FUNC_FFLUSH.
15650         (gl_FUNC_FFLUSH): Use it.
15651         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15652         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15653         gl_REPLACE_FSEEKO here.
15654
15655 2011-05-05  Bruno Haible  <bruno@clisp.org>
15656
15657         tzset: Relicense under LGPL.
15658         * modules/tzset (License): Change to LGPL.
15659         No agreement needed; it's a no-op.
15660
15661         strtoimax, strtoumax: Relicense under LGPL.
15662         * modules/strtoimax (License): Change to LGPL.
15663         * modules/strtoumax (License): Likewise.
15664         With permission from Jim Meyering, Paul Eggert:
15665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15667
15668         getgroups: Relicense under LGPL.
15669         * modules/getgroups (License): Change to LGPL.
15670         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15674
15675         nanosleep: Relicense under LGPL.
15676         * modules/nanosleep (License): Change to LGPL.
15677         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15678         Haible:
15679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
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
15684         futimens: Relicense under LGPL.
15685         * modules/futimens (License): Change to LGPL.
15686         With permission from Eric Blake:
15687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15688
15689         fflush: Relicense under LGPL.
15690         * modules/fflush (License): Change to LGPL.
15691         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15695
15696         tmpfile: Relicense under LGPL.
15697         * modules/tmpfile (License): Change to LGPL.
15698         With permission from Ben Pfaff:
15699         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15700
15701         isfinite: Relicense under LGPL.
15702         * modules/isfinite (License): Change to LGPL.
15703         With permission from Ben Pfaff, Bruno Haible:
15704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15706
15707         acosl..tanl: Relicense under LGPL.
15708         * modules/acosl (License): Change to LGPL.
15709         * modules/asinl (License): Likewise.
15710         * modules/atanl (License): Likewise.
15711         * modules/cosl (License): Likewise.
15712         * modules/expl (License): Likewise.
15713         * modules/logl (License): Likewise.
15714         * modules/sinl (License): Likewise.
15715         * modules/sqrtl (License): Likewise.
15716         * modules/tanl (License): Likewise.
15717         Source code originally from glibc and Paolo Bonzini. Agreements:
15718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15720
15721 2011-05-05  Bruno Haible  <bruno@clisp.org>
15722
15723         signal: Define sighandler_t.
15724         * lib/signal.in.h (sighandler_t): New type.
15725         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15726         whether sighandler_t is defined.
15727         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15728         * modules/signal (Depends-on): Add extensions.
15729         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15730         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15731         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15732
15733 2011-05-05  Eric Blake  <eblake@redhat.com>
15734
15735         maint: remove useless REPLACE_*_H macros
15736         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15737         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15738         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15739         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15740         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15741         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15742         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15743         * m4/btowc.m4: Update callers.
15744         * m4/dirfd.m4: Likewise.
15745         * m4/duplocale.m4: Likewise.
15746         * m4/fchdir.m4: Likewise.
15747         * m4/fdopendir.m4: Likewise.
15748         * m4/inet_ntop.m4: Likewise.
15749         * m4/inet_pton.m4: Likewise.
15750         * m4/ioctl.m4: Likewise.
15751         * m4/mbrlen.m4: Likewise.
15752         * m4/mbrtowc.m4: Likewise.
15753         * m4/mbsinit.m4: Likewise.
15754         * m4/mbsnrtowcs.m4: Likewise.
15755         * m4/mbsrtowcs.m4: Likewise.
15756         * m4/poll.m4: Likewise.
15757         * m4/setlocale.m4: Likewise.
15758         * m4/wcrtomb.m4: Likewise.
15759         * m4/wcsnrtombs.m4: Likewise.
15760         * m4/wcsrtombs.m4: Likewise.
15761         * m4/wctob.m4: Likewise.
15762         * m4/wcwidth.m4: Likewise.
15763         * modules/posix_spawn: Likewise.
15764         * modules/posix_spawn_file_actions_addclose: Likewise.
15765         * modules/posix_spawn_file_actions_adddup2: Likewise.
15766         * modules/posix_spawn_file_actions_addopen: Likewise.
15767         * modules/posix_spawn_file_actions_destroy: Likewise.
15768         * modules/posix_spawn_file_actions_init: Likewise.
15769         * modules/posix_spawnattr_destroy: Likewise.
15770         * modules/posix_spawnattr_getflags: Likewise.
15771         * modules/posix_spawnattr_getpgroup: Likewise.
15772         * modules/posix_spawnattr_getschedparam: Likewise.
15773         * modules/posix_spawnattr_getschedpolicy: Likewise.
15774         * modules/posix_spawnattr_getsigdefault: Likewise.
15775         * modules/posix_spawnattr_getsigmask: Likewise.
15776         * modules/posix_spawnattr_init: Likewise.
15777         * modules/posix_spawnattr_setflags: Likewise.
15778         * modules/posix_spawnattr_setpgroup: Likewise.
15779         * modules/posix_spawnattr_setschedparam: Likewise.
15780         * modules/posix_spawnattr_setschedpolicy: Likewise.
15781         * modules/posix_spawnattr_setsigdefault: Likewise.
15782         * modules/posix_spawnattr_setsigmask: Likewise.
15783         * modules/posix_spawnp: Likewise.
15784
15785 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15786
15787         Add option to do-release-commit-and-tag to specify branch.
15788         * build-aux/do-release-commit-and-tag: Add --branch.
15789
15790 2011-05-03  Bruno Haible  <bruno@clisp.org>
15791
15792         Avoid unnecessary compilation units, through conditional dependencies.
15793         * modules/accept (Depends-on): Add conditions to the dependencies.
15794         * modules/acosl (Depends-on): Likewise.
15795         * modules/argz (Depends-on): Likewise.
15796         * modules/asinl (Depends-on): Likewise.
15797         * modules/atanl (Depends-on): Likewise.
15798         * modules/atoll (Depends-on): Likewise.
15799         * modules/bind (Depends-on): Likewise.
15800         * modules/btowc (Depends-on): Likewise.
15801         * modules/canonicalize-lgpl (Depends-on): Likewise.
15802         * modules/ceil (Depends-on): Likewise.
15803         * modules/ceilf (Depends-on): Likewise.
15804         * modules/ceill (Depends-on): Likewise.
15805         * modules/chdir-long (Depends-on): Likewise.
15806         * modules/chown (Depends-on): Likewise.
15807         * modules/close (Depends-on): Likewise.
15808         * modules/connect (Depends-on): Likewise.
15809         * modules/cosl (Depends-on): Likewise.
15810         * modules/dirfd (Depends-on): Likewise.
15811         * modules/dprintf (Depends-on): Likewise.
15812         * modules/dprintf-posix (Depends-on): Likewise.
15813         * modules/error (Depends-on): Likewise.
15814         * modules/euidaccess (Depends-on): Likewise.
15815         * modules/expl (Depends-on): Likewise.
15816         * modules/faccessat (Depends-on): Likewise.
15817         * modules/fchdir (Depends-on): Likewise.
15818         * modules/fclose (Depends-on): Likewise.
15819         * modules/fcntl (Depends-on): Likewise.
15820         * modules/fdopendir (Depends-on): Likewise.
15821         * modules/fflush (Depends-on): Likewise.
15822         * modules/floor (Depends-on): Likewise.
15823         * modules/floorf (Depends-on): Likewise.
15824         * modules/floorl (Depends-on): Likewise.
15825         * modules/fnmatch (Depends-on): Likewise.
15826         * modules/fopen (Depends-on): Likewise.
15827         * modules/fprintf-posix (Depends-on): Likewise.
15828         * modules/frexp (Depends-on): Likewise.
15829         * modules/frexp-nolibm (Depends-on): Likewise.
15830         * modules/frexpl (Depends-on): Likewise.
15831         * modules/frexpl-nolibm (Depends-on): Likewise.
15832         * modules/fseek (Depends-on): Likewise.
15833         * modules/fsusage (Depends-on): Likewise.
15834         * modules/ftell (Depends-on): Likewise.
15835         * modules/ftello (Depends-on): Likewise.
15836         * modules/futimens (Depends-on): Likewise.
15837         * modules/getcwd (Depends-on): Likewise.
15838         * modules/getcwd-lgpl (Depends-on): Likewise.
15839         * modules/getdelim (Depends-on): Likewise.
15840         * modules/getdomainname (Depends-on): Likewise.
15841         * modules/getgroups (Depends-on): Likewise.
15842         * modules/gethostname (Depends-on): Likewise.
15843         * modules/getline (Depends-on): Likewise.
15844         * modules/getlogin_r (Depends-on): Likewise.
15845         * modules/getopt-posix (Depends-on): Likewise.
15846         * modules/getpeername (Depends-on): Likewise.
15847         * modules/getsockname (Depends-on): Likewise.
15848         * modules/getsockopt (Depends-on): Likewise.
15849         * modules/getsubopt (Depends-on): Likewise.
15850         * modules/getusershell (Depends-on): Likewise.
15851         * modules/glob (Depends-on): Likewise.
15852         * modules/grantpt (Depends-on): Likewise.
15853         * modules/iconv_open (Depends-on): Likewise.
15854         * modules/iconv_open-utf (Depends-on): Likewise.
15855         * modules/inet_ntop (Depends-on): Likewise.
15856         * modules/inet_pton (Depends-on): Likewise.
15857         * modules/ioctl (Depends-on): Likewise.
15858         * modules/isapipe (Depends-on): Likewise.
15859         * modules/isfinite (Depends-on): Likewise.
15860         * modules/isinf (Depends-on): Likewise.
15861         * modules/lchown (Depends-on): Likewise.
15862         * modules/ldexpl (Depends-on): Likewise.
15863         * modules/link (Depends-on): Likewise.
15864         * modules/linkat (Depends-on): Likewise.
15865         * modules/listen (Depends-on): Likewise.
15866         * modules/logl (Depends-on): Likewise.
15867         * modules/lstat (Depends-on): Likewise.
15868         * modules/mbrlen (Depends-on): Likewise.
15869         * modules/mbrtowc (Depends-on): Likewise.
15870         * modules/mbsinit (Depends-on): Likewise.
15871         * modules/mbsnrtowcs (Depends-on): Likewise.
15872         * modules/mbsrtowcs (Depends-on): Likewise.
15873         * modules/mbtowc (Depends-on): Likewise.
15874         * modules/memcmp (Depends-on): Likewise.
15875         * modules/mkdir (Depends-on): Likewise.
15876         * modules/mkdtemp (Depends-on): Likewise.
15877         * modules/mkfifo (Depends-on): Likewise.
15878         * modules/mkfifoat (Depends-on): Likewise.
15879         * modules/mknod (Depends-on): Likewise.
15880         * modules/mkostemp (Depends-on): Likewise.
15881         * modules/mkostemps (Depends-on): Likewise.
15882         * modules/mkstemp (Depends-on): Likewise.
15883         * modules/mkstemps (Depends-on): Likewise.
15884         * modules/mktime (Depends-on): Likewise.
15885         * modules/nanosleep (Depends-on): Likewise.
15886         * modules/open (Depends-on): Likewise.
15887         * modules/openat (Depends-on): Likewise.
15888         * modules/perror (Depends-on): Likewise.
15889         * modules/poll (Depends-on): Likewise.
15890         * modules/popen (Depends-on): Likewise.
15891         * modules/posix_spawn (Depends-on): Likewise.
15892         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15893         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15894         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15895         * modules/posix_spawnp (Depends-on): Likewise.
15896         * modules/pread (Depends-on): Likewise.
15897         * modules/printf-posix (Depends-on): Likewise.
15898         * modules/ptsname (Depends-on): Likewise.
15899         * modules/putenv (Depends-on): Likewise.
15900         * modules/pwrite (Depends-on): Likewise.
15901         * modules/readline (Depends-on): Likewise.
15902         * modules/readlink (Depends-on): Likewise.
15903         * modules/readlinkat (Depends-on): Likewise.
15904         * modules/recv (Depends-on): Likewise.
15905         * modules/recvfrom (Depends-on): Likewise.
15906         * modules/regex (Depends-on): Likewise.
15907         * modules/remove (Depends-on): Likewise.
15908         * modules/rename (Depends-on): Likewise.
15909         * modules/renameat (Depends-on): Likewise.
15910         * modules/rmdir (Depends-on): Likewise.
15911         * modules/round (Depends-on): Likewise.
15912         * modules/roundf (Depends-on): Likewise.
15913         * modules/roundl (Depends-on): Likewise.
15914         * modules/rpmatch (Depends-on): Likewise.
15915         * modules/select (Depends-on): Likewise.
15916         * modules/send (Depends-on): Likewise.
15917         * modules/sendto (Depends-on): Likewise.
15918         * modules/setenv (Depends-on): Likewise.
15919         * modules/setlocale (Depends-on): Likewise.
15920         * modules/setsockopt (Depends-on): Likewise.
15921         * modules/shutdown (Depends-on): Likewise.
15922         * modules/sigaction (Depends-on): Likewise.
15923         * modules/signbit (Depends-on): Likewise.
15924         * modules/sigprocmask (Depends-on): Likewise.
15925         * modules/sinl (Depends-on): Likewise.
15926         * modules/sleep (Depends-on): Likewise.
15927         * modules/snprintf (Depends-on): Likewise.
15928         * modules/snprintf-posix (Depends-on): Likewise.
15929         * modules/socket (Depends-on): Likewise.
15930         * modules/sprintf-posix (Depends-on): Likewise.
15931         * modules/sqrtl (Depends-on): Likewise.
15932         * modules/stat (Depends-on): Likewise.
15933         * modules/strchrnul (Depends-on): Likewise.
15934         * modules/strdup-posix (Depends-on): Likewise.
15935         * modules/strerror (Depends-on): Likewise.
15936         * modules/strerror_r-posix (Depends-on): Likewise.
15937         * modules/strndup (Depends-on): Likewise.
15938         * modules/strnlen (Depends-on): Likewise.
15939         * modules/strptime (Depends-on): Likewise.
15940         * modules/strsep (Depends-on): Likewise.
15941         * modules/strsignal (Depends-on): Likewise.
15942         * modules/strstr-simple (Depends-on): Likewise.
15943         * modules/strtod (Depends-on): Likewise.
15944         * modules/strtoimax (Depends-on): Likewise.
15945         * modules/strtok_r (Depends-on): Likewise.
15946         * modules/strtoumax (Depends-on): Likewise.
15947         * modules/symlink (Depends-on): Likewise.
15948         * modules/symlinkat (Depends-on): Likewise.
15949         * modules/tanl (Depends-on): Likewise.
15950         * modules/tcgetsid (Depends-on): Likewise.
15951         * modules/tmpfile (Depends-on): Likewise.
15952         * modules/trunc (Depends-on): Likewise.
15953         * modules/truncf (Depends-on): Likewise.
15954         * modules/truncl (Depends-on): Likewise.
15955         * modules/uname (Depends-on): Likewise.
15956         * modules/unlink (Depends-on): Likewise.
15957         * modules/unlockpt (Depends-on): Likewise.
15958         * modules/unsetenv (Depends-on): Likewise.
15959         * modules/usleep (Depends-on): Likewise.
15960         * modules/utimensat (Depends-on): Likewise.
15961         * modules/vasprintf (Depends-on): Likewise.
15962         * modules/vdprintf (Depends-on): Likewise.
15963         * modules/vdprintf-posix (Depends-on): Likewise.
15964         * modules/vfprintf-posix (Depends-on): Likewise.
15965         * modules/vprintf-posix (Depends-on): Likewise.
15966         * modules/vsnprintf (Depends-on): Likewise.
15967         * modules/vsnprintf-posix (Depends-on): Likewise.
15968         * modules/vsprintf-posix (Depends-on): Likewise.
15969         * modules/wcrtomb (Depends-on): Likewise.
15970         * modules/wcscasecmp (Depends-on): Likewise.
15971         * modules/wcscspn (Depends-on): Likewise.
15972         * modules/wcsdup (Depends-on): Likewise.
15973         * modules/wcsncasecmp (Depends-on): Likewise.
15974         * modules/wcsnrtombs (Depends-on): Likewise.
15975         * modules/wcspbrk (Depends-on): Likewise.
15976         * modules/wcsrtombs (Depends-on): Likewise.
15977         * modules/wcsspn (Depends-on): Likewise.
15978         * modules/wcsstr (Depends-on): Likewise.
15979         * modules/wcstok (Depends-on): Likewise.
15980         * modules/wcswidth (Depends-on): Likewise.
15981         * modules/wctob (Depends-on): Likewise.
15982         * modules/wctomb (Depends-on): Likewise.
15983         * modules/wctype (Depends-on): Likewise.
15984         * modules/wcwidth (Depends-on): Likewise.
15985         * modules/write (Depends-on): Likewise.
15986
15987 2011-05-03  Bruno Haible  <bruno@clisp.org>
15988
15989         Support for conditional dependencies.
15990         * doc/gnulib.texi (Module description): Document the syntax of
15991         conditional dependencies.
15992         * gnulib-tool: New option --conditional-dependencies.
15993         (func_usage): Document it.
15994         (cond_dependencies): New variable.
15995         (func_get_automake_snippet_conditional,
15996         func_get_automake_snippet_unconditional): New functions, extracted from
15997         func_get_automake_snippet.
15998         (func_get_automake_snippet): Use them.
15999         (sed_first_32_chars): New variable.
16000         (func_module_shellfunc_name): New function.
16001         (func_module_shellvar_name): New function.
16002         (func_module_conditional_name): New function.
16003         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16004         func_cond_module_condition): New functions.
16005         (func_modules_transitive_closure): Add support for conditional
16006         dependencies.
16007         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16008         conditional automake snippet in an automake conditional.
16009         (func_emit_autoconf_snippets): Emit shell functions that contain the
16010         code for conditional modules.
16011         (func_import, func_create_testdir): Update specification.
16012
16013 2011-05-03  Eric Blake  <eblake@redhat.com>
16014
16015         test-getaddrinfo: report error information
16016         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16017
16018 2011-05-03  Jim Meyering  <meyering@redhat.com>
16019
16020         bootstrap: avoid build failure when $GZIP is set
16021         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16022         program name.  If defined at all, it is supposed to list gzip options.
16023         Reported by Alan Curry in http://debbugs.gnu.org/8609
16024
16025 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16026
16027         readme-release: new module with release instructions
16028         * modules/readme-release: New module.
16029         * top/README-release: New file, from coreutils, grep, diffutils.
16030         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16031
16032 2011-05-02  Eric Blake  <eblake@redhat.com>
16033
16034         fflush: also replace fclose when fixing fflush
16035         * modules/fflush (Depends-on): Add fclose.
16036         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16037         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16038         memstreams with no backing fd.
16039         * doc/posix-functions/fclose.texi (fclose): Document the use of
16040         fflush module to fix the bug.
16041         * tests/test-fclose.c (main): Relax test when fclose is used in
16042         isolation.
16043
16044         fclose: add some tests
16045         * modules/fclose-tests: New test module.
16046         * tests/test-fclose.c: New file.
16047         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16048
16049         fclose: reduced dependencies
16050         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16051         simpler lseek.
16052         * lib/fclose.c (rpl_fclose): Likewise.
16053         Reported by Simon Josefsson.
16054
16055         exit: drop remaining clients
16056         * modules/argmatch (Depends-on): Replace exit with stdlib.
16057         * modules/copy-file (Depends-on): Likewise.
16058         * modules/execute (Depends-on): Likewise.
16059         * modules/exitfail (Depends-on): Likewise.
16060         * modules/obstack (Depends-on): Likewise.
16061         * modules/pagealign_alloc (Depends-on): Likewise.
16062         * modules/pipe-filter-gi (Depends-on): Likewise.
16063         * modules/pipe-filter-ii (Depends-on): Likewise.
16064         * modules/savewd (Depends-on): Likewise.
16065         * modules/spawn-pipe (Depends-on): Likewise.
16066         * modules/wait-process (Depends-on): Likewise.
16067         * modules/xsetenv (Depends-on): Likewise.
16068         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16069         * modules/git-merge-changelog (Depends-on): Likewise.
16070         * modules/long-options (Depends-on): Likewise.
16071         * modules/pt_chown (Depends-on): Likewise.
16072         * modules/sysexits (Depends-on): Likewise.
16073
16074         freading: relax license from LGPLv3+ to LGPLv2+
16075         * modules/freading (License): Relax LGPL version.
16076
16077 2011-05-02  Bruno Haible  <bruno@clisp.org>
16078
16079         fchdir: Remove unused dependencies.
16080         * modules/fchdir (Depends-on): Remove include_next.
16081
16082 2011-05-02  Bruno Haible  <bruno@clisp.org>
16083
16084         gnulib-tool: Refactor.
16085         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16086         from func_emit_autoconf_snippets.
16087         (func_emit_autoconf_snippets): Use it.
16088
16089 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16090
16091         * NEWS: Document removal of 'exit'.
16092         * modules/exit: Remove file.
16093
16094 2011-05-01  Bruno Haible  <bruno@clisp.org>
16095
16096         Update DEPENDENCIES.
16097         * DEPENDENCIES (gettext): Recommend the newest release.
16098         Reported by Simon Josefsson.
16099
16100 2011-05-01  Bruno Haible  <bruno@clisp.org>
16101
16102         gnulib-tool: Reduce code duplication.
16103         * gnulib-tool (func_emit_autoconf_snippets): New function.
16104         (func_import, func_create_testdir): Use it.
16105
16106 2011-04-30  Eric Blake  <eblake@redhat.com>
16107
16108         fclose: don't fail on non-seekable input stream
16109         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16110         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16111         since fflush is allowed to fail in that case.
16112
16113 2011-04-30  Bruno Haible  <bruno@clisp.org>
16114
16115         dup3: cleanup
16116         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16117
16118 2011-04-30  Bruno Haible  <bruno@clisp.org>
16119
16120         netdb: Make it work in C++ mode.
16121         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16122         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16123         module.
16124         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16125         gl_MODULE_INDICATOR_FOR_TESTS.
16126         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16127         * modules/netdb-c++-tests: New file.
16128         * tests/test-netdb-c++.cc: New file.
16129
16130 2011-04-30  Bruno Haible  <bruno@clisp.org>
16131
16132         New modules 'vfscanf', 'vscanf'.
16133         * modules/vfscanf: New file.
16134         * modules/vscanf: New file.
16135         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16136         here.
16137         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16138         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16139
16140 2011-04-30  Bruno Haible  <bruno@clisp.org>
16141
16142         passfd: Add comments.
16143         * lib/passfd.c: Add comments about platforms.
16144
16145 2011-04-30  Bruno Haible  <bruno@clisp.org>
16146
16147         sys_uio: Make <sys/uio.h> self-contained.
16148         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16149         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16150
16151 2011-04-30  Bruno Haible  <bruno@clisp.org>
16152
16153         sys_socket: Ensure 'struct iovec' definition.
16154         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16155         <sys/socket.h>.
16156         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16157
16158 2011-04-30  Bruno Haible  <bruno@clisp.org>
16159
16160         sys_uio: Protect definition of 'struct iovec'.
16161         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16162         it as a C struct.
16163
16164 2011-04-30  Bruno Haible  <bruno@clisp.org>
16165
16166         manywarnings: fix indentation
16167         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16168
16169 2011-04-30  Pádraig Brady <P@draigBrady.com>
16170
16171         manywarnings: add -Wno-missing-field-initializers if needed.
16172         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16173         option if it's needed to allow initialization with { 0, }
16174
16175 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16176
16177         announce-gen: cosmetic improvement
16178         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16179
16180 2011-04-29  Jim Meyering  <meyering@redhat.com>
16181
16182         vc-list-files: indent with spaces, not TABs
16183         * build-aux/vc-list-files: Convert leading TABs to spaces,
16184         to match the style of most other files in gnulib.
16185
16186         announce-gen: indent with spaces, not TABs
16187         * build-aux/announce-gen: Convert all TABs to spaces, to match
16188         the style of most other files in gnulib.
16189
16190 2011-04-29  Eric Blake  <eblake@redhat.com>
16191
16192         quotearg: avoid uninitialized variable use
16193         * lib/quotearg.c (quoting_options_from_style): Initialize
16194         remaining fields, and ensure that custom styles are only used via
16195         quoting_options rather than quoting_style.
16196
16197 2011-04-29  Jim Meyering  <meyering@redhat.com>
16198
16199         maint.mk: remove unused VC-tag variable
16200         * top/maint.mk (VC-tag): Remove unused variable.
16201
16202 2011-04-29  Bruno Haible  <bruno@clisp.org>
16203
16204         netdb: fix gai_strerror replacements
16205         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16206         * modules/netdb: Substitute it.
16207
16208 2011-04-29  Jim Meyering  <meyering@redhat.com>
16209
16210         test-getcwd.c: avoid new set-but-not-used warning
16211         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16212         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16213         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16214         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16215
16216         test-hash.c: avoid a new shadowing warning
16217         * tests/test-hash.c (main): Don't shadow "dup".
16218
16219 2011-04-28  Eric Blake  <eblake@redhat.com>
16220
16221         getaddrinfo: fix gai_strerror signature
16222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16223         and work around mingw with UNICODE defined.
16224         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16225         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16226         * modules/netdb (Makefile.am): Substitute it.
16227         * lib/netdb.in.h (gai_strerror): Declare replacement.
16228         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16229         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16230         the fix.
16231
16232         getsockopt: avoid compiler warning
16233         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16234         Reported by Matthias Bolte.
16235
16236         tests: drop unused link dependency
16237         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16238         * modules/dirent-safer-tests (Makefile.am): Likewise.
16239         * modules/fdopendir-tests (Makefile.am): Likewise.
16240         * modules/mkfifoat-tests (Makefile.am): Likewise.
16241         * modules/openat-safer-tests (Makefile.am): Likewise.
16242         * modules/openat-tests (Makefile.am): Likewise.
16243         * modules/readlinkat-tests (Makefile.am): Likewise.
16244         * modules/symlinkat-tests (Makefile.am): Likewise.
16245         * modules/linkat-tests (Makefile.am): Likewise.
16246         (Depends-on): Switch to filenamecat-lgpl.
16247         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16248         LIBINTL.
16249         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16250         * tests/test-linkat.c (main): Don't require xalloc.
16251
16252         hash, mgetgroups: drop xalloc dependency
16253         * lib/hash.c (includes): Adjust includes.
16254         * lib/mgetgroups.c (includes): Likewise.
16255         (xgetgroups): Move...
16256         * lib/xgetgroups.c: ...to new file.
16257         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16258         * modules/xgetgroups: New file, split from...
16259         * modules/mgetgroups: ...here.
16260         (Depends-on): Add xalloc-oversized.
16261         * modules/hash (Depends-on): Likewise.
16262         * modules/hash-tests (Depends-on): Drop xalloc.
16263         (test_hash_LDADD): Drop unused library.
16264         * tests/test-hash.c (main): Break xalloc dependency.
16265         (includes): Drop unused include.
16266
16267         xalloc-oversized: new module
16268         * modules/xalloc-oversized: New module.
16269         * modules/xalloc (Depends-on): Add it.
16270         * lib/xalloc.h (xalloc_oversized): Move...
16271         * lib/xalloc-oversized.h: ...into new file.
16272
16273         utimecmp: drop dependency on xmalloc
16274         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16275         due to memory pressure.
16276         * modules/utimecmp (Depends-on): Drop xalloc.
16277
16278 2011-04-27  Eric Blake  <eblake@redhat.com>
16279
16280         getcwd: fix mingw bugs
16281         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16282         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16283         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16284
16285 2011-04-27  Bruno Haible  <bruno@clisp.org>
16286
16287         mkstemps: Ensure declaration on MacOS X 10.5.
16288         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16289         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16290         MacOS X.
16291
16292 2011-04-27  Bruno Haible  <bruno@clisp.org>
16293
16294         mkstemp: More documentation.
16295         * doc/posix-functions/mkstemp.texi: Document header file problem on
16296         MacOS X.
16297
16298 2011-04-27  Bruno Haible  <bruno@clisp.org>
16299
16300         mkstemp: Tweak configure message when cross-compiling.
16301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16302         result as a guess.
16303
16304 2011-04-27  Bruno Haible  <bruno@clisp.org>
16305
16306         clean-temp: Clarify what it does.
16307         * lib/clean-temp.h: Add more comments.
16308         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16309         module.
16310         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16311         * doc/glibc-functions/mkstemps.texi: Likewise.
16312         * doc/glibc-functions/mkostemps.texi: Likewise.
16313
16314 2011-04-27  Eric Blake  <eblake@redhat.com>
16315
16316         fchdir: avoid extra chdir and fix test
16317         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16318         getcwd-lgpl.
16319         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16320         have to be canonical.
16321         (canonicalize_file_name): Drop unused macro.
16322         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16323
16324         filenamecat-lgpl: fix licence
16325         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16326         when it was first created.
16327
16328         linkat, renameat: add missing dependency
16329         * modules/linkat (Depends-on): Require getcwd-lgpl.
16330         * modules/renameat (Depends-on): Likewise.
16331
16332         tests: reduce dependencies
16333         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16334         * tests/test-renameat.c (main): Likewise.
16335         * modules/linkat-tests (Depends-on): Relax dependency.
16336         * modules/renameat-tests (Depends-on): Likewise.
16337         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16338         dependency explicit.
16339
16340         save-cwd: reduce default dependency
16341         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16342         * lib/save-cwd.c: Update comments.
16343         * NEWS: Document the semantic change.
16344
16345         getcwd: enhance tests
16346         * tests/test-getcwd-lgpl.c: New file, taken from...
16347         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16348         repeat long path stress tests from m4 probe.
16349         * modules/getcwd-lgpl-tests: New module.
16350         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16351         * m4/getcwd-abort-bug.m4: Update comment.
16352         * m4/getcwd-path-max.m4: Likewise.
16353
16354         getcwd-lgpl: new module
16355         * modules/getcwd-lgpl: New module.
16356         * lib/getcwd-lgpl.c: New file.
16357         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16358         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16359         * modules/getcwd (configure.ac): Set C witness.
16360         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16361
16362         getcwd: tweak comments
16363         * m4/getcwd-abort-bug.m4: Fix comments.
16364         * m4/getcwd-path-max.m4: Likewise.
16365         * m4/getcwd.m4: Likewise.
16366
16367 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16368         and Eric Blake  <eblake@redhat.com>
16369
16370         mkstemp: replace if system version uses wrong permissions
16371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16372         read/write mode bits set in file created by mkstemp.
16373         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16374
16375 2011-04-27  Eric Blake  <eblake@redhat.com>
16376
16377         passfd: avoid compiler warning
16378         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16379         Reported by Laine Stump.
16380
16381 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16382
16383         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16384         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16385
16386 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16387         and Eric Blake  <eblake@redhat.com>
16388
16389         mkstemp: mention clean-temp module
16390         * lib/mkstemp.c: Add comment.
16391         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16392
16393 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16394
16395         inttypes: also provide default values for 32-bit tests
16396         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16397         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16398
16399 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16400
16401         strtoumax: remove dependency on strtoimax
16402         This is like the strtoull change of yesterday.
16403         * modules/strtoumax (Files): Add lib/strtoimax.c.
16404         (Depends-on): Remove strtoimax and add verify.
16405
16406         inttypes-incomplete: new module
16407         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16408         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16409         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16410         of gl_INTTYPES_H.
16411         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16412         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16413         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16414         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16415         * modules/strtoumax, modules/xstrtol (Depends-on):
16416         Depend on inttypes-incomplete, not inttypes.
16417         * modules/inttypes-incomplete: New module, containing the contents
16418         of the old modules/inttypes module, except that the Files: section
16419         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16420         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16421         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16422         (Depends-on): Depend only on inttypes-incomplete.
16423         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16424
16425         inttypes: omit now-redundant strtoimax and strtoumax work
16426         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16427         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16428
16429         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16430         This supports apps that need pointers to strtoimax and strtoumax,
16431         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16432         nonexistent functions.  See
16433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16434         et seq.
16435         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16436         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16437         a macro.
16438         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16439
16440 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16441
16442         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16443
16444 2011-04-25  Bruno Haible  <bruno@clisp.org>
16445
16446         strtol, strtoul: Mark modules as obsolete.
16447         * modules/strtol (Status, Notice): New sections.
16448         * modules/strtoul (Status, Notice): New sections.
16449
16450 2011-04-25  Bruno Haible  <bruno@clisp.org>
16451
16452         strtod: Remove check for strtod, unless supporting old platforms.
16453         * modules/strtod-obsolete: New file.
16454         * m4/strtod-obsolete.m4: New file.
16455         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16456         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16457         * modules/strtod (Depends-on): Add strtod-obsolete.
16458         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16459
16460 2011-04-25  Bruno Haible  <bruno@clisp.org>
16461
16462         strcase: Make module obsolete.
16463         * modules/strcase (Status, Notice): New sections.
16464
16465 2011-04-25  Bruno Haible  <bruno@clisp.org>
16466
16467         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16468         * modules/dup2-obsolete: New file.
16469         * m4/dup2-obsolete.m4: New file.
16470         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16471         gl_FUNC_DUP2_OBSOLETE is not also defined.
16472         * modules/dup2 (Depends-on): Add dup2-obsolete.
16473         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16474
16475 2011-04-25  Bruno Haible  <bruno@clisp.org>
16476
16477         strnlen: Avoid memchr related link error on old obsolete platforms.
16478         * modules/memchr-obsolete: New file.
16479         * m4/memchr-obsolete.m4: New file.
16480         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16481         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16482         * modules/memchr (Depends-on): Add memchr-obsolete.
16483         * modules/strnlen (Depends-on): Likewise.
16484         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16485
16486 2011-04-25  Jim Meyering  <meyering@redhat.com>
16487
16488         maint.mk: makefile_at_at_check extend and clean up
16489         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16490         in addition to */Makefile.am.
16491         Exempt legitimate uses of @VAR@ notation, e.g.,
16492         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16493         Remove obsolete coreutils-specific comment.
16494         Prompted by discussion here:
16495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16496
16497 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         strtoul: remove dependency on strtol
16500         This is so that 'configure' need not check for strtol merely because
16501         the application needs strtoul.
16502         * modules/strtoul (Files): Add lib/strtol.c.
16503         (Depends-on): Remove strtol.
16504
16505         strtoull: remove dependency on strtoul
16506         This is like the strtoll change.
16507         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16508         (Depends-on): Remove strtoul.
16509
16510         strtoll: remove dependency on strtol
16511         This is so that 'configure' need not check for strtol merely because
16512         the application needs strtoll.
16513         * modules/strtoll (Files): Add lib/strtol.c.
16514         (Depends-on): Remove strtol.
16515
16516 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16517
16518         inttypes: Move some configure check to module 'imaxdiv'.
16519         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16520         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16521         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16522
16523 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         inttypes: Move some configure check to module 'imaxabs'.
16526         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16527         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16528         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16529
16530 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16531
16532         inttypes: Remove configure tests that are not needed since 2009-12-31.
16533         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16534         gl_cv_header_working_inttypes_h.
16535
16536 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16537
16538         * modules/strnlen (Depends-on): Remove memchr.
16539         The strnlen implementation doesn't need the memchr module's fixes; see
16540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16541
16542         strtol: remove dependency on wchar
16543         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16544         * modules/strtol (Depends-on): Remove wchar.
16545
16546 2011-04-21  Eric Blake  <eblake@redhat.com>
16547
16548         passfd: fix test regression on Linux
16549         * modules/passfd-tests (configure.ac): Correct socketpair check.
16550
16551         passfd: speed up configure and drop unused code
16552         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16553         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16554         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16555         Instead of probing at configure for unix_scm_rights_bsd44_way,
16556         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16557         check to a struct member probe.
16558         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16559         (sendfd, recvfd): Update preprocessor checks.
16560         * modules/passfd (Files): Reflect rename, and drop unused file.
16561         (Depends-on): Drop unused dependency.
16562
16563         passfd: allow compilation on mingw
16564         * modules/sys_socket (Depends-on): Add sys_uio.
16565         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16566         iovec and a minimal struct msghdr.
16567         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16568         * tests/test-sys_socket.c (main): Enhance test.
16569         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16570         guaranteed to provide what we need.
16571         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16572         * modules/passfd-tests (Depends-on): Add sys_wait.
16573         * tests/test-passfd.c (main): Skip test on mingw, for now.
16574         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16575         partial 'struct msghdr' implementation.
16576
16577         sys_uio: new module
16578         * modules/sys_uio: New module.
16579         * modules/sys_uio-tests: Likewise.
16580         * lib/sys_uio.in.h: New file.
16581         * m4/sys_uio_h.m4: Likewise.
16582         * tests/test-sys_uio.c: Likewise.
16583         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16584         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16585
16586 2011-04-20  Jim Meyering  <meyering@redhat.com>
16587
16588         useless-if-before-free: avoid false-positive
16589         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16590         disjunct so that it too requires a terminating ";".  Without that,
16591         this script would identify as useless one statement from gcc that
16592         was not:
16593           if (aligned_ptr)
16594             free (((void **) aligned_ptr) [-1]);
16595
16596 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16597
16598         doc: update users.txt.
16599         * users.txt: Add barcode.
16600
16601 2011-04-19  Bruno Haible  <bruno@clisp.org>
16602
16603         ioctl: Remove link dependency on native Windows.
16604         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16605         (gl_close_fn, gl_ioctl_fn): New types.
16606         (struct fd_hook): Renamed from struct close_hook. Change type of
16607         private_close_fn field. Add private_ioctl_fn field.
16608         (close_hook_fn): Add parameter for primary close method.
16609         (execute_close_hooks, execute_all_close_hooks): Likewise.
16610         (ioctl_hook_fn): New type.
16611         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16612         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16613         argument.
16614         (unregister_fd_hook): Renamed from unregister_close_hook.
16615         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16616         Don't include <unistd.h>.
16617         (close): Remove undef.
16618         (anchor): Update.
16619         (execute_close_hooks): Add argument for primary close method.
16620         (execute_all_close_hooks): Likewise.
16621         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16622         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16623         argument. Allow each argument to be NULL.
16624         (unregister_fd_hook): Renamed from unregister_close_hook.
16625         * lib/close.c (rpl_close): Pass 'close' function pointer to
16626         execute_all_close_hooks.
16627         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16628         (primary_ioctl): New function.
16629         (ioctl): Don't call ioctlsocket here. Instead, call
16630         execute_all_ioctl_hooks.
16631         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16632         close method.
16633         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16634         (fd_sockets_hook): Renamed from close_sockets_hook.
16635         (gl_sockets_startup, gl_sockets_cleanup): Update.
16636         * modules/fd-hook: Renamed from modules/close-hook. Update.
16637         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16638         * modules/sockets (Depends-on): Likewise.
16639         * modules/ioctl (Depends-on): Add fd-hook.
16640         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16641         GNULIB_SOCKET.
16642
16643 2011-04-19  Bruno Haible  <bruno@clisp.org>
16644
16645         Move the support of O_NONBLOCK in open() to the 'open' module.
16646         * modules/nonblocking (Depends-on): Remove 'open'.
16647         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16648         gl_cv_have_open_O_NONBLOCK.
16649         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16650         O_NONBLOCK support.
16651         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16652
16653 2011-04-17  Bruno Haible  <bruno@clisp.org>
16654
16655         pipe2: Simplify code.
16656         * lib/pipe2.c (pipe2): Reduce code duplication.
16657
16658 2011-04-17  Bruno Haible  <bruno@clisp.org>
16659
16660         nonblocking: Add comment.
16661         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16662
16663 2011-04-17  Bruno Haible  <bruno@clisp.org>
16664
16665         nonblocking: Add tests for sockets.
16666         * tests/test-nonblocking-socket.sh: New file.
16667         * tests/test-nonblocking-socket-main.c: New file.
16668         * tests/test-nonblocking-socket-child.c: New file.
16669         * tests/test-nonblocking-socket.h: New file.
16670         * tests/socket-server.h: New file.
16671         * tests/socket-client.h: New file.
16672         * modules/nonblocking-socket-tests: New file.
16673         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16674
16675 2011-04-17  Bruno Haible  <bruno@clisp.org>
16676
16677         nonblocking: Add tests for pipes.
16678         * tests/test-nonblocking-pipe.sh: New file.
16679         * tests/test-nonblocking-pipe-main.c: New file.
16680         * tests/test-nonblocking-pipe-child.c: New file.
16681         * tests/test-nonblocking-pipe.h: New file.
16682         * tests/test-nonblocking-writer.h: New file.
16683         * tests/test-nonblocking-reader.h: New file.
16684         * tests/test-nonblocking-misc.h: New file.
16685         * modules/nonblocking-pipe-tests: New file.
16686         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16687
16688 2011-04-16  Bruno Haible  <bruno@clisp.org>
16689
16690         gettext: Clarify the needed programmer actions.
16691         * modules/gettext (Notice): New field.
16692         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16693
16694 2011-04-16  Bruno Haible  <bruno@clisp.org>
16695
16696         strchrnul: Tweak last commit.
16697         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16698         bug.
16699         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16700         as in _GL_FUNCDECL_SYS.
16701         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16702         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16703
16704 2011-04-15  Eric Blake  <eblake@redhat.com>
16705
16706         strchrnul: work around cygwin bug
16707         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16708         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16710         * modules/string (Makefile.am): Substitute it.
16711         * lib/string.in.h (strchrnul): Use it.
16712
16713 2011-04-15  Bruno Haible  <bruno@clisp.org>
16714
16715         Don't require lib/stdio-write.c when only module 'stdio' is used.
16716         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16717         invocation.
16718         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16719
16720 2011-04-14  Bruno Haible  <bruno@clisp.org>
16721
16722         Support non-blocking pipe I/O in read() on native Windows.
16723         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16724         (read): New declaration.
16725         * lib/read.c: New file.
16726         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16727         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16728         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16729         vscanf): New declarations.
16730         * lib/stdio-read.c: New file.
16731         * m4/read.m4: New file.
16732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16733         REPLACE_READ.
16734         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16735         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16736         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16737         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16738         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16739         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16740         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16741         * modules/read: New file.
16742         * modules/nonblocking (Files): Add lib/stdio-read.c.
16743         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16744         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16745         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16746         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16747         * modules/pread (Depends-on): Add read.
16748         * modules/safe-read (Depends-on): Likewise.
16749         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16750         gets, scanf, vfscanf, vscanf): Verify signatures.
16751         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16752         problem with non-blocking pipes.
16753         * doc/posix-functions/fgetc.texi: Likewise.
16754         * doc/posix-functions/fgets.texi: Likewise.
16755         * doc/posix-functions/fread.texi: Likewise.
16756         * doc/posix-functions/fscanf.texi: Likewise.
16757         * doc/posix-functions/getc.texi: Likewise.
16758         * doc/posix-functions/getchar.texi: Likewise.
16759         * doc/posix-functions/gets.texi: Likewise.
16760         * doc/posix-functions/scanf.texi: Likewise.
16761         * doc/posix-functions/vfscanf.texi: Likewise.
16762         * doc/posix-functions/vscanf.texi: Likewise.
16763
16764 2011-04-14  Bruno Haible  <bruno@clisp.org>
16765
16766         Support non-blocking pipe I/O in write() on native Windows.
16767         * lib/write.c (rpl_write): Split a write request that failed merely
16768         because the byte count was larger than the pipe buffer's size.
16769         * doc/posix-functions/write.texi: Mention the problem with large byte
16770         counts.
16771
16772 2011-04-14  Bruno Haible  <bruno@clisp.org>
16773
16774         wchar: Ensure that wchar_t gets defined on uClibc.
16775         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16776         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16777
16778 2011-04-13  Bruno Haible  <bruno@clisp.org>
16779
16780         safe-write, full-read: Avoid unnecessary compilation units.
16781         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16782         (Depends-on): Remove safe-read. Add ssize_t.
16783         * modules/full-read (Files): Add lib/full-write.c.
16784         (Depends-on): Add full-write.
16785
16786 2011-04-13  Bruno Haible  <bruno@clisp.org>
16787
16788         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16789         * modules/pwrite (Depends-on): Add 'write'.
16790
16791 2011-04-13  Bruno Haible  <bruno@clisp.org>
16792
16793         Support non-blocking pipe I/O in write() on native Windows.
16794         * lib/unistd.in.h (write): Enable replacement also if
16795         GNULIB_UNISTD_H_NONBLOCKING is 1.
16796         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16797         (rpl_write): When failing to write on a non-blocking pipe, change
16798         errno from ENOSPC to EAGAIN.
16799         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16800         putchar, puts, vfprintf, vprintf): Enable replacement also if
16801         GNULIB_STDIO_H_NONBLOCKING is 1.
16802         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16803         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16804         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16805         CALL_WITH_SIGPIPE_EMULATION.
16806         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16807         * m4/nonblocking.m4: New file.
16808         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16809         for non-blocking I/O support.
16810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16811         GNULIB_UNISTD_H_NONBLOCKING.
16812         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16813         required for non-blocking I/O support.
16814         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16815         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16816         lib/stdio-write.c, m4/asm-underscore.m4.
16817         (Depends-on): Add stdio, unistd.
16818         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16819         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16820         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16821         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16822         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16823         problem with non-blocking pipes.
16824         * doc/posix-functions/fputc.texi: Likewise.
16825         * doc/posix-functions/fputs.texi: Likewise.
16826         * doc/posix-functions/fwrite.texi: Likewise.
16827         * doc/posix-functions/printf.texi: Likewise.
16828         * doc/posix-functions/putc.texi: Likewise.
16829         * doc/posix-functions/putchar.texi: Likewise.
16830         * doc/posix-functions/puts.texi: Likewise.
16831         * doc/posix-functions/vfprintf.texi: Likewise.
16832         * doc/posix-functions/vprintf.texi: Likewise.
16833         * doc/posix-functions/write.texi: Likewise.
16834
16835 2011-04-10  Jim Meyering  <meyering@redhat.com>
16836
16837         maint.mk: prohibit doubled words
16838         Detect them also when they're separated by a newline.
16839         There are 3 ways to customize it:
16840           - disable the test on a per file basis, as usual with rules using
16841             $(VC_LIST_EXCEPT)
16842           - replace the default doubled-word-selecting regexp (affects all files)
16843           - ignore a particular file-vs-doubled-word match
16844         I nearly used that last one to ignore the "is is" match in
16845         coreutils' NEWS file, since the text was "ls -is is ..."
16846         To do that, I would have added this line to cfg.mk:
16847           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16848         but it would have ignored any "is is" match in NEWS.
16849         Low probability, but still...
16850         Instead, I changed the text, slightly:
16851           -  ls -is is now consistent with ls -lis in ignoring values returned
16852           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16853         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16854         (prohibit_doubled_word_): Define.
16855         (sc_prohibit_doubled_word): New rule.
16856         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16857
16858 2011-04-10  Jim Meyering  <meyering@redhat.com>
16859
16860         maint: fix doubled-word typo in comment
16861         * m4/gethostname.m4: s/is is/it is/
16862         * m4/getdomainname.m4: Likewise.
16863
16864 2011-04-10  Jim Meyering  <meyering@redhat.com>
16865
16866         maint: remove doubled word: s/it it/it/
16867         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16868
16869 2011-04-10  Jim Meyering  <meyering@redhat.com>
16870
16871         maint.mk: remove useless semicolon and backslash
16872         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16873         semicolon and backslash.
16874
16875 2011-04-10  Bruno Haible  <bruno@clisp.org>
16876
16877         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16878         * modules/stdint-tests (Depends-on): Add wchar.
16879
16880 2011-04-10  Jim Meyering  <meyering@redhat.com>
16881
16882         maint: remove doubled words in comments, e.g., s/a a/a/
16883         * lib/strptime.c (day_of_the_week): s/the the/the/
16884         * tests/test-chown.h (test_chown): s/a a/a/
16885
16886         test-chown.h: correct a cast
16887         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16888         when the destination is a stat.st_gid.
16889
16890 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16891
16892         getaddrinfo: Fix test for sa_len member.
16893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16894         include <sys/types.h> before <sys/socket.h>.
16895
16896 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16897
16898         maint: change "can not" to "cannot"
16899         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16900         boundaries.
16901
16902 2011-04-09  Jim Meyering  <meyering@redhat.com>
16903
16904         maint: change "a a" to "a"
16905         * tests/test-lchown.h (test_lchown): s/a a/a/
16906
16907         maint.mk: prohibit \<the the\>
16908         * top/maint.mk (sc_prohibit_the_the): New rule.
16909
16910         maint: fix "the the" in comment
16911         * lib/count-one-bits.h: s/the the/the/
16912
16913         maint: change "can not" to "cannot"
16914         But do not change the occurrences in maintain.texi or in
16915         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16916         * doc/gnulib-tool.texi: s/can not/cannot/
16917         * doc/posix-functions/accept.texi (accept): Likewise.
16918         * doc/posix-functions/socket.texi (socket): Likewise.
16919         * lib/mbrtowc.c: Likewise.
16920
16921         maint.mk: prohibit use of "can not"
16922         * top/maint.mk (sc_prohibit_can_not): New rule.
16923         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16924
16925 2011-04-09  Bruno Haible  <bruno@clisp.org>
16926
16927         careadlinkat: Guard against misuse of careadlinkatcwd.
16928         * lib/careadlinkat.c: Include <stdlib.h>.
16929         (careadlinkatcwd): Check that the fd argument is as expected.
16930
16931 2011-04-09  Bruno Haible  <bruno@clisp.org>
16932
16933         careadlinkat: Use common coding style.
16934         * lib/careadlinkat.c: Move gnulib includes after system includes.
16935
16936 2011-04-09  Bruno Haible  <bruno@clisp.org>
16937
16938         careadlinkat: Clarify specification.
16939         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16940         (careadlinkatcwd): Add comment.
16941         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16942
16943 2011-04-09  Bruno Haible  <bruno@clisp.org>
16944
16945         areadlinkat: Avoid link error on many platforms.
16946         * modules/areadlinkat (Depends-on): Add areadlink.
16947
16948 2011-04-09  Bruno Haible  <bruno@clisp.org>
16949
16950         allocator, careadlinkat: Fix double-inclusion guard.
16951         * lib/allocator.h: Fix double-inclusion guard.
16952         * lib/careadlinkat.h: Likewise.
16953
16954 2011-04-09  Bruno Haible  <bruno@clisp.org>
16955
16956         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16957         * lib/relocwrapper.c: Update dependencies hierarchy.
16958         * build-aux/install-reloc: Update list of files to be compiled.
16959         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16960         lib/allocator.[hc].
16961
16962 2011-04-08  Eric Blake  <eblake@redhat.com>
16963
16964         strftime: silence gnulib-tool warning
16965         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16966
16967 2011-04-08  Bruno Haible  <bruno@clisp.org>
16968
16969         verify: Fix syntax error with GCC 4.6 in C++ mode.
16970         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16971         (HAVE_STATIC_ASSERT): New macro.
16972         (verify_true, verify): Use 'static_assert' if it is supported and
16973         '_Static_assert' is not supported.
16974
16975 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16976
16977         allocator: New module.
16978         * modules/allocator, lib/allocator.c: New files.
16979         * lib/allocator.h (stdlib_allocator): New decl.
16980         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16981         Remove.  Do not include <stdlib.h>.
16982         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16983         * modules/careadlinkat (Files): Remove lib/allocator.h.
16984         (Depends-on): Add allocator.
16985
16986         stdlib: let modules use system malloc, realloc
16987         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16988         if !_GL_USE_STDLIB_ALLOC.
16989         (malloc, realloc): Limit this change to a smaller scope.
16990
16991         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16992         (malloc, realloc): Don't #undef; no longer needed.
16993         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16994         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16995         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16996         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16997         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16998         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16999         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17000         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17001
17002         careadlinkat: rename members to avoid problem
17003         * lib/allocator.h (struct allocator): Rename members from
17004         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17005         and realloc are #define'd.  Reported by Eric Blake in
17006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17007         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17008
17009 2011-04-08  Eric Blake  <eblake@redhat.com>
17010
17011         nonblocking: reduce dependency
17012         * tests/test-nonblocking.c: Only test sockets when in use.
17013         * modules/nonblocking-tests (Depends-on): Drop socket.
17014         (Makefile.am): Link even if sockets are not present.
17015         * modules/pipe2-tests (Makefile.am): Likewise.
17016         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17017
17018         pipe2: fix O_NONBLOCK support on mingw
17019         * modules/pipe2 (Depends-on): Add nonblocking.
17020         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17021         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17022         * tests/test-nonblocking.c (main): Likewise.
17023         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17024
17025         fcntl-h: fix O_ACCMODE on cygwin
17026         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17027         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17028
17029         pipe-filter: drop O_NONBLOCK workarounds
17030         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17031         * modules/pipe-filter-ii (Depends-on): Likewise.
17032         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17033
17034         nonblocking: provide O_NONBLOCK for mingw
17035         * modules/nonblocking (Depends-on): Add open.
17036         (configure.ac): Set new witness macro.
17037         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17038         * modules/fcntl-h (Makefile.am): Substitute it.
17039         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17040         nonblocking module is in use.
17041         * lib/nonblocking.c: Adjust portability test.
17042         * lib/open.c (open): Don't let native open see gnulib flag.
17043         * tests/test-fcntl-h.c (main): Enhance test.
17044         * tests/test-open.h (test_open): Likewise.
17045         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17046
17047         careadlinkat: fix compilation error on mingw
17048         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17049         within struct allocator.
17050
17051 2011-04-06  Eric Blake  <eblake@redhat.com>
17052
17053         binary-io: relicense under LGPLv2+
17054         * modules/binary-io (License): Relax to LGPLv2+.
17055         Requested for libvirt, and required by pipe2.
17056
17057 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17058
17059         verify: use _Static_assert if available
17060         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17061         (verify_true, verify): Use it if available.  This generates better
17062         diagnostics with GCC 4.6.0 and later.
17063
17064 2011-04-05  Bruno Haible  <bruno@clisp.org>
17065
17066         Remove leftover generated .h files after config.status changed.
17067
17068         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17069         GL_GENERATE_ALLOCA_H.
17070         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17071         GL_GENERATE_ALLOCA_H evaluates to false.
17072
17073         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17074         GL_GENERATE_ARGZ_H.
17075         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17076         evaluates to false.
17077
17078         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17079         GL_GENERATE_BYTESWAP_H.
17080         * modules/byteswap (Makefile.am): Remove byteswap.h if
17081         GL_GENERATE_BYTESWAP_H evaluates to false.
17082
17083         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17084         GL_GENERATE_ERRNO_H.
17085         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17086         evaluates to false.
17087
17088         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17089         GL_GENERATE_FLOAT_H.
17090         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17091         evaluates to false.
17092
17093         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17094         GL_GENERATE_FNMATCH_H.
17095         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17096         GL_GENERATE_FNMATCH_H evaluates to false.
17097
17098         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17099         GL_GENERATE_GLOB_H.
17100         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17101         evaluates to false.
17102
17103         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17104         automake conditional GL_GENERATE_ICONV_H.
17105         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17106         evaluates to false.
17107
17108         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17109         GL_GENERATE_NETINET_IN_H.
17110         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17111         GL_GENERATE_NETINET_IN_H evaluates to false.
17112
17113         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17114         conditional GL_GENERATE_PTHREAD_H.
17115         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17116         * modules/pthread (Makefile.am): Remove pthread.h if
17117         GL_GENERATE_PTHREAD_H evaluates to false.
17118
17119         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17120         GL_GENERATE_SCHED_H.
17121         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17122         evaluates to false.
17123
17124         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17125         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17126         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17127         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17128
17129         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17130         GL_GENERATE_STDARG_H.
17131         * modules/stdarg (Makefile.am): Remove stdarg.h if
17132         GL_GENERATE_STDARG_H evaluates to false.
17133
17134         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17135         GL_GENERATE_STDBOOL_H.
17136         * modules/stdbool (Makefile.am): Remove stdbool.h if
17137         GL_GENERATE_STDBOOL_H evaluates to false.
17138
17139         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17140         conditional GL_GENERATE_STDDEF_H.
17141         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17142         * modules/stddef (Makefile.am): Remove stddef.h if
17143         GL_GENERATE_STDDEF_H evaluates to false.
17144
17145         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17146         GL_GENERATE_STDINT_H.
17147         * modules/stdint (Makefile.am): Remove stdint.h if
17148         GL_GENERATE_STDINT_H evaluates to false.
17149
17150         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17151         GL_GENERATE_SYSEXITS_H.
17152         * modules/sysexits (Makefile.am): Remove sysexits.h if
17153         GL_GENERATE_SYSEXITS_H evaluates to false.
17154
17155         Reported by Karl Berry and Ralf Wildenhues.
17156
17157 2011-04-05  Bruno Haible  <bruno@clisp.org>
17158
17159         Ensure to rebuild generated .h files when config.status has changed.
17160         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17161         config.status.
17162         * modules/ctype (Makefile.am): Likewise.
17163         * modules/dirent (Makefile.am): Likewise.
17164         * modules/errno (Makefile.am): Likewise.
17165         * modules/fcntl-h (Makefile.am): Likewise.
17166         * modules/float (Makefile.am): Likewise.
17167         * modules/getopt-posix (Makefile.am): Likewise.
17168         * modules/glob (Makefile.am): Likewise.
17169         * modules/iconv-h (Makefile.am): Likewise.
17170         * modules/inttypes (Makefile.am): Likewise.
17171         * modules/langinfo (Makefile.am): Likewise.
17172         * modules/locale (Makefile.am): Likewise.
17173         * modules/math (Makefile.am): Likewise.
17174         * modules/netdb (Makefile.am): Likewise.
17175         * modules/netinet_in (Makefile.am): Likewise.
17176         * modules/poll-h (Makefile.am): Likewise.
17177         * modules/pthread (Makefile.am): Likewise.
17178         * modules/pty (Makefile.am): Likewise.
17179         * modules/sched (Makefile.am): Likewise.
17180         * modules/search (Makefile.am): Likewise.
17181         * modules/selinux-h (Makefile.am): Likewise.
17182         * modules/signal (Makefile.am): Likewise.
17183         * modules/spawn (Makefile.am): Likewise.
17184         * modules/stdarg (Makefile.am): Likewise.
17185         * modules/stdbool (Makefile.am): Likewise.
17186         * modules/stddef (Makefile.am): Likewise.
17187         * modules/stdint (Makefile.am): Likewise.
17188         * modules/stdio (Makefile.am): Likewise.
17189         * modules/stdlib (Makefile.am): Likewise.
17190         * modules/string (Makefile.am): Likewise.
17191         * modules/strings (Makefile.am): Likewise.
17192         * modules/sys_file (Makefile.am): Likewise.
17193         * modules/sys_ioctl (Makefile.am): Likewise.
17194         * modules/sys_select (Makefile.am): Likewise.
17195         * modules/sys_socket (Makefile.am): Likewise.
17196         * modules/sys_stat (Makefile.am): Likewise.
17197         * modules/sys_time (Makefile.am): Likewise.
17198         * modules/sys_times (Makefile.am): Likewise.
17199         * modules/sys_utsname (Makefile.am): Likewise.
17200         * modules/sys_wait (Makefile.am): Likewise.
17201         * modules/sysexits (Makefile.am): Likewise.
17202         * modules/termios (Makefile.am): Likewise.
17203         * modules/time (Makefile.am): Likewise.
17204         * modules/unistd (Makefile.am): Likewise.
17205         * modules/wchar (Makefile.am): Likewise.
17206         * modules/wctype-h (Makefile.am): Likewise.
17207         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17208
17209 2011-04-05  Bruno Haible  <bruno@clisp.org>
17210
17211         pipe2: Relicense under LGPLv2+.
17212         * modules/pipe2 (License): Change to LGPLv2+.
17213         Requested by Eric Blake, for libvirt.
17214
17215 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17216
17217         bootstrap: compute gnulib_extra_files after updating build_aux
17218         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17219         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17220
17221 2011-04-05  Eric Blake  <eblake@redhat.com>
17222
17223         bootstrap: preserve git whitelist item sorting
17224         * build-aux/bootstrap (sort_patterns): New function.
17225         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17226
17227 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17228
17229         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17230         sc_space_tab check.
17231
17232 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17233
17234         areadlink, areadlinkat: rewrite in terms of careadlinkat
17235         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17236         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17237         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17238         (malloc, realloc): Remove #undefs.
17239         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17240         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17241         readlink, ssize_t, stdint, unistd.
17242         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17243         areadlink, stdint.
17244
17245         careadlinkat: new module
17246         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17247         * modules/careadlinkat: New files, written by me with
17248         a review and feedback from Ben Pfaff in
17249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17250
17251 2011-04-01  Bruno Haible  <bruno@clisp.org>
17252
17253         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17254         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17255         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17256         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17257         Reported by Bruce Korb <bruce.korb@gmail.com>.
17258
17259 2011-04-01  Bruno Haible  <bruno@clisp.org>
17260
17261         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17262         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17263         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17264         * modules/wcpcpy (Depends-on): Add extensions.
17265         * modules/wcpncpy (Depends-on): Likewise.
17266         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17267         systems.
17268         * doc/posix-functions/wcpncpy.texi: Likewise.
17269         * doc/posix-functions/wcwidth.texi: Likewise.
17270
17271 2011-03-31  Eric Blake  <eblake@redhat.com>
17272
17273         nonblocking: fix mingw test failures
17274         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17275         non-blocking flag on regular file.
17276         (get_nonblocking_flag): Set errno on invalid fd.
17277         * tests/test-nonblocking.c (main): Avoid test failure on
17278         directories if fchdir is not active.
17279         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17280
17281 2011-03-31  Bruno Haible  <bruno@clisp.org>
17282
17283         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17284         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17285         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17286         Reported by Simon Josefsson <simon@josefsson.org>.
17287
17288 2011-03-31  Bruno Haible  <bruno@clisp.org>
17289         and Eric Blake  <eblake@redhat.com>
17290
17291         nonblocking: new module
17292         * modules/nonblocking: New module.
17293         * modules/nonblocking-tests: Likewise.
17294         * lib/nonblocking.h: New file.
17295         * lib/nonblocking.c: Likewise.
17296         * tests/test-nonblocking.c: New test.
17297         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17298
17299 2011-03-30  Bruno Haible  <bruno@clisp.org>
17300
17301         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17302         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17303         instead of 'printf' format for GCC >= 4.4.
17304         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17305         (fprintf, printf, vfprintf, vprintf): Declare with
17306         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17307         the system's vfprintf() function.
17308         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17309
17310 2011-03-30  Eric Blake  <eblake@redhat.com>
17311
17312         passfd: fix scoping bug
17313         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17314         before sendmsg/recvmsg.
17315
17316         passfd: standardize coding conventions
17317         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17318         can be learned at compile time.
17319         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17320         ifdefs.
17321         (sendfd, recvfd): Follow gnulib code conventions.
17322
17323         passfd: fix incorrect sendmsg arguments
17324         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17325         incorrect msg_controllen value.
17326         * modules/passfd-tests (Depends-on): Check for alarm.
17327         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17328         Reported by Bastien ROUCARIES.
17329
17330 2011-03-30  Bruno Haible  <bruno@clisp.org>
17331
17332         c-strcasestr: Relicense under LGPLv2+.
17333         * modules/c-strcasestr (License): Change to LGPLv2+.
17334         Requested by Eric Blake, for libvirt.
17335
17336 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17337
17338         * users.txt: Add libidn2.  Fix libtasn1 link.
17339
17340 2011-03-30  Jim Meyering  <meyering@redhat.com>
17341
17342         tests: readlink* ("",... fails with EINVAL on newer kernels
17343         readlink and readlinkat have typically failed with ENOENT for
17344         the invalid, empty file name,  "".  However, with the advent
17345         of linux-2.6.39, they fail with EINVAL.
17346         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17347         when operating on the empty file name.
17348         * tests/test-readlink.h (test_readlink): Likewise.
17349
17350 2011-03-29  Bruno Haible  <bruno@clisp.org>
17351
17352         Relicense some modules under LGPLv2+, for libidn2.
17353         * modules/array-mergesort (License): Change to LGPLv2+.
17354         * modules/c-strcaseeq (License): Likewise.
17355         * modules/striconveh (License): Likewise.
17356         * modules/striconveha (License): Likewise.
17357         * modules/uniconv/base (License): Likewise.
17358         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17359         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17360         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17361         * modules/unictype/base (License): Likewise.
17362         * modules/unictype/bidiclass-of (License): Likewise.
17363         * modules/unictype/category-M (License): Likewise.
17364         * modules/unictype/category-none (License): Likewise.
17365         * modules/unictype/category-of (License): Likewise.
17366         * modules/unictype/category-test (License): Likewise.
17367         * modules/unictype/category-test-withtable (License): Likewise.
17368         * modules/unictype/combining-class (License): Likewise.
17369         * modules/unictype/joiningtype-of (License): Likewise.
17370         * modules/unictype/scripts (License): Likewise.
17371         * modules/uninorm/base (License): Likewise.
17372         * modules/uninorm/canonical-decomposition (License): Likewise.
17373         * modules/uninorm/composition (License): Likewise.
17374         * modules/uninorm/decompose-internal (License): Likewise.
17375         * modules/uninorm/decomposition-table (License): Likewise.
17376         * modules/uninorm/nfc (License): Likewise.
17377         * modules/uninorm/nfd (License): Likewise.
17378         * modules/uninorm/u32-normalize (License): Likewise.
17379         * modules/unistr/base (License): Likewise.
17380         * modules/unistr/u32-cpy (License): Likewise.
17381         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17382         * modules/unistr/u32-to-u8 (License): Likewise.
17383         * modules/unistr/u32-uctomb (License): Likewise.
17384         * modules/unistr/u8-check (License): Likewise.
17385         * modules/unistr/u8-mblen (License): Likewise.
17386         * modules/unistr/u8-mbtouc (License): Likewise.
17387         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17388         * modules/unistr/u8-mbtoucr (License): Likewise.
17389         * modules/unistr/u8-prev (License): Likewise.
17390         * modules/unistr/u8-strlen (License): Likewise.
17391         * modules/unistr/u8-to-u32 (License): Likewise.
17392         * modules/unistr/u8-uctomb (License): Likewise.
17393         * modules/unitypes (License): Likewise.
17394         Requested by Simon Josefsson.
17395
17396 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17397
17398         lib-symbol-visibility: Add a notice.
17399         * modules/lib-symbol-visibility (Notice): New field.
17400
17401 2011-03-29  Bruno Haible  <bruno@clisp.org>
17402
17403         getaddrinfo: Doc fix.
17404         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17405         section "fixed in Gnulib".
17406
17407 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17408
17409         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17410         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17411
17412 2011-03-26  Bruno Haible  <bruno@clisp.org>
17413
17414         unictype/property-byname: Reduce the number of load-time relocations.
17415         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17416         (UC_PROPERTY_INDEX_*): New enumeration values.
17417         (uc_property_byname): Convert an index from the lookup table to an
17418         uc_property_t.
17419         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17420         values.
17421
17422 2011-03-26  Bruno Haible  <bruno@clisp.org>
17423
17424         unictype/property-byname: Allow omitted word separators and aliases.
17425         * lib/unictype/pr_byname.gperf: Add property names without word
17426         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17427         for 'space'.
17428
17429 2011-03-26  Bruno Haible  <bruno@clisp.org>
17430
17431         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17432         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17433         also hyphens to space.
17434         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17435         without spaces.
17436         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17437
17438 2011-03-26  Bruno Haible  <bruno@clisp.org>
17439
17440         unictype/joiningtype-byname: Recognize long names as well.
17441         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17442         a long name.
17443         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17444         unictype/joiningtype_byname.h.
17445         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17446         * lib/unictype/joiningtype_byname.gperf: New file.
17447         * modules/unictype/joiningtype-byname (Files): Add
17448         lib/unictype/joiningtype_byname.gperf.
17449         (Depends-on): Add gperf.
17450         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17451         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17452         long names.
17453
17454         Tests for module 'unictype/joiningtype-longname'.
17455         * modules/unictype/joiningtype-longname-tests: New file.
17456         * tests/unictype/test-joiningtype_longname.c: New file.
17457
17458         New module 'unictype/joiningtype-longname'.
17459         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17460         * lib/unictype/joiningtype_longname.c: New file.
17461         * modules/unictype/joiningtype-longname: New file.
17462         * modules/unictype/joiningtype-all (Depends-on): Add
17463         unictype/joiningtype-longname.
17464
17465 2011-03-26  Bruno Haible  <bruno@clisp.org>
17466
17467         unictype/bidiclass-byname: Recognize long names as well.
17468         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17469         name.
17470         * lib/unictype/bidi_byname.c: Include <string.h>,
17471         unictype/bidi_byname.h.
17472         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17473         * lib/unictype/bidi_byname.gperf: New file.
17474         * modules/unictype/bidiclass-byname (Files): Add
17475         lib/unictype/bidi_byname.gperf.
17476         (Depends-on): Add gperf.
17477         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17478         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17479         long names.
17480
17481         Tests for module 'unictype/bidiclass-longname'.
17482         * modules/unictype/bidiclass-longname-tests: New file.
17483         * tests/unictype/test-bidi_longname.c: New file.
17484
17485         New module 'unictype/bidiclass-longname'.
17486         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17487         * lib/unictype/bidi_longname.c: New file.
17488         * modules/unictype/bidiclass-longname: New file.
17489         * modules/unictype/bidiclass-all (Depends-on): Add
17490         unictype/bidiclass-longname.
17491
17492 2011-03-26  Bruno Haible  <bruno@clisp.org>
17493
17494         unictype/bidi*: Rename modules.
17495         * modules/unictype/bidiclass-all: Renamed from
17496         modules/unictype/bidicategory-all.
17497         * modules/unictype/bidiclass-name: Renamed from
17498         modules/unictype/bidiclass-name.
17499         (Description): Update.
17500         * modules/unictype/bidiclass-name-tests: Renamed from
17501         modules/unictype/bidicategory-name-tests.
17502         * modules/unictype/bidiclass-byname: Renamed from
17503         modules/unictype/bidicategory-byname.
17504         (Description): Update.
17505         * modules/unictype/bidiclass-byname-tests: Renamed from
17506         modules/unictype/bidicategory-byname-tests.
17507         * modules/unictype/bidiclass-of: Renamed from
17508         modules/unictype/bidicategory-of.
17509         (Description): Update.
17510         * modules/unictype/bidiclass-of-tests: Renamed from
17511         modules/unictype/bidicategory-of-tests.
17512         * modules/unictype/bidiclass-test: Renamed from
17513         modules/unictype/bidicategory-test.
17514         (Description): Update.
17515         * modules/unictype/bidiclass-test-tests: Renamed from
17516         modules/unictype/bidicategory-test-tests.
17517         * modules/unictype/bidicategory-all: New file, a simple redirection.
17518         * modules/unictype/bidicategory-name: Likewise.
17519         * modules/unictype/bidicategory-byname: Likewise.
17520         * modules/unictype/bidicategory-of: Likewise.
17521         * modules/unictype/bidicategory-test: Likewise.
17522         * modules/unictype/property-bidi-* (Dependencies): Update.
17523         * lib/unictype/bidi_*.c: Update comment.
17524
17525 2011-03-26  Bruno Haible  <bruno@clisp.org>
17526
17527         unictype/bidi*: Rename functions, part 2.
17528         * modules/unictype/bidicategory-name (configure.ac): Update required
17529         libunistring version.
17530         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17531
17532 2011-03-25  Bruno Haible  <bruno@clisp.org>
17533
17534         New module 'unictype/combining-class-all'.
17535         * modules/unictype/combining-class-all: New file.
17536
17537         Tests for module 'unictype/combining-class-byname'.
17538         * modules/unictype/combining-class-byname-tests: New file.
17539         * tests/unictype/test-combiningclass_byname.c: New file.
17540
17541         New module 'unictype/combining-class-byname'.
17542         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17543         * lib/unictype/combiningclass_byname.c: New file.
17544         * lib/unictype/combiningclass_byname.gperf: New file.
17545         * modules/unictype/combining-class-byname: New file.
17546
17547         Tests for module 'unictype/combining-class-longname'.
17548         * modules/unictype/combining-class-longname-tests: New file.
17549         * tests/unictype/test-combiningclass_longname.c: New file.
17550
17551         New module 'unictype/combining-class-longname'.
17552         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17553         * lib/unictype/combiningclass_longname.c: New file.
17554         * modules/unictype/combining-class-longname: New file.
17555
17556         Tests for module 'unictype/combining-class-name'.
17557         * modules/unictype/combining-class-name-tests: New file.
17558         * tests/unictype/test-combiningclass_name.c: New file.
17559
17560         New module 'unictype/combining-class-name'.
17561         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17562         * lib/unictype/combiningclass_name.c: New file.
17563         * modules/unictype/combining-class-name: New file.
17564
17565 2011-03-25  Bruno Haible  <bruno@clisp.org>
17566
17567         unictype/combining-class: Rename source files.
17568         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17569         of unictype/combining.h.
17570         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17571         Update.
17572         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17573         * modules/unictype/combining-class (Description): Fix.
17574         (Files, Makefile.am): Update.
17575         * tests/unictype/test-combiningclass.c: Renamed from
17576         tests/unictype/test-combining.c.
17577         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17578
17579 2011-03-25  Bruno Haible  <bruno@clisp.org>
17580
17581         unictype: Update list of canonical combining classes.
17582         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17583
17584 2011-03-25  Bruno Haible  <bruno@clisp.org>
17585
17586         unictype/category-byname: Recognize long names as well.
17587         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17588         a long name.
17589         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17590         unictype/categ_byname.h.
17591         (UC_CATEGORY_INDEX_*): New enumeration values.
17592         (uc_general_category_byname): Use uc_general_category_lookup and
17593         convert from index to value.
17594         * lib/unictype/categ_byname.gperf: New file.
17595         * modules/unictype/category-byname (Files): Add
17596         lib/unictype/categ_byname.gperf.
17597         (Depends-on): Add gperf.
17598         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17599         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17600         long names.
17601
17602         Tests for module 'unictype/category-longname'.
17603         * modules/unictype/category-longname-tests: New file.
17604         * tests/unictype/test-categ_longname.c: New file.
17605
17606         New module 'unictype/category-longname'.
17607         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17608         * lib/unictype/categ_longname.c: New file.
17609         * modules/unictype/category-longname: New file.
17610         * modules/unictype/category-all (Depends-on): Add it.
17611
17612 2011-03-25  Bruno Haible  <bruno@clisp.org>
17613
17614         Tests for module 'unictype/category-LC'.
17615         * modules/unictype/category-LC-tests: New file.
17616         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17617
17618         New module 'unictype/category-LC'.
17619         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17620         (UC_CATEGORY_LC): New declaration.
17621         (UC_CASED_LETTER): New macro.
17622         * lib/gen-uni-tables.c (is_category_LC): New function.
17623         (output_categories): Also handle category LC.
17624         (UC_CATEGORY_MASK_LC): New enumeration value.
17625         (general_category_byname): Also handle category LC.
17626         * lib/unictype/categ_LC.c: New file.
17627         * lib/unictype/categ_LC.h: New file, automatically generated.
17628         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17629         category LC.
17630         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17631         * modules/unictype/category-LC: New file.
17632         * modules/unictype/category-byname (Depends-on): Add
17633         unictype/category-LC.
17634         * modules/unictype/category-all (Depends-on): Likewise.
17635
17636 2011-03-25  Eric Blake  <eblake@redhat.com>
17637
17638         xmalloc: revert yesterday's regression
17639         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17640         realloc's underlying behavior (allowing allocation of zero-size
17641         objects, especially if malloc-gnu is also in use).
17642
17643 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17644
17645         maint.mk: add missing version to VC-tag
17646         * top/maint.mk: git tag was missing actual tag name; add it.
17647
17648         valgrind: do leak checking, and exit with code 1 on error (not 0)
17649         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17650         to VALGRIND.
17651
17652 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17653
17654         posix-modules: say what it does.
17655         * posix-modules: Add a line to the --help output saying what it does.
17656
17657 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17658
17659         xmalloc: Do not leak if underlying realloc is C99 compatible.
17660         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17661         This avoids a leak on C99-based systems.  See
17662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17663
17664 2011-03-24  Eric Blake  <eblake@redhat.com>
17665
17666         realloc: document portability problem
17667         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17668         passing 0 size to realloc.
17669
17670 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17671
17672         doc: update users.txt
17673         * users.txt: Add cvsps, tmpwatch
17674
17675 2011-03-23  Matt Rice  <ratmice@gmail.com>
17676
17677         doc: update users.txt
17678         * users.txt: Add gdb.
17679
17680 2011-03-23  Jim Meyering  <meyering@redhat.com>
17681
17682         doc: update users.txt
17683         Looking through matches up to the following URL (there are still
17684         several more pages), I found several projects that use gnulib:
17685         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17686         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17687         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17688
17689 2011-03-22  Bruno Haible  <bruno@clisp.org>
17690
17691         unictype/bidi*: Rename functions.
17692         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17693         uc_bidi_class, uc_is_bidi_class): New declarations.
17694         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17695         uc_bidi_category_byname.
17696         (uc_bidi_category_byname): New function.
17697         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17698         u_bidi_category_name.
17699         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17700         (uc_bidi_category_name): New function.
17701         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17702         uc_bidi_category.
17703         (uc_bidi_category): New function.
17704         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17705         uc_is_bidi_category. Invoke uc_bidi_class.
17706         (uc_is_bidi_category): New function.
17707         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17708         instead of uc_bidi_category_byname.
17709         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17710         instead of uc_bidi_category_name.
17711         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17712         uc_bidi_category.
17713         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17714         instead of uc_is_bidi_category.
17715
17716 2011-03-21  Bruno Haible  <bruno@clisp.org>
17717
17718         New module 'unictype/joininggroup-all'.
17719         * modules/unictype/joininggroup-all: New file.
17720
17721         Tests for module 'unictype/joininggroup-of'.
17722         * modules/unictype/joininggroup-of-tests: New file.
17723         * tests/unictype/test-joininggroup_of.c: New file.
17724         * tests/unictype/test-joininggroup_of.h: New file, automatically
17725         generated by gen-uni-tables.
17726
17727         New module 'unictype/joininggroup-of'.
17728         * modules/unictype/joininggroup-of: New file.
17729         * lib/unictype/joininggroup_of.c: New file.
17730         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17731         gen-uni-tables.
17732
17733         Tests for module 'unictype/joininggroup-byname'.
17734         * modules/unictype/joininggroup-byname-tests: New file.
17735         * tests/unictype/test-joininggroup_byname.c: New file.
17736
17737         New module 'unictype/joininggroup-byname'.
17738         * modules/unictype/joininggroup-byname: New file.
17739         * lib/unictype/joininggroup_byname.c: New file.
17740         * lib/unictype/joininggroup_byname.gperf: New file.
17741
17742         Tests for module 'unictype/joininggroup-name'.
17743         * modules/unictype/joininggroup-name-tests: New file.
17744         * tests/unictype/test-joininggroup_name.c: New file.
17745
17746         New module 'unictype/joininggroup-name'.
17747         * modules/unictype/joininggroup-name: New file.
17748         * lib/unictype/joininggroup_name.c: New file.
17749         * lib/unictype/joininggroup_name.h: New file.
17750
17751         New module 'unictype/joiningtype-all'.
17752         * modules/unictype/joiningtype-all: New file.
17753
17754         Tests for module 'unictype/joiningtype-of'.
17755         * modules/unictype/joiningtype-of-tests: New file.
17756         * tests/unictype/test-joiningtype_of.c: New file.
17757         * tests/unictype/test-joiningtype_of.h: New file, automatically
17758         generated by gen-uni-tables.
17759
17760         New module 'unictype/joiningtype-of'.
17761         * modules/unictype/joiningtype-of: New file.
17762         * lib/unictype/joiningtype_of.c: New file.
17763         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17764         gen-uni-tables.
17765
17766         Tests for module 'unictype/joiningtype-byname'.
17767         * modules/unictype/joiningtype-byname-tests: New file.
17768         * tests/unictype/test-joiningtype_byname.c: New file.
17769
17770         New module 'unictype/joiningtype-byname'.
17771         * modules/unictype/joiningtype-byname: New file.
17772         * lib/unictype/joiningtype_byname.c: New file.
17773
17774         Tests for module 'unictype/joiningtype-name'.
17775         * modules/unictype/joiningtype-name-tests: New file.
17776         * tests/unictype/test-joiningtype_name.c: New file.
17777
17778         New module 'unictype/joiningtype-name'.
17779         * modules/unictype/joiningtype-name: New file.
17780         * lib/unictype/joiningtype_name.c: New file.
17781
17782         unictype: Add support for Arabic shaping properties.
17783         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17784         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17785         declarations.
17786         (UC_JOINING_GROUP_*): New enumeration values.
17787         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17788         declarations.
17789         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17790         (unicode_joining_type): New variable.
17791         (UC_JOINING_GROUP_*): New enumeration values.
17792         (unicode_joining_group): New variable.
17793         (fill_arabicshaping, joining_type_as_c_identifier,
17794         output_joining_type_test, output_joining_type,
17795         joining_group_as_c_identifier, output_joining_group_test,
17796         output_joining_group): New functions.
17797         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17798         fill_arabicshaping and output_joining_type_test, output_joining_type,
17799         output_joining_group_test, output_joining_group.
17800         Reported by Simon Josefsson.
17801
17802 2011-03-21  Jim Meyering  <meyering@redhat.com>
17803
17804         strftime: fix a bug in yesterday's change
17805         * lib/strftime.c (add): Accommodate width's initial value of -1.
17806         Otherwise, nstrftime would copy uninitialized data into
17807         the result buffer.
17808
17809 2011-03-21  Jim Meyering  <meyering@redhat.com>
17810
17811         tests: add strftime-tests module
17812         * tests/test-strftime.c: New file.
17813         * modules/strftime-tests: New module.
17814
17815 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17816
17817         strftime: don't assume a byte count fits in 'int'
17818         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17819         found this problem by static analysis, using gcc -Wstrict-overflow
17820         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17821         on an integer overflow having undefined behavior, but it turns out
17822         that the argument is a size, which might not fit in 'int' anyway,
17823
17824 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         stdio: don't require ignore_value around fwrite
17827
17828         This patch works around libc bug 11959
17829         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17830         Without this patch, applications must often write
17831         ignore_value (fwrite (...)) even though the ignore_value is
17832         not helpful here.  It's common to write many objects, using
17833         fwrite/printf/etc., and then use ferror to detect output error.
17834
17835         I considered making this patch optional, but decided against it,
17836         because libc is obviously being inconsistent here: there is no
17837         reason libc should insist that user code must inspect fwrite
17838         return's value without also insisting that it inspect printf's,
17839         putchar's, etc.  If user code wants to have a strict style where
17840         all these functions' values are checked (so that ferror need not
17841         be checked), we could add support for that style in a new gnulib
17842         module, but in the meantime it's better to be consistent and to
17843         support common usage.
17844
17845         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17846         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17847         that we are compiling in checking mode, and if not C++, and
17848         if not already wrapping fwrite for some other reason.
17849         (fwrite): #define to rpl_fwrite if the latter is defined.
17850
17851 2011-03-20  Bruno Haible  <bruno@clisp.org>
17852
17853         verror: Fix compilation error introduced on 2011-02-13.
17854         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17855         instead of __attribute__.
17856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17857
17858 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17859             Bruno Haible  <bruno@clisp.org>
17860
17861         socklen: do not depend on sys_socket
17862         While trying to modify Emacs to use gnulib's socklen module,
17863         I discovered a circular dependency: socklen depends on sys_socket
17864         and vice versa.  Emacs can use socklen, but it does not need
17865         sys_socket because it has its own substitute for sys/socket.h.
17866         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17867         gl_TYPE_SOCKLEN_T.
17868         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17869         gl_PREREQ_SYS_H_SOCKET.
17870         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17871         gl_PREREQ_SYS_H_SOCKET.
17872         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17873         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17874         * modules/socklen (Depends-on): Do not depend on sys_socket.
17875         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17876
17877 2011-03-20  Jim Meyering  <meyering@redhat.com>
17878
17879         maint.mk: sort file names *after* new transformation
17880         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17881         prefix would have led to an unwarranted failure in GNU parted.
17882         Sort after that transformation.
17883
17884 2011-03-19  Jim Meyering  <meyering@redhat.com>
17885
17886         maint.mk: fix po-file syntax-check rule
17887         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17888         Patch by Bruno Haible.
17889
17890 2011-03-19  Bruno Haible  <bruno@clisp.org>
17891
17892         socklen: Update comment.
17893         * m4/socklen.m4: Update comment about platforms.
17894
17895 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17896             Bruno Haible  <bruno@clisp.org>
17897
17898         inet_ntop, inet_pton: Simplify.
17899         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17900         documented to provide socklen_t and we already depend on sys_socket.
17901         * modules/inet_pton (Depends-on): Likewise.
17902         * lib/arpa_inet.in.h: Adjust comment.
17903
17904 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17905             Bruno Haible  <bruno@clisp.org>
17906
17907         netdb: Simplify.
17908         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17909         documented to provide socklen_t and we already depend on sys_socket.
17910         * lib/netdb.in.h: Adjust comment.
17911
17912 2011-03-19  Bruno Haible  <bruno@clisp.org>
17913
17914         sys_socket, netdb: Document problem with socklen_t.
17915         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17916         platforms.
17917         * doc/posix-headers/netdb.texi: Likewise.
17918
17919 2011-03-18  Eric Blake  <eblake@redhat.com>
17920
17921         maint.mk: let po check work in VPATH build
17922         * top/maint.mk (po_file): Allow cfg.mk override.
17923         (sc_po_check): Allow VPATH use.
17924         Reported by Jiri Denemark.
17925
17926 2011-03-16  Jim Meyering  <meyering@redhat.com>
17927
17928         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17929         Before, you would have had to create one .x-sc_ file per rule in order
17930         to exempt offending files.  Now, you may instead use a Make variable --
17931         usually defined in cfg.mk -- whose name identifies the affected rule.
17932         * top/maint.mk (_sc_excl): Define.
17933         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17934         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17935
17936 2011-03-13  Bruno Haible  <bruno@clisp.org>
17937
17938         ignore-value tests: Avoid warnings.
17939         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17940         empty for gcc < 3.4.
17941
17942 2011-03-13  Bruno Haible  <bruno@clisp.org>
17943
17944         passfd: Fix link error on Solaris.
17945         * modules/passfd (Description): Correct.
17946         (Depends-on): Add socketlib.
17947         (Link): New section.
17948         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17949
17950 2011-03-13  Bruno Haible  <bruno@clisp.org>
17951
17952         passfd: Fix link error on AIX 5.2.
17953         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17954
17955 2011-03-13  Bruno Haible  <bruno@clisp.org>
17956
17957         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17958         * lib/sys_socket.in.h: Include <stddef.h>.
17959         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17960         CMSG_FIRSTHDR. Remove unused variable.
17961
17962 2011-03-13  Bruno Haible  <bruno@clisp.org>
17963
17964         passfd: Fix compilation error on OpenBSD.
17965         * lib/passfd.c: Include <sys/uio.h>.
17966
17967 2011-03-13  Bruno Haible  <bruno@clisp.org>
17968
17969         passfd test: Fix warnings.
17970         * tests/test-passfd.c: Include <sys/wait.h>.
17971         (main): Fix typo.
17972
17973 2011-03-13  Bruno Haible  <bruno@clisp.org>
17974
17975         passfd module, part 4, tweaks.
17976         * tests/test-passfd.c: Reorder includes.
17977         (main): Fix perror and printf calls.
17978
17979 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17980
17981         passfd module, part 4.
17982         * modules/passfd-tests: New file.
17983         * tests/test-passfd.c: New file.
17984
17985 2011-03-13  Jim Meyering  <meyering@redhat.com>
17986
17987         Makefile: rely on GNU make; derive syntax-check rule names
17988         Rather than requiring that each sc_ rule be listed as a dependent
17989         of "check", use features of GNU make to derive the list.
17990         * Makefile (syntax-check-rules): Define.
17991         (check): Depend on the new variable, not the hard-coded list.
17992
17993 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17994             Bruno Haible  <bruno@clisp.org>
17995
17996         passfd module, part 3.
17997         * lib/passfd.h (recvfd): Add a flags argument.
17998         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17999         (recvfd): Add a flags argument.
18000         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18001         exists.
18002         * modules/passfd (Depends-on): Add cloexec.
18003         Suggested by Eric Blake.
18004
18005 2011-03-13  Bruno Haible  <bruno@clisp.org>
18006
18007         passfd module, part 2, tweaks.
18008         * modules/passfd (Files): Reorder.
18009         (Depends-on): Remove errno.
18010         (Include): Remove <sys/socket.h>, <sys/un.h>.
18011         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18012         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18013         specification header. Include <sys/socket.h> always. Don't include
18014         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18015         (sendfd): Clarify that it sets errno when it fails.
18016         (recvfd): Fix specification.
18017
18018 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18019
18020         passfd module, part 2.
18021         * modules/passfd: New file.
18022         * lib/passfd.h: New file.
18023         * lib/passfd.c: New file.
18024
18025 2011-03-12  Bruno Haible  <bruno@clisp.org>
18026
18027         wcswidth, mbswidth: Avoid integer overflow.
18028         * lib/wcswidth.c: Include <limits.h>.
18029         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18030         * lib/mbswidth.c: Include <limits.h>.
18031         (mbsnwidth): Avoid 'int' overflow.
18032         Reported by Jim Meyering.
18033
18034 2011-03-12  Bruno Haible  <bruno@clisp.org>
18035
18036         futimens, utimensat: Avoid endless recursion on Solaris 10.
18037         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18038         Solaris.
18039         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18040         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18041
18042 2011-03-11  Jim Meyering  <meyering@redhat.com>
18043
18044         maint.mk: relax a regexp to accommodate other formatting styles
18045         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18046         between "ngettext" and the following "(".
18047
18048 2011-03-11  Pádraig Brady <P@draigBrady.com>
18049
18050         maint.mk: suppress a false positive warning
18051         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18052         diagnostics are marked with ngettext.
18053
18054 2011-03-10  Eric Blake  <eblake@redhat.com>
18055
18056         wchar: add explicit dependencies, for Tru64
18057         * modules/mbmemcasecoll (Depends-on): Add wchar.
18058         * modules/mbtowc (Depends-on): Likewise.
18059         * modules/vasnprintf (Depends-on): Likewise.
18060         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18061         * modules/wctomb (Depends-on): Likewise.
18062         Reported by Peter O'Gorman.
18063
18064 2011-03-08  Bruno Haible  <bruno@clisp.org>
18065
18066         passfd module, part 1, tweaks.
18067         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18068         Improve indentation. Improve AC_MSG_CHECKING messages.
18069         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18070         gl_SOCKET_FAMILIES.
18071
18072 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18073
18074         passfd module, part 1.
18075         * m4/afunix.m4: New file.
18076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18077         sockets.
18078
18079 2011-03-08  Bruno Haible  <bruno@clisp.org>
18080
18081         regex-quote: New API.
18082         * lib/regex-quote.h: Include <stdbool.h>.
18083         (struct regex_quote_spec): New type.
18084         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18085         New declarations.
18086         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18087         'const struct regex_quote_spec *' argument.
18088         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18089         (pcre_special): New constant.
18090         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18091         New functions.
18092         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18093         'const struct regex_quote_spec *' argument.
18094         * modules/regex-quote (Depends-on): Add stdbool.
18095         * tests/test-regex-quote.c (check): Update for new API. Add test for
18096         anchored results.
18097         * NEWS: Mention the API change.
18098         Reported by Reuben Thomas and Eric Blake.
18099
18100 2011-03-06  Bruno Haible  <bruno@clisp.org>
18101
18102         regex-quote: Fix creation of POSIX extended regular expressions.
18103         * lib/regex-quote.c (ere_special): Add grouping and alternation
18104         operators.
18105
18106 2011-03-05  Bruno Haible  <bruno@clisp.org>
18107
18108         doc: Improve doc regarding autopoint vs. gnulib.
18109         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18110         disable autopoint while running autoreconf.
18111         Suggested by Ralf Wildenhues.
18112
18113 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18114
18115         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18116         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18117
18118 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18119
18120         parse-duration: remove xalloc.h dependency
18121         * lib/parse-duration.c (parse_period): handle NULL return from
18122         strdup instead of calling xstrdup().
18123         * modules/parse-duration: remove "xalloc" dependency
18124
18125 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18126
18127         bootstrap: honor m4_base when running aclocal
18128         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18129
18130 2011-03-02  Jim Meyering  <meyering@redhat.com>
18131
18132         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18133         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18134         on request from Matt Booth.
18135
18136 2011-03-01  Eric Blake  <eblake@redhat.com>
18137
18138         test-link: work on Hurd
18139         * tests/test-link.h (test_link): Hurd rejects linking directories
18140         with EISDIR instead of the POSIX-mandated EPERM.
18141
18142 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18143
18144         stdio: simplify by moving files to printf-posix, sigpipe
18145         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18146         since this symbol is needed only if printf is replaced.
18147         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18148         Require gl_ASM_SYMBOL_PREFIX.
18149         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18150         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18151         (Depends-on): Add 'raise'.
18152         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18153         * modules/stdio (Files): Remove lib/stdio-write.c,
18154         m4/asm-underscore.m4.
18155         (Depends-on): Remove 'raise'.
18156
18157         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18158         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18159         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18160         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18161
18162 2011-02-28  Bruno Haible  <bruno@clisp.org>
18163
18164         localcharset: Assume ANSI C behaviour of free().
18165         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18166         calling free().
18167         Suggested by Simon Josefsson <simon@josefsson.org>.
18168
18169 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18170             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18171             Bruno Haible  <bruno@clisp.org>  (tiny change)
18172
18173         On Cygwin, use /proc file system instead of win32 API.
18174         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18175         Win32 file names.
18176         (DllMain): Simplify by removing Cygwin specific code.
18177         (find_shared_library_fullname): Use Linux specific implementation also
18178         for Cygwin.
18179         (get_shared_library_fullname): Update accordingly.
18180         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18181         Win32 file names.
18182         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18183         Cygwin specific code.
18184
18185 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18186             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18187
18188         Fix OpenMP flag detection for various Fortran compilers.
18189         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18190         OpenMP-conditional compilation construct, to force compile
18191         failure with missing OpenMP flag.
18192         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18193
18194 2011-02-25  Eric Blake  <eblake@redhat.com>
18195
18196         strstr: expand test coverage
18197         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18198         compilation.
18199         * tests/test-memmem.c (main): Duplicate tests.
18200         * tests/test-strcasestr.c (main): Likewise.
18201         * tests/test-c-strcasestr.c (main): Likewise.
18202
18203 2011-02-25  Jim Meyering  <meyering@redhat.com>
18204
18205         maint.mk: detect missing-NL-at-EOF, too
18206         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18207         it also detects when a file lacks a newline at EOF.
18208         (require_exactly_one_NL_at_EOF_): Renamed from
18209         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18210         since people may well have .x-sc_... file names tied to the
18211         existing name.  Suggested by Eric Blake.
18212
18213 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18214
18215         dirname: move m4/dos.m4 functionality into lib/dosname.h
18216
18217         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18218         extracts symbols from it, puts them into config.h; but it's much
18219         easier to use the symbols directly.  filename.h already does this,
18220         but it disagrees with dos.m4 in some respects.  This patch
18221         introduces a different include file dosname.h that packages up
18222         dos.m4, and then later we can work on merging filename.h and
18223         dosname.h.  Applications that need only the easy-to-configure
18224         symbols should consider including dosname.h rather than dirname.h.
18225         * NEWS: Mention incompatible changes.
18226         * m4/dos.m4: Remove.
18227         * lib/dosname.h, modules/dosname: New files.
18228         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18229         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18230         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18231         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18232         Include dosname.h, not dirname.h.
18233         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18234         Include dosname.h, for definitions of symbols like ISSLASH
18235         that used to be in config.h.
18236         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18237         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18238         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18239         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18240         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18241         * modules/rmdir (Files): Likewise.
18242         * modules/stat (Files): Likewise.
18243         * modules/unlink (Files): Likewise.
18244         * modules/dirname-lgpl (Depends-on): Add dosname.
18245         * modules/lstat (Depends-on): Likewise.
18246         * modules/openat (Depends-on): Likewise.
18247         * modules/rmdir (Depends-on): Likewise.
18248         * modules/savewd (Depends-on): Likewise.
18249         * modules/stat (Depends-on): Likewise.
18250         * modules/unlink (Depends-on): Likewise.
18251         * modules/openat (Depends-on): Remove dirname-lgpl.
18252         * modules/savewd (Depends-on): Likewise.
18253         * tests/test-dirname.c: Do not use removed symbols like
18254         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18255         the remaining symbols, e.g., ISSLASH ('\\').
18256
18257 2011-02-25  Eric Blake  <eblake@redhat.com>
18258
18259         strstr: revert patches that introduced bug and pessimization
18260         * lib/str-two-way.h: Add another reference.
18261         (two_way_short_needle, two_way_long_needle): Revert changes from
18262         2011-02-24; they pessimize search speed.
18263         (critical_factorization): Partially revert changes from
18264         2010-06-22; they violate the requirement that the left half of the
18265         needle be smaller than the period of the needle.
18266
18267 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18268
18269         filenamecat: remove unnecessary dependency on dirname-lgpl
18270         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18271         is no direct dependency, just an indirect one via filenamecat-lgpl.
18272
18273         remove: remove unnecessary use of m4/dos.m4
18274         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18275         * modules/remove (FILES): Remove m4/dos.m4.
18276
18277         * lib/openat-proc.c: Don't include dirname.h; not needed.
18278
18279         backupfile: remove unnecessary use of m4/dos.m4
18280         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18281         of its symbols are used by the backupfile code.  backupfile.c does
18282         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18283         for the rare case of programs that want all their backup file
18284         names to live within 8+3 limits, and dos.m4 doesn't address that.
18285         * modules/backupfile (Files): Remove m4/dos.m4.
18286
18287 2011-02-24  Jim Meyering  <meyering@redhat.com>
18288
18289         strstr: fix a bug whereby strstr would mistakenly return NULL
18290         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18291         in period calculation.
18292         (two_way_long_needle): Likewise.
18293         The original problem was reported by Mike Stump in
18294         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18295         Ralf Wildenhues provided the short needle and haystack.
18296         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18297         Add a more involved test to trigger the bug in two_way_long_needle.
18298
18299 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18300
18301         gnulib-tool: remove use of bold display in help screen
18302         * gnulib-tool (func_usage): Do not use bold display anymore in the
18303         help screen.  That was just meant to be a temporary emphasis for a
18304         backward-incompatible change.
18305
18306 2011-02-23  Bruno Haible  <bruno@clisp.org>
18307
18308         Fix misindentation of preprocessor directives.
18309         * lib/argp-namefrob.h: Reindent preprocessor directives.
18310         * lib/getopt_int.h (struct _getopt_data): Likewise.
18311         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18312         * lib/vasnprintf.c (decode_long_double): Likewise.
18313         * tests/test-argmatch.c: Insert blank lines, for clarity.
18314         * tests/test-exclude.c: Likewise.
18315
18316 2011-02-22  Bruno Haible  <bruno@clisp.org>
18317
18318         ioctl: Fix for MacOS X in 64-bit mode.
18319         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18320         value.
18321         Suggested by Eric Blake.
18322         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18323
18324 2011-02-22  Jim Meyering  <meyering@redhat.com>
18325
18326         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18327         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18328         in lib/.
18329
18330 2011-02-22  Eric Blake  <eblake@redhat.com>
18331
18332         maint: avoid any CDPATH issue
18333         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18334
18335         maint: adjust cpp indentation for my modules, as well
18336         * Makefile (sc_cpp_indent_check): Add my name.
18337         * lib/fbufmode.c: Filter through cppi.
18338         * lib/fpurge.c: Likewise.
18339         * lib/freadable.c: Likewise.
18340         * lib/freading.c: Likewise.
18341         * lib/fwritable.c: Likewise.
18342         * lib/fwriting.c: Likewise.
18343         * lib/sigaction.c: Likewise.
18344
18345 2011-02-22  Jim Meyering  <meyering@redhat.com>
18346
18347         maint: adjust cpp indentation to reflect nesting depth
18348         I.e., in a block of code that begins with an unnested "#if",
18349         put one space between the "#" in column 1 and following token.
18350         For example,
18351         -#include <sys/vfs.h>
18352         +# include <sys/vfs.h>
18353         Do this only in .c files that are part of a module I maintain.
18354         * lib/linkat.c: Filter through cppi.
18355         * lib/nanosleep.c: Likewise.
18356         * lib/openat.c: Likewise.
18357         * lib/openat-die.c: Likewise.
18358         * lib/dup3.c: Likewise.
18359         * lib/fchownat.c: Likewise.
18360         * lib/flock.c: Likewise.
18361         * lib/fsync.c: Likewise.
18362         * lib/fts.c: Likewise.
18363         * lib/getpass.c: Likewise.
18364         * lib/gettimeofday.c: Likewise.
18365         * lib/userspec.c: Likewise.
18366         * Makefile (sc_cpp_indent_check): New rule, to check this.
18367
18368 2011-02-22  Bruno Haible  <bruno@clisp.org>
18369
18370         New module 'wctomb'.
18371         * lib/stdlib.in.h (wctomb): New declaration.
18372         * lib/wctomb.c: New file.
18373         * lib/wctomb-impl.h: New file.
18374         * m4/wctomb.m4: New file.
18375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18376         REPLACE_WCTOMB.
18377         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18378         REPLACE_WCTOMB.
18379         * modules/wctomb: New file.
18380         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18381         * doc/posix-functions/wctomb.texi: Mention the new module.
18382         * modules/wctob (Depends-on): Add wctomb.
18383
18384 2011-02-22  Bruno Haible  <bruno@clisp.org>
18385
18386         New module 'mbtowc'.
18387         * lib/stdlib.in.h (mbtowc): New declaration.
18388         * lib/mbtowc.c: New file.
18389         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18390         * m4/mbtowc.m4: New file.
18391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18392         REPLACE_MBTOWC.
18393         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18394         REPLACE_MBTOWC.
18395         * modules/mbtowc: New file.
18396         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18397         * doc/posix-functions/mbtowc.texi: Mention the new module.
18398         * modules/btowc (Depends-on): Add mbtowc.
18399
18400 2011-02-22  Bruno Haible  <bruno@clisp.org>
18401
18402         wcrtomb: Add more tests for native Windows platforms.
18403         * tests/test-wcrtomb-w32-1.sh: New file.
18404         * tests/test-wcrtomb-w32-2.sh: New file.
18405         * tests/test-wcrtomb-w32-3.sh: New file.
18406         * tests/test-wcrtomb-w32-4.sh: New file.
18407         * tests/test-wcrtomb-w32-5.sh: New file.
18408         * tests/test-wcrtomb-w32.c: New file.
18409         * modules/wcrtomb-tests (Files): Add them.
18410         (Makefile.am): Arrange to run these tests.
18411         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18412         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18413
18414 2011-02-20  Bruno Haible  <bruno@clisp.org>
18415
18416         wcrtomb: Enhance test.
18417         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18418
18419 2011-02-20  Bruno Haible  <bruno@clisp.org>
18420
18421         mbrtowc: Tiny optimization.
18422         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18423
18424 2011-02-20  Jim Meyering  <meyering@redhat.com>
18425
18426         test-exclude.c: remove unmatched #endif
18427         * tests/test-exclude.c: Remove stray #endif, left over from
18428         the change of a week ago.
18429
18430 2011-02-19  Jim Meyering  <meyering@redhat.com>
18431
18432         git-version-gen: skip "-dirty" check when appropriate
18433         * build-aux/git-version-gen: Don't run any git commands when the
18434         version string comes from .tarball-version.  Prior to this, we
18435         would run git update-index --refresh even from a just-unpacked
18436         tarball directory, and that could affect a .git/ directory in a
18437         parent of the build directory.  Reported by Mike Frysinger.
18438
18439 2011-02-19  Bruno Haible  <bruno@clisp.org>
18440
18441         unictype/property-byname: Reduce the size of the 'data' segment.
18442         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18443
18444 2011-02-19  Bruno Haible  <bruno@clisp.org>
18445
18446         unictype/scripts: Reduce the size of the 'data' segment.
18447         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18448         '%pic'.
18449         * lib/unictype/scripts_byname.gperf: Regenerated.
18450
18451 2011-02-19  Bruno Haible  <bruno@clisp.org>
18452
18453         stdint: Update documentation.
18454         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18455
18456 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18457
18458         stdint: omit redundant check for wchar.h
18459         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18460         always tests whether wchar.h exists, so remove the now-redundant test.
18461
18462 2011-02-18  Bruno Haible  <bruno@clisp.org>
18463
18464         stdint: Cut dependency to module 'wchar'.
18465         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18466         include the necessary prerequisites.
18467         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18468         * modules/stdint (Depends-on): Remove wchar.
18469         (Makefile.am): Substitute HAVE_WCHAR_H.
18470         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18471
18472 2011-02-18  Eric Blake  <eblake@redhat.com>
18473
18474         longlong: skip, rather than fail, on cross-compilation
18475         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18476         when cross-compiling; regression from 2011-02-16.
18477
18478 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18479
18480         * NEWS: Mention 2011-02-08 change to stdlib.
18481
18482 2011-02-17  Bruno Haible  <bruno@clisp.org>
18483
18484         getloadavg: Add comments about platforms.
18485         * m4/getloadavg.m4: Add comment.
18486         * lib/getloadavg.c: Likewise.
18487
18488 2011-02-17  Bruno Haible  <bruno@clisp.org>
18489
18490         getloadavg: Fix link error on Solaris 2.6.
18491         * modules/getloadavg (Link): New section.
18492         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18493         linking test-getloadavg.
18494         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18495         getloadavg.
18496
18497 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18498
18499         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18500         It was 'int', but this doesn't match the IRIX 6.5 manual.
18501         Suggested by Bruno Haible in
18502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18503
18504 2011-02-17  Bruno Haible  <bruno@clisp.org>
18505
18506         havelib: Fix comments.
18507         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18508         change.
18509
18510 2011-02-17  Bruno Haible  <bruno@clisp.org>
18511
18512         havelib: Update config.rpath.
18513         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18514
18515 2011-02-17  Bruno Haible  <bruno@clisp.org>
18516
18517         getloadavg test: Add some plausibility checks.
18518         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18519         is improbable.
18520
18521 2011-02-16  Eric Blake  <eblake@redhat.com>
18522
18523         maintainer-makefile: make syntax-check a no-op from tarballs
18524         * top/maint.mk (no-vc-detected): New rule.
18525         (local-checks-available): Use it to avoid hanging if someone tries
18526         'make syntax-check' from a tarball.  Also append to any non-syntax
18527         checks already defined in cfg.mk.
18528
18529 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18530
18531         longlong: tune, particularly for common case of c99
18532
18533         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18534         or running anything if c99, or if unsigned long long int does not
18535         work.  In either case, we know the answer without further tests.
18536         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18537         it at most once, and use its results for both long long int and
18538         unsigned long long int.  This is more likely to be efficient in
18539         the common case where the program wants to check for both long
18540         long int and unsigned long long int.
18541         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18542         since the answer is already known.
18543
18544 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18545
18546         getloadavg: set errno
18547         * lib/getloadavg.c: Set errno when returning -1.  If no other
18548         error number looks appropriate, set it to ENOSYS if the getloadavg
18549         looks like it can't possibly ever work, ENOTSUP otherwise.
18550         Suggested by Bruno Haible in
18551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18552
18553         getloadavg: trim unused parts and speed up 'configure'
18554         * NEWS: Document this.
18555         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18556         always compiled if getloadavg is absent.
18557         Move test code to ...
18558         * tests/test-getloadavg.c: New file, containing previous
18559         contents of test from lib/getloadavg.c.  It also contains
18560         suggestions by Bruno Haible in
18561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18562         * modules/getloadavg-tests: New file.
18563         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18564         Do tests in the same order as they're needed for getloadavg.c.
18565         Omit setgid-related tests that generate symbols KMEM_GROUP,
18566         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18567         Do only the tests that are needed to see whether the system has
18568         getloadavg, moving the other tests into ...
18569         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18570         NLIST_NAME_UNION; nobody should be using it.  Do not define
18571         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18572         relevant, as the user of this module shouldn't care how getloadavg
18573         is implemented.
18574
18575         getloadavg: omit unused var
18576         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18577
18578 2011-02-15  Jim Meyering  <meyering@redhat.com>
18579
18580         doc: update users.txt
18581         * users.txt: Update iwhd's URL.
18582
18583 2011-02-13  Bruno Haible  <bruno@clisp.org>
18584
18585         Consistent macro naming for macros that use GCC __attribute__.
18586         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18587         _ATTRIBUTE_NONNULL_.
18588         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18589         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18590         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18591         ATTRIBUTE_DEPRECATED.
18592         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18593         ATTRIBUTE_NORETURN.
18594         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18595         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18596         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18597         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18598         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18599         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18600         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18601         ATTRIBUTE_SENTINEL.
18602         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18603         ATTRIBUTE_RETURN_CHECK.
18604         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18605         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18606         ATTRIBUTE_NORETURN.
18607         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18608         Reported by Paul Eggert.
18609
18610 2011-02-13  Bruno Haible  <bruno@clisp.org>
18611
18612         Don't interfere with a program's definition of __attribute__.
18613         * lib/argp.h (__attribute__): Remove definition.
18614         (_GL_ATTRIBUTE_FORMAT): New macro.
18615         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18616         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18617         (_GL_ATTRIBUTE_FORMAT): New macro.
18618         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18619         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18620         GCC 3 or newer.
18621         * lib/error.h (__attribute__): Remove definition.
18622         (_GL_ATTRIBUTE_FORMAT): New macro.
18623         (error, error_at_line): Use it.
18624         * lib/hash.h (__attribute__): Remove definition.
18625         (ATTRIBUTE_WUR): Update definition. Define always.
18626         * lib/openat.h (__attribute__): Remove definition.
18627         (ATTRIBUTE_NORETURN): Update definition. Define always.
18628         * lib/sigpipe-die.h (__attribute__): Remove definition.
18629         (ATTRIBUTE_NORETURN): Update definition. Define always.
18630         * lib/vasnprintf.h (__attribute__): Remove definition.
18631         (_GL_ATTRIBUTE_FORMAT): New macro.
18632         (asnprintf, vasnprintf): Use it.
18633         * lib/xalloc.h (__attribute__): Remove definition.
18634         (ATTRIBUTE_NORETURN): Update definition. Define always.
18635         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18636         * lib/xmemdup0.h (__attribute__): Remove definition.
18637         (ATTRIBUTE_NORETURN): Update definition. Define always.
18638         * lib/xprintf.h (__attribute__): Remove definition.
18639         (_GL_ATTRIBUTE_FORMAT): New macro.
18640         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18641         * lib/xstrtol.h (__attribute__): Remove definition.
18642         (ATTRIBUTE_NORETURN): Update definition. Define always.
18643         * lib/xvasprintf.h (__attribute__): Remove definition.
18644         (_GL_ATTRIBUTE_FORMAT): New macro.
18645         (xasprintf, xvasprintf): Use it.
18646         * tests/test-argmatch.c (__attribute__): Remove definition.
18647         (ATTRIBUTE_NORETURN): Update definition. Define always.
18648         * tests/test-exclude.c (__attribute__): Remove definition.
18649         (ATTRIBUTE_NORETURN): Update definition. Define always.
18650         Reported by Paul Eggert.
18651
18652 2011-02-13  Bruno Haible  <bruno@clisp.org>
18653
18654         mbrtowc: Add more tests for native Windows platforms.
18655         * tests/test-mbrtowc-w32-1.sh: New file.
18656         * tests/test-mbrtowc-w32-2.sh: New file.
18657         * tests/test-mbrtowc-w32-3.sh: New file.
18658         * tests/test-mbrtowc-w32-4.sh: New file.
18659         * tests/test-mbrtowc-w32-5.sh: New file.
18660         * tests/test-mbrtowc-w32.c: New file.
18661         * modules/mbrtowc-tests (Files): Add them.
18662         (Makefile.am): Arrange to run these tests.
18663         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18664         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18665
18666 2011-02-13  Bruno Haible  <bruno@clisp.org>
18667
18668         mbrtowc: Work around native Windows bug.
18669         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18670         guess when no suitable locale for testing was found.
18671         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18672
18673 2011-02-13  Bruno Haible  <bruno@clisp.org>
18674
18675         mbsinit: Work around mingw bug.
18676         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18677         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18678         Windows.
18679         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18680
18681 2011-02-13  Bruno Haible  <bruno@clisp.org>
18682
18683         mbsinit: Don't crash for a NULL argument.
18684         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18685         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18686
18687 2011-02-13  Bruno Haible  <bruno@clisp.org>
18688
18689         Don't interfere with a program's definition of __attribute__.
18690         * lib/stdio.in.h (__attribute__): Remove definition.
18691         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18692         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18693         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18694         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18695         * lib/string.in.h (__attribute__): Remove definition.
18696         Reported by Paul Eggert.
18697
18698 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         stdlib: don't get in the way of non-GCC __attribute__
18701         See thread starting at
18702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18703         Revert previous stdlib change, installing the following instead:
18704         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18705         to get in the way of a non-GCC compiler that supports __attribute__.
18706         (_GL_ATTRIBUTE_RETURN): New macro.
18707         (_Exit): Use it instead of __attribute__.
18708
18709 2011-02-12  Bruno Haible  <bruno@clisp.org>
18710
18711         quotearg test: Avoid test failure on mingw.
18712         * tests/test-quotearg.sh: Convert the locale identifier from native
18713         Windows syntax to Unix syntax.
18714
18715 2011-02-12  Bruno Haible  <bruno@clisp.org>
18716
18717         setlocale: Prefer gnulib's override over libintl's override.
18718         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18719         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18720         GNULIB_defined_setlocale is set.
18721
18722 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18723
18724         stdlib: support non-GCC __attribute__
18725
18726         Fix a serious and tricky problem encountered when attempting to
18727         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18728         5.5, but it crashed due to memory corruption on Solaris 10 with
18729         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18730         bits that are otherwise zero.  This tagging is optional inside
18731         Emacs but is preferred and is used when __attribute__ ((__aligned
18732         (8))) works, as it does with both recent-enough GCC and with Sun C
18733         5.11.  However, Sun C 5.11 is not GCC and does not #define
18734         __GNUC__ and __GNUC_MINOR__.
18735
18736         When I added the getloadavg module to Emacs, it brought in
18737         stdlib.in.h, which contained this fragment:
18738
18739            #ifndef __attribute__
18740            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18741            #  define __attribute__(Spec)   /* empty */
18742            # endif
18743            #endif
18744
18745         When files that include <stdlib.h> were compiled with Sun C 5.11,
18746         the above code disabled __attribute__ ((__aligned (8))), which
18747         caused variables to not be properly aligned, which eventually led
18748         to the pointer corruption mentioned above.  (This was a bit hard
18749         to diagnose, unfortunately.)
18750
18751         Several "#define __attribute__(X) /* empty */" code snippets need
18752         to be eradicated from Gnulib to work with non-GCC compilers that
18753         support __attribute__.  The Autoconf way to do this is to test for
18754         each kind of attribute that we want support for, and selectively
18755         enable that in source code.
18756
18757         Fix this problem just for stdlib.h, by adding a test for the
18758         __noreturn__ attribute, and change stdlib.in.h to use that test
18759         when needed.  This technique can be easily generalized to the
18760         other *.in.h files and attributes, and a similar technique can be
18761         used for *.h and *.c files.  This patch is enough to solve the
18762         problem for Emacs + getloadavg, and I thought I'd publish it for
18763         feedback before undertaking further, similar fixes in other
18764         modules.
18765
18766         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18767         because it's not needed for stdlib.h.  It merely substitutes the
18768         value directly into stdlib.h.  We may well need to #define it, or
18769         similar symbols, for other modules, but it's nice to also have an
18770         option to not #define it for applications like Emacs that do not
18771         need it.
18772
18773         * lib/stdlib.in.h (__attribute__): Do not #define.
18774         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18775         be defined only if the _Exit module is also used.
18776         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18778         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18779         platforms.
18780         * modules/_Exit (Files): Add m4/attribute.m4.
18781         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18782         * m4/attribute.m4: New file.
18783
18784 2011-02-12  Bruno Haible  <bruno@clisp.org>
18785
18786         wcsrtombs: Work around bug on native Windows.
18787         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18788         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18789         instead of len.
18790         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18791
18792 2011-02-12  Bruno Haible  <bruno@clisp.org>
18793
18794         mbsrtowcs: Work around bug on native Windows.
18795         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18796         against mingw bug.
18797         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18798
18799 2011-02-12  Bruno Haible  <bruno@clisp.org>
18800
18801         Avoid setlocale bugs in tests.
18802         * modules/btowc (Dependencies): Add setlocale.
18803         * modules/c-strcase (Dependencies): Likewise.
18804         * modules/mbmemcasecmp (Dependencies): Likewise.
18805         * modules/mbmemcasecoll (Dependencies): Likewise.
18806         * modules/mbrtowc (Dependencies): Likewise.
18807         * modules/mbscasecmp (Dependencies): Likewise.
18808         * modules/mbscasestr (Dependencies): Likewise.
18809         * modules/mbschr (Dependencies): Likewise.
18810         * modules/mbscspn (Dependencies): Likewise.
18811         * modules/mbsinit (Dependencies): Likewise.
18812         * modules/mbsncasecmp (Dependencies): Likewise.
18813         * modules/mbsnrtowcs (Dependencies): Likewise.
18814         * modules/mbspbrk (Dependencies): Likewise.
18815         * modules/mbspcasecmp (Dependencies): Likewise.
18816         * modules/mbsrchr (Dependencies): Likewise.
18817         * modules/mbsrtowcs (Dependencies): Likewise.
18818         * modules/mbsspn (Dependencies): Likewise.
18819         * modules/mbsstr (Dependencies): Likewise.
18820         * modules/nl_langinfo (Dependencies): Likewise.
18821         * modules/quotearg (Dependencies): Likewise.
18822         * modules/unicase/locale-language (Dependencies): Likewise.
18823         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18824         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18825         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18826         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18827         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18828         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18829         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18830         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18831         * modules/vasnprintf-posix (Dependencies): Likewise.
18832         * modules/wcrtomb (Dependencies): Likewise.
18833         * modules/wcsnrtombs (Dependencies): Likewise.
18834         * modules/wcsrtombs (Dependencies): Likewise.
18835
18836 2011-02-12  Bruno Haible  <bruno@clisp.org>
18837
18838         setlocale: Workaround native Windows bug.
18839         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18840         succeeds but sets LC_CTYPE to "C", report a failure.
18841         * tests/test-setlocale2.sh: New file.
18842         * tests/test-setlocale2.c: New file.
18843         * modules/setlocale-tests (Files): Add the new files.
18844         (Makefile.am): Enable test-setlocale2.sh test.
18845         * doc/posix-functions/setlocale.texi: Mention workaround.
18846
18847 2011-02-11  Bruno Haible  <bruno@clisp.org>
18848
18849         Tests for module 'setlocale'.
18850         * modules/setlocale-tests: New file.
18851         * tests/test-setlocale1.sh: New file.
18852         * tests/test-setlocale1.c: New file.
18853
18854         New module 'setlocale'.
18855         * lib/locale.in.h (setlocale): New declaration.
18856         * lib/setlocale.c: New file, based on
18857         gettext/gettext-runtime/intl/setlocale.c.
18858         * m4/setlocale.m4: New file.
18859         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18860         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18861         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18862         REPLACE_SETLOCALE.
18863         * modules/setlocale: New file.
18864         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18865         * doc/posix-functions/setlocale.texi: Mention the new module.
18866
18867 2011-02-11  Bruno Haible  <bruno@clisp.org>
18868
18869         Prepare for locale dependent tests on mingw.
18870         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18871         because it has the wrong locale encoding.
18872         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18873         French_France.1252 instead of "fr".
18874         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18875         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18876         because it has the wrong locale encoding.
18877         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18878         native Windows, try Turkish_Turkey.65001.
18879         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18880         Chinese_China.54936.
18881
18882         Prepare for locale dependent tests on mingw.
18883         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18884         differently.
18885         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18886         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18887         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18888         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18889
18890 2011-02-11  Eric Blake  <eblake@redhat.com>
18891
18892         strptime: avoid compiler warnings
18893         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18894         compiler warnings about dead code.
18895         Reported by Daniel P. Berrange.
18896
18897 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18898
18899         doc: update users.txt
18900         * users.txt: Add rcs.
18901
18902 2011-02-10  John W. Eaton  <jwe@gnu.org>
18903
18904         doc: update users.txt
18905         * users.txt: Add octave.
18906
18907 2011-02-10  Jim Meyering  <meyering@redhat.com>
18908
18909         doc: update users.txt
18910         * users.txt: Add iwhd.
18911
18912 2011-02-09  Bruno Haible  <bruno@clisp.org>
18913
18914         gnulib-tool: Make copyright notice adjustment more robust.
18915         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18916         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18917         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18918         License".
18919         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18920
18921 2011-02-06  Bruno Haible  <bruno@clisp.org>
18922
18923         New module 'towctrans'.
18924         * modules/towctrans: New file.
18925         * lib/wctype.in.h (towctrans): New declaration.
18926         * lib/towctrans.c: New file.
18927         * lib/towctrans-impl.h: New file.
18928         * m4/towctrans.m4: New file.
18929         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18930         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18931         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18932         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18933         * doc/posix-functions/towctrans.texi: Mention the new module.
18934
18935 2011-02-06  Bruno Haible  <bruno@clisp.org>
18936
18937         New module 'wctrans'.
18938         * modules/wctrans: New file.
18939         * lib/wctype.in.h (wctrans): New declaration.
18940         * lib/wctrans.c: New file.
18941         * lib/wctrans-impl.h: New file.
18942         * m4/wctrans.m4: New file.
18943         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18944         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18945         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18946         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18947         * doc/posix-functions/wctrans.texi: Mention the new module.
18948
18949 2011-02-06  Bruno Haible  <bruno@clisp.org>
18950
18951         New module 'iswctype'.
18952         * modules/iswctype: New file.
18953         * lib/wctype.in.h (iswctype): New declaration.
18954         * lib/iswctype.c: New file.
18955         * lib/iswctype-impl.h: New file.
18956         * m4/iswctype.m4: New file.
18957         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18958         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18959         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18960         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18961         * doc/posix-functions/iswctype.texi: Mention the new module and the
18962         HP-UX 11.00 problem.
18963
18964 2011-02-06  Bruno Haible  <bruno@clisp.org>
18965
18966         New module 'wctype'.
18967         * modules/wctype: Change to represent the wctype() substitute.
18968         * lib/wctype.in.h (wctype): New declaration.
18969         * lib/wctype.c: New file.
18970         * lib/wctype-impl.h: New file.
18971         * m4/wctype.m4: New file.
18972         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18973         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18974         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18975         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18976         * doc/posix-functions/wctype.texi: Mention the new module and the
18977         HP-UX 11.00 problem.
18978
18979 2011-02-06  Bruno Haible  <bruno@clisp.org>
18980
18981         wctype-h: Ensure wctype_t and wctrans_t are defined.
18982         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18983         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18984         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18985         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18986         HAVE_WCTRANS_T.
18987         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18988
18989 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         flock: fix license typo
18992
18993         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18994         omitted.
18995
18996 2011-02-08  Bruno Haible  <bruno@clisp.org>
18997
18998         Split large sed scripts, for HP-UX sed.
18999         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19000         to avoid HP-UX limit of 99 commands, in the near future.
19001         * modules/stdlib (Makefile.am): Likewise.
19002         * modules/unistd (Makefile.am): Likewise.
19003         * modules/wchar (Makefile.am): Likewise.
19004         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19005         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19006         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19007
19008 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19009             Bruno Haible  <bruno@clisp.org>
19010
19011         stdlib: improve random_r modularization
19012         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19013         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19014         you also need the random_r module to get this material right.
19015         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19016         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19017         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19018
19019 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19020
19021         stdlib: don't depend on stdint
19022         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19023         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19024         be independent of whether stdint.h is needed.
19025         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19026         here, instead of ...
19027         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19028         struct random_data should be using the random_r module, not just
19029         the stdlib module (which wouldn't make sense: what package needs
19030         just struct random_data without also needing random_r?).
19031         * modules/stdlib (Depends-on): Remove stdint.
19032
19033         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19034         See the thread rooted at
19035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19036         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19037         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19038         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19039         __VMS)); previously it was always included (via fcntl--.h).
19040         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19041         hand; this is good enough for load averages.  Also, do not use
19042         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19043         flags directly if available and don't bother otherwise.  (Packages
19044         that need the extra reliability should use the modules that define
19045         these flags on older platforms that lack them.)
19046         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19047         fcntl-safer.
19048
19049 2011-02-08  Jim Meyering  <meyering@redhat.com>
19050
19051         di-set.h, ino-map.h: add multiple-inclusion guard
19052         Technically, the guard is required only for ino-map.h, due to its
19053         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19054         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19055         * lib/ino-map.h: Likewise.
19056
19057 2011-02-06  Bruno Haible  <bruno@clisp.org>
19058
19059         iswblank: Ensure declaration on glibc systems.
19060         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19061         * modules/iswblank (Dependencies): Add 'extensions'.
19062         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19063
19064 2011-02-06  Bruno Haible  <bruno@clisp.org>
19065
19066         New module 'iswblank'.
19067         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19068         * modules/iswblank: New file.
19069         * modules/wctype-h (Files): Remove lib/iswblank.c.
19070         (Makefile.am): Substitute GNULIB_ISWBLANK.
19071         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19072         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19073         (gl_WCTYPE_H_DEFAULTS): New macro.
19074         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19075         * modules/iswblank-tests: New file.
19076         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19077         * tests/test-wctype-h.c (main): Remove iswblank tests.
19078         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19079         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19080         of 'wctype-h'.
19081         * NEWS: Mention the change.
19082         * modules/mbchar (Depends-on): Add iswblank.
19083
19084 2011-02-08  Bruno Haible  <bruno@clisp.org>
19085
19086         di-set tests: Refactor.
19087         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19088         unnecessary includes.
19089         (ASSERT): Remove macro.
19090         (main): Make C90 compliant by avoiding variable declaration after
19091         statement.
19092         * modules/di-set-tests (Files): Add tests/macros.h.
19093
19094 2011-02-08  Bruno Haible  <bruno@clisp.org>
19095
19096         ino-map tests: Refactor.
19097         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19098         unnecessary includes.
19099         (ASSERT): Remove macro.
19100         (main): Make C90 compliant by avoiding variable declaration after
19101         statement.
19102         * modules/ino-map-tests (Files): Add tests/macros.h.
19103
19104 2011-02-08  Jim Meyering  <meyering@redhat.com>
19105
19106         di-set: add "const" to a cast
19107         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19108         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19109
19110 2011-02-06  Bruno Haible  <bruno@clisp.org>
19111
19112         Rename module 'wctype' to 'wctype-h'.
19113         * modules/wctype-h: Renamed from modules/wctype.
19114         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19115         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19116         (Files, Depends-on, Makefile.am): Update.
19117         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19118         (Files, Makefile.am): Update.
19119         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19120         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19121         * doc/posix-headers/wctype.texi: Update.
19122         * doc/posix-functions/iswalnum.texi: Update.
19123         * doc/posix-functions/iswalpha.texi: Update.
19124         * doc/posix-functions/iswblank.texi: Update.
19125         * doc/posix-functions/iswcntrl.texi: Update.
19126         * doc/posix-functions/iswdigit.texi: Update.
19127         * doc/posix-functions/iswgraph.texi: Update.
19128         * doc/posix-functions/iswlower.texi: Update.
19129         * doc/posix-functions/iswprint.texi: Update.
19130         * doc/posix-functions/iswpunct.texi: Update.
19131         * doc/posix-functions/iswspace.texi: Update.
19132         * doc/posix-functions/iswupper.texi: Update.
19133         * doc/posix-functions/iswxdigit.texi: Update.
19134         * doc/posix-functions/towlower.texi: Update.
19135         * doc/posix-functions/towupper.texi: Update.
19136         * NEWS: Mention the change.
19137         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19138         * modules/mbchar (Dependencies): Likewise.
19139         * modules/mbswidth (Dependencies): Likewise.
19140         * modules/quotearg (Dependencies): Likewise.
19141         * modules/regex (Dependencies): Likewise.
19142         * modules/wcscasecmp (Dependencies): Likewise.
19143         * modules/wcsncasecmp (Dependencies): Likewise.
19144         * modules/wcwidth (Dependencies): Likewise.
19145
19146 2011-02-06  Bruno Haible  <bruno@clisp.org>
19147
19148         New module 'wcswidth'.
19149         * modules/wcswidth: New file.
19150         * lib/wchar.in.h (wcswidth): New declaration.
19151         * lib/wcswidth.c: New file.
19152         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19153         * m4/wcswidth.m4: New file.
19154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19156         REPLACE_WCSWIDTH.
19157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19158         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19159         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19160         * doc/posix-functions/wcswidth.texi: Mention the new module.
19161
19162 2011-02-06  Bruno Haible  <bruno@clisp.org>
19163
19164         New module 'wcstok'.
19165         * modules/wcstok: New file.
19166         * lib/wchar.in.h (wcstok): New declaration.
19167         * lib/wcstok.c: New file.
19168         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19169         * m4/wcstok.m4: New file.
19170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19173         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19174         * doc/posix-functions/wcstok.texi: Mention the new module.
19175
19176 2011-02-06  Bruno Haible  <bruno@clisp.org>
19177
19178         New module 'wcsstr'.
19179         * modules/wcsstr: New file.
19180         * lib/wchar.in.h (wcsstr): New declaration.
19181         * lib/wcsstr.c: New file.
19182         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19183         * m4/wcsstr.m4: New file.
19184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19187         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19188         * doc/posix-functions/wcsstr.texi: Mention the new module.
19189
19190 2011-02-06  Bruno Haible  <bruno@clisp.org>
19191
19192         New module 'wcspbrk'.
19193         * modules/wcspbrk: New file.
19194         * lib/wchar.in.h (wcspbrk): New declaration.
19195         * lib/wcspbrk.c: New file.
19196         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19197         * m4/wcspbrk.m4: New file.
19198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19201         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19202         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19203
19204 2011-02-06  Bruno Haible  <bruno@clisp.org>
19205
19206         New module 'wcsspn'.
19207         * modules/wcsspn: New file.
19208         * lib/wchar.in.h (wcsspn): New declaration.
19209         * lib/wcsspn.c: New file.
19210         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19211         * m4/wcsspn.m4: New file.
19212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19215         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19216         * doc/posix-functions/wcsspn.texi: Mention the new module.
19217
19218 2011-02-06  Bruno Haible  <bruno@clisp.org>
19219
19220         New module 'wcscspn'.
19221         * modules/wcscspn: New file.
19222         * lib/wchar.in.h (wcscspn): New declaration.
19223         * lib/wcscspn.c: New file.
19224         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19225         * m4/wcscspn.m4: New file.
19226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19229         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19230         * doc/posix-functions/wcscspn.texi: Mention the new module.
19231
19232 2011-02-06  Bruno Haible  <bruno@clisp.org>
19233
19234         New module 'wcsrchr'.
19235         * modules/wcsrchr: New file.
19236         * lib/wchar.in.h (wcsrchr): New declaration.
19237         * lib/wcsrchr.c: New file.
19238         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19239         * m4/wcsrchr.m4: New file.
19240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19243         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19244         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19245
19246 2011-02-06  Bruno Haible  <bruno@clisp.org>
19247
19248         New module 'wcschr'.
19249         * modules/wcschr: New file.
19250         * lib/wchar.in.h (wcschr): New declaration.
19251         * lib/wcschr.c: New file.
19252         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19253         * m4/wcschr.m4: New file.
19254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19257         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19258         * doc/posix-functions/wcschr.texi: Mention the new module.
19259
19260 2011-02-06  Bruno Haible  <bruno@clisp.org>
19261
19262         New module 'wcsdup'.
19263         * modules/wcsdup: New file.
19264         * lib/wchar.in.h (wcsdup): New declaration.
19265         * lib/wcsdup.c: New file.
19266         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19267         * m4/wcsdup.m4: New file.
19268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19271         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19272         * doc/posix-functions/wcsdup.texi: Mention the new module.
19273
19274 2011-02-06  Bruno Haible  <bruno@clisp.org>
19275
19276         New module 'wcsxfrm'.
19277         * modules/wcsxfrm: New file.
19278         * lib/wchar.in.h (wcsxfrm): New declaration.
19279         * lib/wcsxfrm.c: New file.
19280         * lib/wcsxfrm-impl.h: New file.
19281         * m4/wcsxfrm.m4: New file.
19282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19285         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19286         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19287
19288 2011-02-06  Bruno Haible  <bruno@clisp.org>
19289
19290         New module 'wcscoll'.
19291         * modules/wcscoll: New file.
19292         * lib/wchar.in.h (wcscoll): New declaration.
19293         * lib/wcscoll.c: New file.
19294         * lib/wcscoll-impl.h: New file.
19295         * m4/wcscoll.m4: New file.
19296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19299         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19300         * doc/posix-functions/wcscoll.texi: Mention the new module.
19301
19302 2011-02-06  Bruno Haible  <bruno@clisp.org>
19303
19304         New module 'wcsncasecmp'.
19305         * modules/wcsncasecmp: New file.
19306         * lib/wchar.in.h (wcsncasecmp): New declaration.
19307         * lib/wcsncasecmp.c: New file.
19308         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19309         * m4/wcsncasecmp.m4: New file.
19310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19313         HAVE_WCSNCASECMP.
19314         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19315         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19316
19317 2011-02-06  Bruno Haible  <bruno@clisp.org>
19318
19319         New module 'wcscasecmp'.
19320         * modules/wcscasecmp: New file.
19321         * lib/wchar.in.h (wcscasecmp): New declaration.
19322         * lib/wcscasecmp.c: New file.
19323         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19324         * m4/wcscasecmp.m4: New file.
19325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19328         HAVE_WCSCASECMP.
19329         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19330         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19331
19332 2011-02-05  Bruno Haible  <bruno@clisp.org>
19333
19334         New module 'wcsncmp'.
19335         * modules/wcsncmp: New file.
19336         * lib/wchar.in.h (wcsncmp): New declaration.
19337         * lib/wcsncmp.c: New file.
19338         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19339         * m4/wcsncmp.m4: New file.
19340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19343         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19344         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19345
19346 2011-02-05  Bruno Haible  <bruno@clisp.org>
19347
19348         New module 'wcscmp'.
19349         * modules/wcscmp: New file.
19350         * lib/wchar.in.h (wcscmp): New declaration.
19351         * lib/wcscmp.c: New file.
19352         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19353         * m4/wcscmp.m4: New file.
19354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19357         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19358         * doc/posix-functions/wcscmp.texi: Mention the new module.
19359
19360 2011-02-05  Bruno Haible  <bruno@clisp.org>
19361
19362         New module 'wcsncat'.
19363         * modules/wcsncat: New file.
19364         * lib/wchar.in.h (wcsncat): New declaration.
19365         * lib/wcsncat.c: New file.
19366         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19367         * m4/wcsncat.m4: New file.
19368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19371         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19372         * doc/posix-functions/wcsncat.texi: Mention the new module.
19373
19374 2011-02-05  Bruno Haible  <bruno@clisp.org>
19375
19376         New module 'wcscat'.
19377         * modules/wcscat: New file.
19378         * lib/wchar.in.h (wcscat): New declaration.
19379         * lib/wcscat.c: New file.
19380         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19381         * m4/wcscat.m4: New file.
19382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19385         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19386         * doc/posix-functions/wcscat.texi: Mention the new module.
19387
19388 2011-02-05  Bruno Haible  <bruno@clisp.org>
19389
19390         New module 'wcpncpy'.
19391         * modules/wcpncpy: New file.
19392         * lib/wchar.in.h (wcpncpy): New declaration.
19393         * lib/wcpncpy.c: New file.
19394         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19395         * m4/wcpncpy.m4: New file.
19396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19398         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19399         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19400         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19401
19402 2011-02-05  Bruno Haible  <bruno@clisp.org>
19403
19404         New module 'wcsncpy'.
19405         * modules/wcsncpy: New file.
19406         * lib/wchar.in.h (wcsncpy): New declaration.
19407         * lib/wcsncpy.c: New file.
19408         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19409         * m4/wcsncpy.m4: New file.
19410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19413         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19414         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19415
19416 2011-02-05  Bruno Haible  <bruno@clisp.org>
19417
19418         New module 'wcpcpy'.
19419         * modules/wcpcpy: New file.
19420         * lib/wchar.in.h (wcpcpy): New declaration.
19421         * lib/wcpcpy.c: New file.
19422         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19423         * m4/wcpcpy.m4: New file.
19424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19426         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19427         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19428         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19429
19430 2011-02-05  Bruno Haible  <bruno@clisp.org>
19431
19432         New module 'wcscpy'.
19433         * modules/wcscpy: New file.
19434         * lib/wchar.in.h (wcscpy): New declaration.
19435         * lib/wcscpy.c: New file.
19436         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19437         * m4/wcscpy.m4: New file.
19438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19441         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19442         * doc/posix-functions/wcscpy.texi: Mention the new module.
19443
19444 2011-02-05  Bruno Haible  <bruno@clisp.org>
19445
19446         New module 'wcsnlen'.
19447         * modules/wcsnlen: New file.
19448         * lib/wchar.in.h (wcsnlen): New declaration.
19449         * lib/wcsnlen.c: New file.
19450         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19451         * m4/wcsnlen.m4: New file.
19452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19455         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19456         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19457
19458 2011-02-05  Bruno Haible  <bruno@clisp.org>
19459
19460         New module 'wcslen'.
19461         * modules/wcslen: New file.
19462         * lib/wchar.in.h (wcslen): New declaration.
19463         * lib/wcslen.c: New file.
19464         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19465         * m4/wcslen.m4: New file.
19466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19469         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19470         * doc/posix-functions/wcslen.texi: Mention the new module.
19471
19472 2011-02-05  Bruno Haible  <bruno@clisp.org>
19473
19474         New module 'wmemset'.
19475         * modules/wmemset: New file.
19476         * lib/wchar.in.h (wmemset): New declaration.
19477         * lib/wmemset.c: New file.
19478         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19479         * m4/wmemset.m4: New file.
19480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19482         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19483         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19484         * doc/posix-functions/wmemset.texi: Mention the new module.
19485
19486 2011-02-05  Bruno Haible  <bruno@clisp.org>
19487
19488         New module 'wmemmove'.
19489         * modules/wmemmove: New file.
19490         * lib/wchar.in.h (wmemmove): New declaration.
19491         * lib/wmemmove.c: New file.
19492         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19493         * m4/wmemmove.m4: New file.
19494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19496         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19497         HAVE_WMEMMOVE.
19498         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19499         * doc/posix-functions/wmemmove.texi: Mention the new module.
19500
19501 2011-02-05  Bruno Haible  <bruno@clisp.org>
19502
19503         New module 'wmemcpy'.
19504         * modules/wmemcpy: New file.
19505         * lib/wchar.in.h (wmemcpy): New declaration.
19506         * lib/wmemcpy.c: New file.
19507         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19508         * m4/wmemcpy.m4: New file.
19509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19511         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19512         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19513         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19514
19515 2011-02-05  Bruno Haible  <bruno@clisp.org>
19516
19517         New module 'wmemcmp'.
19518         * modules/wmemcmp: New file.
19519         * lib/wchar.in.h (wmemcmp): New declaration.
19520         * lib/wmemcmp.c: New file.
19521         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19522         * m4/wmemcmp.m4: New file.
19523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19525         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19526         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19527         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19528
19529 2011-02-07  Jim Meyering  <meyering@redhat.com>
19530
19531         di-set, ino-map: new modules, from coreutils
19532         * lib/di-set.c: New file.
19533         * lib/di-set.h: Likewise.
19534         * lib/ino-map.c: Likewise.
19535         * lib/ino-map.h: Likewise.
19536         * modules/di-set: Likewise.
19537         * modules/di-set-tests: Likewise.
19538         * modules/ino-map: Likewise.
19539         * modules/ino-map-tests: Likewise.
19540         * tests/test-di-set.c: Likewise.
19541         * tests/test-ino-map.c: Likewise.
19542
19543 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19544
19545         getloadavg: merge minor changes from Emacs
19546
19547         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19548         (getloadavg): Use memset, not bzero.
19549
19550         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19551         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19552         clash (bug#86).
19553
19554 2010-11-14  Bruno Haible  <bruno@clisp.org>
19555
19556         Allow multiple gnulib generated replacements to coexist.
19557         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19558         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19559         * lib/langinfo.in.h (nl_item): Likewise.
19560         * lib/math.in.h (_NaN, NAN): Likewise.
19561         * lib/netdb.in.h (struct addrinfo): Likewise.
19562         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19563         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19564         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19565         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19566         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19567         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19568         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19569         pthread_mutexattr_init, pthread_mutexattr_settype,
19570         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19571         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19572         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19573         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19574         * lib/sched.in.h (struct sched_param): Likewise.
19575         * lib/se-selinux.in.h (security_class_t, security_context_t,
19576         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19577         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19578         lsetfilecon, fsetfilecon, security_check_context,
19579         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19580         Likewise.
19581         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19582         Likewise.
19583         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19584         _gl_function_taking_int_returning_void_t, union sigval,
19585         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19586         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19587         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19588         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19589         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19590         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19591         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19592         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19593         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19594         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19595         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19596         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19597         socklen_t, rpl_fd_isset): Likewise.
19598         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19599         * lib/sys_time.in.h (struct timeval): Likewise.
19600         * lib/sys_times.in.h (struct tms): Likewise.
19601         * lib/sys_utsname.in.h (struct utsname):
19602         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19603         * lib/unistd.in.h (getpagesize): Likewise.
19604         * lib/wchar.in.h (mbstate_t): Likewise.
19605         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19606         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19607         towlower, towupper): Likewise.
19608         Reported by Sam Steingold <sds@gnu.org>.
19609
19610 2011-02-05  Eric Blake  <eblake@redhat.com>
19611
19612         unsetenv: work around Haiku issues
19613         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19614         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19615
19616 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19617
19618         libposix: avoid calling error() within libposix
19619         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19620         is defined.
19621
19622 2011-02-05  Eric Blake  <eblake@redhat.com>
19623
19624         strerror_r-posix: port to cygwin
19625         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19626         implementation.
19627         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19628         * tests/test-strerror_r.c (main): Fix test.
19629         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19630         issue.
19631
19632 2011-02-05  Bruno Haible  <bruno@clisp.org>
19633
19634         New module 'wmemchr'.
19635         * modules/wmemchr: New file.
19636         * lib/wchar.in.h (wmemchr): New declaration.
19637         * lib/wmemchr.c: New file.
19638         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19639         * m4/wmemchr.m4: New file.
19640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19642         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19643         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19644         * doc/posix-functions/wmemchr.texi: Mention the new module.
19645
19646 2011-02-04  Eric Blake  <eblake@redhat.com>
19647
19648         fdopendir: detect FreeBSD bug
19649         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19650         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19651
19652 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19653
19654         stdbool: do not define HAVE_STDBOOL_H
19655         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19656         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19657         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19658         imported from the latest Autoconf git.  It was motivated by Emacs,
19659         which uses gnulib but does not need HAVE_STDBOOL_H.
19660
19661 2011-02-04  Bruno Haible  <bruno@clisp.org>
19662
19663         wcsnrtombs: Prepare for new module wwcsnrtombs.
19664         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19665         * lib/wcsnrtombs.c: Include it.
19666         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19667
19668         wcsrtombs: Prepare for new module wwcsrtombs.
19669         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19670         * lib/wcsrtombs.c: Include it.
19671         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19672
19673         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19674         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19675         * lib/mbsnrtowcs.c: Include it.
19676         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19677
19678         mbsrtowcs: Prepare for new module mbsrtowwcs.
19679         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19680         * lib/mbsrtowcs.c: Include it.
19681         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19682
19683 2011-02-04  Bruno Haible  <bruno@clisp.org>
19684
19685         vasnprintf: Reduce use of malloc for small format strings.
19686         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19687         (arguments): Add room for the first 7 arguments.
19688         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19689         (char_directives, u8_directives, u16_directives, u32_directives): Add
19690         room for the first 7 directives.
19691         * lib/printf-parse.c: Include <string.h>.
19692         (PRINTF_PARSE): Change memory handling code so that it uses the first
19693         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19694         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19695         Reported by Pádraig Brady <P@draigbrady.com>.
19696
19697 2011-01-31  Eric Blake  <eblake@redhat.com>
19698
19699         dup2: work around Haiku bug
19700         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19701         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19702         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19703         * tests/test-dup2.c (main): Enhance test.
19704
19705 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19706
19707         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19708         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19709         declared by eglibc 2.11.2.
19710         * lib/stdio.in.h: Likewise.
19711
19712 2011-01-31  Eric Blake  <eblake@redhat.com>
19713
19714         ignore-value: add missing test dependency
19715         * tests/test-ignore-value.c: Revert previous change; stdio.h
19716         provides off_t.
19717         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19718
19719 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19720
19721         mktime: clarify long_int width checking
19722         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19723         the top level, to make it clearer that the assumption about
19724         long_int width is being checked.  See
19725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19726
19727 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19728
19729         ignore-value: Fix self-test.
19730         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19731
19732 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         TYPE_MAXIMUM: avoid theoretically undefined behavior
19735         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19736         negative number, which the C Standard says has undefined behavior.
19737         In practice this is not a problem, but might as well do it by the book.
19738         Reported by Rich Felker and Eric Blake; see
19739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19740         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19741         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19743         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19744         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19745         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19746
19747         mktime: #undef mktime before #defining it
19748         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19749
19750         mktime: systematically normalize tm_isdst comparisons
19751         * lib/mktime.c (isdst_differ): New function.
19752         (__mktime_internal): Use it systematically for all isdst comparisons.
19753         This completes the fix for libc BZ #6723, and removes the need for
19754         normalizing tm_isdst.  See
19755         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19756         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19757
19758         mktime: fix some integer overflow issues and sidestep the rest
19759
19760         This was prompted by a bug report by Benjamin Lindner for MinGW
19761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19762         His bug is due to signed integer overflow (0 - INT_MIN), and I
19763         I scanned through mktime.c looking for other integer overflow
19764         problems, fixing all the bugs I found.
19765
19766         Although the C Standard says the resulting code is still not safe
19767         in the presence of integer overflow, in practice it should be good
19768         enough for all real-world two's-complement implementations, except
19769         for debugging environments that deliberately trap on integer
19770         overflow (e.g., gcc -ftrapv).
19771
19772         * lib/mktime.c (WRAPV): New macro.
19773         (SHR): Also check that long_int and time_t shift right in the
19774         usual way, before using the fast-but-unportable method.
19775         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19776         used.  The code already assumed two's complement, so there's
19777         no need to test for alternatives.  All uses removed.
19778         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19779         the C standard.  Problem reported by Rich Felker in
19780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19781         (twos_complement_arithmetic): Also check long_int and time_t.
19782         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19783         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19784         (__mktime_internal): Avoid integer overflow with unary subtraction
19785         in two instances where -1 - X is an adequate replacement for -X,
19786         since the calculations are approximate.
19787
19788 2011-01-29  Eric Blake  <eblake@redhat.com>
19789
19790         mktime: avoid infinite loop
19791         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19792         type; behavior is still undefined but portable to all known targets.
19793         Reported by Rich Felker.
19794
19795 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19796
19797         rename, unlink, same-inode: Relicense.
19798         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19799         * modules/unlink (License): Likewise.
19800         * modules/same-inode (License): Likewise.
19801
19802 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19803
19804         mktime: avoid problems on NetBSD 5 / i386
19805         * lib/mktime.c (long_int): New type.  This works around a problem
19806         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19807         but time_t is 64 bits, and where I expect the existing code is
19808         wrong in some cases.
19809         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19810         (ydhms_diff): Bring back the compile-time check for wide-enough
19811         year and yday.
19812
19813         mktime: fix misspelling in comment
19814         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19815         This merges all recent glibc changes of importance.
19816
19817 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19818
19819         move-if-change: cope with concurrent mv of identical file.
19820         * build-aux/move-if-change (CMPPROG): Accept environment
19821         variable as an override for `cmp'.
19822         (usage): Document CMPPROG.
19823         Adjust comparison to drop stdout.  Cope with failure of mv if
19824         the target file exists and is identical to the source, for
19825         parallel builds.
19826         Report from H.J. Lu against binutils in PR binutils/12283.
19827
19828 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19829
19830         * users.txt: Mention sharutils.
19831
19832 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19833
19834         * users.txt: Mention OATH Toolkit.
19835
19836 2011-01-27  Bruno Haible  <bruno@clisp.org>
19837
19838         Prepare for supporting FreeBSD 10.
19839         * build-aux/config.libpath: Remove handling of freebsd1*.
19840
19841 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19842
19843         Prepare for supporting FreeBSD 10.
19844         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19845         match FreeBSD 10.0.
19846
19847 2011-01-27  Bruno Haible  <bruno@clisp.org>
19848
19849         vma-iter, get-rusage-as: Add OpenBSD support.
19850         * modules/vma-iter (configure.ac): Test for mquery.
19851         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19852         * lib/vma-iter.c: Include <sys/mman.h>.
19853         (vma_iterate): Add an implementation based on mquery().
19854         * lib/resource-ext.h (get_rusage_as): Update comments.
19855         * lib/get-rusage-as.c: Likewise.
19856         * lib/get-rusage-data.c: Likewise.
19857
19858 2011-01-26  Karl Berry  <karl@gnu.org>
19859
19860         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19861         variables to make it easier to override the makeinfo program used.
19862
19863 2011-01-26  Eric Blake  <eblake@redhat.com>
19864
19865         fcntl: work around Haiku F_DUPFD bugs
19866         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19867         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19868         cloexec bit on duplication.
19869         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19870
19871 2011-01-26  Bruno Haible  <bruno@clisp.org>
19872
19873         Enable memory leak tests on AIX.
19874         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19875         * tests/test-fprintf-posix3.c (main): Likewise.
19876
19877 2011-01-26  Bruno Haible  <bruno@clisp.org>
19878
19879         Tests for module 'get-rusage-data'.
19880         * modules/get-rusage-data-tests: New file.
19881         * tests/test-get-rusage-data.c: New file.
19882
19883         New module 'get-rusage-data'.
19884         * lib/resource-ext.h (get_rusage_data): New declaration.
19885         * lib/get-rusage-data.c: New file.
19886         * modules/get-rusage-data: New file.
19887
19888 2011-01-25  Bruno Haible  <bruno@clisp.org>
19889
19890         get-rusage-as: Allow for easier testing.
19891         * lib/resource-ext.h (get_rusage_as): Add comment.
19892         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19893         (main): New function for interactive testing.
19894
19895 2011-01-25  Bruno Haible  <bruno@clisp.org>
19896
19897         vma-iter: Treat Haiku like BeOS.
19898         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19899         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19900
19901 2011-01-25  Eric Blake  <eblake@redhat.com>
19902
19903         c-stack: fix regression on cygwin when libsigsegv is present
19904         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19905
19906 2011-01-24  Bruno Haible  <bruno@clisp.org>
19907
19908         vma-iter: Avoid empty intervals.
19909         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19910         on an empty interval.
19911
19912 2011-01-24  Jim Meyering  <meyering@redhat.com>
19913
19914         u64: remove unnecessary #include
19915         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19916
19917 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19918
19919         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19920         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19921
19922 2011-01-23  Bruno Haible  <bruno@clisp.org>
19923
19924         New module 'vma-iter'.
19925         * lib/vma-iter.h: New file.
19926         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19927         * modules/vma-iter: New file.
19928         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19929         for get_rusage_as_via_iterator.
19930         (vma_iterate_callback): New function.
19931         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19932         * modules/get-rusage-as (Depends-on): Add vma-iter.
19933
19934 2011-01-23  Bruno Haible  <bruno@clisp.org>
19935
19936         uninorm: Tweak includes.
19937         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19938         Reported by Jim Meyering.
19939
19940 2011-01-23  Bruno Haible  <bruno@clisp.org>
19941
19942         get-rusage-as: Improve on NetBSD.
19943         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19944         /proc, like on FreeBSD.
19945
19946 2011-01-23  Jim Meyering  <meyering@redhat.com>
19947
19948         xreadlink.h: remove unnecessary #include
19949         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19950
19951         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19952         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19953
19954 2011-01-23  Bruno Haible  <bruno@clisp.org>
19955
19956         get-rusage-as: Fix bug.
19957         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19958         original limit when aborting the first loop.
19959
19960 2011-01-23  Bruno Haible  <bruno@clisp.org>
19961
19962         wctype: Ensure valid C syntax.
19963         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19964         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19965
19966 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19967
19968         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19970         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19971         as they are needed only for configure's test case.
19972         This removes two unnecessary symbols from config.h.
19973
19974         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19975         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19977         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19978         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19979         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19980         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19981         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19982         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19983         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19984         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19988         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19989         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19990         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19991         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19992
19993 2011-01-21  Eric Blake  <eblake@redhat.com>
19994
19995         maintainer-makefile: work with older git for submodule check
19996         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19997         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19998         Reported by Matthias Bolte.
19999
20000         bootstrap: minor portability fixes
20001         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20002         (usage): Omit leading capital and trailing . on help phrases, per
20003         GNU Coding Standards.
20004         (check_versions, top level): Prefix messages with script name.
20005
20006 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20007
20008         bootstrap: support --no-git option
20009         * build-aux/bootstrap: Add --no-git option, to be used when
20010         --gnulib-srcdir points to the exact desired checkout.
20011
20012 2011-01-21  Eric Blake  <eblake@redhat.com>
20013
20014         strerror_r-posix: work with glibc 2.13
20015         * lib/strerror_r.c (strerror_r): Fix return type.
20016
20017 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20018             Bruno Haible  <bruno@clisp.org>
20019
20020         uN_strstr: New unit tests.
20021         * modules/unistr/u8-strstr-tests: New file.
20022         * modules/unistr/u16-strstr-tests: New file.
20023         * modules/unistr/u32-strstr-tests: New file.
20024         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20025         * tests/unistr/test-u8-strstr.c: New file.
20026         * tests/unistr/test-u16-strstr.c: New file.
20027         * tests/unistr/test-u32-strstr.c: New file.
20028
20029 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20030             Bruno Haible  <bruno@clisp.org>
20031
20032         Make uN_strstr functions O(n) worst-case.
20033         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20034         16-bit and 32-bit unit cases, use the unibyte algorithm from
20035         lib/mbsstr.c.
20036         * lib/unistr/u8-strstr.c: Include <string.h>.
20037         (UNIT_IS_UINT8_T): New macro.
20038         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20039         (U_STRLEN, U_STRNLEN): New macros.
20040         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20041         (U_STRLEN, U_STRNLEN): New macros.
20042         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20043         (configure.ac): Update required libunistring version.
20044         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20045         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20046         malloca.
20047         (configure.ac): Update required libunistring version.
20048         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20049         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20050         malloca.
20051         (configure.ac): Update required libunistring version.
20052
20053 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20054             Bruno Haible  <bruno@clisp.org>
20055
20056         Prepare for faster uN_strstr functions.
20057         * lib/str-kmp.h: Support definable UNITs.
20058         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20059         needle_len argument.
20060         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20061         * lib/mbscasestr.c (mbscasestr): Likewise.
20062
20063 2011-01-21  Pádraig Brady <P@draigBrady.com>
20064
20065         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20066         * tests/test-malloca.c (main): Unset the environment variable
20067         to greatly speed up the test.
20068         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20069         * modules/malloca-tests: Depend on unsetenv.
20070
20071 2011-01-21  Pádraig Brady <P@draigBrady.com>
20072
20073         ignore-value: remove stdint dependency
20074         * lib/ignore-value.h: Remove <stdint.h>
20075         * modules/ignore-value: Remove stdint dependency.
20076
20077 2011-01-21  Jim Meyering  <meyering@redhat.com>
20078
20079         maint.mk: adjust variable name to be consistent with other gl_ vars
20080         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20081         to be lower case.
20082
20083 2011-01-20  Jim Meyering  <meyering@redhat.com>
20084
20085         maint.mk: make "check" depend on public-submodule-commit by default
20086         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20087
20088 2011-01-20  Bruno Haible  <bruno@clisp.org>
20089
20090         mbfile, mbiter: Complete change from 2008-12-21.
20091         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20092         * m4/mbiter.m4 (gl_MBITER): Likewise.
20093
20094 2011-01-20  Jim Meyering  <meyering@redhat.com>
20095
20096         init.sh: insert space between each function name and "()"
20097         * tests/init.sh: Make it a little easier to see that a function's
20098         name is "warn_", and not "warn" when looking at the first part of
20099         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20100
20101 2011-01-20  Jim Meyering  <meyering@redhat.com>
20102
20103         mountlist: clean up code formatting
20104         * lib/mountlist.c (read_file_system_list): Split a long line,
20105         correct bracing style, use NULL in place of "(struct statfs *)0",
20106         don't parenthesize return value, add spaces around "=" and after
20107         ";-in-for-stmt".
20108
20109 2011-01-14  Markus Duft <mduft@gentoo.org>
20110
20111         mountlist: add support for Interix
20112         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20113         Apply statvfs to all entries of /dev/fs.
20114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20115         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20116
20117 2011-01-20  Jim Meyering  <meyering@redhat.com>
20118
20119         maint.mk: improve the public-submodule-commit rule
20120         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20121         to suppress printing of its commands... unless V=1.
20122         Add git submodule's --quiet option to suppress printing of e.g.,
20123         "Entering gnulib" output.
20124         "cd" into $(srcdir) before running git submodule.
20125
20126 2011-01-20  Bruno Haible  <bruno@clisp.org>
20127
20128         include_next: Fix bug introduced on 2011-01-18.
20129         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20130         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20131         ac_cv_header_... variable if the second argument is not 'check'.
20132         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20133         gl_NEXT_HEADERS_INTERNAL.
20134
20135 2011-01-20  Bruno Haible  <bruno@clisp.org>
20136
20137         Allow the user to avoid the GNULIB_TEST_* macros.
20138         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20139         Suggested by Paul Eggert.
20140
20141 2011-01-14  Jim Meyering  <meyering@redhat.com>
20142
20143         bootstrap: avoid failure when there is no .gitmodules file
20144         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20145         has been assigned to, even when its value is the empty string.
20146         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20147         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20148         Reported by John W. Eaton <jwe@gnu.org>.
20149
20150 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20151
20152         assume <ctype.h>, ..., <time.h> exist
20153         For years gnulib has been assuming the existence of the headers
20154         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20155         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20156         them, since they don't appear to be needed.
20157         * README (Portability guidelines): Document this.
20158         * lib/flock.c: Assume <fcntl.h> exists.
20159         * lib/regex_internal.h: Assume <locale.h> exists.
20160         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20162         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20163         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20164         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20165         * m4/regex.m4 (gl_REGEX): Likewise.
20166         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20167         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20168         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20169         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20170         * tests/test-argp.c: Likewise.
20171         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20172
20173         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20174         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20175         AA_APPLE_UNIVERSAL_BUILD.  See
20176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20177         * NEWS: Document this.
20178
20179 2011-01-19  Eric Blake  <eblake@redhat.com>
20180
20181         c-stack: assume stack overflow if SA_SIGINFO unsupported
20182         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20183         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20184         sigaction will work.
20185         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20186         behavior match Linux.
20187         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20188
20189         stdbool-tests: accomodate Haiku
20190         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20191
20192         binary-io: fix O_TEXT on Haiku
20193         * modules/binary-io (Depends-on): Add fcntl-h.
20194         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20195         than blindly undefining O_TEXT.
20196         Reported by Scott McCreary.
20197
20198 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20199
20200         include_next: do not check for standard headers like stddef.h
20201
20202         I found this problem when modifying Emacs to use gnulib.
20203         I noticed that it added HAVE_STDDEF_H to config.h, even though
20204         gnulib always assumes <stddef.h> exists as per README and this
20205         symbol is unnecessary.
20206         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20207         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20208         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20209         faster for headers like stddef.h that are known to exist.
20210         (gl_CHECK_NEXT_HEADERS): Use it.
20211         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20212         rather than gl_CHECK_NEXT_HEADERS.
20213         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20214         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20215
20216 2011-01-18  Eric Blake  <eblake@redhat.com>
20217
20218         ansi-c++-opt: skip C++ dependency style if C++ is unused
20219         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20220         tests when we know C++ compilation is not desired.
20221         Reported by Scott McCreary.
20222
20223 2011-01-18  Bruno Haible  <bruno@clisp.org>
20224
20225         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20226         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20227         (main): Perform test also when getrlimit and setrlimit don't exist or
20228         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20229         limiting the address space size using setrlimit, compare the address
20230         space size before and after the the test.
20231         * tests/test-dprintf-posix2.c: Likewise.
20232         * tests/test-fprintf-posix3.sh: Update skip messages.
20233         * tests/test-dprintf-posix2.sh: Likewise.
20234         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20235         * modules/dprintf-posix-tests (Depends-on): Likewise.
20236         Reported by Bruce Korb <bkorb@gnu.org> and
20237         Gary V. Vaughan <gary@gnu.org>.
20238
20239 2011-01-18  Bruno Haible  <bruno@clisp.org>
20240
20241         get-rusage-as: Improvement for Cygwin.
20242         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20243         areas that are merely reserved.
20244
20245 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         strftime: remove dependencies on multibyte modules
20248
20249         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20250         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20251         only if __osf__ is defined, and I suspect OSF doesn't need these
20252         other modules.  If my guess is wrong, we'll need to come up with a
20253         variant of strftime that doesn't need the multibyte modules.
20254
20255         I discovered this problem when attempting modify Emacs to use the
20256         strftime module.  With the previous gnulib, this caused Emacs to
20257         need 31 new files, ranging from lib/config.charset to
20258         m4/wint_t.m4.  This was overkill and I expect would be offputting
20259         to the Emacs maintainers.  After this change, only 6 new files are
20260         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20261         stdbool.m4, and tm_gmtoff.m4.
20262
20263         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20264         Suggested by Bruno Haible in
20265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20266         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20267         and do not check for wchar.h.
20268         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20269         (Depends-on): Remove mbrlen, mbsinit, wchar.
20270
20271 2011-01-18  Bruno Haible  <bruno@clisp.org>
20272
20273         Tests for module 'get-rusage-as'.
20274         * modules/get-rusage-as-tests: New file.
20275         * tests/test-get-rusage-as.c: New file.
20276
20277         New module 'get-rusage-as'.
20278         * modules/get-rusage-as: New file.
20279         * lib/resource-ext.h: New file.
20280         * lib/get-rusage-as.c: New file.
20281
20282 2011-01-17  Eric Blake  <eblake@redhat.com>
20283
20284         sigaction: relax license from LGPLv3+ to LGPLv2+
20285         * modules/sigaction (License): Relax to LGPLv2+.
20286
20287 2011-01-14  Bruno Haible  <bruno@clisp.org>
20288
20289         filemode: Make function declarations usable in C++ mode.
20290         * lib/filemode.h: Enclose function declarations in extern "C" block.
20291         Reported by John W. Eaton <jwe@gnu.org>.
20292
20293 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20294
20295         save-cwd: no longer include "xgetcwd.h"
20296         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20297         This avoids a compilation failure in projects that use save-cwd
20298         without also using the xgetcwd module.
20299
20300 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20301
20302         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20303         This is so that a program like Emacs, which needs only dtoastr,
20304         does not have to bother with distributing and compiling ftoastr
20305         and ldtoastr.
20306         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20307         * modules/dtoastr, modules/ldtoastr: New files.
20308         * modules/ftoastr: Now works just for 'float'.
20309         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20310         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20311         dtoastr.c, ldtoastr.c.
20312
20313 2011-01-11  Jim Meyering  <meyering@redhat.com>
20314
20315         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20316         There is no need to work around the lack of the fchdir function,
20317         since gnulib can now provide a replacement when required.
20318         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20319         * modules/save-cwd (Depends-on): Add fchdir.
20320
20321 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         openat, save-cwd: avoid xmalloc
20324
20325         This removes a direct (but undocumented) dependency of openat on
20326         xalloc, along with an indirect dependency via save-cwd.  It also
20327         removes a dependency of save-cwd on xgetcwd, and thereby
20328         indirectly on xalloc.  This change causes the openat substitute
20329         to fall back on save_cwd when memory is tight, and for save_cwd to
20330         fail instead of dying when memory is tight, but that's good enough.
20331         Problem and initial idea for fix reported by Bastien Roucaries in
20332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20333
20334         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20335         xalloc.h (for xmalloc).
20336         (openat_proc_name): Use malloc, not xmalloc.
20337         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20338         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20339
20340         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20341         This avoids heap allocation for file names whose lengths are in
20342         the range 512..1023, with the upper bound increasing to at most
20343         4031 depending on the platform's PATH_MAX.  (We do not want
20344         pathmax.h here as it might supply a non-constant PATH_MAX.)
20345         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20346         Perhaps they should be moved to malloca.h?
20347         (OPENAT_BUFFER_SIZE): Use them.
20348
20349 2011-01-10  Bruno Haible  <bruno@clisp.org>
20350
20351         doc: Update users.txt.
20352         * users.txt: Add recutils.
20353
20354 2011-01-09  Karl Berry  <karl@gnu.org>
20355
20356         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20357
20358         * doc/configmake.texi: New file.
20359         * doc/gnulib.texi: Include it.
20360         * modules/configmake: Move documentation from here.
20361
20362 2011-01-09  Bruno Haible  <bruno@clisp.org>
20363
20364         Update to Unicode 6.0.0.
20365         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20366         (get_lbp): Update for Unicode 6.0.0.
20367         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20368         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20369         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20370         U+11001, U+11038..U+11046. Remove U+06DE.
20371         (uc_width): Fix bounds of planes.
20372         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20373         lib/uniwidth/width.c.
20374         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20375         trailing whitespace removed.
20376         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20377         without comments, but with the original copyright notice.
20378         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20379         * lib/unicase/ignorable.h: Likewise.
20380         * lib/unicase/tocasefold.h: Likewise.
20381         * lib/unicase/tolower.h: Likewise.
20382         * lib/unicase/totitle.h: Likewise.
20383         * lib/unicase/toupper.h: Likewise.
20384         * lib/unictype/bidi_of.h: Likewise.
20385         * lib/unictype/blocks.h: Likewise.
20386         * lib/unictype/categ_C.h: Likewise.
20387         * lib/unictype/categ_Cn.h: Likewise.
20388         * lib/unictype/categ_L.h: Likewise.
20389         * lib/unictype/categ_Ll.h: Likewise.
20390         * lib/unictype/categ_Lm.h: Likewise.
20391         * lib/unictype/categ_Lo.h: Likewise.
20392         * lib/unictype/categ_Lu.h: Likewise.
20393         * lib/unictype/categ_M.h: Likewise.
20394         * lib/unictype/categ_Mc.h: Likewise.
20395         * lib/unictype/categ_Me.h: Likewise.
20396         * lib/unictype/categ_Mn.h: Likewise.
20397         * lib/unictype/categ_N.h: Likewise.
20398         * lib/unictype/categ_Nd.h: Likewise.
20399         * lib/unictype/categ_No.h: Likewise.
20400         * lib/unictype/categ_P.h: Likewise.
20401         * lib/unictype/categ_Po.h: Likewise.
20402         * lib/unictype/categ_S.h: Likewise.
20403         * lib/unictype/categ_Sc.h: Likewise.
20404         * lib/unictype/categ_Sk.h: Likewise.
20405         * lib/unictype/categ_Sm.h: Likewise.
20406         * lib/unictype/categ_So.h: Likewise.
20407         * lib/unictype/categ_of.h: Likewise.
20408         * lib/unictype/combining.h: Likewise.
20409         * lib/unictype/ctype_alnum.h: Likewise.
20410         * lib/unictype/ctype_alpha.h: Likewise.
20411         * lib/unictype/ctype_graph.h: Likewise.
20412         * lib/unictype/ctype_lower.h: Likewise.
20413         * lib/unictype/ctype_print.h: Likewise.
20414         * lib/unictype/ctype_punct.h: Likewise.
20415         * lib/unictype/ctype_upper.h: Likewise.
20416         * lib/unictype/decdigit.h: Likewise.
20417         * lib/unictype/digit.h: Likewise.
20418         * lib/unictype/numeric.h: Likewise.
20419         * lib/unictype/pr_alphabetic.h: Likewise.
20420         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20421         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20422         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20423         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20424         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20425         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20426         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20427         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20428         * lib/unictype/pr_case_ignorable.h: Likewise.
20429         * lib/unictype/pr_cased.h: Likewise.
20430         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20431         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20432         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20433         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20434         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20435         * lib/unictype/pr_combining.h: Likewise.
20436         * lib/unictype/pr_composite.h: Likewise.
20437         * lib/unictype/pr_currency_symbol.h: Likewise.
20438         * lib/unictype/pr_decimal_digit.h: Likewise.
20439         * lib/unictype/pr_deprecated.h: Likewise.
20440         * lib/unictype/pr_format_control.h: Likewise.
20441         * lib/unictype/pr_grapheme_base.h: Likewise.
20442         * lib/unictype/pr_grapheme_extend.h: Likewise.
20443         * lib/unictype/pr_grapheme_link.h: Likewise.
20444         * lib/unictype/pr_id_continue.h: Likewise.
20445         * lib/unictype/pr_id_start.h: Likewise.
20446         * lib/unictype/pr_ideographic.h: Likewise.
20447         * lib/unictype/pr_lowercase.h: Likewise.
20448         * lib/unictype/pr_math.h: Likewise.
20449         * lib/unictype/pr_numeric.h: Likewise.
20450         * lib/unictype/pr_other_alphabetic.h: Likewise.
20451         * lib/unictype/pr_other_id_continue.h: Likewise.
20452         * lib/unictype/pr_other_math.h: Likewise.
20453         * lib/unictype/pr_punctuation.h: Likewise.
20454         * lib/unictype/pr_sentence_terminal.h: Likewise.
20455         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20456         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20457         * lib/unictype/pr_unified_ideograph.h: Likewise.
20458         * lib/unictype/pr_uppercase.h: Likewise.
20459         * lib/unictype/pr_xid_continue.h: Likewise.
20460         * lib/unictype/pr_xid_start.h: Likewise.
20461         * lib/unictype/scripts.h: Likewise.
20462         * lib/unictype/scripts_byname.gperf: Likewise.
20463         * lib/unictype/sy_java_ident.h: Likewise.
20464         * lib/unigbrk/gbrkprop.h: Likewise.
20465         * lib/unilbrk/lbrkprop1.h: Likewise.
20466         * lib/unilbrk/lbrkprop2.h: Likewise.
20467         * lib/uninorm/decomposition-table2.h: Likewise.
20468         * lib/uniwbrk/wbrkprop.h: Likewise.
20469         * tests/unicase/test-cased.c: Likewise.
20470         * tests/unicase/test-ignorable.c: Likewise.
20471         * tests/unicase/test-uc_tolower.c: Likewise.
20472         * tests/unicase/test-uc_totitle.c: Likewise.
20473         * tests/unicase/test-uc_toupper.c: Likewise.
20474         * tests/unictype/test-categ_C.c: Likewise.
20475         * tests/unictype/test-categ_Cn.c: Likewise.
20476         * tests/unictype/test-categ_L.c: Likewise.
20477         * tests/unictype/test-categ_Ll.c: Likewise.
20478         * tests/unictype/test-categ_Lm.c: Likewise.
20479         * tests/unictype/test-categ_Lo.c: Likewise.
20480         * tests/unictype/test-categ_Lu.c: Likewise.
20481         * tests/unictype/test-categ_M.c: Likewise.
20482         * tests/unictype/test-categ_Mc.c: Likewise.
20483         * tests/unictype/test-categ_Me.c: Likewise.
20484         * tests/unictype/test-categ_Mn.c: Likewise.
20485         * tests/unictype/test-categ_N.c: Likewise.
20486         * tests/unictype/test-categ_Nd.c: Likewise.
20487         * tests/unictype/test-categ_No.c: Likewise.
20488         * tests/unictype/test-categ_P.c: Likewise.
20489         * tests/unictype/test-categ_Po.c: Likewise.
20490         * tests/unictype/test-categ_S.c: Likewise.
20491         * tests/unictype/test-categ_Sc.c: Likewise.
20492         * tests/unictype/test-categ_Sk.c: Likewise.
20493         * tests/unictype/test-categ_Sm.c: Likewise.
20494         * tests/unictype/test-categ_So.c: Likewise.
20495         * tests/unictype/test-ctype_alnum.c: Likewise.
20496         * tests/unictype/test-ctype_alpha.c: Likewise.
20497         * tests/unictype/test-ctype_graph.c: Likewise.
20498         * tests/unictype/test-ctype_lower.c: Likewise.
20499         * tests/unictype/test-ctype_print.c: Likewise.
20500         * tests/unictype/test-ctype_punct.c: Likewise.
20501         * tests/unictype/test-ctype_upper.c: Likewise.
20502         * tests/unictype/test-decdigit.h: Likewise.
20503         * tests/unictype/test-digit.h: Likewise.
20504         * tests/unictype/test-numeric.h: Likewise.
20505         * tests/unictype/test-pr_alphabetic.c: Likewise.
20506         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20507         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20508         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20509         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20510         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20511         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20512         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20513         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20514         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20515         * tests/unictype/test-pr_cased.c: Likewise.
20516         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20517         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20518         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20519         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20520         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20521         * tests/unictype/test-pr_combining.c: Likewise.
20522         * tests/unictype/test-pr_composite.c: Likewise.
20523         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20524         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20525         * tests/unictype/test-pr_deprecated.c: Likewise.
20526         * tests/unictype/test-pr_format_control.c: Likewise.
20527         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20528         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20529         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20530         * tests/unictype/test-pr_id_continue.c: Likewise.
20531         * tests/unictype/test-pr_id_start.c: Likewise.
20532         * tests/unictype/test-pr_ideographic.c: Likewise.
20533         * tests/unictype/test-pr_lowercase.c: Likewise.
20534         * tests/unictype/test-pr_math.c: Likewise.
20535         * tests/unictype/test-pr_numeric.c: Likewise.
20536         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20537         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20538         * tests/unictype/test-pr_other_math.c: Likewise.
20539         * tests/unictype/test-pr_punctuation.c: Likewise.
20540         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20541         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20542         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20543         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20544         * tests/unictype/test-pr_uppercase.c: Likewise.
20545         * tests/unictype/test-pr_xid_continue.c: Likewise.
20546         * tests/unictype/test-pr_xid_start.c: Likewise.
20547         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20548         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20549         changes.
20550         * lib/unictype/categ_Cc.h: Likewise.
20551         * lib/unictype/categ_Cf.h: Likewise.
20552         * lib/unictype/categ_Co.h: Likewise.
20553         * lib/unictype/categ_Cs.h: Likewise.
20554         * lib/unictype/categ_Lt.h: Likewise.
20555         * lib/unictype/categ_Nl.h: Likewise.
20556         * lib/unictype/categ_Pc.h: Likewise.
20557         * lib/unictype/categ_Pd.h: Likewise.
20558         * lib/unictype/categ_Pe.h: Likewise.
20559         * lib/unictype/categ_Pf.h: Likewise.
20560         * lib/unictype/categ_Pi.h: Likewise.
20561         * lib/unictype/categ_Ps.h: Likewise.
20562         * lib/unictype/categ_Z.h: Likewise.
20563         * lib/unictype/categ_Zl.h: Likewise.
20564         * lib/unictype/categ_Zp.h: Likewise.
20565         * lib/unictype/categ_Zs.h: Likewise.
20566         * lib/unictype/ctype_blank.h: Likewise.
20567         * lib/unictype/ctype_cntrl.h: Likewise.
20568         * lib/unictype/ctype_digit.h: Likewise.
20569         * lib/unictype/ctype_space.h: Likewise.
20570         * lib/unictype/ctype_xdigit.h: Likewise.
20571         * lib/unictype/mirror.h: Likewise.
20572         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20573         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20574         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20575         * lib/unictype/pr_bidi_control.h: Likewise.
20576         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20577         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20578         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20579         * lib/unictype/pr_bidi_pdf.h: Likewise.
20580         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20581         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20582         * lib/unictype/pr_dash.h: Likewise.
20583         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20584         * lib/unictype/pr_diacritic.h: Likewise.
20585         * lib/unictype/pr_extender.h: Likewise.
20586         * lib/unictype/pr_hex_digit.h: Likewise.
20587         * lib/unictype/pr_hyphen.h: Likewise.
20588         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20589         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20590         * lib/unictype/pr_ignorable_control.h: Likewise.
20591         * lib/unictype/pr_iso_control.h: Likewise.
20592         * lib/unictype/pr_join_control.h: Likewise.
20593         * lib/unictype/pr_left_of_pair.h: Likewise.
20594         * lib/unictype/pr_line_separator.h: Likewise.
20595         * lib/unictype/pr_logical_order_exception.h: Likewise.
20596         * lib/unictype/pr_non_break.h: Likewise.
20597         * lib/unictype/pr_not_a_character.h: Likewise.
20598         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20599         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20600         * lib/unictype/pr_other_id_start.h: Likewise.
20601         * lib/unictype/pr_other_lowercase.h: Likewise.
20602         * lib/unictype/pr_other_uppercase.h: Likewise.
20603         * lib/unictype/pr_paired_punctuation.h: Likewise.
20604         * lib/unictype/pr_paragraph_separator.h: Likewise.
20605         * lib/unictype/pr_pattern_syntax.h: Likewise.
20606         * lib/unictype/pr_pattern_white_space.h: Likewise.
20607         * lib/unictype/pr_private_use.h: Likewise.
20608         * lib/unictype/pr_quotation_mark.h: Likewise.
20609         * lib/unictype/pr_radical.h: Likewise.
20610         * lib/unictype/pr_soft_dotted.h: Likewise.
20611         * lib/unictype/pr_space.h: Likewise.
20612         * lib/unictype/pr_titlecase.h: Likewise.
20613         * lib/unictype/pr_variation_selector.h: Likewise.
20614         * lib/unictype/pr_white_space.h: Likewise.
20615         * lib/unictype/pr_zero_width.h: Likewise.
20616         * lib/unictype/sy_c_ident.h: Likewise.
20617         * lib/unictype/sy_c_whitespace.h: Likewise.
20618         * lib/unictype/sy_java_whitespace.h: Likewise.
20619         * lib/uninorm/composition-table.gperf: Likewise.
20620         * lib/uninorm/decomposition-table1.h: Likewise.
20621         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20622         LB8.
20623         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20624         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20625         * modules/unictype/*: Bump version number of expected libunistring
20626         version.
20627
20628 2011-01-09  Bruno Haible  <bruno@clisp.org>
20629
20630         Update to Unicode 5.2.0.
20631         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20632         trailing whitespace removed.
20633
20634 2011-01-09  Bruno Haible  <bruno@clisp.org>
20635
20636         New Unicode character properties, from Unicode 5.2.0.
20637         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20638         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20639         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20640         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20641         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20642         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20643         uc_is_property_cased, uc_is_property_case_ignorable,
20644         uc_is_property_changes_when_lowercased,
20645         uc_is_property_changes_when_uppercased,
20646         uc_is_property_changes_when_titlecased,
20647         uc_is_property_changes_when_casefolded,
20648         uc_is_property_changes_when_casemapped): New declarations.
20649         * lib/unictype/pr_byname.gperf: Add the new properties.
20650         * modules/unictype/property-byname (Depends-on): Depend on the new
20651         properties modules.
20652         * modules/unictype/property-all (Depends-on): Likewise.
20653         * MODULES.html.sh (Unicode string functions): Add
20654         unictype/property-case-ignorable, unictype/property-cased,
20655         unictype/property-changes-when-casefolded,
20656         unictype/property-changes-when-casemapped,
20657         unictype/property-changes-when-lowercased,
20658         unictype/property-changes-when-titlecased,
20659         unictype/property-changes-when-uppercased.
20660
20661         New module 'unictype/property-changes-when-casemapped'.
20662         * modules/unictype/property-changes-when-casemapped: New file.
20663         * lib/unictype/pr_changes_when_casemapped.c: New file.
20664         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20665         generated by gen-uni-tables.
20666         * modules/unictype/property-changes-when-casemapped-tests: New file.
20667         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20668         automatically generated by gen-uni-tables.
20669
20670         New module 'unictype/property-changes-when-casefolded'.
20671         * modules/unictype/property-changes-when-casefolded: New file.
20672         * lib/unictype/pr_changes_when_casefolded.c: New file.
20673         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20674         generated by gen-uni-tables.
20675         * modules/unictype/property-changes-when-casefolded-tests: New file.
20676         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20677         automatically generated by gen-uni-tables.
20678
20679         New module 'unictype/property-changes-when-titlecased'.
20680         * modules/unictype/property-changes-when-titlecased: New file.
20681         * lib/unictype/pr_changes_when_titlecased.c: New file.
20682         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20683         generated by gen-uni-tables.
20684         * modules/unictype/property-changes-when-titlecased-tests: New file.
20685         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20686         automatically generated by gen-uni-tables.
20687
20688         New module 'unictype/property-changes-when-uppercased'.
20689         * modules/unictype/property-changes-when-uppercased: New file.
20690         * lib/unictype/pr_changes_when_uppercased.c: New file.
20691         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20692         generated by gen-uni-tables.
20693         * modules/unictype/property-changes-when-uppercased-tests: New file.
20694         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20695         automatically generated by gen-uni-tables.
20696
20697         New module 'unictype/property-changes-when-lowercased'.
20698         * modules/unictype/property-changes-when-lowercased: New file.
20699         * lib/unictype/pr_changes_when_lowercased.c: New file.
20700         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20701         generated by gen-uni-tables.
20702         * modules/unictype/property-changes-when-lowercased-tests: New file.
20703         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20704         automatically generated by gen-uni-tables.
20705
20706         New module 'unictype/property-case-ignorable'.
20707         * modules/unictype/property-case-ignorable: New file.
20708         * lib/unictype/pr_case_ignorable.c: New file.
20709         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20710         by gen-uni-tables.
20711         * modules/unictype/property-case-ignorable-tests: New file.
20712         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20713         generated by gen-uni-tables.
20714
20715         New module 'unictype/property-cased'.
20716         * modules/unictype/property-cased: New file.
20717         * lib/unictype/pr_cased.c: New file.
20718         * lib/unictype/pr_cased.h: New file, automatically generated by
20719         gen-uni-tables.
20720         * modules/unictype/property-cased-tests: New file.
20721         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20722         gen-uni-tables.
20723
20724 2011-01-09  Bruno Haible  <bruno@clisp.org>
20725
20726         Update to Unicode 5.2.0.
20727         * lib/gen-uni-tables.c (output_predicate, output_category,
20728         output_combclass, output_bidi_category, output_decimal_digit_test,
20729         output_decimal_digit, output_digit_test, output_digit,
20730         output_numeric_test, output_numeric, output_mirror, output_scripts,
20731         output_scripts_byname, output_blocks, output_ident_category): Fix
20732         comment header.
20733         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20734         get_wbp.
20735         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20736         items.
20737         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20738         Changes_When_Lowercased, Changes_When_Uppercased,
20739         Changes_When_Titlecased, Changes_When_Casefolded,
20740         Changes_When_Casemapped.
20741         (is_property_alphabetic, is_property_default_ignorable_code_point):
20742         Update for Unicode 5.2.0.
20743         (is_property_cased, is_property_case_ignorable,
20744         is_property_changes_when_lowercased,
20745         is_property_changes_when_uppercased,
20746         is_property_changes_when_titlecased,
20747         is_property_changes_when_casefolded,
20748         is_property_changes_when_casemapped): New functions.
20749         (output_properties): Output also the properties cased, case_ignorable,
20750         changes_when_lowercased, changes_when_uppercased,
20751         changes_when_titlecased, changes_when_casefolded,
20752         changes_when_casemapped.
20753         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20754         Unicode TR#11 revision 17 -> 19.
20755         (LBP_CP): New enumeration value.
20756         (LBP_*): Adjust values accordingly.
20757         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20758         TR#14 revision 22 -> 24.
20759         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20760         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20761         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20762         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20763         is_WBP_MIDLETTER.
20764         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20765         the code1 and code2 of each composition rule.
20766         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20767         * lib/unicase/ignorable.h: Likewise.
20768         * lib/unicase/tocasefold.h: Likewise.
20769         * lib/unicase/tolower.h: Likewise.
20770         * lib/unicase/totitle.h: Likewise.
20771         * lib/unicase/toupper.h: Likewise.
20772         * lib/unictype/bidi_of.h: Likewise.
20773         * lib/unictype/blocks.h: Likewise.
20774         * lib/unictype/categ_C.h: Likewise.
20775         * lib/unictype/categ_Cf.h: Likewise.
20776         * lib/unictype/categ_Cn.h: Likewise.
20777         * lib/unictype/categ_L.h: Likewise.
20778         * lib/unictype/categ_Ll.h: Likewise.
20779         * lib/unictype/categ_Lm.h: Likewise.
20780         * lib/unictype/categ_Lo.h: Likewise.
20781         * lib/unictype/categ_Lu.h: Likewise.
20782         * lib/unictype/categ_M.h: Likewise.
20783         * lib/unictype/categ_Mc.h: Likewise.
20784         * lib/unictype/categ_Mn.h: Likewise.
20785         * lib/unictype/categ_N.h: Likewise.
20786         * lib/unictype/categ_Nd.h: Likewise.
20787         * lib/unictype/categ_Nl.h: Likewise.
20788         * lib/unictype/categ_No.h: Likewise.
20789         * lib/unictype/categ_P.h: Likewise.
20790         * lib/unictype/categ_Pd.h: Likewise.
20791         * lib/unictype/categ_Po.h: Likewise.
20792         * lib/unictype/categ_S.h: Likewise.
20793         * lib/unictype/categ_Sc.h: Likewise.
20794         * lib/unictype/categ_So.h: Likewise.
20795         * lib/unictype/categ_of.h: Likewise.
20796         * lib/unictype/combining.h: Likewise.
20797         * lib/unictype/ctype_alnum.h: Likewise.
20798         * lib/unictype/ctype_alpha.h: Likewise.
20799         * lib/unictype/ctype_graph.h: Likewise.
20800         * lib/unictype/ctype_lower.h: Likewise.
20801         * lib/unictype/ctype_print.h: Likewise.
20802         * lib/unictype/ctype_punct.h: Likewise.
20803         * lib/unictype/ctype_upper.h: Likewise.
20804         * lib/unictype/decdigit.h: Likewise.
20805         * lib/unictype/digit.h: Likewise.
20806         * lib/unictype/numeric.h: Likewise.
20807         * lib/unictype/pr_alphabetic.h: Likewise.
20808         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20809         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20810         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20811         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20812         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20813         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20814         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20815         * lib/unictype/pr_combining.h: Likewise.
20816         * lib/unictype/pr_composite.h: Likewise.
20817         * lib/unictype/pr_currency_symbol.h: Likewise.
20818         * lib/unictype/pr_dash.h: Likewise.
20819         * lib/unictype/pr_decimal_digit.h: Likewise.
20820         * lib/unictype/pr_deprecated.h: Likewise.
20821         * lib/unictype/pr_diacritic.h: Likewise.
20822         * lib/unictype/pr_extender.h: Likewise.
20823         * lib/unictype/pr_grapheme_base.h: Likewise.
20824         * lib/unictype/pr_grapheme_extend.h: Likewise.
20825         * lib/unictype/pr_grapheme_link.h: Likewise.
20826         * lib/unictype/pr_id_continue.h: Likewise.
20827         * lib/unictype/pr_id_start.h: Likewise.
20828         * lib/unictype/pr_ideographic.h: Likewise.
20829         * lib/unictype/pr_ignorable_control.h: Likewise.
20830         * lib/unictype/pr_logical_order_exception.h: Likewise.
20831         * lib/unictype/pr_lowercase.h: Likewise.
20832         * lib/unictype/pr_numeric.h: Likewise.
20833         * lib/unictype/pr_other_alphabetic.h: Likewise.
20834         * lib/unictype/pr_punctuation.h: Likewise.
20835         * lib/unictype/pr_sentence_terminal.h: Likewise.
20836         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20837         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20838         * lib/unictype/pr_unified_ideograph.h: Likewise.
20839         * lib/unictype/pr_uppercase.h: Likewise.
20840         * lib/unictype/pr_xid_continue.h: Likewise.
20841         * lib/unictype/pr_xid_start.h: Likewise.
20842         * lib/unictype/pr_zero_width.h: Likewise.
20843         * lib/unictype/scripts.h: Likewise.
20844         * lib/unictype/scripts_byname.gperf: Likewise.
20845         * lib/unictype/sy_java_ident.h: Likewise.
20846         * lib/unigbrk/gbrkprop.h: Likewise.
20847         * lib/unilbrk/lbrkprop1.h: Likewise.
20848         * lib/unilbrk/lbrkprop2.h: Likewise.
20849         * lib/unilbrk/lbrktables.h: Likewise.
20850         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20851         LBP_CP. Implement rule LB30.
20852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20853         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20854         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20855         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20856         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20857         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20858         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20859         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20860         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20861         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20862         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20863         bits instead of 16 bits in the code1 and code2 of each composition
20864         rule.
20865         (uc_composition): Update for Unicode 5.2.0.
20866         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20867         * lib/uninorm/decomposition-table2.h: Likewise.
20868         * lib/uniwbrk/wbrkprop.h: Likewise.
20869         * tests/unicase/test-cased.c: Likewise.
20870         * tests/unicase/test-ignorable.c: Likewise.
20871         * tests/unicase/test-uc_tolower.c: Likewise.
20872         * tests/unicase/test-uc_totitle.c: Likewise.
20873         * tests/unicase/test-uc_toupper.c: Likewise.
20874         * tests/unictype/test-categ_C.c: Likewise.
20875         * tests/unictype/test-categ_Cf.c: Likewise.
20876         * tests/unictype/test-categ_Cn.c: Likewise.
20877         * tests/unictype/test-categ_L.c: Likewise.
20878         * tests/unictype/test-categ_Ll.c: Likewise.
20879         * tests/unictype/test-categ_Lm.c: Likewise.
20880         * tests/unictype/test-categ_Lo.c: Likewise.
20881         * tests/unictype/test-categ_Lu.c: Likewise.
20882         * tests/unictype/test-categ_M.c: Likewise.
20883         * tests/unictype/test-categ_Mc.c: Likewise.
20884         * tests/unictype/test-categ_Mn.c: Likewise.
20885         * tests/unictype/test-categ_N.c: Likewise.
20886         * tests/unictype/test-categ_Nd.c: Likewise.
20887         * tests/unictype/test-categ_Nl.c: Likewise.
20888         * tests/unictype/test-categ_No.c: Likewise.
20889         * tests/unictype/test-categ_P.c: Likewise.
20890         * tests/unictype/test-categ_Pd.c: Likewise.
20891         * tests/unictype/test-categ_Po.c: Likewise.
20892         * tests/unictype/test-categ_S.c: Likewise.
20893         * tests/unictype/test-categ_Sc.c: Likewise.
20894         * tests/unictype/test-categ_So.c: Likewise.
20895         * tests/unictype/test-ctype_alnum.c: Likewise.
20896         * tests/unictype/test-ctype_alpha.c: Likewise.
20897         * tests/unictype/test-ctype_graph.c: Likewise.
20898         * tests/unictype/test-ctype_lower.c: Likewise.
20899         * tests/unictype/test-ctype_print.c: Likewise.
20900         * tests/unictype/test-ctype_punct.c: Likewise.
20901         * tests/unictype/test-ctype_upper.c: Likewise.
20902         * tests/unictype/test-decdigit.h: Likewise.
20903         * tests/unictype/test-digit.h: Likewise.
20904         * tests/unictype/test-numeric.h: Likewise.
20905         * tests/unictype/test-pr_alphabetic.c: Likewise.
20906         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20907         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20908         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20909         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20910         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20911         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20912         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20913         * tests/unictype/test-pr_combining.c: Likewise.
20914         * tests/unictype/test-pr_composite.c: Likewise.
20915         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20916         * tests/unictype/test-pr_dash.c: Likewise.
20917         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20918         * tests/unictype/test-pr_deprecated.c: Likewise.
20919         * tests/unictype/test-pr_diacritic.c: Likewise.
20920         * tests/unictype/test-pr_extender.c: Likewise.
20921         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20922         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20923         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20924         * tests/unictype/test-pr_id_continue.c: Likewise.
20925         * tests/unictype/test-pr_id_start.c: Likewise.
20926         * tests/unictype/test-pr_ideographic.c: Likewise.
20927         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20928         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20929         * tests/unictype/test-pr_lowercase.c: Likewise.
20930         * tests/unictype/test-pr_numeric.c: Likewise.
20931         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20932         * tests/unictype/test-pr_punctuation.c: Likewise.
20933         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20934         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20935         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20936         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20937         * tests/unictype/test-pr_uppercase.c: Likewise.
20938         * tests/unictype/test-pr_xid_continue.c: Likewise.
20939         * tests/unictype/test-pr_xid_start.c: Likewise.
20940         * tests/unictype/test-pr_zero_width.c: Likewise.
20941         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20942         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20943         changed behaviour: line breaking is now disallowed between a letter
20944         or '=' and '('.
20945         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20946         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20947         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20948         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20949         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20950         lib/uniwidth/width.c.
20951         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20952         without comments, but with the original copyright notice.
20953         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20954         changes.
20955         * lib/unictype/categ_Cc.h: Likewise.
20956         * lib/unictype/categ_Co.h: Likewise.
20957         * lib/unictype/categ_Cs.h: Likewise.
20958         * lib/unictype/categ_Lt.h: Likewise.
20959         * lib/unictype/categ_Me.h: Likewise.
20960         * lib/unictype/categ_Pc.h: Likewise.
20961         * lib/unictype/categ_Pe.h: Likewise.
20962         * lib/unictype/categ_Pf.h: Likewise.
20963         * lib/unictype/categ_Pi.h: Likewise.
20964         * lib/unictype/categ_Ps.h: Likewise.
20965         * lib/unictype/categ_Sk.h: Likewise.
20966         * lib/unictype/categ_Sm.h: Likewise.
20967         * lib/unictype/categ_Z.h: Likewise.
20968         * lib/unictype/categ_Zl.h: Likewise.
20969         * lib/unictype/categ_Zp.h: Likewise.
20970         * lib/unictype/categ_Zs.h: Likewise.
20971         * lib/unictype/ctype_blank.h: Likewise.
20972         * lib/unictype/ctype_cntrl.h: Likewise.
20973         * lib/unictype/ctype_digit.h: Likewise.
20974         * lib/unictype/ctype_space.h: Likewise.
20975         * lib/unictype/ctype_xdigit.h: Likewise.
20976         * lib/unictype/mirror.h: Likewise.
20977         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20978         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20979         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20980         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20981         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20982         * lib/unictype/pr_bidi_control.h: Likewise.
20983         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20984         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20985         * lib/unictype/pr_bidi_pdf.h: Likewise.
20986         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20987         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20988         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20989         * lib/unictype/pr_format_control.h: Likewise.
20990         * lib/unictype/pr_hex_digit.h: Likewise.
20991         * lib/unictype/pr_hyphen.h: Likewise.
20992         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20993         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20994         * lib/unictype/pr_iso_control.h: Likewise.
20995         * lib/unictype/pr_join_control.h: Likewise.
20996         * lib/unictype/pr_left_of_pair.h: Likewise.
20997         * lib/unictype/pr_line_separator.h: Likewise.
20998         * lib/unictype/pr_math.h: Likewise.
20999         * lib/unictype/pr_non_break.h: Likewise.
21000         * lib/unictype/pr_not_a_character.h: Likewise.
21001         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21002         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21003         * lib/unictype/pr_other_id_continue.h: Likewise.
21004         * lib/unictype/pr_other_id_start.h: Likewise.
21005         * lib/unictype/pr_other_lowercase.h: Likewise.
21006         * lib/unictype/pr_other_math.h: Likewise.
21007         * lib/unictype/pr_other_uppercase.h: Likewise.
21008         * lib/unictype/pr_paired_punctuation.h: Likewise.
21009         * lib/unictype/pr_paragraph_separator.h: Likewise.
21010         * lib/unictype/pr_pattern_syntax.h: Likewise.
21011         * lib/unictype/pr_pattern_white_space.h: Likewise.
21012         * lib/unictype/pr_private_use.h: Likewise.
21013         * lib/unictype/pr_quotation_mark.h: Likewise.
21014         * lib/unictype/pr_radical.h: Likewise.
21015         * lib/unictype/pr_soft_dotted.h: Likewise.
21016         * lib/unictype/pr_space.h: Likewise.
21017         * lib/unictype/pr_titlecase.h: Likewise.
21018         * lib/unictype/pr_variation_selector.h: Likewise.
21019         * lib/unictype/pr_white_space.h: Likewise.
21020         * lib/unictype/sy_c_ident.h: Likewise.
21021         * lib/unictype/sy_c_whitespace.h: Likewise.
21022         * lib/unictype/sy_java_whitespace.h: Likewise.
21023         * modules/uni*/*: Bump version number of expected libunistring version.
21024         Reported by Simon Josefsson.
21025
21026 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21027
21028         useless-if-before-free: fix typo in --help and make the internal,
21029         automatic version date update process work once again.
21030         --help output contained a NUL character instead of the
21031         backslash-zero that was intended.  Also, the "must lie within
21032         the first 8 lines" line is on line 9, and hence not getting
21033         automatically updated.
21034         * build-aux/useless-if-before-free: Fix the former by adding a
21035         backslash, and the latter by condensing the three lines of what-it-does
21036         to a single line, leaving one line of slack for the future.
21037
21038 2011-01-09  Bruno Haible  <bruno@clisp.org>
21039
21040         uniwidth/width: Fix width of U+1D173..U+1D17A.
21041         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21042         symbolic_width, output_width_property_test): New functions.
21043         (main): Invoke output_nonspacing_property, output_width_property_test.
21044         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21045         U+1D173..U+1D17A.
21046         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21047         1.
21048         * modules/uniwidth/*: Bump version number of expected libunistring
21049         version.
21050         * modules/unilbrk/*: Likewise.
21051
21052 2011-01-08  Bruno Haible  <bruno@clisp.org>
21053
21054         uninorm tests: Preserve copyright of Unicode data file.
21055         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21056         Mention modifications.
21057
21058 2011-01-08  Bruno Haible  <bruno@clisp.org>
21059
21060         gen-uni-tables: Prepare for Unicode 5.2.0.
21061         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21062         (debug_output_lbp, output_lbp): Update.
21063
21064 2011-01-08  Bruno Haible  <bruno@clisp.org>
21065
21066         unilbrk: Clarify gen-uni-tables.c code.
21067         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21068         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21069         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21070
21071 2011-01-07  Bruno Haible  <bruno@clisp.org>
21072
21073         strtod: Restore errno when successfully parsing Infinity or NaN.
21074         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21075         restore the original errno.
21076
21077 2011-01-07  Bruno Haible  <bruno@clisp.org>
21078
21079         remove test: Avoid failure on HP-UX 11.
21080         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21081
21082 2011-01-07  Bruno Haible  <bruno@clisp.org>
21083
21084         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21085         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21086         error code.
21087
21088 2011-01-07  Pádraig Brady <P@draigBrady.com>
21089
21090         ignore-value: fixup comments, and add Eric Blake
21091         as an author since he rewrote the macros.
21092         * lib/ignore-value.h (ignore_value):  State that
21093         we now support aggregates.  Also specify exactly
21094         when the GCC warn_unused_result feature was added.
21095
21096 2011-01-06  Eric Blake  <eblake@redhat.com>
21097
21098         ignore-value: support aggregate types
21099         * lib/ignore-value.h (ignore_value): Provide separate gcc
21100         definition.
21101         * modules/ignore-value-tests: New test module.
21102         * tests/test-ignore-value.c: New test.
21103
21104         maint.mk: improve sc_prohibit_strcmp regex
21105         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21106         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21107         definition of STRNEQ.
21108
21109         signal: work around Haiku issue with SIGBUS
21110         * lib/siglist.h: Add comment.
21111         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21112         strsignal's favoring of SIGSEGV.
21113         * tests/test-signal.c (main): Avoid test failure.
21114         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21115         Reported by Scott McCreary.
21116
21117         maint.mk: add pre-release check to ensure submodule commits are public
21118         * top/maint.mk (public-submodule-commit): New rule.
21119         (submodule-checks): New variable.
21120         (alpha beta stable): Depend on the variable.
21121
21122 2011-01-05  Pádraig Brady <P@draigBrady.com>
21123         and Jim Meyering  <meyering@redhat.com>
21124
21125         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21126         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21127         (ATTRIBUTE_DEPRECATED): Define.
21128         (_ignore_case): New function.
21129         (ignore_value): New macro, to replace the old function.
21130         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21131         * modules/ignore-value (Depends-on): Add stdint.
21132
21133 2011-01-04  Eric Blake  <eblake@redhat.com>
21134
21135         doc: regenerate INSTALL
21136         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21137         @firstparagraphindent support, now that autoconf dropped it.
21138         (INSTALL_PRELUDE): Reinstate old macro.
21139         * doc/install.texi: Resync from autoconf.
21140         * doc/INSTALL: Reflect recent autoconf update.
21141         * doc/INSTALL.ISO: Likewise.
21142         * doc/INSTALL.UTF-8: Likewise.
21143         Reported by Karl Berry.
21144
21145 2011-01-04  Bruce Korb  <address@hidden>
21146
21147         git-version-gen: avoid a sub-shell
21148         * build-aux/git-version-gen: Redirect stderr in `...` via
21149         "exec 2>...", rather than via an added sub-shell.
21150
21151 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21152
21153         git-version-gen: use (...) rather than sh -c '...'
21154         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21155         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21156
21157 2011-01-03  Jim Meyering  <meyering@redhat.com>
21158
21159         git-version-gen: convert leading TABs to spaces
21160         * build-aux/git-version-gen: Expand leading TABs.
21161
21162         git-version-gen: handle failed "git rev-list"
21163         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21164         from git and proceeding as if it had succeeded but printed no SHA1
21165         checksums, suppress the diagnostic and handle the failure.
21166         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21167
21168         git-version-gen: include command name in one more diagnostic
21169         * build-aux/git-version-gen: When the required .tarball-version file
21170         was missing or unreadable, you might see the diagnostic from "cat",
21171         but no trace of the name of the invoking script.  Now, you still see
21172         the diagnostic from cat, but also get one from "git-version-gen: ".
21173         Inspired by a patch from Bruce Korb.
21174
21175         update-copyright: adjust test to match changed code
21176         * tests/test-update-copyright.sh: Change test's expected output
21177         to match new actual output.
21178
21179 2011-01-02  Bruno Haible  <bruno@clisp.org>
21180
21181         getlogin_r: Avoid test failure on HP-UX 11.
21182         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21183         ERANGE when the second argument is zero.
21184         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21185         portability problem.
21186
21187 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21188
21189         * build-aux/update-copyright: doc Simon's changes
21190
21191 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21192
21193         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21194         environment variable.
21195
21196 2011-01-02  Bruno Haible  <bruno@clisp.org>
21197
21198         unigbrk: Avoid gcc warnings.
21199         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21200         unused variable.
21201         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21202         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21203         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21204         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21205         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21206         Change type of first argument to 'const char *'.
21207         (main): Remove unused variable.
21208         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21209         type of first argument to 'const char *'.
21210         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21211         Likewise.
21212         (main): Change type of variable 's'.
21213         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21214         to 'int'.
21215
21216 2011-01-02  Bruno Haible  <bruno@clisp.org>
21217
21218         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21219         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21220         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21221         bug.
21222         * lib/pwrite.c: Undo 2010-12-31 patch.
21223         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21224
21225 2011-01-02  Bruno Haible  <bruno@clisp.org>
21226
21227         pread: Fix test whether it works.
21228         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21229
21230 2011-01-02  Bruno Haible  <bruno@clisp.org>
21231
21232         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21233         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21234         ends in "6". Don't require a specific month name. Try also the locale
21235         names found on HP-UX 11 and Solaris 7.
21236
21237 2011-01-02  Bruno Haible  <bruno@clisp.org>
21238
21239         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21240         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21241         C linkage.
21242         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21243
21244 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21245
21246         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21247         for consistency, since the "cluster" term is not used elsewhere.
21248         * lib/unigbrk.in.h: Update name.
21249         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21250         * lib/unigbrk/u16-grapheme-next.c: Update name.
21251         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21252         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21253         * lib/unigbrk/u32-grapheme-next.c: Update name.
21254         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21255         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21256         * lib/unigbrk/u8-grapheme-next.c: Update name.
21257         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21258         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21259         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21260         Suggested by Bruno Haible.
21261
21262 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21263
21264         Remove module 'u8-grapheme-len' as too redundant with
21265         'u8-grapheme-next'.
21266         * modules/unigbrk/u8-grapheme-len: Delete file.
21267         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21268         * lib/unigbrk.in.h: Remove prototype for deleted function.
21269         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21270         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21271
21272         Remove module 'u16-grapheme-len' as too redundant with
21273         'u16-grapheme-next'.
21274         * modules/unigbrk/u16-grapheme-len: Delete file.
21275         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21276         * lib/unigbrk.in.h: Remove prototype for deleted function.
21277         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21278         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21279
21280         Remove module 'u32-grapheme-len' as too redundant with
21281         'u32-grapheme-next'.
21282         * modules/unigbrk/u32-grapheme-len: Delete file.
21283         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21284         * lib/unigbrk.in.h: Remove prototype for deleted function.
21285         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21286         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21287
21288         Suggested by Bruno Haible.
21289
21290 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21291
21292         * unigbrk.in.h: Fix typo: "ben" => "been".
21293         Reported by Bruno Haible.
21294
21295 2011-01-01  Jim Meyering  <meyering@redhat.com>
21296
21297         maint: update almost all copyright ranges to include 2011
21298         Run the new "make update-copyright" rule.
21299
21300 2011-01-01  Jim Meyering  <meyering@redhat.com>
21301
21302         maint: update-copyright: exempt doc/INSTALL*
21303         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21304         since they are generated.  Suggested by Bruno Haible.
21305
21306 2011-01-01  Jim Meyering  <meyering@redhat.com>
21307
21308         maint: refine the update-copyright rule
21309         * Makefile (update-copyright): Also exclude any file that includes
21310         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21311         code that merely generates the comment.
21312
21313 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21314
21315         New module 'u8-grapheme-len'.
21316         * modules/unigbrk/u8-grapheme-len: New file.
21317         * modules/unigbrk/u8-grapheme-len-tests: New file.
21318         * lib/unigbrk.in.h: Add prototype for new function.
21319         * lib/unigbrk/u8-grapheme-len.c: New file.
21320         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21321
21322         New module 'u16-grapheme-len'.
21323         * modules/unigbrk/u16-grapheme-len: New file.
21324         * modules/unigbrk/u16-grapheme-len-tests: New file.
21325         * lib/unigbrk.in.h: Add prototype for new function.
21326         * lib/unigbrk/u16-grapheme-len.c: New file.
21327         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21328
21329         New module 'u32-grapheme-len'.
21330         * modules/unigbrk/u32-grapheme-len: New file.
21331         * modules/unigbrk/u32-grapheme-len-tests: New file.
21332         * lib/unigbrk.in.h: Add prototype for new function.
21333         * lib/unigbrk/u32-grapheme-len.c: New file.
21334         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21335
21336         New module 'u8-grapheme-next'.
21337         * modules/unigbrk/u8-grapheme-next: New file.
21338         * modules/unigbrk/u8-grapheme-next-tests: New file.
21339         * lib/unigbrk.in.h: Add prototype for new function.
21340         * lib/unigbrk/u8-grapheme-next.c: New file.
21341         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21342
21343         New module 'u16-grapheme-next'.
21344         * modules/unigbrk/u16-grapheme-next: New file.
21345         * modules/unigbrk/u16-grapheme-next-tests: New file.
21346         * lib/unigbrk.in.h: Add prototype for new function.
21347         * lib/unigbrk/u16-grapheme-next.c: New file.
21348         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21349
21350         New module 'u32-grapheme-next'.
21351         * modules/unigbrk/u32-grapheme-next: New file.
21352         * modules/unigbrk/u32-grapheme-next-tests: New file.
21353         * lib/unigbrk.in.h: Add prototype for new function.
21354         * lib/unigbrk/u32-grapheme-next.c: New file.
21355         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21356
21357         New module 'u8-grapheme-prev'.
21358         * modules/unigbrk/u8-grapheme-prev: New file.
21359         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21360         * lib/unigbrk.in.h: Add prototype for new function.
21361         * lib/unigbrk/u8-grapheme-prev.c: New file.
21362         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21363
21364         New module 'u16-grapheme-prev'.
21365         * modules/unigbrk/u16-grapheme-prev: New file.
21366         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21367         * lib/unigbrk.in.h: Add prototype for new function.
21368         * lib/unigbrk/u16-grapheme-prev.c: New file.
21369         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21370
21371         New module 'u32-grapheme-prev'.
21372         * modules/unigbrk/u32-grapheme-prev: New file.
21373         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21374         * lib/unigbrk.in.h: Add prototype for new function.
21375         * lib/unigbrk/u32-grapheme-prev.c: New file.
21376         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21377
21378         New module 'u8-grapheme-breaks'.
21379         * modules/unigbrk/u8-grapheme-breaks: New file.
21380         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21381         * lib/unigbrk.in.h: Add prototype for new function.
21382         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21383         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21384
21385         New module 'u16-grapheme-breaks'.
21386         * modules/unigbrk/u16-grapheme-breaks: New file.
21387         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21388         * lib/unigbrk.in.h: Add prototype for new function.
21389         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21390         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21391
21392         New module 'u32-grapheme-breaks'.
21393         * modules/unigbrk/u32-grapheme-breaks: New file.
21394         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21395         * lib/unigbrk.in.h: Add prototype for new function.
21396         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21397         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21398
21399         New module 'ulc-grapheme-breaks'.
21400         * modules/unigbrk/ulc-grapheme-breaks: New file.
21401         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21402         * m4/locale-ar.m4: New file.
21403         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21404         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21405         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21406
21407 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21408
21409         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21410         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21411         modified how this file was generated before I initially submitted
21412         the module, but failed to regenerate it.  This meant that several
21413         of the level2 entries were wrong.
21414         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21415         Remove the division-by-2 that is folded into the table now that
21416         gbrkprop.h has been regenerated properly.  Now -1 entries are
21417         handled correctly.
21418
21419         New module 'unigbrk/uc-gbrk-prop-tests'.
21420         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21421         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21422         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21423         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21424
21425 2011-01-01  Bruno Haible  <bruno@clisp.org>
21426
21427         Avoid use of hexadecimal escapes.
21428         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21429         instead of hexadecimal escapes.
21430
21431 2011-01-01  Jim Meyering  <meyering@redhat.com>
21432
21433         maint: new rule to update copyright year ranges
21434         * Makefile (update-copyright): New rule.
21435
21436         maint: indent with TABs in Makefile
21437         * Makefile: Expand leading sequences of spaces to TABs
21438
21439         version-etc: update the copyright year it reports
21440         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21441
21442 2010-12-31  Bruno Haible  <bruno@clisp.org>
21443
21444         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21445         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21446         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21447         zero.
21448
21449 2010-12-31  Bruno Haible  <bruno@clisp.org>
21450
21451         pwrite: Work around HP-UX 11.11 bug.
21452         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21453         works and set REPLACE_PWRITE if not.
21454         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21455         function.
21456         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21457
21458 2010-12-31  Bruno Haible  <bruno@clisp.org>
21459
21460         pread: Work around HP-UX 11 bugs.
21461         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21462         and set REPLACE_PREAD if not.
21463         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21464
21465 2010-12-31  Eric Blake  <eblake@redhat.com>
21466
21467         nl_langinfo: fix YESEXPR on Irix 6.5
21468         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21469         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21470         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21471         it.
21472
21473 2010-12-31  Bruno Haible  <bruno@clisp.org>
21474
21475         iconv: Document HP-UX 11 bug.
21476         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21477
21478 2010-12-31  Bruno Haible  <bruno@clisp.org>
21479
21480         ldexpl: Fix link error on HP-UX 11.
21481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21482         LDEXPL_LIBM, using $ISNANL_LIBM.
21483
21484 2010-12-31  Eric Blake  <eblake@redhat.com>
21485
21486         ftello: avoid compilation failure with SunStudio c89
21487         * lib/ftello.c (ftello): Use lseek, not llseek.
21488
21489         tests: avoid failing coreutils tests on cygwin
21490         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21491         (create_exe_shims_): Return 0 when skipping.
21492
21493 2010-12-31  Bruno Haible  <bruno@clisp.org>
21494
21495         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21496         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21497
21498 2010-12-31  Bruno Haible  <bruno@clisp.org>
21499
21500         waitpid: Fix link error in C++ mode.
21501         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21502
21503 2010-12-31  Bruno Haible  <bruno@clisp.org>
21504
21505         isnan: Use GCC built-ins when possible.
21506         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21507         __builtin_isnan.
21508         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21509         (isnan): Define using GCC built-ins for GCC >= 4.0.
21510
21511 2010-12-31  Bruno Haible  <bruno@clisp.org>
21512
21513         isnand: Fix mistake.
21514         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21515         __builtin_isnand.
21516
21517 2010-12-31  Bruno Haible  <bruno@clisp.org>
21518
21519         open: Avoid C++ error on HP-UX 11.
21520         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21521
21522 2010-12-31  Bruno Haible  <bruno@clisp.org>
21523
21524         time_r: Add missing declarations on HP-UX 11.
21525         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21526         instead of HAVE_LOCALTIME_R.
21527         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21528         HAVE_LOCALTIME_R always.
21529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21530         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21531         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21532         HAVE_LOCALTIME_R.
21533         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21534         * doc/posix-functions/localtime_r.texi: Likewise.
21535
21536 2010-12-29  Eric Blake  <eblake@redhat.com>
21537
21538         mountlist: tweak previous commit
21539         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21540         Reported by Paul Eggert.
21541
21542         mountlist: fix local drive detection on cygwin
21543         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21544         that works for cygwin.
21545
21546 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21547
21548         ftoastr, snprintf: ftoastr + snprintf module
21549         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21550         since the snprintf module now should be good enough here.
21551         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21552         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21553         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21554         GNULIB_SNPRINTF only for the test directory, and the latter
21555         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21556         seems to suffice by itself.
21557
21558 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21559
21560         alloca: one step towards thread-safety
21561         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21562         need for a static variable.  All callers changed.  This does not
21563         make the alloca replacement thread-safe, but it's one step.
21564
21565         tests: minor indenting change
21566         * tests/init.sh: Sync from coreutils housekeeping patch
21567         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21568         to keep lines within 80 columns.
21569
21570 2010-12-28  Jim Meyering  <meyering@redhat.com>
21571
21572         regex: don't infloop on persistent failing calloc
21573         * lib/regexec.c (build_trtable): Return failure indication upon
21574         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21575         In glibc, this was fixed for version 2.13:
21576         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21577
21578 2010-12-28  Bruno Haible  <bruno@clisp.org>
21579             Paul Eggert <eggert@cs.ucla.edu>
21580
21581         linkat: Make implementation robust against system behaviour variations.
21582         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21583         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21584         way, and to -2 if it needs a generic runtime test.
21585         * lib/linkat.c (solaris_optimized_link_immediate,
21586         solaris_optimized_link_follow): New functions.
21587         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21588         (check_same_link): Use it.
21589
21590 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21591
21592         New module 'unigbrk/base'.
21593         * modules/unigbrk/base: New file.
21594         * lib/unigbrk.in.h: New file.
21595
21596         New module 'unigbrk/uc-gbrk-prop'.
21597         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21598         * modules/unigbrk/uc-gbrk-prop: New file.
21599         * lib/unigbrk/gbrkprop.h: New file.
21600         * lib/unigbrk/uc-gbrk-prop.c: New file.
21601
21602         New module 'unigbrk/uc-is-grapheme-break'.
21603         * modules/unigbrk/uc-is-grapheme-break: New file.
21604         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21605         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21606         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21607         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21608         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21609
21610         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21611
21612 2010-12-27  Bruno Haible  <bruno@clisp.org>
21613
21614         linkat test: Avoid failure on Solaris 11 2010-11.
21615         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21616
21617 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         utimens: work around glibc rounding bug on more platforms
21620         * lib/utimens.c (fdutimens): Work around rounding bug even if
21621         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21622         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21623
21624 2010-12-27  Bruno Haible  <bruno@clisp.org>
21625
21626         select tests: Improve comments.
21627         * tests/test-select.c (do_select): Add comments.
21628
21629 2010-12-27  Bruno Haible  <bruno@clisp.org>
21630
21631         select tests: Safer way of handling timeout.
21632         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21633         at every invocation.
21634
21635 2010-12-27  Bruno Haible  <bruno@clisp.org>
21636
21637         select tests: Use 'bool' where appropriate.
21638         * tests/test-select.c (connect_to_socket): Change argument type to
21639         'bool'.
21640
21641 2010-12-27  Bruno Haible  <bruno@clisp.org>
21642
21643         select tests: Use existing modules.
21644         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21645         (configure.ac): Don't test for unistd.h.
21646         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21647         declared in <unistd.h>.
21648
21649 2010-12-27  Bruno Haible  <bruno@clisp.org>
21650
21651         mbrtowc: Work around a Solaris 7 bug.
21652         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21653         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21654         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21655         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21656         MBRTOWC_NULL_ARG1_BUG.
21657         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21658         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21659         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21660         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21661
21662 2010-12-27  Jim Meyering  <meyering@redhat.com>
21663
21664         read-file.c: tweak syntax
21665         * lib/read-file.c (fread_file): Remove space after "*" in function
21666         definitions.
21667
21668 2010-12-27  Bruno Haible  <bruno@clisp.org>
21669
21670         times test: Avoid gcc warnings on OSF/1.
21671         * tests/test-times.c (main): Cast printf arguments from clock_t to
21672         'long int'.
21673
21674 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         utimens: work around glibc rounding bug on older Linux kernels
21677         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21678         on Linux with a glibc whose utimes might not work, then work
21679         around a longstanding glibc bug involving rounding rather than
21680         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21682
21683 2010-12-26  Bruno Haible  <bruno@clisp.org>
21684
21685         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21686         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21687         _GL_CXXALIAS_SYS.
21688         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21689
21690 2010-12-26  Bruno Haible  <bruno@clisp.org>
21691
21692         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21693         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21694         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21695         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21696         looking for the declaration.
21697         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21698         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21699         problem.
21700         * doc/posix-functions/inet_pton.texi: Likewise.
21701
21702 2010-12-26  Bruno Haible  <bruno@clisp.org>
21703
21704         arpa_inet: Use the common idioms with C++ support.
21705         * lib/arpa_inet.in.h: Include c++defs.h.
21706         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21707         support.
21708         * modules/arpa_inet (Depends-on): Add c++defs.
21709         (Makefile.am): Substitute the contents of c++defs.h.
21710         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21711         * modules/arpa_inet-c++-tests: New file.
21712         * tests/test-arpa_inet-c++.cc: New file.
21713
21714 2010-12-25  Bruno Haible  <bruno@clisp.org>
21715
21716         Fix more C++ link errors on Solaris 8.
21717         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21718         $(LIB_EACCESS).
21719         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21720         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21721         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21722         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21723         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21724
21725 2010-12-25  Bruno Haible  <bruno@clisp.org>
21726
21727         printf-posix: Fix link error when a non-GCC compiler is used.
21728         * lib/stdio.in.h (printf): When not using GCC, override printf
21729         correctly.
21730         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21731
21732 2010-12-25  Bruno Haible  <bruno@clisp.org>
21733
21734         strerror_r-posix: Update doc.
21735         * doc/posix-functions/strerror_r.texi: Update doc about the return
21736         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21737
21738 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21739
21740         utimens: simplify the logic of the previous change
21741         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21742         This should not affect whether the test succeeds or fails.
21743
21744         utimens: configure better on hosts with NFS clock skew
21745         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21746         uses the clock of the local host.  It might use the clock of the
21747         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21749
21750 2010-12-25  Bruno Haible  <bruno@clisp.org>
21751
21752         ptsname test: Avoid failure on Solaris.
21753         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21754         open a pseudo-terminal; don't use BSD-style ptys.
21755         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21756
21757 2010-12-25  Bruno Haible  <bruno@clisp.org>
21758
21759         ptsname: Avoid ERANGE failure on some systems.
21760         * lib/ptsname.c (buffer): Increase size.
21761
21762 2010-12-25  Bruno Haible  <bruno@clisp.org>
21763
21764         rename, renameat: Avoid test failures at NFS mounted locations.
21765         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21766         so that subsequent mkdir calls succeed.
21767
21768 2010-12-25  Bruno Haible  <bruno@clisp.org>
21769
21770         iswblank: Fix C++ link error on Solaris 8.
21771         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21772         _GL_FUNCDECL_SYS.
21773
21774 2010-12-25  Bruno Haible  <bruno@clisp.org>
21775
21776         unistd: Fix C++ link error on Solaris 8.
21777         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21778
21779 2010-12-25  Bruno Haible  <bruno@clisp.org>
21780
21781         readlink doc: Mention an old glibc bug.
21782         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21783
21784 2010-12-25  Bruno Haible  <bruno@clisp.org>
21785
21786         fcntl-h: Fix for use of C++ on glibc systems.
21787         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21788         also on glibc systems in C++ mode.
21789         Reported by Gary V. Vaughan <gary@gnu.org>.
21790
21791 2010-12-25  Bruno Haible  <bruno@clisp.org>
21792
21793         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21794         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21795
21796 2010-12-25  Bruno Haible  <bruno@clisp.org>
21797
21798         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21799         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21800         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21801         test whether truncl works according to ISO C 99 with IEC 60559.
21802         * m4/truncl-ieee.m4: New file.
21803         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21804         m4/signbit.m4.
21805         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21806
21807 2010-12-25  Bruno Haible  <bruno@clisp.org>
21808
21809         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21810         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21811         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21812         test whether ceill works according to ISO C 99 with IEC 60559.
21813         * m4/ceill-ieee.m4: New file.
21814         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21815         m4/signbit.m4.
21816         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21817
21818 2010-12-25  Bruno Haible  <bruno@clisp.org>
21819
21820         Ensure all prerequisites of <wchar.h> are included.
21821         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21822         before <wchar.h>.
21823         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21824         gl_MBRLEN_NUL_RETVAL): Likewise.
21825         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21826         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21827         AC_FUNC_MBRTOWC): Likewise.
21828         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21829         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21831         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21832         Likewise.
21833         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21834         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21835         (gl_WCHAR_H): Improve comments.
21836         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21837
21838 2010-12-25  Bruno Haible  <bruno@clisp.org>
21839
21840         strtok_r: Fix C syntax error in autoconf macro.
21841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21842         characters in test program.
21843
21844 2010-12-24  Bruno Haible  <bruno@clisp.org>
21845
21846         ceil, trunc, round: Fix gcc warnings.
21847         * lib/ceil.c (MIN): Undefine before redefining.
21848         * lib/trunc.c (MIN): Likewise.
21849         * lib/round.c (MIN): Likewise.
21850         Include <math.h> first.
21851
21852 2010-12-24  Bruno Haible  <bruno@clisp.org>
21853
21854         select tests: Avoid failures on OSF/1 5.1.
21855         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21856         failure of closing the last socket; it may fail with ECONNRESET.
21857
21858 2010-12-24  Eric Blake  <eblake@redhat.com>
21859
21860         stdint: avoid HP-UX 10.20 preprocessor bug
21861         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21862         than #if.
21863         * tests/test-floor2.c (main): Likewise.
21864         Reported by Peter O'Gorman.
21865
21866         pipe: make obsoletion transition easier
21867         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21868         * modules/pipe (Files): Include revived file.
21869         (Include): Drop reference, to mirror getdate's behavior.
21870
21871 2010-12-24  Bruno Haible  <bruno@clisp.org>
21872
21873         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21874         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21875         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21876         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21877
21878 2010-12-24  Bruno Haible  <bruno@clisp.org>
21879
21880         gethostname: Ensure declaration on NonStop Kernel.
21881         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21882         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21883
21884 2010-12-24  Bruno Haible  <bruno@clisp.org>
21885
21886         sys_select: Ensure all necessary types on NonStop Kernel.
21887         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21888         include <sys/time.h>.
21889         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21890         NonStop Kernel.
21891         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21892
21893 2010-12-24  Bruno Haible  <bruno@clisp.org>
21894
21895         sys_select: Remove unneeded include.
21896         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21897         have <sys/select.h>.
21898
21899 2010-12-24  Bruno Haible  <bruno@clisp.org>
21900
21901         gethostname: Provide a fallback for HOST_NAME_MAX.
21902         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21903         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21904         instead.
21905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21906
21907 2010-12-24  Bruno Haible  <bruno@clisp.org>
21908
21909         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21910         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21911         (SA_RESTART): Likewise.
21912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21913
21914 2010-12-24  Bruno Haible  <bruno@clisp.org>
21915
21916         signal: Define NSIG.
21917         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21918         * tests/test-signal.c (nsig): New variable.
21919         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21920
21921 2010-12-24  Bruno Haible  <bruno@clisp.org>
21922
21923         rename, renameat: Avoid test failures on OSF/1 5.1.
21924         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21925         alternative error codes.
21926         * tests/test-renameat.c (main): Likewise.
21927
21928 2010-12-24  Bruno Haible  <bruno@clisp.org>
21929
21930         *printf: Detect large precisions bug on Solaris 10/SPARC.
21931         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21932         by Paul Eggert.
21933         * tests/test-snprintf-posix.h (test_function): Add this test code here
21934         too.
21935         * tests/test-sprintf-posix.h (test_function): Likewise.
21936         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21937         * tests/test-vasprintf-posix.c (test_function): Likewise.
21938         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21939         around by gnulib.
21940         * doc/posix-functions/printf.texi: Likewise.
21941         * doc/posix-functions/snprintf.texi: Likewise.
21942         * doc/posix-functions/sprintf.texi: Likewise.
21943         * doc/posix-functions/vfprintf.texi: Likewise.
21944         * doc/posix-functions/vprintf.texi: Likewise.
21945         * doc/posix-functions/vsnprintf.texi: Likewise.
21946         * doc/posix-functions/vsprintf.texi: Likewise.
21947         * doc/posix-functions/dprintf.texi: Undo last commit.
21948         * doc/posix-functions/vdprintf.texi: Likewise.
21949
21950 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21951
21952         tests: port test-fdutimensat.c to Solaris 8
21953         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21954         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21955         On Solaris 8, it fails with errno == ENOSYS, because there is no
21956         futimens (so it can't use the fd), and there is no lutimens (so it
21957         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21958
21959         vsnprintf: make more consistent with snprintf; doc fixes
21960
21961         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21962         the byte count return problem was promoted from the snprintf-posix
21963         to the snprintf module.
21964         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21965         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21966         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21967         * tests/test-snprintf.c (main): Check the byte count returned.
21968         * tests/test-vsnprintf.c (main): Likewise.
21969
21970 2010-12-23  Eric Blake  <eblake@redhat.com>
21971
21972         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21973         * modules/sigpipe (License): Relax license.
21974
21975 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21976
21977         doc: document Solaris printf bug with large float precisions
21978         * doc/posix-functions/dprintf.texi (dprintf):
21979         * doc/posix-functions/fprintf.texi (fprintf):
21980         * doc/posix-functions/printf.texi (printf):
21981         * doc/posix-functions/snprintf.texi (snprintf):
21982         * doc/posix-functions/sprintf.texi (sprintf):
21983         * doc/posix-functions/vdprintf.texi (vdprintf):
21984         * doc/posix-functions/vfprintf.texi (vfprintf):
21985         * doc/posix-functions/vprintf.texi (vprintf):
21986         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21987         * doc/posix-functions/vsprintf.texi (vsprintf):
21988         Mention that these functions mishandle large floating point
21989         precisions on Solaris 10.  The same bug is also present in Solaris
21990         8, and I assume earlier.  This causes "cd gnulib-tests; make
21991         check" to fail on Solaris 8 (and I assume, later) when building
21992         the latest coreutils, in test-vasprintf-posix's call to
21993         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21994         the wide flavors (e.g., wprintf) so this patch just updates the
21995         documentation for the narrow ones.
21996
21997         test-posixtm.c: add two tests
21998         * tests/test-posixtm.c: Add two tests, to highlight the
21999         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22000         around this bug; this is merely to document it.
22001
22002 2010-12-22  Bruno Haible  <bruno@clisp.org>
22003
22004         getlogin_r: Work around portability problem on OSF/1.
22005         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22006         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22007         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22008         test for a truncated result.
22009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22010         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22011         * modules/getlogin_r (Depends-on): Add memchr.
22012         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22013
22014 2010-12-22  Bruno Haible  <bruno@clisp.org>
22015
22016         ptsname: Avoid test failure on OSF/1 5.1.
22017         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22018         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22019         (same_slave): New function.
22020         (main): Use it to compare ptsname's result with the expected file name.
22021
22022 2010-12-22  Bruno Haible  <bruno@clisp.org>
22023
22024         Port extended stdio modules to HP NonStop Kernel.
22025         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22026         macros.
22027         * lib/fbufmode.c: Update comments.
22028         * lib/fflush.c: Likewise.
22029         * lib/fpurge.c: Likewise.
22030         * lib/freadable.c: Likewise.
22031         * lib/freadahead.c: Likewise.
22032         * lib/freading.c: Likewise.
22033         * lib/freadptr.c: Likewise.
22034         * lib/freadseek.c: Likewise.
22035         * lib/fseeko.c: Likewise.
22036         * lib/fseterr.c: Likewise.
22037         * lib/fwritable.c: Likewise.
22038         * lib/fwriting.c: Likewise.
22039         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22040
22041 2010-12-22  Bruno Haible  <bruno@clisp.org>
22042
22043         ttyname_r: Work around bug on OSF/1 5.1.
22044         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22045         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22046         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22047         present.
22048         * lib/ttyname_r.c (ttyname_r): Update comments.
22049
22050 2010-12-22  Bruno Haible  <bruno@clisp.org>
22051
22052         round: Implement result sign according to IEEE 754.
22053         * lib/round.c (MIN, MINUS_ZERO): New macros.
22054         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22055         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22056         * tests/test-round-ieee.c (main): Likewise.
22057         * tests/test-roundl-ieee.c (main): Likewise.
22058
22059         trunc: Implement result sign according to IEEE 754.
22060         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22061         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22062         * tests/test-trunc2.c: Include minus-zero.h.
22063         (MINUS_ZERO): New macro.
22064         (trunc_reference): Keep in sync with lib/trunc.c.
22065         * tests/test-truncf2.c: Include minus-zero.h.
22066         (MINUS_ZERO): New macro.
22067         (truncf_reference): Keep in sync with lib/trunc.c.
22068         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22069         * tests/test-trunc-ieee.c (main): Likewise.
22070         * tests/test-truncl-ieee.c (main): Likewise.
22071
22072         ceil: Implement result sign according to IEEE 754.
22073         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22074         (FUNC): Return -0.0 for -1 < x < 0.
22075         * tests/test-ceil2.c: Include minus-zero.h.
22076         (MINUS_ZERO): New macro.
22077         (ceil_reference): Keep in sync with lib/ceil.c.
22078         * tests/test-ceilf2.c: Include minus-zero.h.
22079         (MINUS_ZERO): New macro.
22080         (ceilf_reference): Keep in sync with lib/ceil.c.
22081         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22082         * tests/test-ceil-ieee.c (main): Likewise.
22083         * tests/test-ceill-ieee.c (main): Likewise.
22084
22085         floor: Implement result sign according to IEEE 754.
22086         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22087         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22088         * tests/test-floorf2.c (floorf_reference): Likewise.
22089         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22090         * tests/test-floor-ieee.c (main): Likewise.
22091         * tests/test-floorl-ieee.c (main): Likewise.
22092
22093 2010-12-22  Bruno Haible  <bruno@clisp.org>
22094
22095         getaddrinfo: Update doc.
22096         * doc/posix-functions/gai_strerror.texi: Return type is also different
22097         on AIX and HP-UX.
22098
22099 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22100
22101         getaddrinfo, inet_ntop: Update doc for Solaris.
22102         * doc/posix-functions/gai_strerror.texi: Return type is also an
22103         issue on Solaris 9 and earlier.
22104         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22105         on Solaris 10 and earlier.
22106
22107 2010-12-21  Bruno Haible  <bruno@clisp.org>
22108
22109         New module 'roundl-ieee'.
22110         * modules/roundl-ieee: New file.
22111         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22112         test whether roundl works according to ISO C 99 with IEC 60559.
22113         * m4/roundl-ieee.m4: New file.
22114         * modules/roundl-ieee-tests: New file.
22115         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22116         * tests/test-roundl.c (main): Remove signbit tests.
22117         * modules/roundl-tests (Depends-on): Remove signbit.
22118         * doc/posix-functions/roundl.texi: Mention the new module.
22119
22120 2010-12-21  Bruno Haible  <bruno@clisp.org>
22121
22122         New module 'truncl-ieee'.
22123         * modules/truncl-ieee: New file.
22124         * modules/truncl-ieee-tests: New file.
22125         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22126         * tests/test-truncl.c (main): Remove signbit tests.
22127         * modules/truncl-tests (Depends-on): Remove signbit.
22128         * doc/posix-functions/truncl.texi: Mention the new module.
22129
22130 2010-12-21  Bruno Haible  <bruno@clisp.org>
22131
22132         New module 'ceill-ieee'.
22133         * modules/ceill-ieee: New file.
22134         * modules/ceill-ieee-tests: New file.
22135         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22136         * tests/test-ceill.c (main): Remove signbit tests.
22137         * modules/ceill-tests (Depends-on): Remove signbit.
22138         * doc/posix-functions/ceill.texi: Mention the new module.
22139
22140 2010-12-21  Bruno Haible  <bruno@clisp.org>
22141
22142         New module 'floorl-ieee'.
22143         * modules/floorl-ieee: New file.
22144         * modules/floorl-ieee-tests: New file.
22145         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22146         * tests/test-floorl.c (main): Remove signbit tests.
22147         * modules/floorl-tests (Depends-on): Remove signbit.
22148         * doc/posix-functions/floorl.texi: Mention the new module.
22149
22150 2010-12-21  Bruno Haible  <bruno@clisp.org>
22151
22152         New module 'round-ieee'.
22153         * modules/round-ieee: New file.
22154         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22155         whether round works according to ISO C 99 with IEC 60559.
22156         * m4/round-ieee.m4: New file.
22157         * modules/round-ieee-tests: New file.
22158         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22159         * tests/test-round1.c (main): Remove signbit tests.
22160         * modules/round-tests (Depends-on): Remove 'signbit'.
22161         * doc/posix-functions/round.texi: Mention the new module.
22162
22163 2010-12-21  Bruno Haible  <bruno@clisp.org>
22164
22165         New module 'trunc-ieee'.
22166         * modules/trunc-ieee: New file.
22167         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22168         whether trunc works according to ISO C 99 with IEC 60559.
22169         * m4/trunc-ieee.m4: New file.
22170         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22172         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22173         * modules/trunc-ieee-tests: New file.
22174         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22175         * tests/test-trunc1.c (main): Remove signbit tests.
22176         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22177         * doc/posix-functions/trunc.texi: Mention the new module.
22178
22179 2010-12-21  Bruno Haible  <bruno@clisp.org>
22180
22181         New module 'ceil-ieee'.
22182         * modules/ceil-ieee: New file.
22183         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22184         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22185         ISO C 99 with IEC 60559.
22186         * m4/ceil-ieee.m4: New file.
22187         * modules/ceil (Files): Add lib/ceil.c.
22188         (Depends-on): Add 'float'.
22189         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22190         * lib/math.in.h (ceil): New declaration.
22191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22192         REPLACE_CEIL.
22193         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22194         * modules/ceil-ieee-tests: New file.
22195         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22196         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22197         * doc/posix-functions/ceil.texi: Mention the new module.
22198
22199 2010-12-21  Bruno Haible  <bruno@clisp.org>
22200
22201         New module 'floor-ieee'.
22202         * modules/floor-ieee: New file.
22203         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22204         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22205         ISO C 99 with IEC 60559.
22206         * m4/floor-ieee.m4: New file.
22207         * modules/floor (Files): Add lib/floor.c.
22208         (Depends-on): Add 'float'.
22209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22210         * lib/math.in.h (floor): New declaration.
22211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22212         REPLACE_FLOOR.
22213         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22214         * modules/floor-ieee-tests: New file.
22215         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22216         * tests/test-math-c++.cc: Check the signature of 'floor'.
22217         * doc/posix-functions/floor.texi: Mention the new module.
22218
22219 2010-12-21  Bruno Haible  <bruno@clisp.org>
22220
22221         New module 'roundf-ieee'.
22222         * modules/roundf-ieee: New file.
22223         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22224         test whether roundf works according to ISO C 99 with IEC 60559.
22225         * m4/roundf-ieee.m4: New file.
22226         * modules/roundf-ieee-tests: New file.
22227         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22228         * tests/test-roundf1.c (main): Remove signbit tests.
22229         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22230         * doc/posix-functions/roundf.texi: Mention the new module.
22231
22232 2010-12-21  Bruno Haible  <bruno@clisp.org>
22233
22234         New module 'truncf-ieee'.
22235         * modules/truncf-ieee: New file.
22236         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22237         test whether truncf works according to ISO C 99 with IEC 60559.
22238         * m4/truncf-ieee.m4: New file.
22239         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22241         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22242         * modules/truncf-ieee-tests: New file.
22243         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22244         * tests/test-truncf1.c (main): Remove signbit tests.
22245         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22246         * doc/posix-functions/truncf.texi: Mention the new module.
22247
22248 2010-12-21  Bruno Haible  <bruno@clisp.org>
22249
22250         New module 'ceilf-ieee'.
22251         * modules/ceilf-ieee: New file.
22252         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22253         test whether ceilf works according to ISO C 99 with IEC 60559.
22254         * m4/ceilf-ieee.m4: New file.
22255         * modules/ceilf-ieee-tests: New file.
22256         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22257         * tests/test-ceilf1.c (main): Remove signbit tests.
22258         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22259         * doc/posix-functions/ceilf.texi: Mention the new module.
22260
22261 2010-12-21  Bruno Haible  <bruno@clisp.org>
22262
22263         New module 'floorf-ieee'.
22264         * modules/floorf-ieee: New file.
22265         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22266         test whether floorf works according to ISO C 99 with IEC 60559.
22267         * m4/floorf-ieee.m4: New file.
22268         * modules/floorf-ieee-tests: New file.
22269         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22270         * tests/test-floorf1.c (main): Remove signbit tests.
22271         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22272         * doc/posix-functions/floorf.texi: Mention the new module.
22273
22274 2010-12-21  Bruno Haible  <bruno@clisp.org>
22275
22276         Support for minus zero in autoconf macros.
22277         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22278         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22279         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22280         * tests/minus-zero.h: Update comments.
22281
22282 2010-12-21  Bruno Haible  <bruno@clisp.org>
22283
22284         Tests for module 'ceil'.
22285         * modules/ceil-tests: New file.
22286         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22287         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22288
22289 2010-12-21  Bruno Haible  <bruno@clisp.org>
22290
22291         Tests for module 'floor'.
22292         * modules/floor-tests: New file.
22293         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22294         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22295
22296 2010-12-21  Bruno Haible  <bruno@clisp.org>
22297
22298         math: Fix indentation.
22299         * lib/math.in.h (floorf): Fix indentation.
22300
22301 2010-12-21  Bruno Haible  <bruno@clisp.org>
22302
22303         Fix cross-compilation guesses on Solaris.
22304         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22305         not match "solaris2.10".
22306         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22307         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22308         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22309
22310 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22313         This fixes a problem observed with the latest coreutils snapshot
22314         that caused a test to fail on Solaris 8.  src/csplit.c's call
22315         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22316         earlier, instead of returning the number of bytes that would have
22317         been generated; this causes csplit to incorrectly report memory
22318         exhaustion.
22319         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22320         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22321         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22322         comments to match.
22323         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22324         Fix typo in matching older versions of Solaris: "solaris2.10"
22325         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22326         only for guessing while cross-compiling.
22327         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22328
22329 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22330
22331         ftoastr: fix comment again
22332         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22334         Also, simplify example a bit by using flags = 0.
22335
22336 2010-12-20  Bruno Haible  <bruno@clisp.org>
22337
22338         round*, trunc*: Update documentation regarding glibc.
22339         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22340         * doc/posix-functions/round.texi: Likewise.
22341         * doc/posix-functions/roundl.texi: Likewise.
22342         * doc/posix-functions/truncf.texi: Likewise.
22343         * doc/posix-functions/trunc.texi: Likewise.
22344         * doc/posix-functions/truncl.texi: Likewise.
22345
22346 2010-12-20  Bruno Haible  <bruno@clisp.org>
22347
22348         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22349         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22350         * doc/posix-functions/round.texi: Likewise.
22351         * doc/posix-functions/roundl.texi: Likewise.
22352
22353 2010-12-20  Bruno Haible  <bruno@clisp.org>
22354
22355         ttyname_r: Add missing declaration on HP-UX 11.
22356         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22357         HAVE_TTYNAME_R.
22358         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22359         declared. Set HAVE_TTYNAME_R always.
22360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22361         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22362         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22363         HAVE_TTYNAME_R.
22364         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22365
22366 2010-12-20  Bruno Haible  <bruno@clisp.org>
22367
22368         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22369         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22370         * doc/posix-functions/getlogin_r.texi: Likewise.
22371         * tests/test-getlogin.c: Include <errno.h>.
22372         (main): Avoid test failure on HP-UX 11.11.
22373         * tests/test-getlogin_r.c (main): Likewise.
22374
22375 2010-12-20  Bruno Haible  <bruno@clisp.org>
22376
22377         getlogin_r: Add missing declaration on HP-UX 11.
22378         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22379         declared also when it exists as a function.
22380         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22381
22382 2010-12-20  Bruno Haible  <bruno@clisp.org>
22383
22384         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22385         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22386         through wcrtomb.
22387
22388 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         ftoastr: fix comment
22391         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22393
22394 2010-12-19  Bruno Haible  <bruno@clisp.org>
22395
22396         isnan: Ensure it is a macro.
22397         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22398         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22399         Solaris.
22400
22401 2010-12-19  Bruno Haible  <bruno@clisp.org>
22402
22403         ldexpl test: Fix link error on OSF/1 5.1.
22404         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22405
22406 2010-12-19  Bruno Haible  <bruno@clisp.org>
22407
22408         wctype: Make it work in C++ mode on OSF/1 5.1.
22409         * lib/wctype.in.h (iswblank): Declare but not define here.
22410         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22411         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22412         * modules/wctype (Files): Add lib/iswblank.c.
22413
22414 2010-12-19  Bruno Haible  <bruno@clisp.org>
22415
22416         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22417         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22418         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22419
22420 2010-12-19  Bruno Haible  <bruno@clisp.org>
22421
22422         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22424         _POSIX_PII_SOCKET.
22425         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22426         * doc/posix-functions/recvfrom.texi: Likewise.
22427         * doc/posix-functions/send.texi: Likewise.
22428         * doc/posix-functions/sendto.texi: Likewise.
22429
22430 2010-12-19  Bruno Haible  <bruno@clisp.org>
22431
22432         tcgetsid: Add missing declaration on OSF/1 5.1.
22433         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22434         HAVE_TCGETSID.
22435         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22436         Don't set HAVE_TCGETSID.
22437         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22438         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22439         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22440         HAVE_TCGETSID.
22441         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22442
22443 2010-12-19  Bruno Haible  <bruno@clisp.org>
22444
22445         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22446         * lib/stdio.in.h: During the include_next statement, let recursive
22447         includes of this file include only the system header file.
22448
22449 2010-12-19  Bruno Haible  <bruno@clisp.org>
22450
22451         iconv_open: Fix regression from 2010-12-04.
22452         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22453         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22454
22455 2010-12-19  Bruno Haible  <bruno@clisp.org>
22456
22457         stdbool test: Avoid a gcc warning.
22458         * tests/test-stdbool.c (main): Fail if e1 is false.
22459         Reported by Jim Meyering.
22460
22461 2010-12-19  Jim Meyering  <meyering@redhat.com>
22462
22463         setenv: restore to working order
22464         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22465         mistakenly removed.
22466         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22467         HAVE_SETENV.
22468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22469         HAVE_SETENV.
22470
22471 2010-12-19  Bruno Haible  <bruno@clisp.org>
22472
22473         Document some different function declarations on OSF/1 5.1.
22474         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22475         * doc/posix-functions/inet_ntop.texi: Likewise.
22476         * doc/posix-functions/gethostname.texi: Likewise.
22477         * lib/unistd.in.h (gethostname): Update comment.
22478
22479 2010-12-19  Bruno Haible  <bruno@clisp.org>
22480
22481         doc: Mention vasprintf-posix module.
22482         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22483         the 'vasprintf-posix' module.
22484         * doc/glibc-functions/vasprintf.texi: Likewise.
22485
22486 2010-12-19  Bruno Haible  <bruno@clisp.org>
22487
22488         unsetenv: Add missing declaration on OSF/1 5.1.
22489         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22490         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22491         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22493         not HAVE_UNSETENV.
22494         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22495         HAVE_UNSETENV.
22496         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22497
22498 2010-12-19  Bruno Haible  <bruno@clisp.org>
22499
22500         setenv: Add missing declaration on OSF/1 5.1.
22501         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22502         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22503         declared. Don't set HAVE_SETENV.
22504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22505         not HAVE_SETENV.
22506         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22507         HAVE_SETENV.
22508         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22509
22510 2010-12-19  Bruno Haible  <bruno@clisp.org>
22511
22512         nl_langinfo tests: Avoid gcc warning.
22513         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22514
22515 2010-12-19  Bruno Haible  <bruno@clisp.org>
22516
22517         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22518         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22519         _GL_CXXALIAS_SYS.
22520
22521 2010-12-19  Bruno Haible  <bruno@clisp.org>
22522
22523         stdbool: Relax test.
22524         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22525         address to 'bool' work in static initializer, for compilers other than
22526         GCC.
22527
22528 2010-12-19  Bruno Haible  <bruno@clisp.org>
22529
22530         ftello: Add missing declaration on OSF/1 5.1.
22531         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22532         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22534         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22535         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22536
22537 2010-12-19  Bruno Haible  <bruno@clisp.org>
22538
22539         fseeko: Add missing declaration on OSF/1 5.1.
22540         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22543         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22544         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22545
22546 2010-12-19  Bruno Haible  <bruno@clisp.org>
22547
22548         fchdir: Add missing declaration on OSF/1 5.1.
22549         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22552         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22553         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22554
22555 2010-12-19  Bruno Haible  <bruno@clisp.org>
22556
22557         relocatable-prog-wrapper: Separate from relocatable-prog.
22558         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22559         uninstall-relocwrapper rule here.
22560         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22561         Reported by Ian Beckwith <ianb@erislabs.net>.
22562
22563 2010-12-19  Bruno Haible  <bruno@clisp.org>
22564
22565         unistr/u8-mbsnlen: Add missing dependency.
22566         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22567         Reported by Ian Beckwith <ianb@erislabs.net>.
22568
22569 2010-12-19  Bruno Haible  <bruno@clisp.org>
22570
22571         iconv: Make it possible again to use this module without 'iconv-h'.
22572         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22573         if it is not defined.
22574         Reported by Ian Beckwith <ianb@erislabs.net>.
22575
22576 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22577
22578         acl: port to Solaris 8 when copying from tmpfs to ufs
22579         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22580         error number.  Problem observed on Solaris 8 with latest
22581         coreutils, with "mv A B", where A is on a tmpfs file system and B
22582         is on a ufs file system.  This caused coreutils' mv/part-symlink
22583         test to fail.
22584
22585         tests: set fail=0 at start
22586         * tests/init.sh (setup_): Move fail=0 initialization here ...
22587         (mktempd_): ... from here, so that tests can rely on fail being
22588         set to 0 initially.  This fixes a problem in coreutils; see:
22589         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22590
22591 2010-12-18  Bruno Haible  <bruno@clisp.org>
22592
22593         memmem-simple: Stylistic changes.
22594         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22595         Fix preprocessor directive indentation.
22596
22597 2010-12-15  Pádraig Brady <P@draigBrady.com>
22598
22599         memmem, memmem-simple: reorganize and expand empty needle check
22600         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22601         functional checks to memmem-simple so that one has a fully functional
22602         memmem by using just this module.
22603         Restrict the performance only check to the memmem module.
22604         Also expand the empty needle check to ensure the correct
22605         pointer is returned, not just a non NULL pointer.
22606         * doc/glibc-functions/memmem.texi: Rearrange the portability
22607         documentation to correlate with the rearranged checks.
22608         Clarify exactly how the memmem and memmem-simple modules
22609         relate to each other.
22610
22611 2010-12-15  Pádraig Brady <P@draigBrady.com>
22612             Bruno Haible  <bruno@clisp.org>
22613
22614         Improve cross-compilation guesses for uClibc.
22615         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22616         that uClibc does not have the glibc bug.
22617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22618         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22619
22620 2010-12-14  Eric Blake  <eblake@redhat.com>
22621
22622         configmake: provide fallbacks for oldest supported autotools
22623         * m4/configmake.m4: New file.
22624         * modules/configmake (Files): Ship it.
22625         (configure.ac): Use it to guarantee fallbacks.
22626
22627 2010-12-13  Pádraig Brady <P@draigBrady.com>
22628
22629         read-file: Improve handling of large files
22630         * lib/read-file.c (fread_file): Minimize realloc()s
22631         for regular files, and better manage sizes around SIZE_MAX.
22632
22633 2010-12-13  Eric Blake  <eblake@redhat.com>
22634
22635         cloexec, fcntl: relax license
22636         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22637         consent from all contributors.
22638         * modules/fcntl (License): Likewise.
22639
22640 2010-12-10  Bruno Haible  <bruno@clisp.org>
22641
22642         Tests for module 'pipe-posix'.
22643         * modules/pipe-posix-tests: New file.
22644         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22645
22646 2010-12-10  Bruno Haible  <bruno@clisp.org>
22647
22648         pipe-posix: Make it work in C++ mode.
22649         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22650         (pipe): Use common idiom, not a macro definition.
22651         * lib/pipe.c: New file.
22652         * m4/pipe.m4: New file.
22653         * modules/pipe-posix (Description): Enhance.
22654         (Files): Add lib/pipe.c, m4/pipe.m4.
22655         (configure.ac): Invoke gl_FUNC_PIPE.
22656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22657         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22658         * tests/test-unistd-c++.cc: Check the signature of pipe.
22659
22660 2010-12-10  Bruno Haible  <bruno@clisp.org>
22661
22662         Rename module 'pipe' to 'spawn-pipe'.
22663         * modules/spawn-pipe: New file, renamed from modules/pipe.
22664         (Files, configure.ac, Makefile.am): Update.
22665         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22666         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22667         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22668         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22669         "spawn-pipe.h" instead of "pipe.h".
22670         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22671         to gl_SPAWN_PIPE.
22672         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22673         (Files, Makefile.am): Update.
22674         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22675         Update.
22676         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22677         Include "spawn-pipe.h" instead of "pipe.h".
22678         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22679         * lib/javacomp.c: Likewise.
22680         * lib/javaversion.c: Likewise.
22681         * lib/pipe-filter-gi.c: Likewise.
22682         * lib/pipe-filter-ii.c: Likewise.
22683         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22684         * modules/javacomp (Depends-on): Likewise.
22685         * modules/javaversion (Depends-on): Likewise.
22686         * modules/pipe-filter-gi (Depends-on): Likewise.
22687         * modules/pipe-filter-ii (Depends-on): Likewise.
22688         * MODULES.html.sh (Executing programs): Update.
22689         * NEWS: Mention the change.
22690
22691 2010-12-10  Eric Blake  <eblake@redhat.com>
22692
22693         pipe-posix: new module
22694         * modules/pipe-posix: New file.
22695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22696         (gl_UNISTD_H): Check for declaration.
22697         * modules/unistd (Makefile.am): Substitute it.
22698         * lib/unistd.in.h (pipe): Provide it for mingw.
22699         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22700         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22701
22702 2010-12-07  Bruno Haible  <bruno@clisp.org>
22703
22704         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22705         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22706         u8_strcmp_gnu.
22707         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22708
22709 2010-12-06  Bruno Haible  <bruno@clisp.org>
22710
22711         Update internal documentation.
22712         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22713
22714 2010-12-04  Bruno Haible  <bruno@clisp.org>
22715
22716         Put more information about failed tests into the test return codes.
22717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22718         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22720         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22721         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22722         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22723         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22724         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22725         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22726         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22727         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22728         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22729         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22730         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22731         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22732         returns a bit mask.
22733         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22734         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22735         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22736         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22737         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22738         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22739         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22741         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22742         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22743         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22744         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22745         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22747         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22748         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22749         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22750         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22751         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22752         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22754         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22755         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22756         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22757         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22758         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22759         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22760         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22761         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22762         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22763         gl_PRINTF_PRECISION): Likewise.
22764         * m4/regex.m4 (gl_REGEX): Likewise.
22765         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22766         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22768         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22772         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22773         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22775         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22776         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22777         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22778         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22779         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22780         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22781         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22782         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22784         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22785         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22786         enumerated value.
22787         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22788
22789 2010-12-04  Bruno Haible  <bruno@clisp.org>
22790
22791         Update for Solaris 11 2010-11.
22792         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22793         Express, released in November 2010.
22794
22795 2010-12-04  Bruno Haible  <bruno@clisp.org>
22796
22797         nproc: Relax license.
22798         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22799         and Paul Eggert.
22800         Requested by Ludovic Courtès <ludo@gnu.org>.
22801
22802 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22803
22804         utimecmp: fine-grained src to nearby coarse-grained dest
22805
22806         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22807         and the source is on a file system with higher-resolution time
22808         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22809         not work, and the time stamps are close together, the algorithm to
22810         determine the exact resolution from the read-back mtime was buggy:
22811         it had a "!=" where it should have had an "==".  This bug has been
22812         in the code ever since it was introduced to gnulib.
22813         Problem reported by Dan Jacobson in
22814         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22815
22816 2010-11-30  Bruno Haible  <bruno@clisp.org>
22817
22818         strerror_r-posix: Fix autoconf test.
22819         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22820
22821 2010-11-28  Bruno Haible  <bruno@clisp.org>
22822             Paul Eggert  <eggert@cs.ucla.edu>
22823
22824         Tests for module 'getdomainname'.
22825         * modules/getdomainname-tests: New file.
22826         * tests/test-getdomainname.c: New file, based on
22827         tests/test-gethostname.c.
22828
22829 2010-11-28  Bruno Haible  <bruno@clisp.org>
22830             Paul Eggert  <eggert@cs.ucla.edu>
22831
22832         getdomainname: Use the system function when possible.
22833         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22834         (getdomainname): Replace if needed. Provide the declaration if it is
22835         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22836         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22837         (getdomainname): When the system has getdomainname, call the system
22838         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22840         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22841         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22842         the function if its second argument is of type 'int' or if it is found
22843         in libnsl.
22844         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22845         <sys/systeminfo.h> and sysinfo().
22846         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22848         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22849         HAVE_GETDOMAINNAME.
22850         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22851         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22852         * doc/glibc-functions/getdomainname.texi: Document the problems with
22853         the getdomainname declaration.
22854
22855 2010-11-28  Bruno Haible  <bruno@clisp.org>
22856
22857         sys_socket: Ensure ss_family field on AIX.
22858         * lib/sys_socket.in.h (ss_family): New macro definition.
22859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22860         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22861         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22862         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22863         * modules/sys_socket (Makefile.am): Substitute
22864         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22865         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22866
22867 2010-11-27  Bruno Haible  <bruno@clisp.org>
22868
22869         readline: Improve configure output.
22870         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22871         "checking for readline..." result understandable.
22872
22873 2010-11-27  Bruno Haible  <bruno@clisp.org>
22874
22875         *printf-posix: Detect a bug on Solaris 10/x86.
22876         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22877         for floating-point output.
22878         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22879         directive.
22880         * tests/test-snprintf-posix.h (test_function): Likewise.
22881         * tests/test-sprintf-posix.h (test_function): Likewise.
22882         * tests/test-vasprintf-posix.c (test_function): Likewise.
22883         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22884         * doc/posix-functions/printf.texi: Likewise.
22885         * doc/posix-functions/snprintf.texi: Likewise.
22886         * doc/posix-functions/sprintf.texi: Likewise.
22887         * doc/posix-functions/vfprintf.texi: Likewise.
22888         * doc/posix-functions/vprintf.texi: Likewise.
22889         * doc/posix-functions/vsnprintf.texi: Likewise.
22890         * doc/posix-functions/vsprintf.texi: Likewise.
22891         * doc/glibc-functions/obstack_printf.texi: Likewise.
22892         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22893
22894 2010-11-27  Bruno Haible  <bruno@clisp.org>
22895
22896         Fix link error when module libunistring-optional is in use.
22897         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22898         * modules/striconveha-tests (Makefile.am): Likewise.
22899
22900 2010-11-27  Bruno Haible  <bruno@clisp.org>
22901
22902         regex: Mention link dependencies.
22903         * modules/regex (Link): New section.
22904         * modules/rpmatch (Link): Likewise.
22905         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22906
22907 2010-11-27  Bruno Haible  <bruno@clisp.org>
22908
22909         ftoastr: Fix compilation error on Solaris.
22910         * lib/ftoastr.c: Include <config.h>.
22911
22912 2010-11-27  Bruno Haible  <bruno@clisp.org>
22913
22914         getloadavg: Update documentation.
22915         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22916
22917 2010-11-27  Bruno Haible  <bruno@clisp.org>
22918
22919         sys_socket: Fix test whether the functions are declared.
22920         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22921         not <sys/select.h>.
22922
22923 2010-11-27  Bruno Haible  <bruno@clisp.org>
22924
22925         getpass: Make sure to get system declaration on some platforms.
22926         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22927         gl_USE_SYSTEM_EXTENSIONS.
22928         * modules/getpass (Depends-on): Add extensions.
22929
22930 2010-11-26  Bruno Haible  <bruno@clisp.org>
22931
22932         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22933         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22934         'iconv' module is present.
22935         (ICONV_CONST): New macro.
22936         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22937         ICONV_CONST.
22938         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22939         set ICONV_CONST.
22940         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22941         here.
22942         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22943         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22944         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22945         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22946         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22947         present.
22948
22949 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22950
22951         ftoastr: comment fix
22952         * lib/ftoastr.c: "little" -> "little or no" in comment
22953
22954 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22955
22956         stdint: port to GCC 4.3 + OSX + Octave
22957         On this platform, stdint.h is buggy and defines int64_t to long
22958         long int.  The replacement defined it to long int, causing
22959         problems with C++ style name mangling.  Instead, trust the system
22960         definition if INT64_MAX is defined, and likewise for the unsigned
22961         variant.   Problem reported by Jarno Rajahalme in
22962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22963         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22964         and don't mess with int64_t and INT64_MAX in this case.
22965         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22966
22967 2010-11-24  Bruno Haible  <bruno@clisp.org>
22968
22969         doc: Corrections regarding MacOS X 10.4 and 10.5.
22970         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22971         MacOS X.
22972         Reported by Simon Josefsson.
22973
22974 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22975
22976         Uninstall ".bin" files installed by relocwrapper.
22977         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22978         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22979         unless it is already there.
22980
22981 2010-11-21  Bruno Haible  <bruno@clisp.org>
22982
22983         Update for NetBSD 5.0.
22984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22985         NetBSD; the test fails on NetBSD 5.0.
22986         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22987         about NetBSD.
22988
22989 2010-11-21  Bruno Haible  <bruno@clisp.org>
22990
22991         Update for HP-UX 11.23 and HP-UX 11.31.
22992         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22993         HP-UX.
22994
22995 2010-11-21  Bruno Haible  <bruno@clisp.org>
22996
22997         Update for MacOS X 10.5.
22998         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22999         MacOS X; the test fails on MacOS X 10.5.8.
23000         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23001         about MacOS X.
23002
23003 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23004
23005         bootstrap: add bootstrap_sync option.
23006         See discussion at
23007         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23009         * build-aux/bootstrap: Accept --bootstrap-sync to update
23010         bootstrap if it is not identical to the local gnulib's
23011         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23012         enable this by default.  Accept --no-bootstrap-sync to disable
23013         it.
23014
23015 2010-11-20  Bruno Haible  <bruno@clisp.org>
23016
23017         Ensure that <features.h> is included before __GLIBC__ is tested.
23018         * lib/printf-parse.h: Include <features.h>.
23019         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23020         Reported by Mike Frysinger <vapier@gentoo.org>.
23021
23022         Ensure that <features.h> is included before __GLIBC__ is tested.
23023         * lib/wchar.in.h: Include <features.h>.
23024         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23025         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23026         Reported by Mike Frysinger <vapier@gentoo.org>.
23027
23028         Ensure that <features.h> is included before __GLIBC__ is tested.
23029         * lib/arpa_inet.in.h: Include <features.h>.
23030         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23031         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23032         Reported by Mike Frysinger <vapier@gentoo.org>.
23033
23034         Ensure that <features.h> is included before __GLIBC__ is tested.
23035         * build-aux/link-warning.h: Include <features.h>.
23036         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23037         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23038         Reported by Mike Frysinger <vapier@gentoo.org>.
23039
23040         Ensure that <features.h> is included before __GLIBC__ is tested.
23041         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23042         Reported by Mike Frysinger <vapier@gentoo.org>.
23043
23044 2010-11-20  Bruno Haible  <bruno@clisp.org>
23045
23046         memmem: Fix autoconf test.
23047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23048
23049 2010-11-20  Bruno Haible  <bruno@clisp.org>
23050
23051         Port to uClibc.
23052         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23053         * lib/fcntl.in.h: Likewise.
23054         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23055         * lib/mbrtowc.c (mbrtowc): Likewise.
23056         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23057         * lib/strerror_r.c: Likewise.
23058         * lib/unistr/u8-strnlen.c: Likewise.
23059         * lib/vasnprintf.c (decimal_point_char): Likewise.
23060         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23061         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23063         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23064         * tests/test-sigaction.c (handler, main): Likewise.
23065         * lib/freading.h: Treat uClibc like a non-glibc platform.
23066         * lib/freading.c: Likewise.
23067         * lib/gettext.h: Likewise.
23068         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23069         Likewise.
23070         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23071         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23072         * lib/propername.c (proper_name_utf8): Likewise.
23073         * lib/spawn.in.h: Likewise.
23074         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23075         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23076         mem_cd_iconveh_internal): Likewise.
23077         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23078         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23079         strstr, strcasestr): Likewise.
23080         * lib/unicodeio.c (unicode_to_mb): Likewise.
23081         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23082         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23083         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23084         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23085         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23086         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23087         * lib/unistr/u8-stpncpy.c: Likewise.
23088         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23089         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23090         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23091         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23092         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23093         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23094         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23097         Likewise.
23098         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23099         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23100         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23103         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23104         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23105         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23106         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23107         * tests/test-striconveha.c (main): Likewise.
23108         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23109         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23110         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23111         * doc/posix-functions/getline.texi: Likewise.
23112         Reported by Mike Frysinger <vapier@gentoo.org>.
23113
23114 2010-11-20  Bruno Haible  <bruno@clisp.org>
23115
23116         nproc: Fix condition.
23117         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23118         HAVE_PTHREAD_AFFINITY_NP.
23119
23120 2010-11-20  Bruno Haible  <bruno@clisp.org>
23121
23122         Fix a comment.
23123         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23124
23125 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23126
23127         ftoastr: don't assume snprintf
23128         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23129         Implement a subset of snprintf here, by using sprintf safely.
23130         * modules/ftoastr (Depends-on): Remove snprintf.
23131
23132 2010-11-19  Jim Meyering  <meyering@redhat.com>
23133
23134         test-rename.h: fix compilation failure
23135         * tests/test-rename.h (test_rename): Add omitted "}".
23136
23137 2010-11-17  Jim Meyering  <meyering@redhat.com>
23138
23139         maint.mk: add a URL discussing the no-@acronym policy
23140         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23141
23142 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23143
23144         ftoastr: depend on snprintf, improve comments
23145         * lib/ftoastr.c: Also mention Loitsch's draft.
23146         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23147         needed in the current implementation, but it might simplify
23148         speeding up the code later.
23149         * modules/ftoastr: Depend on snprintf; this improves portability.
23150         Suggested by Bruno Haible in the same email.
23151
23152         ftoastr: port to hosts lacking strtof and strtold
23153         Problem reported by Bruno Haible in
23154         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23155         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23156         environment and strtold (and presumably strtof) are not available.
23157         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23158         (configure.ac): Require gl_C99_STRTOLD.
23159
23160 2010-11-18  Bruno Haible  <bruno@clisp.org>
23161
23162         c-strtold: Avoid link error on AIX 7.
23163         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23164         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23165         (gl_C_STRTOLD): Test whether strtold_l exists.
23166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23167
23168 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23169
23170         intprops: new macro INT_BITS_STRLEN_BOUND
23171         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23172         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23173         not exposed.  Also, it uses a slightly tighter bound than before;
23174         though this makes no practical difference, we might as well be as
23175         tight as we easily can.
23176
23177         ftoastr: new module, for lossless conversion of floats to short strings
23178         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23179         * modules/ftoastr: New files.
23180
23181 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         bootstrap: port to Solaris sed
23184         * build-aux/bootstrap (get_version): Port to Solaris sed.
23185         See Ralf Wildenhues's note in
23186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23187
23188 2010-11-14  Jim Meyering  <meyering@redhat.com>
23189
23190         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23191         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23192         and move definition closer to sole use.
23193
23194 2010-11-13  Jim Meyering  <meyering@redhat.com>
23195
23196         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23197         Now we require at least autoconf-2.59, which means the work-around
23198         is no longer needed.
23199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23200         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23201         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23202         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23203         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23204
23205 2010-11-13  Bruno Haible  <bruno@clisp.org>
23206
23207         rename, renameat: Avoid test failures at NFS mounted locations.
23208         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23209         functions.
23210         (test_rename): Use assert_nonexistent.
23211         * tests/test-rename.c: Include <dirent.h>.
23212         * tests/test-renameat.c: Likewise.
23213         Reported by Gary V. Vaughan <gary@gnu.org>.
23214
23215         rename, renameat: Document Linux bug with NFS
23216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23217         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23218         * doc/posix-functions/renameat.texi: Likewise.
23219         Suggested by Eric Blake.
23220
23221 2010-11-13  Bruno Haible  <bruno@clisp.org>
23222
23223         rename test: Add comments.
23224         * tests/test-rename.h (test_rename): Add structure and comments.
23225
23226 2010-11-13  Eric Blake  <eblake@redhat.com>
23227
23228         maintainer-makefile: cover a few more files
23229         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23230         scripts generated within C files, for libvirt.
23231
23232 2010-11-13  Bruno Haible  <bruno@clisp.org>
23233
23234         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23235         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23236         character, return the number of bytes that belong together, not always
23237         1.
23238         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23239         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23240         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23241         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23242         number of bytes of an invalid character.
23243         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23244         (main): Invoke it.
23245         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23246         results.
23247         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23248         malformed byte sequences.
23249         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23250         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23251         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23252         Reported by Ben Pfaff and Paolo Bonzini.
23253
23254 2010-11-13  Bruno Haible  <bruno@clisp.org>
23255
23256         openat: Work around glibc bug with fchownat() and empty file names.
23257         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23258         (gl_FUNC_FCHOWNAT): Invoke it.
23259         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23260         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23261         Reported by Gary V. Vaughan <gary@gnu.org>.
23262
23263 2010-11-13  Bruno Haible  <bruno@clisp.org>
23264
23265         openat: Ensure autoconf macro ordering.
23266         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23267         gl_USE_SYSTEM_EXTENSIONS.
23268         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23269
23270 2010-11-13  Bruno Haible  <bruno@clisp.org>
23271
23272         Update comments.
23273         * lib/unistr/u8-check.c: Update file name in comments.
23274         * lib/unistr/u8-mblen.c: Likewise.
23275         * lib/unistr/u8-prev.c: Likewise.
23276         * lib/unistr/u8-strmblen.c: Likewise.
23277         * lib/unistr/u8-strmbtouc.c: Likewise.
23278
23279 2010-11-13  Jim Meyering  <meyering@redhat.com>
23280
23281         tests: avoid test failure on Solaris 10 due to lack of PATH export
23282         * tests/test-update-copyright.sh: Don't forget to export PATH.
23283
23284         init.sh: ensure that IFS is defined, just in case...
23285         * tests/init.sh (setup_): Ensure that IFS is defined,
23286         so that saving and restoring it works as expected.  This
23287         appears to be useful at least for an old version of dash
23288         from a long time ago (RH 6).  See here for details:
23289         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23290
23291         maint.mk: tighten "test a == b" check
23292         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23293         test to files that contain something like #!/bin/sh.
23294         Without this, coreutils would get two false positives in
23295         the comments of C source files.
23296
23297 2010-11-12  Eric Blake  <eblake@redhat.com>
23298
23299         bootstrap: fix typo in previous attempt
23300         * build-aux/bootstrap (buildreq): Correct the grouping.
23301         Reported by Paul Eggert.
23302
23303         maintainer-makefile: prohibit test x == x
23304         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23305         Based on a report by Matthias Bolte.
23306
23307         bootstrap: allow FreeBSD gzip
23308         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23309         which has no '.' and goes to stderr.
23310         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23311         Reported by Matthias Bolte.
23312
23313         maintainer-makefile: check for i18n setup
23314         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23315         will likely work.
23316
23317 2010-11-12  Bruno Haible  <bruno@clisp.org>
23318
23319         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23320         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23321         * lib/nanosleep.c (nanosleep): Likewise.
23322
23323 2010-11-11  Bruno Haible  <bruno@clisp.org>
23324
23325         fcntl-h: Fix for use of C++ on glibc systems.
23326         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23327         also on glibc systems in C++ mode.
23328         Reported by Gary V. Vaughan <gary@gnu.org>.
23329
23330 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23331
23332         mknod: avoid false failure with dash
23333         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23334
23335 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23336
23337         unlink: Fix "is it should" typo in diagnostic.
23338         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23339         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23340
23341 2010-11-11  Bruno Haible  <bruno@clisp.org>
23342
23343         Tests for module 'strerror_r-posix'.
23344         * modules/strerror_r-posix-tests: New file.
23345         * tests/test-strerror_r.c: New file.
23346         * tests/test-string-c++.cc: Check the signature of strerror_r.
23347
23348         New module 'strerror_r-posix'.
23349         * lib/string.in.h (strerror_r): New declaration.
23350         * lib/strerror_r.c: New file.
23351         * m4/strerror_r.m4: New file.
23352         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23353         of strerror_r.
23354         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23355         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23356         * modules/strerror_r-posix: New file.
23357         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23358         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23359         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23360         portability problems.
23361
23362 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23363
23364         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23365         line is also considered for output. Quoted function name in shell
23366         command, so temporary files for functions like MyClass::operator()
23367         are removed correctly without errors.
23368
23369 2010-11-09  Bruno Haible  <bruno@clisp.org>
23370
23371         * doc/posix-functions/strerror.texi: List more failing platforms.
23372
23373         * doc/posix-functions/strerror.texi: Add a comment.
23374
23375 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23376
23377         fdopendir: fix bug on MacOS X when low on file descriptors
23378
23379         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23380         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23381         All callers changed.
23382         (fdopendir): Invoke save_cwd at the top level, not after using
23383         multiple dup() calls to use up file descriptors.  Then retry
23384         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23385         less than the maximum number of open file descriptors, because
23386         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23387         on Mac OS X 10.6.4 for tar 1.24
23388         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23389         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23390         and for tar 1.25
23391         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23392
23393 2010-11-07  Bruno Haible  <bruno@clisp.org>
23394
23395         vasnprintf: Support I flag on glibc systems.
23396         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23397         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23398         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23399         snprintf function.
23400         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23401         glibc systems.
23402         * tests/test-vasnprintf-posix3.c: New file.
23403         * modules/vasnprintf-posix-tests (Files): Add it.
23404         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23405
23406 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23407
23408         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23409         * MODULES.html.sh: For compiler warnings, use name
23410         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23411
23412 2010-11-05  Eric Blake  <eblake@redhat.com>
23413
23414         ceil, floor: avoid spurious failure with icc
23415         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23416         [denormals-as-zero] when optimizing without -mieee-fp option.
23417         * tests/test-floorf2.c (floorf_reference): Likewise.
23418         * tests/test-ceilf1.c (dummy): New function.
23419         (main): Use it to outsmart icc's optimization.
23420         * tests/test-floorf1.c (dummy, main): Likewise.
23421
23422         tests: require working signbit
23423         * modules/ceilf-tests (Depends-on): Add signbit.
23424         * modules/ceill-tests (Depends-on): Likewise.
23425         * modules/floorf-tests (Depends-on): Likewise.
23426         * modules/floorl-tests (Depends-on): Likewise.
23427         * modules/round-tests (Depends-on): Likewise.
23428         * modules/roundf-tests (Depends-on): Likewise.
23429         * modules/roundl-tests (Depends-on): Likewise.
23430         * modules/trunc-tests (Depends-on): Likewise.
23431         * modules/truncf-tests (Depends-on): Likewise.
23432         * modules/truncl-tests (Depends-on): Likewise.
23433
23434         strtod: work around icc bug
23435         * lib/strtod.c (minus_zero): Define to working value.
23436         (strtod): Use it to avoid icc bug.
23437
23438         copysign: enhance tests
23439         * modules/copysign-tests (Files): Add minus-zero.h.
23440         * tests/test-copysign.c (main): Also test zeros.
23441
23442 2010-11-04  Eric Blake  <eblake@redhat.com>
23443
23444         ceil, floor, round, trunc: enhance tests of -0
23445         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23446         * tests/test-ceill.c (main): Likewise.
23447         * tests/test-floorf1.c (main): Likewise.
23448         * tests/test-floorl.c (main): Likewise.
23449         * tests/test-round1.c (main): Likewise.
23450         * tests/test-roundf1.c (main): Likewise.
23451         * tests/test-roundl.c (main): Likewise.
23452         * tests/test-trunc1.c (main): Likewise.
23453         * tests/test-truncf1.c (main): Likewise.
23454         * tests/test-truncl.c (main): Likewise.
23455
23456 2010-11-04  Eric Blake  <eblake@redhat.com>
23457
23458         frexp, tests: work around ICC bug with -zero
23459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23460         works with more compilers.
23461         * tests/minus-zero.h: New file.
23462         * modules/ceilf-tests (Files): Include it.
23463         * modules/ceill-tests (Files): Likewise.
23464         * modules/floorf-tests (Files): Likewise.
23465         * modules/floorl-tests (Files): Likewise.
23466         * modules/frexp-nolibm-tests (Files): Likewise.
23467         * modules/frexp-tests (Files): Likewise.
23468         * modules/frexpl-nolibm-tests (Files): Likewise.
23469         * modules/frexpl-tests (Files): Likewise.
23470         * modules/isnan-tests (Files): Likewise.
23471         * modules/isnand-nolibm-tests (Files): Likewise.
23472         * modules/isnand-tests (Files): Likewise.
23473         * modules/isnanf-nolibm-tests (Files): Likewise.
23474         * modules/isnanf-tests (Files): Likewise.
23475         * modules/isnanl-nolibm-tests (Files): Likewise.
23476         * modules/isnanl-tests (Files): Likewise.
23477         * modules/round-tests (Files): Likewise.
23478         * modules/roundf-tests (Files): Likewise.
23479         * modules/roundl-tests (Files): Likewise.
23480         * modules/ldexpl-tests (Files): Likewise.
23481         * modules/signbit-tests (Files): Likewise.
23482         * modules/snprintf-posix-tests (Files): Likewise.
23483         * modules/sprintf-posix-tests (Files): Likewise.
23484         * modules/strtod-tests (Files): Likewise.
23485         * modules/trunc-tests (Files): Likewise.
23486         * modules/truncf-tests (Files): Likewise.
23487         * modules/truncl-tests (Files): Likewise.
23488         * modules/vsnprintf-posix-tests (Files): Likewise.
23489         * modules/vsprintf-posix-tests (Files): Likewise.
23490         * modules/vasnprintf-posix-tests (Files): Likewise.
23491         * modules/vasprintf-posix-tests (Files): Likewise.
23492         * tests/test-ceilf1.c (main): Use it.
23493         * tests/test-ceill.c (main): Likewise.
23494         * tests/test-floorf1.c (main): Likewise.
23495         * tests/test-floorl.c (main): Likewise.
23496         * tests/test-frexp.c (main): Likewise.
23497         * tests/test-frexpl.c (main): Likewise.
23498         * tests/test-isnan.c (main): Likewise.
23499         * tests/test-isnand.h (main): Likewise.
23500         * tests/test-isnanf.h (main): Likewise.
23501         * tests/test-isnanl.h (main): Likewise.
23502         * tests/test-ldexpl.c (main): Likewise.
23503         * tests/test-round.c (main): Likewise.
23504         * tests/test-roundf.c (main): Likewise.
23505         * tests/test-roundl.c (main): Likewise.
23506         * tests/test-signbit.c (test_signbitf, test_signbitd)
23507         (test_signbitl): Likewise.
23508         * tests/test-snprintf-posix.h (test_function): Likewise.
23509         * tests/test-sprintf-posix.h (test_function): Likewise.
23510         * tests/test-strtod.c (main): Likewise.
23511         * tests/test-trunc1.c (main): Likewise.
23512         * tests/test-truncf1.c (main): Likewise.
23513         * tests/test-truncl.c (main): Likewise.
23514
23515         isnanl: work around icc bug
23516         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23517
23518 2010-11-03  Eric Blake  <eblake@redhat.com>
23519
23520         tests: fix compiler warnings
23521         * tests/test-getopt.h (test_getopt): Fix condition.
23522         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23523         * tests/test-pipe2.c (main): Likewise.
23524         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23525
23526         utimens: fix broken m4 test
23527         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23528
23529 2010-10-28  Bruno Haible  <bruno@clisp.org>
23530
23531         posix_spawn*, getdtablesize: Relax license.
23532         * modules/posix_spawn (License): Change to LGPLv2+.
23533         * modules/posix_spawnp (License): Likewise.
23534         * modules/posix_spawn-internal (License): Likewise.
23535         * modules/posix_spawnattr_init (License): Likewise.
23536         * modules/posix_spawnattr_getflags (License): Likewise.
23537         * modules/posix_spawnattr_setflags (License): Likewise.
23538         * modules/posix_spawnattr_getpgroup (License): Likewise.
23539         * modules/posix_spawnattr_setpgroup (License): Likewise.
23540         * modules/posix_spawnattr_getschedparam (License): Likewise.
23541         * modules/posix_spawnattr_setschedparam (License): Likewise.
23542         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23543         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23544         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23545         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23546         * modules/posix_spawnattr_getsigmask (License): Likewise.
23547         * modules/posix_spawnattr_setsigmask (License): Likewise.
23548         * modules/posix_spawnattr_destroy (License): Likewise.
23549         * modules/posix_spawn_file_actions_init (License): Likewise.
23550         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23551         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23552         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23553         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23554         * modules/getdtablesize (License): Likewise.
23555         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23556
23557 2010-10-26  Bruno Haible  <bruno@clisp.org>
23558
23559         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23560         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23561         Cygwin and mingw.
23562         Suggested by Eric Blake.
23563
23564 2010-10-26  Bruno Haible  <bruno@clisp.org>
23565
23566         stdio: Work around compilation error due to renameat() on Solaris 10.
23567         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23568         * lib/renameat.c: Don't include <unistd.h> here.
23569         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23570         Reported by Paul Eggert and Eric Blake.
23571
23572 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         renameat: port to Solaris 10, which declares renameat in unistd.h
23575
23576         * lib/renameat.c: Include unistd.h before stdio.h, because
23577         Solaris 10 declares renameat in unistd.h.  Problem encountered
23578         when building GNU tar 1.24 on Solaris 10.
23579
23580 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23581
23582         fdopendir: fix C89 compilation
23583         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23584         compilers.
23585
23586 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23587
23588         inttostr: simplify by removing unnecessary redundancy
23589         * lib/anytostr.c: Don't include verify.h.
23590         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23591         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23592         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23593         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23594         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23595         Likewise.
23596         * modules/inttostr (Depends-on): Remove 'verify'.
23597
23598 2010-10-23  Bruno Haible  <bruno@clisp.org>
23599
23600         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23601         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23602         Reported by Eric Blake.
23603
23604 2010-10-23  Bruno Haible  <bruno@clisp.org>
23605
23606         Tests: Fix LOCALE_JA on MirBSD 10.
23607         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23608         to an UTF-8 locale.
23609         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23610         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23611         Reported by Eric Blake.
23612
23613 2010-10-21  Bruno Haible  <bruno@clisp.org>
23614
23615         nl_langinfo test: Avoid test failure on NetBSD 5.
23616         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23617         Reported by Eric Blake.
23618
23619 2010-10-21  Eric Blake  <eblake@redhat.com>
23620
23621         c-stack: work around libsigsegv 2.8 bug
23622         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23623         overflow on at least PowerPC64.
23624
23625 2010-10-17  Bruno Haible  <bruno@clisp.org>
23626
23627         userspec: Drop redundant file.
23628         * modules/userspec (Files): Remove lib/inttostr.h.
23629
23630 2010-10-17  Bruno Haible  <bruno@clisp.org>
23631
23632         nl_langinfo tests: Silence some warnings.
23633         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23634         Reported by Jim Meyering.
23635
23636 2010-10-17  Bruno Haible  <bruno@clisp.org>
23637
23638         Make use of GCC's attribute __alloc_size__.
23639         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23640         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23641         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23642         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23643         __alloc_size__.
23644         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23645         Suggested by Jim Meyering.
23646
23647 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23648
23649         bootstrap: anchor .gitignore entries.
23650         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23651         with...
23652         (insert_vc_ignore): ... this new function, which prepends `/' to
23653         all .gitignore entries before passing them to
23654         insert_sorted_if_absent.
23655
23656 2010-10-16  Bruno Haible  <bruno@clisp.org>
23657
23658         nextafter: Fix configure check.
23659         * modules/nextafter (configure.ac): Correct expected prototype.
23660
23661 2010-10-16  Bruno Haible  <bruno@clisp.org>
23662
23663         termios: Update documentation.
23664         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23665
23666 2010-10-16  Bruno Haible  <bruno@clisp.org>
23667
23668         tests: Make them compile with TinyCC.
23669         * tests/test-strstr.c (main): Remove parentheses around array
23670         initializer.
23671
23672 2010-10-15  Eric Blake  <eblake@redhat.com>
23673
23674         ignore-value: make header idempotent
23675         * lib/ignore-value.h: Add double-inclusion guards.
23676         Reported by Stefan Berger.
23677
23678 2010-10-15  Jim Meyering  <meyering@redhat.com>
23679
23680         GNUmakefile: handle "stable" target, not "major"
23681         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23682         lists in maint.mk and announce-gen.  Without this, "make stable"
23683         would fail to ensure that $(VERSION) is up to date.
23684
23685 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23686
23687         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23688         & co.
23689
23690 2010-10-14  Bruno Haible  <bruno@clisp.org>
23691
23692         vasnprintf: Don't set errno to 0.
23693         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23694         block that sets it to 0.
23695         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23696
23697 2010-10-14  Bruno Haible  <bruno@clisp.org>
23698
23699         socketlib: Fix.
23700         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23701         gl_PREREQ_SYS_H_WINSOCK2.
23702         Reported by Ian Beckwith <ianb@erislabs.net>.
23703
23704 2010-10-13  Jim Meyering  <meyering@redhat.com>
23705
23706         test-select-stdin.c: avoid warn_unused_result warnings
23707         * tests/test-select-stdin.c: Include "macros.h".
23708         ASSERT that read and fflush succeed.
23709
23710 2010-10-13  Jim Meyering  <meyering@redhat.com>
23711
23712         git-version-gen: do require git-VC'd files in cwd
23713         * build-aux/git-version-gen: Reject a git version string
23714         if there are no commits associated with the current directory.
23715         This avoids an unlikely false-positive (unrelated dir whose parent
23716         repository also contains a tag matching v*), as pointed out
23717         by Giuseppe Scrivano in
23718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23719
23720 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23721
23722         argv-iter: omit nonconforming declaration
23723         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23724         enum arg_iter_err declaration, which doesn't conform to C99.
23725         Solaris 10 cc warns about this.
23726
23727 2010-10-13  Eric Blake  <eblake@redhat.com>
23728
23729         termios: fix compilation on mingw
23730         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23731         (gl_TERMIOS_H): Adjust it on mingw.
23732         * modules/termios (Makefile.am): Substitute new key.
23733         * lib/termios.in.h (includes): Make include_next conditional.
23734         * doc/posix-headers/termios.texi (termios.h): Update
23735         documentation.
23736         Reported by Daniel P. Berrange.
23737
23738 2010-10-13  Jim Meyering  <meyering@redhat.com>
23739
23740         git-version-gen: don't require that .git/ be in the current dir
23741         * build-aux/git-version-gen: Adjust this script so that it works
23742         when run from any working directory beneath the top-level .git/-
23743         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23745
23746         test-select: avoid warn_unused_result warnings
23747         * tests/test-select.c: Include "macros.h".
23748         ASSERT that each call to read, write, and pipe succeeds.
23749         While not technically required, also check each "close".
23750         * modules/select-tests (Files): Add tests/macros.h.
23751
23752         test-symlinkat: remove declaration of unused local
23753         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23754
23755         test-inttostr: avoid shadowing warnings
23756         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23757         and use malloc rather than the stack for the same reason as
23758         mentioned in the comment justifying the other allocation.
23759
23760 2010-10-11  Bruno Haible  <bruno@clisp.org>
23761
23762         stdlib: Allow multiple gnulib generated replacements to coexist.
23763         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23764         Reported by Sam Steingold <sds@gnu.org>.
23765
23766 2010-10-11  Jim Meyering  <meyering@redhat.com>
23767
23768         fix a documentation typo
23769         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23770
23771 2010-10-11  Eric Blake  <eblake@redhat.com>
23772
23773         futimens: work around Solaris 11 bug
23774         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23775         * tests/test-futimens.h (test_futimens): Enhance, rather than
23776         weaken test.
23777         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23778
23779 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         Indentation.
23782         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23783         higher-level operators more to the left.
23784
23785 2010-10-11  Jim Meyering  <meyering@redhat.com>
23786
23787         test-futimens: avoid unwarranted test failure on Solaris 5.11
23788         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23789         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23790         because it tries to dereference the NULL name argument.
23791
23792 2010-10-11  Bruno Haible  <bruno@clisp.org>
23793
23794         Indentation.
23795         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23796         indentation.
23797
23798 2010-10-11  Jim Meyering  <meyering@redhat.com>
23799
23800         spawn.in.h: make indentation consistent with parentheses
23801         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23802         Make indentation consistent with parentheses.
23803
23804 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23805
23806         Fix mismatched parens in previous commit
23807         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23808         parens.
23809
23810 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23811
23812         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23813
23814         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23815         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23816         * lib/malloca.c: Include "verify.h".
23817         (verify1): Remove, replacing with a verify call.
23818         * lib/relocwrapper.c (verify1): Likewise.
23819         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23820         Likewise.
23821         * modules/malloca (Depends-on): Add 'verify'.
23822         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23823         * modules/vasnprintf (Depends-on): Add 'verify'.
23824         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23825         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23826         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23827         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23828         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23829         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23830         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23831
23832         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23833
23834         Formerly the style was sometimes 2*X - 1, because the C standard
23835         was wrongly thought to disallow ?: in integral constant expressions.
23836         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23837         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23838         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23839         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23840         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23841         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23842         verify that time_t cannot be floating.
23843
23844 2010-10-08  Eric Blake  <eblake@redhat.com>
23845
23846         time: enforce recent POSIX ruling that time_t is integral
23847         * lib/time.in.h (__time_t_must_be_integral): Detect any
23848         problematic systems, allowing the rest of gnulib to assume POSIX.
23849
23850 2010-10-08  Jim Meyering  <meyering@redhat.com>
23851
23852         fdopendir: fix a bug on systems lacking openat and /proc support
23853         OpenBSD 4.7 is one such system.  The most noticeable effect was
23854         failure of any application making nontrivial use of fts: rm, du,
23855         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23856           ./rm: traversal failed: `a': Bad file descriptor
23857         Debugging that, you see that even though FD 6 was closed just
23858         prior to the opendir call in fd_clone_opendir, its resulting
23859         dir->dd_fd was 8, rather than the expected value of 6:
23860
23861         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23862         93                close (fd);
23863         (gdb) n
23864         94                dir = fd_clone_opendir (dupfd);
23865         (gdb) n
23866         95                saved_errno = errno;
23867         (gdb) p dir->dd_fd
23868         $11 = 8
23869
23870         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23871         The problem is that on OpenBSD, fd_clone_opendir has to resort
23872         to using the old-style save/restore CWD mechanism, due to its
23873         lack of openat/proc support, and *that* would steal the FD (6)
23874         that opendir was supposed to use.
23875
23876         The fix is to squirrel away the desired FD so that save_cwd uses a
23877         different one, and then free the dest FD right before calling opendir.
23878         That guarantees opendir will use the required file descriptor.
23879
23880         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23881
23882 2010-10-08  Bruno Haible  <bruno@clisp.org>
23883
23884         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23885         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23886
23887 2010-10-08  Bruno Haible  <bruno@clisp.org>
23888
23889         nanosleep: Make replacement POSIX compliant.
23890         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23891         is out of range.
23892         Reported by Jim Meyering.
23893
23894 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23895
23896         bootstrap: add hook for altering gnulib.mk, for Bison
23897         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23898         the Bison bootstrapping process can rewrite file names and variables
23899         in this file before later parts of 'bootstrap' use the file.
23900         Bison wants to include lib/gnulib.mk from the top-level makefile,
23901         so it needs the file names in this file to be relative to the top
23902         level, not relative to lib; plus it needs variable names to be
23903         rewritten.
23904         (slurp): Use the new function.
23905
23906         bootstrap: reformat for readability
23907         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23908
23909 2010-10-08  Eric Blake  <eblake@redhat.com>
23910
23911         docs: update cygwin progress
23912         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23913         1.7.7.
23914         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23915         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23916         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23917         * doc/posix-functions/carg.texi (carg): Likewise.
23918         * doc/posix-functions/cargf.texi (cargf): Likewise.
23919         * doc/posix-functions/casin.texi (casin): Likewise.
23920         * doc/posix-functions/casinf.texi (casinf): Likewise.
23921         * doc/posix-functions/casinh.texi (casinh): Likewise.
23922         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23923         * doc/posix-functions/catan.texi (catan): Likewise.
23924         * doc/posix-functions/catanf.texi (catanf): Likewise.
23925         * doc/posix-functions/catanh.texi (catanh): Likewise.
23926         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23927         * doc/posix-functions/ccos.texi (ccos): Likewise.
23928         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23929         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23930         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23931         * doc/posix-functions/cexp.texi (cexp): Likewise.
23932         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23933         * doc/posix-functions/cimag.texi (cimag): Likewise.
23934         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23935         * doc/posix-functions/clog.texi (clog): Likewise.
23936         * doc/posix-functions/clogf.texi (clogf): Likewise.
23937         * doc/posix-functions/conj.texi (conj): Likewise.
23938         * doc/posix-functions/conjf.texi (conjf): Likewise.
23939         * doc/posix-functions/cpow.texi (cpow): Likewise.
23940         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23941         * doc/posix-functions/cproj.texi (cproj): Likewise.
23942         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23943         * doc/posix-functions/creal.texi (creal): Likewise.
23944         * doc/posix-functions/crealf.texi (crealf): Likewise.
23945         * doc/posix-functions/csin.texi (csin): Likewise.
23946         * doc/posix-functions/csinf.texi (csinf): Likewise.
23947         * doc/posix-functions/csinh.texi (csinh): Likewise.
23948         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23949         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23950         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23951         * doc/posix-functions/ctan.texi (ctan): Likewise.
23952         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23953         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23954         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23955         * doc/posix-headers/complex.texi (complex.h): Likewise.
23956
23957 2010-10-07  Jim Meyering  <meyering@redhat.com>
23958
23959         parse-datetime: avoid compilation failure on OpenBSD 4.7
23960         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23961         This works around a compilation failure on OpenBSD 4.7:
23962         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23963
23964 2010-10-07  Eric Blake  <eblake@redhat.com>
23965
23966         docs: update cygwin progress
23967         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23968         1.7.6.
23969         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23970         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23971         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23972         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23973         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23974         Likewise.
23975         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23976         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23977         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23978         Likewise.
23979         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23980         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23981         Likewise.
23982         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23983         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23984         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23985         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23986         Likewise.
23987         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23988         Likewise.
23989         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23990
23991         docs: update parse-datetime history
23992         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23993         documentation of this function's history and alternatives.
23994
23995         cygwin: use more robust version check
23996         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23997         exclude an eventual cygwin 1.9.1.
23998         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24000         (gl_FUNC_STRCASESTR): Likewise.
24001         Reported by Bruno Haible.
24002
24003 2010-10-06  Bruno Haible  <bruno@clisp.org>
24004
24005         string, sys_select: Avoid #including large headers unless necessary.
24006         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24007         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24008         OSF/1, BeOS, Haiku.
24009         Reported by Jim Meyering.
24010
24011 2010-10-05  Eric Blake  <eblake@redhat.com>
24012
24013         memmem, strstr, strcasestr: fix bug with long periodic needle
24014         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24015         periodic needle having false positive.
24016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24017         and cygwin 1.7.7.
24018         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24020         (gl_FUNC_STRCASESTR): Likewise.
24021         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24022         * tests/test-memmem.c (main): Expose the bug.
24023         * tests/test-strcasestr.c (main): Likewise.
24024         * tests/test-strstr.c (main): Likewise.
24025         * tests/test-c-strcasestr.c (main): Likewise.
24026         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24027         * doc/posix-functions/strstr.texi (strstr): Likewise.
24028         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24029         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24030
24031 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24032
24033         parse-datetime: do some more renaming
24034         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24035         parse_datetime, not get_date.  Mention the renaming.
24036         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24037         in comments.
24038         * m4/bison.m4: Likewise.
24039
24040 2010-10-05  Eric Blake  <eblake@redhat.com>
24041
24042         parse-datetime: better name than get_date
24043         * NEWS: Reword the deprecation notice.
24044         * modules/get_date: Rename to modules/parse-datetime.
24045         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24046         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24047         * lib/get_date.y: Rename to lib/parse-datetime.y.
24048         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24049         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24050         * doc/getdate.texi: Provide fallback wrapper.
24051         * lib/getdate.h: Move guts, and wrap...
24052         * lib/parse-datetime.h: ...new file.
24053         * lib/parse-datetime.y (get_date): Rename...
24054         (parse_datetime): ...to this.
24055         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24056         (gl_PARSE_DATETIME): ...to this.
24057         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24058         documentation.
24059         * modules/getdate (Files): Provide fallback docs and header.
24060         (Notice, Depends-on): Update references.
24061         * tests/test-parse-datetime.c: Likewise.
24062         * DEPENDENCIES: Likewise.
24063         * MODULES.html.sh (Date and time <time.h>): Likewise.
24064         * doc/parse-datetime.texi (Date input formats)
24065         (Authors of parse_datetime): Likewise.
24066         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24067         (Include): Likewise.
24068         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24069         * gnulib-tool: Likewise.
24070         * m4/bison.m4 (gl_BISON): Likewise.
24071         Suggested by Bruno Haible.
24072
24073 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24074
24075         more ports to Solaris tr, which needs [] around ranges
24076         * gnulib-tool: Solaris tr needs [] around ranges.
24077         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24078         * tests/test-pipe-filter-gi1.c (main): Likewise.
24079         * tests/test-pipe-filter-ii1.c (main): Likewise.
24080
24081 2010-10-05  Eric Blake  <eblake@redhat.com>
24082
24083         bootstrap: fix Solaris regression
24084         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24085         around ranges.
24086         Reported by Pádraig Brady.
24087
24088         bootstrap: work with pkg-config
24089         * build-aux/bootstrap (check_versions): Also transliterate - in
24090         prerequisite name.
24091         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24092         prerequisites that were already found, to avoid confusion.
24093         Reported by Justin Clift.
24094
24095         faccessat: remove unused wrappers
24096         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24097         presence of these wrappers dragged in -lgen on Solaris.
24098         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24099
24100 2010-10-05  Jim Meyering  <meyering@redhat.com>
24101
24102         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24103         * Makefile (sc_pragma_columns): New syntax-check rule.
24104
24105 2010-10-04  Bruno Haible  <bruno@clisp.org>
24106
24107         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24108         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24109         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24110         Reported by Bruce Korb and Eric Blake.
24111
24112 2010-10-04  Bruno Haible  <bruno@clisp.org>
24113
24114         threadlib: Make option --with-libpth-prefix work.
24115         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24116         use $LIBPTH, not just -lpth.
24117
24118 2010-10-04  Bruno Haible  <bruno@clisp.org>
24119
24120         Avoid line length limitation from HP NonStop system header files.
24121         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24122         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24123         * lib/ctype.in.h: Likewise.
24124         * lib/dirent.in.h: Likewise.
24125         * lib/errno.in.h: Likewise.
24126         * lib/fcntl.in.h: Likewise.
24127         * lib/float.in.h: Likewise.
24128         * lib/getopt.in.h: Likewise.
24129         * lib/iconv.in.h: Likewise.
24130         * lib/inttypes.in.h: Likewise.
24131         * lib/langinfo.in.h: Likewise.
24132         * lib/locale.in.h: Likewise.
24133         * lib/math.in.h: Likewise.
24134         * lib/netdb.in.h: Likewise.
24135         * lib/netinet_in.in.h: Likewise.
24136         * lib/poll.in.h: Likewise.
24137         * lib/pthread.in.h: Likewise.
24138         * lib/pty.in.h: Likewise.
24139         * lib/sched.in.h: Likewise.
24140         * lib/se-selinux.in.h: Likewise.
24141         * lib/search.in.h: Likewise.
24142         * lib/signal.in.h: Likewise.
24143         * lib/spawn.in.h: Likewise.
24144         * lib/stdarg.in.h: Likewise.
24145         * lib/stddef.in.h: Likewise.
24146         * lib/stdint.in.h: Likewise.
24147         * lib/stdio.in.h: Likewise.
24148         * lib/stdlib.in.h: Likewise.
24149         * lib/string.in.h: Likewise.
24150         * lib/strings.in.h: Likewise.
24151         * lib/sys_file.in.h: Likewise.
24152         * lib/sys_ioctl.in.h: Likewise.
24153         * lib/sys_select.in.h: Likewise.
24154         * lib/sys_socket.in.h: Likewise.
24155         * lib/sys_stat.in.h: Likewise.
24156         * lib/sys_time.in.h: Likewise.
24157         * lib/sys_times.in.h: Likewise.
24158         * lib/sys_utsname.in.h: Likewise.
24159         * lib/sys_wait.in.h: Likewise.
24160         * lib/sysexits.in.h: Likewise.
24161         * lib/termios.in.h: Likewise.
24162         * lib/time.in.h: Likewise.
24163         * lib/unistd.in.h: Likewise.
24164         * lib/wchar.in.h: Likewise.
24165         * lib/wctype.in.h: Likewise.
24166         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24167         * modules/ctype (Makefile.am): Likewise.
24168         * modules/dirent (Makefile.am): Likewise.
24169         * modules/errno (Makefile.am): Likewise.
24170         * modules/fcntl-h (Makefile.am): Likewise.
24171         * modules/float (Makefile.am): Likewise.
24172         * modules/getopt-posix (Makefile.am): Likewise.
24173         * modules/iconv-h (Makefile.am): Likewise.
24174         * modules/inttypes (Makefile.am): Likewise.
24175         * modules/langinfo (Makefile.am): Likewise.
24176         * modules/locale (Makefile.am): Likewise.
24177         * modules/math (Makefile.am): Likewise.
24178         * modules/netdb (Makefile.am): Likewise.
24179         * modules/netinet_in (Makefile.am): Likewise.
24180         * modules/poll-h (Makefile.am): Likewise.
24181         * modules/pthread (Makefile.am): Likewise.
24182         * modules/pty (Makefile.am): Likewise.
24183         * modules/sched (Makefile.am): Likewise.
24184         * modules/search (Makefile.am): Likewise.
24185         * modules/selinux-h (Makefile.am): Likewise.
24186         * modules/signal (Makefile.am): Likewise.
24187         * modules/spawn (Makefile.am): Likewise.
24188         * modules/stdarg (Makefile.am): Likewise.
24189         * modules/stddef (Makefile.am): Likewise.
24190         * modules/stdint (Makefile.am): Likewise.
24191         * modules/stdio (Makefile.am): Likewise.
24192         * modules/stdlib (Makefile.am): Likewise.
24193         * modules/string (Makefile.am): Likewise.
24194         * modules/strings (Makefile.am): Likewise.
24195         * modules/sys_file (Makefile.am): Likewise.
24196         * modules/sys_ioctl (Makefile.am): Likewise.
24197         * modules/sys_select (Makefile.am): Likewise.
24198         * modules/sys_socket (Makefile.am): Likewise.
24199         * modules/sys_stat (Makefile.am): Likewise.
24200         * modules/sys_time (Makefile.am): Likewise.
24201         * modules/sys_times (Makefile.am): Likewise.
24202         * modules/sys_utsname (Makefile.am): Likewise.
24203         * modules/sys_wait (Makefile.am): Likewise.
24204         * modules/sysexits (Makefile.am): Likewise.
24205         * modules/termios (Makefile.am): Likewise.
24206         * modules/time (Makefile.am): Likewise.
24207         * modules/unistd (Makefile.am): Likewise.
24208         * modules/wchar (Makefile.am): Likewise.
24209         * modules/wctype (Makefile.am): Likewise.
24210
24211 2010-10-04  Bruno Haible  <bruno@clisp.org>
24212
24213         read-file tests: Avoid a test failure on NonStop Kernel.
24214         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24215         a regular file.
24216         Reported by Joachim Schmitz <schmitz@hp.com>.
24217
24218 2010-10-03  Bruno Haible  <bruno@clisp.org>
24219
24220         gnulib-tool: Fixes for --create-testdir with --libtool.
24221         * gnulib-tool (func_get_automake_snippet): Don't augment
24222         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24223         an executable.
24224         (func_create_testdir): Handle module 'alloca' like func_import.
24225         Reported by Bruce Korb <bruce.korb@gmail.com>.
24226
24227 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24228
24229         Avoid some lines longer than 80 characters.
24230         * lib/stdint.in.h: Break long comment lines.
24231         * lib/math.in.h: Likewise.
24232         (_GL_NUM_UINT_WORDS): New macro, for readability.
24233         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24234         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24235         * lib/stdlib.in.h: Likewise.
24236         * lib/spawn.in.h: Likewise.
24237         * lib/sys_socket.in.h: Update an URL.
24238         * lib/sys_stat.in.h: Break long line.
24239
24240 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24241
24242         Improve pmccabe2html.
24243         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24244         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24245         when the sources change. Remove the line in the HTML about "Used
24246         ranges" (which implied that there might be other unused ranges),
24247         rename "Resume" to "Summary" (easier to understand for more users).
24248         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24249         styles, and some unnecessary blank lines.
24250
24251 2010-10-03  Bruno Haible  <bruno@clisp.org>
24252             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24253
24254         acl: Add support for ACLs on NonStop Kernel.
24255         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24256         Check whether the function aclsort() exists.
24257         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24258         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24259         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24260         (acl_nontrivial [HAVE_ACLSORT]: New function.
24261         (file_has_acl): Implement for NonStop Kernel.
24262         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24263         (qset_acl): Implement for NonStop Kernel.
24264         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24265         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24266         (main): Implement for NonStop Kernel.
24267         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24268         Kernel. Handle this flavor.
24269         * tests/test-set-mode-acl.sh: Likewise.
24270         * tests/test-copy-acl.sh: Likewise.
24271         * tests/test-copy-file.sh: Likewise.
24272
24273 2010-10-03  Bruno Haible  <bruno@clisp.org>
24274
24275         Info about ACLs on NonStop Kernel.
24276         * doc/acl-resources.txt: Add info about NonStop Kernel.
24277         References by Joachim Schmitz <schmitz@hp.com>.
24278
24279 2010-10-02  Bruno Haible  <bruno@clisp.org>
24280
24281         Define missing EDQUOT on NonStop Kernel.
24282         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24283         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24285         missing.
24286         * doc/posix-headers/errno.texi: Mention the NSK bug.
24287         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24288         Reported by Joachim Schmitz <schmitz@hp.com>.
24289
24290 2010-10-02  Bruno Haible  <bruno@clisp.org>
24291
24292         Update doc for POSIX:2008.
24293         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24294         Update URL of POSIX specification.
24295
24296 2010-10-02  Bruno Haible  <bruno@clisp.org>
24297
24298         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24299         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24300         from gnulib, not from Automake.
24301
24302 2010-10-02  Bruno Haible  <bruno@clisp.org>
24303
24304         New module 'system-posix'.
24305         * modules/system-posix: New file.
24306         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24307         module is present.
24308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24309         GNULIB_SYSTEM_POSIX.
24310         * modules/stdlib (Depends-on): Remove sys_wait.
24311         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24312         * doc/posix-functions/system.texi: Mention the new module.
24313         * doc/posix-headers/stdlib.texi: Likewise.
24314         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24315         define test_sys_wait_macros to a no-op.
24316         Reported by Sam Steingold <sds@gnu.org>.
24317
24318 2010-09-30  Bruno Haible  <bruno@clisp.org>
24319
24320         More renaming from 'getdate' to 'get_date'.
24321         * doc/get_date.texi: Renamed from doc/getdate.texi.
24322         * modules/get_date (Files): Update.
24323         * MODULES.html.sh (Date and time <time.h>): Update.
24324         * DEPENDENCIES: Update.
24325         * gnulib-tool: Update comment.
24326         * m4/bison.m4 (gl_BISON): Likewise.
24327         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24328
24329 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24330
24331         bootstrap: support ACLOCAL_FLAGS during aclocal
24332         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24333         can add additional -I dir for third-party .m4 files.
24334
24335 2010-09-30  Eric Blake  <eblake@redhat.com>
24336
24337         bootstrap: use glibtoolize on MacOS
24338         * build-aux/bootstrap (check_versions): Convert libtool into
24339         libtoolize.
24340         (tool search): Move libtool check earlier, and look for
24341         glibtoolize for MacOS.
24342         (gnulib_tool_options): Auto-add --libtool when appropriate.
24343         Reported by Justin Clift.
24344
24345         poll: fix typo that broke test on MacOS
24346         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24347         Reported by Justin Clift.
24348
24349         getdate: rename to get_date
24350         Note: getdate.h is not renamed, to minimize client impact.
24351         * modules/getdate: Mark obsolete.  Move old contents...
24352         * modules/get_date: ...to new module name.
24353         * modules/getdate-tests: Move...
24354         * modules/get_date-tests: ...here.
24355         * m4/getdate.m4: Move...
24356         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24357         * lib/getdate.y: Move...
24358         * lib/get_date.y: ...here.
24359         * tests/test-getdate.c: Move...
24360         * tests/test-get_date.c: ...here.
24361         * doc/posix-functions/getdate.texi (getdate): Update name.
24362         * NEWS: Mention the change.
24363
24364 2010-09-29  Bruno Haible  <bruno@clisp.org>
24365
24366         Separate the module 'waitpid' from the module 'sys_wait'.
24367         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24368         present.
24369         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24370         gl_MODULE_INDICATOR_FOR_TESTS.
24371         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24372         * modules/sys_wait (Depends-on): Remove waitpid.
24373         (Makefile.am): Substitute GNULIB_WAITPID.
24374         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24375         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24376         signature only if the 'waitpid' module is present.
24377         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24378         * NEWS: Mention the change.
24379         * modules/grantpt (Depends-on): Add waitpid.
24380         * modules/wait-process (Depends-on): Likewise.
24381
24382 2010-09-29  Bruno Haible  <bruno@clisp.org>
24383
24384         More tests for module 'sys_wait'.
24385         * modules/sys_wait-c++-tests: New file.
24386         * tests/test-sys_wait-c++.cc: New file.
24387         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24388         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24389
24390 2010-09-29  Bruno Haible  <bruno@clisp.org>
24391
24392         New module 'waitpid'.
24393         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24394         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24395         Don't include <process.h>.
24396         (waitpid): Declare only, using modern idiom.
24397         * m4/waitpid.m4: New file.
24398         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24399         * modules/waitpid: New file.
24400         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24401         (Makefile.am): Update.
24402         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24403
24404 2010-09-28  Bruno Haible  <bruno@clisp.org>
24405
24406         poll: Assume ANSI C.
24407         * lib/poll.c (poll): Use an ANSI C declaration.
24408
24409 2010-09-28  Bruno Haible  <bruno@clisp.org>
24410
24411         poll-h: Create poll.h on all platforms.
24412         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24413         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24414         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24415         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24416         (gl_REPLACE_POLL_H): Don't set POLL_H.
24417         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24418         * modules/poll-h (Depends-on): Add include_next.
24419         (Makefile.am): Create poll.h unconditionally. Substitute also
24420         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24421
24422 2010-09-28  Bruno Haible  <bruno@clisp.org>
24423
24424         Tests for module 'poll-h'.
24425         * modules/poll-h-c++-tests: New file.
24426         * tests/test-poll-h-c++.cc: New file.
24427
24428         Tests for module 'poll-h'.
24429         * modules/poll-h-tests: New file.
24430         * tests/test-poll-h.c: New file.
24431
24432 2010-09-28  Bruno Haible  <bruno@clisp.org>
24433
24434         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24435         * modules/poll-h (Depends-on): Add 'extensions'.
24436
24437 2010-09-28  Bruno Haible  <bruno@clisp.org>
24438
24439         New module 'poll-h'.
24440         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24441         (poll): Use modern idiom.
24442         * modules/poll-h: New file.
24443         * modules/poll (Files): Remove lib/poll.in.h.
24444         (Depends-on): Add poll-h.
24445         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24446         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24447         * m4/poll_h.m4: New file.
24448         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24449         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24450         and invoke gl_REPLACE_POLL_H.
24451         * lib/poll.c: Use common idiom.
24452         * tests/test-poll.c: Likewise.
24453         * doc/posix-headers/poll.texi: Mention the poll-h module.
24454         Suggested by Eric Blake.
24455
24456 2010-09-26  Bruno Haible  <bruno@clisp.org>
24457
24458         sys_wait: Implement WSTOPSIG.
24459         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24460         Reported by Simon Josefsson.
24461
24462 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24463
24464         stdlib, sys_wait: Avoid compilation error on mingw.
24465         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24466
24467 2010-09-26  Bruno Haible  <bruno@clisp.org>
24468
24469         stdlib tests: Avoid code duplication.
24470         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24471         * modules/sys_wait-tests (Files): Likewise.
24472         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24473         * tests/test-stdlib.c: Include test-sys_wait.h.
24474         (main): Invoke test_sys_wait_macros.
24475         * tests/test-sys_wait.c: Include test-sys_wait.h.
24476         (main): Invoke test_sys_wait_macros.
24477
24478 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24479
24480         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24481         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24482         sure Windows sockets are working before calling getaddrinfo.
24483         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24484         * doc/gnulib.texi (Windows sockets): Fix typo.
24485
24486 2010-09-25  Bruno Haible  <bruno@clisp.org>
24487
24488         Tests for module 'regex-quote'.
24489         * modules/regex-quote-tests: New file.
24490         * tests/test-regex-quote.c: New file.
24491
24492         New module 'regex-quote'.
24493         * lib/regex-quote.h: New file.
24494         * lib/regex-quote.c: New file.
24495         * modules/regex-quote: New file.
24496         Suggested by Reuben Thomas <rrt@sc3d.org>.
24497
24498 2010-09-24  Bruno Haible  <bruno@clisp.org>
24499
24500         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24501         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24502
24503 2010-09-23  Bruno Haible  <bruno@clisp.org>
24504
24505         setenv: Relax license.
24506         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24507         Blake.
24508         Requested by Eric Blake.
24509
24510 2010-09-22  Bruno Haible  <bruno@clisp.org>
24511
24512         termios: Relax license.
24513         * modules/termios (License): Change to LGPLv2+.
24514         Requested by Eric Blake.
24515
24516 2010-09-22  Bruno Haible  <bruno@clisp.org>
24517
24518         threadlib: Allow the package to change the default to 'no'.
24519         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24520         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24521         Reported by Paul Eggert.
24522
24523 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24524             Bruno Haible  <bruno@clisp.org>
24525
24526         Fix endless loop in mbmemcasecoll.
24527         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24528         byte.
24529         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24530
24531 2010-09-22  Bruno Haible  <bruno@clisp.org>
24532
24533         Tests for module 'memcoll'.
24534         * modules/memcoll-tests: New file.
24535         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24536
24537         memcoll, xmemcoll: Clarify size vs. length.
24538         * modules/memcoll.c (memcoll0): Clarify specification.
24539         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24540         passed to collate_error.
24541
24542 2010-09-22  Bruno Haible  <bruno@clisp.org>
24543
24544         Tests for module 'memcasecmp'.
24545         * modules/memcasecmp-tests: New file.
24546         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24547
24548 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24549
24550         * lib/pthread.in.h: Add split double-inclusion guard, and include
24551         system <pthread.h> if there is one.  Use @@-style as in other
24552         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24553         pthread.h doesn't.
24554         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24555         (pthread_mutexattr_settype, pthread_mutex_trylock):
24556         New static inline functions, if there's no system <pthread.h>.
24557         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24558         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24559         Approximate with mutexes if the system lacks spinlocks, as in
24560         MacOS.
24561         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24562         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24563         @@-style.  Check for spinlocks separately.
24564         (gl_PTHREAD_DEFAULTS): New macro.
24565         * modules/pthread: Redo to use a more typical style for in.h files.
24566
24567 2010-09-21  Eric Blake  <eblake@redhat.com>
24568
24569         net_if: enhance tests
24570         * tests/test-net_if.c (main): Move signature checks earlier.
24571         Print failures to stderr.
24572         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24573         Document the bug that we do not yet fix.
24574
24575 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24576
24577         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24578         about gnulib, not GSS.
24579
24580 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24581
24582         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24583         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24584         for Emacs.
24585         * build-aux/pmccabe2html: Make Makefile.am example code more
24586         cut-and-paste friendly.
24587
24588 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24589
24590         * tests/test-net_if.c: New file.
24591         * modules/net_if-tests: New file.
24592
24593 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24594
24595         pthread: add pthread_spin_destroy
24596         * lib/pthread.in.h (pthread_spin_destroy): New function.
24597
24598 2010-09-19  Bruno Haible  <bruno@clisp.org>
24599
24600         gnulib-tool: Fix --help output.
24601         * gnulib-tool (func_usage): Fix help message.
24602         Reported by Reuben Thomas <rrt@sc3d.org>.
24603
24604 2010-09-18  Jim Meyering  <meyering@redhat.com>
24605
24606         maint.mk: avoid unexpanded \n in two diagnostics
24607         * top/maint.mk (sc_prohibit_always_true_header_tests):
24608         Don't use a literal \n in a halt=... assignment.  It would not be
24609         expanded, and the two \n bytes would appear in the diagnostic output
24610         rather than the desired newline.  Use halt=$$(printf ... instead.
24611         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24612
24613 2010-09-18  Bruno Haible  <bruno@clisp.org>
24614
24615         netinet_in: Doc tweak.
24616         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24617         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24618
24619 2010-09-18  Jim Meyering  <meyering@redhat.com>
24620
24621         init.sh: correct an outdated comment
24622         * tests/init.sh (create_exe_shims_):  s/function/alias/
24623
24624         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24625         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24626         a file named "*.exe" is removed between the glob expansion and the
24627         processing of that oddly named file.
24628
24629 2010-09-17  Eric Blake  <eblake@redhat.com>
24630
24631         mirbsd: add some more support
24632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24633         in BSD family.
24634         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24635         devices as OpenBSD.
24636         * m4/host-os.m4 (mirbsd): Add MirBSD.
24637
24638         tests: fix unportable assumption on sys/wait.h
24639         * tests/test-sys_wait.c (main): Relax test.
24640         * tests/test-stdlib.c (main): Likewise.
24641
24642         init.sh: accomodate directory with no .exes
24643         * tests/init.sh: Accomodate directory containing only scripts.
24644
24645         tests: avoid compiler warning
24646         * tests/test-stdlib.c (main): Use the variable.
24647
24648         fdutimens, fdutimensat: update signature, again
24649         * lib/utimens.h (gl_futimens): Delete, and move signature...
24650         (fdutimens): ...here.
24651         (fdutimensat): Rearrange signature.
24652         (lutimensat): Rename variable for clarity.
24653         * lib/fdutimensat.c (fdutimensat): Update signature.
24654         * lib/utimens.c (fdutimens): Likewise.
24655         (gl_futimens): Delete.
24656         (utimens, lutimens): Update callers.
24657         * lib/futimens.c (futimens): Likewise.
24658         * tests/test-fdutimensat.c: Likewise.
24659         * tests/test-utimens.c: Likewise.
24660         * tests/test-futimens.h: Update comment.
24661         * NEWS: Mention this.
24662         Suggested by Paul Eggert.
24663
24664 2010-09-17  Bruno Haible  <bruno@clisp.org>
24665
24666         Take over the maintenance of some older macros from Autoconf.
24667         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24668         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24669         GNU Autoconf.
24670         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24671         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24672
24673 2010-09-17  Eric Blake  <eblake@redhat.com>
24674
24675         fdutimensat: drop atflag validation
24676         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24677         with valid fd, to close a race scenario where futimens is
24678         unsupported and FILE was replaced by a symlink.
24679         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24680         accordingly.
24681         Suggested by Paul Eggert.
24682
24683 2010-09-16  Bruno Haible  <bruno@clisp.org>
24684
24685         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24686         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24687
24688 2010-09-16  Bruno Haible  <bruno@clisp.org>
24689
24690         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24691         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24692         login_tty exists.
24693         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24694
24695 2010-09-16  Bruno Haible  <bruno@clisp.org>
24696
24697         login_tty: Make the replacement code work on BSD systems.
24698         * lib/login_tty.c: Include <sys/ioctl.h>.
24699         (login_tty): Use ioctl TIOCSCTTY when available.
24700         * modules/login_tty (Depends-on): Add sys_ioctl.
24701         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24702
24703 2010-09-16  Bruno Haible  <bruno@clisp.org>
24704
24705         login_tty: Stricter unit test.
24706         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24707         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24708         and tcgetsid() after login_tty.
24709         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24710
24711 2010-09-16  Bruno Haible  <bruno@clisp.org>
24712
24713         New module 'tcgetsid'.
24714         * lib/tcgetsid.c: New file.
24715         * m4/tcgetsid.m4: New file.
24716         * modules/tcgetsid: New file.
24717         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24718         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24719         GNULIB_TCGETSID, HAVE_TCGETSID.
24720         * lib/termios.in.h: Include <sys/types.h>.
24721         (tcgetsid): New declaration.
24722         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24723         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24724         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24725         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24726
24727 2010-09-16  Bruno Haible  <bruno@clisp.org>
24728
24729         Tests for module 'termios'.
24730         * modules/termios-c++-tests: New file.
24731         * modules/termios-tests: New file.
24732         * tests/test-termios-c++.cc: New file.
24733         * tests/test-termios.c: New file.
24734
24735         New module 'termios'.
24736         * modules/termios: New file.
24737         * lib/termios.in.h: New file.
24738         * m4/termios_h.m4: New file.
24739         * doc/posix-headers/termios.texi: Mention the new module.
24740
24741 2010-09-16  Eric Blake  <eblake@redhat.com>
24742
24743         fdutimensat: add an atflag parameter
24744         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24745         * lib/utimens.h (fdutimensat): Update prototype.
24746         * tests/test-fdutimensat.c: Adjust test to match.
24747         * NEWS: Document the change.
24748         Suggested by Paul Eggert.
24749
24750 2010-09-16  Bruno Haible  <bruno@clisp.org>
24751
24752         Fix typos in comments.
24753         * lib/striconveh.h: Fix typo in comment.
24754         * lib/login_tty.c (login_tty): Likewise.
24755
24756 2010-09-15  Bruno Haible  <bruno@clisp.org>
24757
24758         stdlib: clarify MirBSD WEXITSTATUS bug
24759         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24760         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24761
24762 2010-09-15  Eric Blake  <eblake@redhat.com>
24763
24764         stdlib: work around MirBSD WEXITSTATUS bug
24765         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24766         * modules/stdlib (Depends-on): Add sys_wait.
24767         * tests/test-sys_wait.c (main): Enhance test.
24768         * tests/test-stdlib.c (main): Likewise.
24769         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24770
24771         docs: mention MacOS issue with WEXITSTATUS(constant)
24772         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24773         issue.
24774         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24775
24776         strnlen: add tests
24777         * modules/strnlen-tests: New file.
24778         * tests/test-strnlen.c: Likewise.
24779
24780 2010-09-14  Bruno Haible  <bruno@clisp.org>
24781
24782         unistr/base: Avoid link errors when module 'libunistring' is also used.
24783         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24784         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24785         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24786         Declare also when HAVE_LIBUNISTRING is set.
24787         Reported by Pádraig Brady <P@draigbrady.com>.
24788
24789 2010-09-14  Eric Blake  <eblake@redhat.com>
24790
24791         test-rawmemchr: make more robust
24792         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24793         (Depends-on, configure.ac): Add needed prerequisites to use it.
24794         * modules/memchr-tests (Files, Depends-on, configure.ac):
24795         Likewise, to avoid implicit reliance on memchr module prereqs.
24796         * tests/test-memchr.c (main): Ensure proper masking.
24797         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24798         reads.
24799
24800         memchr: detect glibc Alpha bug
24801         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24802         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24803         Alpha.
24804         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24805         * tests/test-memchr.c (main): Enhance test.
24806         Reported by Nelson H. F. Beebe.
24807
24808 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24809
24810         fts, getcwd, glob: audit for dirfd returning -1
24811         * lib/fts.c (opendir): Remove #define; no longer used.
24812         (opendirat): New arg PDIR_FD.  All callers changed.
24813         (fts_build, _opendir2): Use new opendirat to avoid the need for
24814         dirfd, or for checking whether dirfd returns a negative value.
24815         Don't use opendir; always use openat followed by fdopendir.
24816         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24817         it.
24818         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24819         returns -1 here.
24820         * modules/fts (Depends-on): Remove dirfd.
24821         * modules/getcwd (Depends-on): Likewise.
24822
24823 2010-09-13  Eric Blake  <eblake@redhat.com>
24824
24825         float: fix broken MirBSD header
24826         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24827         * doc/posix-headers/float.texi (float.h): Document it.
24828
24829 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24830
24831         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24832         * lib/fts.c (opendirat): New arg extra_flags.
24833         (__opendir2): Use it to avoid following symlinks when opening
24834         a directory, if symlinks are not supposed to be followed.  See
24835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24836
24837         fdopendir: preserve argument fd before returning
24838         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24839         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24840         (fdopendir): Use them, arranging for FD to be open to the same
24841         directory that it was when it started.  (It might be temporarily
24842         closed while fdopendir is running, so this not thread- or
24843         signal-safe.)  Be careful to do the right thing even when file
24844         descriptors are scarce and dup fails with errno == EMFILE.  See
24845         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24846
24847 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24848
24849         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24850         * NEWS: Document change.
24851         * m4/regex.m4: Disable test for regoff_t size.
24852
24853 2010-09-13  Jim Meyering  <meyering@redhat.com>
24854
24855         fts: don't operate on an invalid file descriptor after failed dup
24856         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24857         negative file descriptor.
24858
24859 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         savedir: add streamsavedir, deprecate fdsavedir
24862         * NEWS: Mention deprecation of fdsavedir.
24863         * lib/savedir.c (streamsavedir): New extern function, whose name
24864         ends in "savedir" to be consistent with the others.  This differs
24865         from savedirstream in that it doesn't close its argument.  The
24866         next version of GNU tar will use this instead of fdsavedir, to
24867         avoid some race conditions and conserve file descriptors.
24868         (savedirstream): Reimplement as a wrapper around streamsavedir.
24869         (fdsavedir): Add a comment deprecating this function.  As far as
24870         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24871         * lib/savedir.h (streamsavedir): New decl.
24872         (fdsavedir): Add a comment deprecating this.
24873
24874 2010-09-10  Bruno Haible  <bruno@clisp.org>
24875
24876         langinfo: Fix last commit.
24877         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24878         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24880
24881 2010-09-10  Bruno Haible  <bruno@clisp.org>
24882
24883         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24884         * lib/progreloc.c (O_EXEC): Define fallback.
24885
24886 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24889         * NEWS: Document recent changes to fcntl-h.
24890         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24891         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24892         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24893         Similarly for O_SEARCH; this last was already true, but not documented.
24894         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24895         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24896         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24897         Likewise.
24898         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24899         is zero, not whether it is defined.
24900         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24901         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24902         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24903
24904 2010-09-10  Bruno Haible  <bruno@clisp.org>
24905
24906         langinfo, nl_langinfo: Fix for IRIX 5.3.
24907         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24908         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24909         HAVE_LANGINFO_YESEXPR.
24910         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24911         HAVE_LANGINFO_YESEXPR.
24912         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24913         HAVE_LANGINFO_T_FMT_AMPM is 0.
24914         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24915         HAVE_LANGINFO_YESEXPR is 0.
24916         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24917         NOEXPR.
24918         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24919         * doc/posix-functions/nl_langinfo.texi: Likewise.
24920         Reported by Eric Blake.
24921
24922 2010-09-10  Bruno Haible  <bruno@clisp.org>
24923
24924         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24925         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24926         on FreeBSD 8.0 and OpenBSD 4.6.
24927         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24928         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24929         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24930         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24931         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24932         ac_includes_default.
24933         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24934
24935 2010-09-09  Eric Blake  <eblake@redhat.com>
24936
24937         strsignal: work around NetBSD bug
24938         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24939         * lib/string.in.h (includes): Likewise.
24940         * doc/posix-functions/strsignal.texi (strsignal): Document the
24941         bug.
24942         Reported by Nelson H. F. Beebe.
24943
24944         gnulib-tool: work with NetBSD /bin/sh
24945         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24946         (func_get_description, func_get_comment, func_get_status)
24947         (func_get_notice, func_get_applicability, func_get_filelist)
24948         (func_get_dependencies, func_get_autoconf_early_snippet)
24949         (func_get_autoconf_snippet, func_get_automake_snippet)
24950         (func_get_include_directive, func_get_link_directive)
24951         (func_get_license, func_get_maintainer, func_import): Avoid
24952         shell syntax errors from parsing syntax extensions.
24953
24954 2010-09-09  Bruno Haible  <bruno@clisp.org>
24955
24956         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24957         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24958         a reliable way to determine whether the 'alias' command works.
24959
24960 2010-09-08  Jim Meyering  <meyering@redhat.com>
24961
24962         init.sh: penalize a set-x-impaired shell; don't disqualify it
24963         * tests/init.sh: Too many shells corrupt application stderr when
24964         you set -x, so we can't afford to disqualify them, since at least
24965         on Irix-6.5, that would disqualify all bourne shells.
24966         Instead, use a two-pass approach.
24967         On the first pass, try to find a shell that meets the stricter
24968         condition that set -x does not corrupt stderr.
24969         If no shell meets the stricter condition, retest each candidate
24970         shell, but without that extra condition.  Finally, when
24971         VERBOSE=yes is requested and set -x might cause trouble, simply
24972         issue a warning and refrain from enabling debug output.
24973
24974 2010-09-08  Eric Blake  <eblake@redhat.com>
24975
24976         unsetenv: fix OpenBSD bug
24977         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24978         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24979         documentation.
24980         Reported by Jim Meyering.
24981
24982         strtod: work around IRIX 6.5 bug
24983         * lib/strtod.c (strtod): Reparse number on shorter string if
24984         exponent parse was invalid.
24985         * tests/test-strtod.c (main): Add check for "0x1p 2".
24986         Reported by Tom G. Christensen.
24987
24988         getopt: optimize previous patch
24989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24990         empty variable.  Speed up awk script.
24991         Reported by Paolo Bonzini.
24992
24993 2010-09-08  Jim Meyering  <meyering@redhat.com>
24994
24995         test.sh: disqualify shells for which set -x corrupts stderr
24996         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24997         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24998         appear in stderr output.  For example, this command:
24999             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25000         prints "P=1" on those two systems:
25001
25002 2010-09-08  Bruno Haible  <bruno@clisp.org>
25003
25004         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25005         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25006         commands, because some shells ignore redirections when there is an
25007         error in the command lookup.
25008         Reported by Eric Blake.
25009
25010 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25011
25012         * lib/regex.h: Fix a mention of `regex_compile' (should be
25013         `re_compile_pattern').
25014         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25015         (re_set_registers): Correct name of parameter in comment.
25016
25017         * doc/regex.texi: Add documentation for missing syntax flags.
25018         Remove commented-out documentation of defunct syntax option
25019         RE_NO_EMPTY_ALTS.
25020         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25021         Add documentation of re_set_registers.
25022         Document trick to re-use a pattern buffer by setting fastmap manually.
25023         Update documentation of struct re_pattern_buffer per public members.
25024         Uncomment documentation of equivalence class operators and
25025         collating symbol operators, since they are now implemented,
25026         Explain leftmost-longest matching in relation to alternatives.
25027         Tidy documentation of substring matching.
25028         Remove POSIX documentation, which is done better in
25029         glibc, and refer the reader there. Keep BSD API documentation, as
25030         that is not readily available elsewhere.
25031
25032 2010-09-07  Eric Blake  <eblake@redhat.com>
25033
25034         getopt: handle POSIXLY_CORRECT set but not exported
25035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25036         export state of POSIXLY_CORRECT, due to bash set -o posix.
25037         Reported by Dustin J. Mitchell.
25038
25039 2010-09-05  Bruno Haible  <bruno@clisp.org>
25040
25041         gnulib-tool: Highlight the changed options.
25042         * gnulib-tool (func_usage): Display the --import, --add-import,
25043         --remove-import explanations in bold font.
25044
25045 2010-09-06  Karl Berry  <karl@gnu.org>
25046
25047         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25048
25049 2010-09-05  Bruno Haible  <bruno@clisp.org>
25050
25051         uniwidth/width: Update comment.
25052         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25053         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25054
25055 2010-09-05  Bruno Haible  <bruno@clisp.org>
25056
25057         isinf, isnan: Relax license.
25058         * modules/isinf (License): Change from GPL to LGPL, with consent from
25059         Ben Pfaff.
25060         * modules/isnan (License): Likewise.
25061         Requested by Ludovic Courtès.
25062
25063 2010-09-04  Bruno Haible  <bruno@clisp.org>
25064
25065         gnulib-tool: Help migration from --import to --add-import or --update.
25066         * gnulib-tool: Emit a verbose error message when --import is used
25067         without any module name.
25068
25069 2010-09-04  Bruno Haible  <bruno@clisp.org>
25070
25071         Update doc about gnulib-tool.
25072         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25073         'gnulib-tool --update' in more detail.
25074         Reported by Eric Blake.
25075
25076 2010-09-04  Bruno Haible  <bruno@clisp.org>
25077
25078         gnulib-tool: Change --import. New options --add/remove-import.
25079         * gnulib-tool: New options --add-import, --remove-import.
25080         (func_usage): Document them.
25081         (have_associative): Define always.
25082         (func_import): In import mode, don't merge the specified settings with
25083         the cached settings. Implement remove-import mode.
25084         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25085         Explain when to use them versus --import.
25086         (Simple update): Use --add-import instead of --import.
25087         * NEWS: Mention the change.
25088
25089 2010-09-04  Bruno Haible  <bruno@clisp.org>
25090
25091         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25092         separate gnulib.mk.
25093
25094 2010-09-04  Bruno Haible  <bruno@clisp.org>
25095
25096         gnulib-tool: Don't talk about CVS any more.
25097         * gnulib-tool (func_usage, func_import): Write "version control"
25098         instead of CVS.
25099
25100 2010-09-04  Jim Meyering  <meyering@redhat.com>
25101
25102         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25103         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25104         false positives (whose names may be ill-chosen) when searching
25105         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25106         would cause a false-positive.
25107
25108         avoid coreutils "make distcheck" failure
25109         Coreutils tests with an absolute build directory name that contains
25110         a space.  Not quoting this directory name caused a failure.
25111         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25112         * tests/test-vc-list-files-cvs.sh: Likewise.
25113
25114 2010-09-04  Bruno Haible  <bruno@clisp.org>
25115
25116         gnulib-tool: Avoid error when run in a package without Makefile.am.
25117         * gnulib-tool: When collecting the m4dirs in a package that does not
25118         have a Makefile.am, eliminate those directories that contain no
25119         gnulib-cache.m4. Fix expression that counts these directories.
25120
25121 2010-09-04  Bruno Haible  <bruno@clisp.org>
25122
25123         update-copyright test: Improve output when perl is missing or too old.
25124         * tests/test-update-copyright.sh: Move test of Perl version down after
25125         the test whether Perl exists. Provide an explanation relating Perl's
25126         error message to Automake's SKIP: message.
25127
25128 2010-09-04  Bruno Haible  <bruno@clisp.org>
25129
25130         Don't augment PATH in TESTS_ENVIRONMENT.
25131         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25132         set abs_aux_dir instead of augmenting PATH.
25133         * modules/vc-list-files-tests (Makefile.am): Likewise.
25134         * tests/test-update-copyright.sh: Augment PATH here.
25135         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25136         path_prepend_.
25137         * tests/test-vc-list-files-git.sh: Likewise.
25138
25139 2010-09-04  Jim Meyering  <meyering@redhat.com>
25140
25141         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25142         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25143
25144 2010-09-04  Bruno Haible  <bruno@clisp.org>
25145
25146         strdup: Fix compilation error in C++ mode.
25147         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25148         the macro.
25149
25150 2010-09-04  Bruno Haible  <bruno@clisp.org>
25151
25152         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25153         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25154         macro into a function.
25155         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25156
25157 2010-09-04  Bruno Haible  <bruno@clisp.org>
25158
25159         Set PATH_SEPARATOR the same way autoconf does.
25160         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25161         the value of PATH_SEPARATOR the same way autoconf-generated configure
25162         scripts do.
25163         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25164         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25165
25166 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25167
25168         Set PATH_SEPARATOR the same way autoconf does.
25169         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25170         the same way autoconf-generated configure scripts do.
25171         * posix-modules: Likewise.
25172
25173 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25174
25175         hash: fix safe_hasher const typo
25176         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25177         const; otherwise, there is a type error later.
25178
25179 2010-09-02  Jim Meyering  <meyering@redhat.com>
25180
25181         test-update-copyright.sh: require perl 5.8.0
25182         * tests/test-update-copyright.sh: Require 5.8.0,
25183         which Tom G. Christensen has confirmed is adequate,
25184         while 5.6.1 is not.
25185
25186 2010-09-02  Eric Blake  <eblake@redhat.com>
25187
25188         tests: init.sh improvements for re-exec'ing with zsh
25189         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25190         -vx through shell re-exec.
25191         Reported by Tom G. Christensen.
25192
25193         wctype: fix typo in previous commit
25194         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25195         Reported by Ludovic Courtès.
25196
25197 2010-09-02  Jim Meyering  <meyering@redhat.com>
25198
25199         test-update-copyright.sh: skip test if Perl is too old
25200         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25201         Reported by Tom G. Christensen.
25202
25203 2010-09-02  Bruno Haible  <bruno@clisp.org>
25204
25205         wctype: Avoid compilation error on IRIX 6.5.30.
25206         * lib/wctype.in.h (iswblank): Declare with a replacement if
25207         REPLACE_ISWBLANK is set.
25208         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25209         declared. Set REPLACE_ISWBLANK.
25210         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25211         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25212         * doc/posix-headers/wctype.texi: Likewise.
25213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25214
25215 2010-09-01  Bruno Haible  <bruno@clisp.org>
25216
25217         New module 'socketlib'.
25218         * modules/socketlib: New file.
25219         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25220         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25221         * modules/sockets (Depends-on): Add socketlib.
25222         Suggested by Sam Steingold <sds@gnu.org>.
25223
25224 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25225
25226         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25227
25228         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25229         when one needs search access to a directory but not read access.
25230         On systems where it is available, it works in some cases where
25231         O_RDONLY does not, namely on directories that are searchable but
25232         not readable, and which need only to be searchable.  If O_SEARCH
25233         is not available, fall back to the traditional method of using
25234         O_RDONLY.
25235
25236         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25237         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25238         when opening a directory that needs only to be searchable.
25239         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25240         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25241         * lib/openat-proc.c (openat_proc_name): Likewise.
25242         * lib/openat.c (openat_needs_fchdir): Likewise.
25243         * lib/save-cwd.c (save_cwd): Likewise.
25244         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25245
25246 2010-08-28  Bruno Haible  <bruno@clisp.org>
25247
25248         New module 'host-cpu-c-abi'.
25249         * modules/host-cpu-c-abi: New file.
25250         * m4/host-cpu-c-abi.m4: New file, based on part of
25251         clisp/src/m4/general.m4.
25252         Requested by Sam Steingold <sds@gnu.org>.
25253
25254 2010-08-31  Eric Blake  <eblake@redhat.com>
25255         and Jim Meyering  <meyering@redhat.com>
25256
25257         hash: factor, and guard against misbehaving hasher function
25258         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25259         of table->hasher's return value.  Also protect against a hash value
25260         so large that adding it to table->bucket results in a NULL pointer.
25261         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25262         Use it in place of open-coded check-and-abort.
25263
25264 2010-08-30  Bruno Haible  <bruno@clisp.org>
25265
25266         hash: silence spurious clang warning
25267         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25268         Reported by Eric Blake.
25269
25270 2010-08-30  Eric Blake  <eblake@redhat.com>
25271
25272         strstr, memmem, strcasestr: avoid leaked shell message
25273         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25274         FreeBSD.
25275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25277
25278         tests: silence clang warning
25279         * tests/test-malloca.c (do_allocation): Avoid dead store.
25280
25281 2010-08-29  Bruno Haible  <bruno@clisp.org>
25282
25283         gettext: Fix recent mistake.
25284         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25285
25286 2010-08-29  Bruno Haible  <bruno@clisp.org>
25287
25288         selinux-h: Offer a --without-selinux option.
25289         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25290         --without-selinux was specified, skip all tests and define
25291         HAVE_SELINUX_SELINUX_H to 0.
25292         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25293         set LIB_SELINUX to empty.
25294         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25295         gl_LIBSELINUX. If --without-selinux was specified, replace
25296         selinux/context.h.
25297         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25298
25299 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25300             Bruno Haible  <bruno@clisp.org>
25301
25302         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25303         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25304         of HAVE_REALLOC.
25305         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25306         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25307         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25308         * modules/realloc-gnu (configure.ac): Use 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 'calloc-gnu' work again on AIX and OSF/1.
25314         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25315         HAVE_CALLOC.
25316         * lib/xmalloc.c: Update accordingly.
25317         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25318         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25319         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25320
25321 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25322             Bruno Haible  <bruno@clisp.org>
25323
25324         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25325         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25326         HAVE_MALLOC.
25327         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25328         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25329         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25330
25331 2010-08-29  Bruno Haible  <bruno@clisp.org>
25332
25333         Update modules list.
25334         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25335         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25336         (String handling <string.h>): Add astrxfrm.
25337         (File system functions): Add readlinkat.
25338
25339 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25340
25341         Tests for module 'realloc-gnu'.
25342         * modules/realloc-gnu-tests: New file.
25343         * tests/test-realloc-gnu.c: New file.
25344
25345         Tests for module 'calloc-gnu'.
25346         * modules/calloc-gnu-tests: New file.
25347         * tests/test-calloc-gnu.c: New file.
25348
25349         Tests for module 'malloc-gnu'.
25350         * modules/malloc-gnu-tests: New file.
25351         * tests/test-malloc-gnu.c: New file.
25352
25353 2010-08-28  Bruno Haible  <bruno@clisp.org>
25354
25355         Rename module 'realloc' -> 'realloc-gnu'.
25356         * modules/realloc-gnu: New file, copied from modules/realloc.
25357         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25358         obsolete.
25359         * modules/mgetgroups (Depends-on): Update.
25360         * doc/posix-functions/realloc.texi: Update.
25361         * NEWS: Mention the change.
25362
25363         Rename module 'calloc' -> 'calloc-gnu'.
25364         * modules/calloc-gnu: New file, copied from modules/calloc.
25365         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25366         obsolete.
25367         * doc/posix-functions/calloc.texi: Update.
25368         * NEWS: Mention the change.
25369
25370         Rename module 'malloc' -> 'malloc-gnu'.
25371         * modules/malloc-gnu: New file, copied from modules/malloc.
25372         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25373         obsolete.
25374         * modules/argp (Depends-on): Update.
25375         * modules/regex (Depends-on): Update.
25376         * doc/posix-functions/malloc.texi: Update.
25377         * NEWS: Mention the change.
25378
25379 2010-08-28  Eric Blake  <eblake@redhat.com>
25380
25381         pread, pwrite: add missing dependency
25382         * modules/pread (Depends-on): Add extensions.
25383         * modules/pwrite (Depends-on): Likewise.
25384
25385 2010-08-28  Bruno Haible  <bruno@clisp.org>
25386
25387         unistr/u*-strchr: Fix tests dependencies.
25388         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25389         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25390         Reported by Ian Beckwith <ianb@erislabs.net>.
25391
25392 2010-08-28  Bruno Haible  <bruno@clisp.org>
25393
25394         read-file: Don't occupy too much unused memory.
25395         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25396
25397 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25398             Eric Blake  <eblake@redhat.com>
25399             Bruno Haible  <bruno@clisp.org>
25400
25401         read-file: Avoid memory reallocations with regular files.
25402         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25403         (fread_file): With regular files, use the remaining length as the
25404         initial buffer size.  Check against overflow.
25405         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25406         sys_stat.
25407
25408 2010-08-28  Bruno Haible  <bruno@clisp.org>
25409
25410         ftello: Relax license.
25411         * modules/ftello (License): Relax to LGPLv2+.
25412         Reported by Eric Blake.
25413
25414 2010-08-28  Bruno Haible  <bruno@clisp.org>
25415
25416         Avoid relocwrapper link errors due to gnulib replacement functions.
25417         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25418         function.
25419         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25420
25421 2010-08-28  Bruno Haible  <bruno@clisp.org>
25422
25423         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25424         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25425         defined.
25426         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25427         Suggested by Eric Blake.
25428
25429 2010-08-28  Bruno Haible  <bruno@clisp.org>
25430
25431         sys_socket, netdb: Ensure socklen_t gets defined.
25432         * modules/sys_socket (Depends-on): Add socklen.
25433         * modules/netdb (Depends-on): Likewise.
25434         * modules/getaddrinfo (Depends-on): Remove socklen.
25435         * modules/getsockopt (Depends-on): Likewise.
25436         * modules/setsockopt (Depends-on): Likewise.
25437         * tests/test-sys_socket.c: Check that socklen_t is defined.
25438         * tests/test-netdb.c: Likewise.
25439         * m4/socklen.m4: Update comments.
25440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25441
25442 2010-08-27  Eric Blake  <eblake@redhat.com>
25443
25444         login_tty: add missing dependency
25445         * modules/login_tty (Depends-on): Add pty.
25446
25447 2010-08-26  Eric Blake  <eblake@redhat.com>
25448
25449         lib-symbol-versions: fix m4 quoting
25450         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25451         format for AC_LINK_IFELSE.
25452
25453         glob: fix compile test
25454         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25455
25456         btowc: fix missing file
25457         * modules/btowc (Files): Also ship locale-fr.m4.
25458
25459         lseek: fix link test
25460         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25461         AC_LINK_IFELSE.
25462
25463         include_next: silence autoconf 2.68 warning
25464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25465         AC_COMPILE_IFELSE as special.
25466         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25467         autoconf < 2.68.
25468
25469         acl: fix compilation test
25470         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25471         AC_COMPILE_IFELSE.
25472
25473 2010-08-26  Bruno Haible  <bruno@clisp.org>
25474
25475         Modernize AC_TRY_RUN invocations.
25476         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25477         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25478         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25479         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25480         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25481         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25482         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25484         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25485         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25486         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25487         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25488         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25489         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25490         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25491         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25492         gl_MBRLEN_NUL_RETVAL): Likewise.
25493         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25494         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25495         Likewise.
25496         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25497         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25498         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25499         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25500         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25501         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25502         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25503         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25504         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25505         Likewise.
25506         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25507         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25508         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25509         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25510         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25511         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25513         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25514         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25516
25517 2010-08-26  Bruno Haible  <bruno@clisp.org>
25518
25519         Modernize AC_TRY_LINK invocations.
25520         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25521         AC_TRY_LINK.
25522         * m4/argp.m4 (gl_ARGP): Likewise.
25523         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25524         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25525         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25526         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25527         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25528         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25529         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25530         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25531         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25532         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25533         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25534         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25535         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25536         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25537         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25538         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25539         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25540         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25541         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25542         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25543         Likewise.
25544         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25545         Likewise.
25546         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25547         Likewise.
25548         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25550         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25551         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25552         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25553         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25554         * m4/servent.m4 (gl_SERVENT): Likewise.
25555         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25556         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25557         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25558         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25559         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25560         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25561         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25563         * modules/tsearch-tests (configure.ac): Likewise.
25564
25565 2010-08-26  Bruno Haible  <bruno@clisp.org>
25566
25567         Modernize AC_TRY_COMPILE invocations.
25568         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25569         AC_TRY_COMPILE.
25570         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25571         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25572         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25573         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25574         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25575         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25576         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25577         * m4/lock.m4 (gl_LOCK): Likewise.
25578         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25579         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25580         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25581         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25582         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25583         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25584         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25585         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25586         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25587         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25588         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25589         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25590         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25591         extraneous semicolon.
25592
25593 2010-08-26  Jim Meyering  <meyering@redhat.com>
25594
25595         stat-time: relax license LGPL
25596         * modules/stat-time (License): Change from GPL to LGPL,
25597         with consent from all contributors, for use in libguile.
25598         Requested by Ludovic Courtès.
25599
25600 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25601
25602         poll: return immediately on POLLHUP.
25603         * lib/poll.c (poll): Always set timeout before wait_timeout is
25604         computed.
25605
25606 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25607
25608         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25609         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25610         rmdir ("dir/.//"), unlinkat.
25611
25612 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25613
25614         stdbool: avoid spurious failure with modern xlc
25615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25616
25617 2010-08-24  Bruno Haible  <bruno@clisp.org>
25618
25619         getloadavg: simplify code
25620         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25621         gl_have_func. Update comments.
25622
25623 2010-08-24  Eric Blake  <eblake@redhat.com>
25624
25625         getloadavg: don't define SVR4 on cygwin
25626         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25627         only define SVR4 when -lkvm is required.
25628         Reported by Yaakov Selkowitz.
25629
25630 2010-08-24  Bruno Haible  <bruno@clisp.org>
25631
25632         priv-set: fix comment
25633         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25634
25635 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25636
25637         priv-set: fix comments
25638         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25639         to match code, as suggested by David Bartley in:
25640         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25641
25642 2010-08-23  Eric Blake  <eblake@redhat.com>
25643
25644         stdbool: avoid rejecting clang
25645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25646         * tests/test-stdbool.c: Enable more tests if using the system
25647         <stdbool.h> instead of the gnulib replacement.
25648         (main): Move xlc bug test to a runtime test for all compilers.
25649         Reported by Anders Kaseorg.
25650
25651         argz: fix shell quoting issue
25652         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25653         Reported by Charles Wilson.
25654
25655 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25656             Erik Faye-Lund <kusmabite@gmail.com>
25657
25658         poll, select: handle ERROR_BROKEN_PIPE.
25659         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25660         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25661         * lib/select.c (win32_compute_revents): Do not mark a pipe
25662         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25663
25664 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25665
25666         fts: allow compilation with C++
25667         * lib/fts_.h: Specify extern "C" linkage with C++.
25668
25669 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25670
25671         Fix gnulib-tool sed script de-commentation for AIX sed.
25672         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25673         sed.
25674
25675 2010-08-17  Eric Blake  <eblake@redhat.com>
25676
25677         test-stddef: test for (some) offsetof bugs
25678         * tests/test-stddef.c: Enhance test to ensure correct type of
25679         offsetof.
25680         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25681         that we are not fixing at this time.
25682
25683 2010-08-15  Bruno Haible  <bruno@clisp.org>
25684
25685         stpncpy: Allow stpncpy to be defined as a macro.
25686         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25687         if it's already correctly declared.
25688         * lib/string.in.h (stpncpy): Undefine before redefining.
25689         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25690
25691 2010-08-14  Bruno Haible  <bruno@clisp.org>
25692
25693         Rename module 'memxfrm' to 'amemxfrm'.
25694         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25695         (amemxfrm): Renamed from memxfrm.
25696         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25697         (amemxfrm): Renamed from memxfrm.
25698         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25699         * NEWS: Mention the change.
25700         * MODULES.html.sh (String handling <string.h>): Update.
25701         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25702         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25703         * lib/unicase/u16-casexfrm.c: Likewise.
25704         * lib/unicase/u32-casexfrm.c: Likewise.
25705         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25706         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25707         * lib/uninorm/u16-normxfrm.c: Likewise.
25708         * lib/uninorm/u32-normxfrm.c: Likewise.
25709         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25710         memxfrm.
25711         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25712         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25713         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25714         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25715         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25716         Suggested by Paul Eggert.
25717
25718 2010-08-14  Bruno Haible  <bruno@clisp.org>
25719
25720         Tests for module 'astrxfrm'.
25721         * modules/astrxfrm-tests: New file.
25722         * tests/test-astrxfrm.c: New file.
25723
25724         New module 'astrxfrm'.
25725         * lib/astrxfrm.h: New file.
25726         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25727         * modules/astrxfrm: New file.
25728
25729 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25730
25731         regex: Tweak doc.
25732         * doc/regex.texi (Overview): Don't mention regex.c.
25733         (GNU Regular Expression Compiling): Likewise.
25734         (Match-end-of-line Operator): Mention 'not_eol'.
25735
25736 2010-08-14  Brian Gough  <bjg@gnu.org>
25737             Bruno Haible  <bruno@clisp.org>
25738
25739         git-merge-changelog: add doc relating to use with bzr and hg.
25740         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25741
25742 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25743
25744         pthread: fix pthread.h creation for srcdir != builddir
25745         * modules/pthread (Makefile.am): Fix the rule to work also in a
25746         non-srcdir build.
25747
25748 2010-08-13  Karl Berry  <karl@gnu.org>
25749
25750         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25751         * doc/posix-*/*: force line break before @url of POSIX
25752         specifications.
25753         Suggested by Werner Lemberg.
25754
25755 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25756
25757         strtod: fix const diagnostic
25758         * lib/strtod.c (strtod): Don't assign const char * to char *,
25759         as this elicits a warning from GCC when warnings are enabled.
25760
25761 2010-08-10  Pádraig Brady <P@draigbrady.com>
25762         and Eric Blake  <eblake@redhat.com>
25763
25764         copy-acl: ignore ENOTSUP on HP-UX
25765         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25766         so that it is available for HP-UX.
25767         * lib/copy-acl.c (qcopy_acl): Use it.
25768         Reported by Patrick M. Callahan.
25769
25770 2010-08-10  Eric Blake  <eblake@redhat.com>
25771
25772         open, chown: relax license
25773         * modules/open (License): Change to LGPLv2+, with consent by all
25774         authors, for use in augeas.
25775         * modules/chown (License): Likewise.
25776         * modules/lchown (Likewise): Likewise.
25777         Requested by Adam Stokes.
25778
25779 2010-08-09  Karl Berry  <karl@gnu.org>
25780
25781         * build-aux/ar-lib: new file, import from Automake.
25782         * config/srclist.txt: autocheck for updates.
25783
25784 2010-08-09  Eric Blake  <eblake@redhat.com>
25785
25786         readlinkat: adjust client modules
25787         * modules/areadlinkat (Depends-on): Use readlinkat, not
25788         symlinkat.
25789         * modules/areadlinkat-with-size (Depends-on): Likewise.
25790
25791         mknod: be more vocal about danger of running tests as root
25792         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25793         root, since that is just asking for problems.
25794         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25795
25796         readlinkat: split into its own module
25797         * modules/symlinkat: Split readlinkat...
25798         * modules/readlinkat: ...into separate module.
25799         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25800         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25801         * lib/symlinkat.c (readlinkat): Move...
25802         * lib/readlinkat.c: ...into new file.
25803         * modules/symlinkat-tests: Split readlinkat test...
25804         * modules/readlinkat-tests: ...into separate module.
25805         * tests/test-symlinkat.c: Split...
25806         * tests/test-readlinkat.c: ...into new file.
25807         * NEWS: Document the split.
25808         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25809         * lib/unistd.in.h (readlinkat): Likewise.
25810         Suggested by Bruno Haible.
25811
25812 2010-08-08  Bruno Haible  <bruno@clisp.org>
25813
25814         memxfrm: Speed up.
25815         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25816         that usually only one call to strxfrm is necessary for each string
25817         part.
25818         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25819
25820 2010-08-07  Karl Berry  <karl@gnu.org>
25821
25822         * doc/posix-headers/limits.texi,
25823         * doc/posix-functions/malloc.texi,
25824         * doc/posix-functions/strsignal.texi: missing @item.
25825         * doc/ld-version-script.texi: spurious leading i.
25826         * doc/regex.texi (Interval Operators): no commas inside @var.
25827
25828 2010-08-01  Bruno Haible  <bruno@clisp.org>
25829
25830         Integrate the regex documentation.
25831         * doc/gnulib.texi: Define 'cn' index.
25832         (Regular expressions): New a chapter that includes regex.texi and
25833         regexprops-generic.texi.
25834         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25835         syntax.
25836
25837         Whitespace cleanup.
25838         * doc/regex.texi: Remove trailing spaces.
25839
25840         Add regex documentation.
25841         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25842         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25843         Written by Kathy A. Hargreaves and Karl Berry.
25844
25845 2010-08-01  Bruno Haible  <bruno@clisp.org>
25846
25847         link: Update documentation.
25848         * doc/posix-functions/link.texi: Update regarding Solaris.
25849
25850 2010-07-31  Bruno Haible  <bruno@clisp.org>
25851
25852         Update modules list.
25853         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25854         (String handling <string.h>): Add memcmp2, memxfrm.
25855         (Container data structures): Add xlist, xsublist, xoset.
25856         (Core language properties): Add alignof, unused-parameter.
25857         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25858         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25859         (Unibyte characters <ctype.h>): New section.
25860         (String handling <string.h>): New section.
25861         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25862         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25863         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25864         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25865         tan, tanh, tanl, y0, y1, yn.
25866         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25867         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25868         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25869         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25870         unlockpt, vdprintf, vdprintf-posix.
25871         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25872         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25873         xconcat-filename.
25874         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25875         getdtablesize, pipe2, pipe2-safer.
25876         (Security): New section.
25877         (Networking functions): Add accept4.
25878         (Signal handling): Add sigpipe.
25879         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25880         mbmemcasecoll.
25881         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25882         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25883         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25884         pipe-filter-ii.
25885         (Misc): Add argp-version-etc, login_tty, parse-duration.
25886
25887 2010-07-31  Bruno Haible  <bruno@clisp.org>
25888
25889         Improve doc in MODULES.html.
25890         * modules/linkat (Description): Add the word "function".
25891         * modules/mkfifo (Description): Likewise.
25892         * modules/mknod (Description): Likewise.
25893         * modules/remove (Description): Likewise.
25894         * modules/renameat (Description): Likewise.
25895         * modules/stat (Description): Likewise.
25896         * modules/symlink (Description): Likewise.
25897         * modules/unlink (Description): Likewise.
25898
25899 2010-07-31  Bruno Haible  <bruno@clisp.org>
25900
25901         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25902         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25903         option --enable/disable-c++ instead of --enable/disable-cxx.
25904         * NEWS: Mention the change.
25905
25906 2010-07-31  Bruno Haible  <bruno@clisp.org>
25907
25908         readlink, areadlink: Relax test a bit.
25909         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25910         alternative to ENOTDIR.
25911         * tests/test-areadlink.h (test_areadlink): Likewise.
25912         Reported by Rainer Tammer.
25913
25914 2010-07-31  Bruno Haible  <bruno@clisp.org>
25915
25916         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25917         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25918         character, perform the search using U_STRCHR.
25919         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25920         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25921         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25922         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25923         Suggested by Paolo Bonzini.
25924
25925 2010-07-31  Bruno Haible  <bruno@clisp.org>
25926
25927         unistr/u*-strstr: Fix dependencies.
25928         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25929         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25930         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25931
25932 2010-07-31  Bruno Haible  <bruno@clisp.org>
25933
25934         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25935         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25936         the beginning of the loop.
25937         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25938         cases in 'switch' statement.
25939
25940         unistr/u8-strchr: Fix several bugs.
25941         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25942         the string. When not found, return NULL, not a pointer near the end.
25943
25944         More tests for unistr/u8-strchr.
25945         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25946         that the function does not read past the first occurrence of the byte
25947         being searched.
25948         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25949         * tests/unistr/test-u16-strchr.c (main): New function.
25950         * tests/unistr/test-u32-strchr.c (main): New function.
25951
25952 2010-07-31  Bruno Haible  <bruno@clisp.org>
25953
25954         posix-modules: Ignore backup files of documentation files.
25955         * posix-modules: grep only through files named *.texi.
25956
25957 2010-07-31  Bruno Haible  <bruno@clisp.org>
25958
25959         symlinkat: Fix documentation.
25960         * doc/posix-functions/readlinkat.texi: Fix module name.
25961
25962 2010-07-31  Bruno Haible  <bruno@clisp.org>
25963
25964         fchownat: Replace also when chown has the trailing slash bug.
25965         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25966         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25967         introduced on 2010-04-10.
25968         Reported by Rainer Tammer.
25969
25970 2010-07-31  Bruno Haible  <bruno@clisp.org>
25971
25972         linkat: Work around AIX 7.1 bug.
25973         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25974         whether linkat handles trailing slash correctly. If not, replace linkat
25975         and define LINKAT_TRAILING_SLASH_BUG.
25976         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25977         check whether (fd1,file1) points to a directory if file1 or file2 ends
25978         in a slash. Code taken from lib/link.c.
25979         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25980         Reported by Rainer Tammer.
25981
25982 2010-07-31  Bruno Haible  <bruno@clisp.org>
25983
25984         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25985         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25986         This disables an xlc optimization that was causing wrong test results.
25987         Reported by Rainer Tammer.
25988
25989 2010-07-31  Bruno Haible  <bruno@clisp.org>
25990
25991         iconv: Work around AIX 6.1..7.1 bug.
25992         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25993         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25994         cross-compiling, guess no on all versions of AIX.
25995         Reported by Rainer Tammer.
25996
25997 2010-07-31  Bruno Haible  <bruno@clisp.org>
25998
25999         readlink: Relax test a bit.
26000         * tests/test-readlink.h (test_readlink): Allow different errno value
26001         when readlink is called with a file name that ends in / and refers to
26002         a file.
26003         Suggested by Eric Blake.
26004         Reported by Rainer Tammer.
26005
26006 2010-07-31  Bruno Haible  <bruno@clisp.org>
26007
26008         copysign: Does not require -lm on glibc systems.
26009         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26010         gl_COMMON_DOUBLE_MATHFUNC.
26011         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26012
26013 2010-07-31  Bruno Haible  <bruno@clisp.org>
26014
26015         duplocale: Work around AIX 7.1 bug.
26016         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26017         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26018         * lib/duplocale.c (rpl_duplocale): Update comment.
26019         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26020         Reported by Rainer Tammer.
26021
26022 2010-07-30  Bruno Haible  <bruno@clisp.org>
26023
26024         dirfd: Avoid link error on AIX 7.1.
26025         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26026         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26027         exist, set REPLACE_DIRFD.
26028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26029         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26030         * doc/posix-functions/dirfd.texi: Update.
26031         Reported by Rainer Tammer.
26032
26033 2010-07-30  Eric Blake  <eblake@redhat.com>
26034
26035         strtod: next round of AIX fixes
26036         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26037         exponent.
26038         * tests/test-strtod.c (main): Enhance tests.
26039         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26040         Reported by Rainer Tammer.
26041
26042         futimens: fix configure check
26043         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26044         Reported by Bruno Haible.
26045
26046 2010-07-30  Bruno Haible  <bruno@clisp.org>
26047
26048         getline: Update regarding AIX.
26049         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26050         Reported by Rainer Tammer.
26051
26052 2010-07-30  Bruno Haible  <bruno@clisp.org>
26053
26054         wcwidth: Drop replacement on AIX 7.
26055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26056         AIX 7.
26057         Reported by Rainer Tammer.
26058
26059 2010-07-30  Bruno Haible  <bruno@clisp.org>
26060
26061         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26062         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26063         a 'char *'.
26064         Reported by Rainer Tammer.
26065
26066 2010-07-30  Bruno Haible  <bruno@clisp.org>
26067
26068         unlink: Update regarding AIX.
26069         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26070         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26071         Reported by Rainer Tammer.
26072
26073 2010-07-30  Bruno Haible  <bruno@clisp.org>
26074
26075         symlink: Update regarding AIX.
26076         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26077         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26078         Reported by Rainer Tammer.
26079
26080 2010-07-30  Bruno Haible  <bruno@clisp.org>
26081
26082         strndup: Update regarding AIX.
26083         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26084         AIX 7.
26085         Reported by Rainer Tammer.
26086
26087 2010-07-30  Bruno Haible  <bruno@clisp.org>
26088
26089         stat: Update regarding AIX.
26090         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26091         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26092         Reported by Rainer Tammer.
26093
26094 2010-07-30  Bruno Haible  <bruno@clisp.org>
26095
26096         truncl: Fix autoconf test.
26097         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26098         whether truncl works.
26099         Reported by Rainer Tammer.
26100
26101 2010-07-30  Bruno Haible  <bruno@clisp.org>
26102
26103         round: Update regarding AIX.
26104         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26105         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26106         Reported by Rainer Tammer.
26107
26108 2010-07-30  Bruno Haible  <bruno@clisp.org>
26109
26110         rename: Update regarding AIX.
26111         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26112         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26113         Reported by Rainer Tammer.
26114
26115 2010-07-30  Bruno Haible  <bruno@clisp.org>
26116
26117         printf.m4: Update regarding AIX.
26118         * m4/printf.m4: Update comments regarding AIX.
26119         Reported by Rainer Tammer.
26120
26121 2010-07-30  Bruno Haible  <bruno@clisp.org>
26122
26123         iconv: Update regarding AIX.
26124         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26125         AIX 7.
26126         Reported by Rainer Tammer.
26127
26128 2010-07-30  Bruno Haible  <bruno@clisp.org>
26129
26130         getopt: Update regarding AIX.
26131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26132         no on AIX.
26133         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26134         Reported by Rainer Tammer.
26135
26136 2010-07-30  Bruno Haible  <bruno@clisp.org>
26137
26138         ldexpl; Update regarding AIX.
26139         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26140         on AIX 7.
26141         Reported by Rainer Tammer.
26142
26143 2010-07-30  Bruno Haible  <bruno@clisp.org>
26144
26145         frexpl: Update regarding AIX.
26146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26147         on AIX 7.
26148         Reported by Rainer Tammer.
26149
26150 2010-07-30  Bruno Haible  <bruno@clisp.org>
26151
26152         open, fopen: Update regarding AIX.
26153         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26154         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26155         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26156         * doc/posix-functions/fopen.texi: Likewise.
26157         Reported by Rainer Tammer.
26158
26159 2010-07-30  Bruno Haible  <bruno@clisp.org>
26160
26161         chown: Update doc regarding AIX.
26162         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26163         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26164         Reported by Rainer Tammer.
26165
26166 2010-07-30  Eric Blake  <eblake@redhat.com>
26167
26168         strtod: fix bug in replacement function on AIX
26169         * lib/strtod.c (strtod): Special case broken "0x" parse in
26170         underlying strtod.
26171         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26172         * doc/posix-functions/strtod.texi (strtod): Likewise.
26173         Reported by Rainer Tammer.
26174
26175 2010-07-30  Bruno Haible  <bruno@clisp.org>
26176
26177         mbrlen: Fix cross-compilation guess for AIX.
26178         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26179         guess. Leftover from 2008-12-22.
26180
26181 2010-07-30  Bruno Haible  <bruno@clisp.org>
26182
26183         mbrtowc: Fix cross-compilation guess for AIX.
26184         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26185         guess. Leftover from 2008-12-21.
26186
26187 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26188
26189         init.sh: work around trap limitation of some shells
26190         * tests/init.sh (setup_): Move exit trap outside of shell function.
26191
26192 2010-07-29  Eric Blake  <eblake@redhat.com>
26193
26194         strtod: aid debugging
26195         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26196         understanding why strtod is rejected.
26197
26198 2010-07-28  Bruno Haible  <bruno@clisp.org>
26199
26200         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26201         * lib/unistr/u8-chr.c: Include <string.h>.
26202         * tests/unistr/test-u8-chr.c: Likewise.
26203         * tests/unistr/test-u16-chr.c: Likewise.
26204         * tests/unistr/test-u32-chr.c: Likewise.
26205         * tests/unistr/test-u8-strchr.c: Likewise.
26206         * tests/unistr/test-u16-strchr.c: Likewise.
26207         * tests/unistr/test-u32-strchr.c: Likewise.
26208         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26209         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26210         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26211         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26212
26213 2010-07-28  Bruno Haible  <bruno@clisp.org>
26214
26215         Use spaces for indentation, not tabs.
26216         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26217
26218 2010-07-27  Bruno Haible  <bruno@clisp.org>
26219
26220         mbspcasecmp: Fix function specification.
26221         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26222         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26223         Reported by Eric Blake <eblake@redhat.com>.
26224
26225 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26226
26227         timespec: use cast and not conditional, as truncation isn't possible
26228         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26229         instead of a conditional.  Comment about the situation in more detail.
26230         This undoes most of the 2009-10-29 patch.
26231
26232 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26233
26234         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26235         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26236         * lib/unistr/u8-strchr.c: Likewise.
26237         * modules/unistr/u8-chr: Depend on memchr.
26238
26239         unistr/u*-strchr: add tests
26240         * modules/unistr/u8-strchr-tests: New file.
26241         * modules/unistr/u16-strchr-tests: New file.
26242         * modules/unistr/u32-strchr-tests: New file.
26243         * tests/unistr/test-strchr.h: New file.
26244         * tests/unistr/test-u8-strchr.c: New file.
26245         * tests/unistr/test-u16-strchr.c: New file.
26246         * tests/unistr/test-u32-strchr.c: New file.
26247
26248         unistr/u*-chr: test multibyte sequences more
26249         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26250         test vector.
26251         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26252         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26253         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26254
26255         unistr/u*-chr: test multibyte sequences
26256         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26257
26258         unistr/u*-chr: prepare for multibyte tests
26259         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26260         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26261         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26262         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26263         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26264         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26265
26266 2010-07-18  Bruno Haible  <bruno@clisp.org>
26267
26268         unistr/u8-strchr: Optimize non-ASCII argument case.
26269         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26270         because the first byte often matches anyway.
26271         Reported by Pádraig Brady <P@draigbrady.com>.
26272
26273 2010-07-15  Karl Berry  <karl@gnu.org>
26274
26275         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26276
26277 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26278
26279         getcwd: on Solaris, work better if ancestors are inaccessible
26280         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26281         buffer and size, try again with a large buffer.  This works better
26282         on Solaris, since its getcwd succeeds even if the path to the root
26283         is inaccessible, and this is helpful in common cases such as .zfs
26284         hidden directories.  Problem reported by J Chapman Flack in
26285         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26286         Use system getcwd if it's declared, not merely if it's partly
26287         working; use the partly-working test only to avoid needless effort
26288         if the system getcwd fails.
26289         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26290         comment that was already obsolete and is now even more obsolete.
26291         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26292         now might call strdup.
26293
26294 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26295
26296         pthread: Add enough so that coreutils/src/sort.c compiles.
26297         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26298         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26299         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26300         Include <sys/types.h>, in case it defines pthread_t.
26301         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26302         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26303         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26304         (pthread_rwlockattr_t, pthread_spinlock_t):
26305         New typedefs, if HAVE_PTHREAD_T is not defined.
26306         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26307         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26308         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26309         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26310         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26311         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26312         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26313         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26314         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26315         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26316         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26317         New macros.
26318         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26319         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26320         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26321         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26322         (pthread_spin_unlock): New dummy functions.
26323         (pthread_create): Return EAGAIN; don't set errno.
26324         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26325         require AC_C_INLINE.
26326         * modules/pthread (Depends-on): Add sched, time.
26327         (pthread.h): Use AM_V_GEN.
26328
26329 2010-07-13  Bruno Haible  <bruno@clisp.org>
26330
26331         striconveh: Don't malloc memory if the result buffer is sufficient.
26332         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26333         buffer if its size is sufficient.
26334         Reported by Ludovic Courtès <ludo@gnu.org>.
26335
26336 2010-07-13  Bruno Haible  <bruno@clisp.org>
26337
26338         strtod: Add safety check.
26339         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26340
26341 2010-07-12  Bruno Haible  <bruno@clisp.org>
26342
26343         Unify tests that set gl_cv_func_ldexpl_no_libm.
26344         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26345         gl_FUNC_LDEXPL.
26346         (gl_FUNC_LDEXPL): Invoke it.
26347         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26348
26349 2010-07-12  Bruno Haible  <bruno@clisp.org>
26350
26351         Unify tests that set gl_cv_func_ldexp_no_libm.
26352         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26353         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26354         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26355         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26356         * modules/strtod (Files): Add m4/ldexp.m4.
26357
26358 2010-07-12  Bruno Haible  <bruno@clisp.org>
26359
26360         Unify tests that set gl_cv_func_frexpl_no_libm.
26361         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26362         gl_FUNC_FREXPL_NO_LIBM.
26363         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26364         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26365
26366 2010-07-12  Bruno Haible  <bruno@clisp.org>
26367
26368         Unify tests that set gl_cv_func_frexp_no_libm.
26369         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26370         gl_FUNC_FREXP_NO_LIBM.
26371         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26372         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26373
26374 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26375
26376         memcoll: clarify sizes versus lengths, document better, and tweak perf
26377         * lib/memcoll.c (strcoll_loop, memcoll0):
26378         Improve quality of descriptive comments.  Name variables
26379         consistently as to whether they are lengths (which do not include
26380         terminating null) versus sizes (which do).
26381         * lib/xmemcoll.c (xmemcoll0): Likewise.
26382         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26383         returned when s1size == 0; this is easier to compile and saves
26384         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26385
26386 2010-07-12  Bruno Haible  <bruno@clisp.org>
26387
26388         Tests for module '_Exit'.
26389         * modules/_Exit-tests: New file.
26390         * tests/test-_Exit.sh: New file.
26391         * tests/test-_Exit.c: New file.
26392
26393         New module '_Exit'.
26394         * lib/stdlib.in.h (__attribute__): New macro.
26395         (_Exit): New declaration.
26396         * lib/_Exit.c: New file.
26397         * m4/_Exit.m4: New file.
26398         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26399         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26400         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26401         * modules/_Exit: New file.
26402         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26403         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26404
26405 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26406
26407         strtod: make it more-accurate typically, and don't require libm
26408         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26409         Include limits.h.  Don't include string.h.
26410         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26411         (locale_isspace): New function, so that no casts are needed to
26412         check whether *s is a space.
26413         (ldexp): Provide an unused dummy if not available.
26414         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26415         (strtod): Use them.  This implementation prefers to use the
26416         underlying strtod if available, falling back on our own code
26417         only to fix known bugs.  This is more likely to produce an
26418         accurate result.  Also, it avoids the use of libm functions.
26419         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26420         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26421         was absent, but it caused a test failure with coreutils.
26422         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26423         with libm.
26424         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26425         * modules/strtod-tests (Makefile.am): Likewise.
26426
26427 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26428             Bruno Haible  <bruno@clisp.org>
26429
26430         unistr/u8-strchr: Optimize ASCII argument case.
26431         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26432
26433 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26434
26435         (x)memcoll: minor tweaks
26436         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26437         is after the type that it qualifies.
26438         (memcoll0): Likewise.
26439         * lib/memcoll.h (memcoll0): Likewise.
26440         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26441         * lib/xmemcoll.h (xmemcoll0): Likewise.
26442         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26443         differs from memcoll in that the NUL byte is part of the argument.
26444         Omit the abort-checks, as performance is a real issue here.  Plus,
26445         the checks were wrong anyway (an off-by-one error).  Omit local
26446         variable 'diff', as it's a bit clearer that way.
26447         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26448         no longer needed.
26449
26450 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26451
26452         (x)memcoll: speedup when input is known to be NUL delimited
26453         * lib/memcoll.c: Include stdlib.
26454         (memcoll0): New function.
26455         (strcoll_loop): New function, refactored for use in both memcoll
26456         and memcoll0.
26457         * lib/memcoll.h (memcoll0): Add prototype.
26458         * lib/xmemcoll.c (xmemcoll0): New function.
26459         (collate_error): New function, refactored for use in both xmemcoll
26460         and xmemcoll0.
26461         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26462         * m4/memcoll.m4: add inline invocation.
26463
26464 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26465
26466         * build-aux/bootstrap: Remove any local translations
26467         from the translation project synchronization directory,
26468         so that local only translations are not distributed.
26469
26470 2010-07-04  Bruno Haible  <bruno@clisp.org>
26471
26472         fsusage: Clarify which code applies to which platforms.
26473         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26474         platform.
26475         * lib/fsusage.c (get_fs_usage): Likewise.
26476
26477 2010-07-04  Bruno Haible  <bruno@clisp.org>
26478
26479         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26480         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26481         Reported by Martin Lambers <marlam@marlam.de>.
26482
26483 2010-07-04  Jim Meyering  <meyering@redhat.com>
26484
26485         hash: once again explicitly disallow insertion of NULL
26486         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26487         inserting a NULL pointer cannot work with these functions.
26488         Add a comment with details.
26489         This reverts part of the 2010-07-01 commit, 5bef1a35
26490         "hash: extend module to deal with non-pointer keys".
26491
26492 2010-07-01  Bruno Haible  <bruno@clisp.org>
26493
26494         stdbool: Update doc.
26495         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26496         Info from Christian Weisgerber <naddy@mips.inka.de>.
26497
26498 2010-07-01  Jim Meyering  <meyering@redhat.com>
26499
26500         hash: extend module to deal with non-pointer keys
26501         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26502         but that allows insertion of non-pointer entries.
26503         Do not disallow an ENTRY value of NULL.
26504         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26505         * lib/hash.h (hash_insert0): Declare.
26506
26507 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26508
26509         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26510         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26511         not present (i.e. with autoconf 2.59 and when using gettextize, not
26512         gnulib), require AC_GNU_SOURCE instead.
26513
26514 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26515
26516         idpriv-drop: Fix tests.
26517         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26518         not to the test-idpriv-droptemp program.
26519
26520 2010-06-29  Bruno Haible  <bruno@clisp.org>
26521
26522         string: Fix syntax error with g++ 2.96.
26523         * lib/string.in.h (__pure__): Remove definition.
26524         (_GL_ATTRIBUTE_PURE): New macro.
26525         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26526         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26527         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26528
26529 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26530
26531         unitypes: Fix bug introduced on 2010-05-18.
26532         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26533
26534 2010-06-22  Eric Blake  <eblake@redhat.com>
26535
26536         memmem: slight optimization
26537         * lib/str-two-way.h (critical_factorization): Update comments.
26538         Reduce work during factorization phase.
26539         Reported by Carlos Bueno <carlos@bueno.org>.
26540
26541 2010-06-21  Bruno Haible  <bruno@clisp.org>
26542
26543         Fix HAVE_CALLOC_POSIX misnomer.
26544         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26545         !HAVE_CALLOC_POSIX.
26546         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26547         HAVE_CALLOC_POSIX.
26548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26549         instead of HAVE_CALLOC_POSIX.
26550         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26551         HAVE_CALLOC_POSIX.
26552
26553         Use modern idiom for calloc() replacement.
26554         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26555         AC_FUNC_CALLOC.
26556         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26557         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26558         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26559         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26560         (gl_REPLACE_CALLOC): New macro.
26561
26562 2010-06-21  Bruno Haible  <bruno@clisp.org>
26563
26564         Fix HAVE_REALLOC_POSIX misnomer.
26565         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26566         !HAVE_REALLOC_POSIX.
26567         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26568         HAVE_REALLOC_POSIX.
26569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26570         instead of HAVE_REALLOC_POSIX.
26571         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26572         HAVE_REALLOC_POSIX.
26573
26574         Use modern idiom for realloc() replacement.
26575         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26576         AC_FUNC_REALLOC.
26577         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26578         Autoconf's AC_FUNC_REALLOC.
26579         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26580         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26581         (gl_REPLACE_REALLOC): New macro.
26582         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26583
26584 2010-06-21  Bruno Haible  <bruno@clisp.org>
26585
26586         Fix HAVE_MALLOC_POSIX misnomer.
26587         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26588         !HAVE_MALLOC_POSIX.
26589         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26590         HAVE_MALLOC_POSIX.
26591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26592         instead of HAVE_MALLOC_POSIX.
26593         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26594         HAVE_MALLOC_POSIX.
26595
26596         Use modern idiom for malloc() replacement.
26597         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26598         AC_FUNC_MALLOC.
26599         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26600         Autoconf's AC_FUNC_MALLOC.
26601         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26602         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26603         (gl_REPLACE_MALLOC): New macro.
26604         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26605
26606 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26607
26608         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26609         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26610         This macro takes 3 arguments, not 4.
26611
26612 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26613
26614         ipv6: fix detection under mingw
26615         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26616         in6_addr.
26617
26618 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26619
26620         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26621         that strtod() works when cross-compiling to a glibc version known
26622         to work.
26623
26624 2010-06-15  Bruno Haible  <bruno@clisp.org>
26625
26626         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26627
26628 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26629
26630         select: Correct timeout.
26631         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26632
26633 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26634
26635         git-version-gen: init shell var to avoid env var influence
26636         * build-aux/git-version-gen (v): Init shell var to empty.
26637
26638 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26639
26640         priv-set: Don't assume that priv.h exists merely because getppriv does.
26641         See Jan Andersen's bug report about AIX 5L in
26642         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26643         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26644         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26645         * lib/priv-set.h: Likewise.
26646         * tests/test-priv-set.c: Likewise.
26647
26648 2010-06-13  Bruno Haible  <bruno@clisp.org>
26649
26650         relocatable: Make it easier to test whether to install wrappers.
26651         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26652         RELOCATABLE_VIA_WRAPPER.
26653
26654 2010-06-13  Bruno Haible  <bruno@clisp.org>
26655
26656         gnulib-tool: Display specified modules and dependencies differently.
26657         * gnulib-tool (func_show_module_list): New function.
26658         (func_import, func_create_testdir): Invoke it.
26659         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26660
26661 2010-06-13  Bruno Haible  <bruno@clisp.org>
26662
26663         gnulib-tool: Align code of func_import and func_create_testdir.
26664         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26665         specified_modules.
26666
26667 2010-06-12  Jim Meyering  <meyering@redhat.com>
26668
26669         test-inttostr: avoid spurious failure on Solaris 9
26670         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26671         to accept "%ju".  Reported by Bruno Haible.
26672
26673 2010-06-11  Jim Meyering  <meyering@redhat.com>
26674
26675         test-sys_socket: mark variables as used more readably
26676         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26677         as "used" explicitly via (void) statement casts.  This is more
26678         readable than using them in an artificial return expression.
26679         Suggestion from Bruno Haible.
26680
26681 2010-06-11  Bruno Haible  <bruno@clisp.org>
26682
26683         Avoid some more warnings from "gcc -Wwrite-strings".
26684         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26685         to 'const char *'.
26686         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26687         * tests/test-c-strcasestr.c (main): Likewise.
26688         * tests/test-mbscasestr1.c (main): Likewise.
26689         * tests/test-mbscasestr2.c (main): Likewise.
26690         * tests/test-memmem.c (main): Likewise.
26691         * tests/test-strstr.c (main): Likewise.
26692         * tests/test-strcasestr.c (main): Likewise.
26693
26694 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26695
26696         init.sh: change framework_failure_ to fail with status 99, not 1
26697         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26698         automake's parallel-tests rule that this is an unexpected failure,
26699         even if the test is listed in XFAIL_TESTS.
26700
26701 2010-06-11  Jim Meyering  <meyering@redhat.com>
26702
26703         test-inttostr: avoid warnings about 4-6KB literal strings
26704         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26705         Include "macros.h", for its definition of ASSERT.
26706         (CK): s/assert/ASSERT/
26707         * modules/inttostr-tests (Files): Add macros.h.
26708
26709         init.sh: don't use $ME_ or skip_ before they are defined
26710         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26711         their first uses.  Also hoist their companions: warn_, fail_,
26712         framework_failure_, $stderr_fileno.  Prompted by a patch from
26713         Stefano Lattarini.
26714
26715         test-sys_socket: avoid set-but-not-used warnings from gcc
26716         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26717         avoid warning about set-but-not-used variables.
26718
26719         test-xvasprintf: avoid 'const' discard warnings
26720         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26721         "const" when assigning from literal strings.
26722         (test_xasprintf): Add "void" in function argument list to placate
26723         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26724
26725         tests: avoid compilation warnings in argmatch and exclude tests...
26726         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26727         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26728         Since it always exits, declare with the "noreturn" attribute.
26729         * tests/test-argmatch.c: Likewise.
26730
26731         tests: avoid 'const' discard warnings in mbsstr tests
26732         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26733         * tests/test-mbsstr2.c (main): Likewise.
26734
26735         test-verify: avoid warning from gcc's -Wmissing-declarations
26736         * tests/test-verify.c (function): Declare to be static.
26737
26738         test-inttostr.c: include <string.h> for use of strcmp
26739         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26740
26741         test-linkat: avoid failed assertion on "other" architectures
26742         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26743         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26744         sparc: https://bugs.launchpad.net/bugs/591968
26745
26746 2010-06-11  Jim Meyering  <meyering@redhat.com>
26747
26748         printf.m4: avoid autoconf's "Expanded Before Required" warning
26749         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26750         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26751         autoconf warning.
26752
26753 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26754
26755         Replacement header templates are now named with ".in", not "_".
26756         * doc/gnulib-intro.texi: Correct.
26757
26758 2010-06-10  Jim Meyering  <meyering@redhat.com>
26759
26760         inttostr-tests: depend on snprintf, not snprintf-posix
26761         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26762         snprintf-posix, to avoid this aclocal failure:
26763           missing file gnulib-tests/vasnprintf.c
26764           configure.ac:45: error: expected source file, required through \
26765           AC_LIBSOURCES, not found
26766
26767 2010-06-10  Jim Meyering  <meyering@redhat.com>
26768
26769         inttostr: add a new function, inttostr, and tests
26770         The namesake function was not available.  The existence of the
26771         template file, inttostr.c makes its addition nontrivial.
26772         * lib/anytostr.c: Rename from inttostr.c.
26773         (anytostr): Rename from inttostr.
26774         * lib/inttostr.c: New file.
26775         * modules/inttostr (Files): Add anytostr.c.
26776         (Makefile.am): Set lib_SOURCES instead of ...
26777         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26778         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26779         * lib/offtostr.c: Likewise.
26780         * lib/uinttostr.c: Likewise.
26781         * lib/umaxtostr.c: Likewise.
26782         * modules/inttostr-tests: New file.
26783         * tests/test-inttostr.c: New file.  Test these functions.
26784
26785 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26786             Bruno Haible  <bruno@clisp.org>
26787
26788         Add "Extending Gnulib" chapter to manual.
26789         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26790         chapter.
26791         (Extending Gnulib): New chapter.
26792         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26793         chapter.
26794
26795 2010-06-09  Bruno Haible  <bruno@clisp.org>
26796
26797         Avoid relocwrapper link errors due to gnulib replacement functions.
26798         * lib/areadlink.c: Use the system's malloc, realloc functions.
26799         (areadlink): Set errno to ENOMEM explicitly.
26800         * modules/areadlink (Depends-on): Remove malloc-posix.
26801         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26802
26803 2010-06-09  Bruno Haible  <bruno@clisp.org>
26804
26805         Avoid relocwrapper link errors due to gnulib replacement functions.
26806         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26807         * lib/malloca.c: Likewise.
26808         * lib/relocatable.c: Likewise.
26809         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26810         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26811         * lib/setenv.c: Use the system's malloc, realloc functions.
26812         * lib/strerror.c: Use the system's sprintf function.
26813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26814
26815 2010-06-04  Bruno Haible  <bruno@clisp.org>
26816
26817         Prefer documented low-level autoconf macro names.
26818         * m4/lib-link.m4: Use m4_translit instead of translit.
26819         * m4/environ.m4: Likewise.
26820         * m4/mathfunc.m4: Likewise.
26821         * m4/onceonly.m4: Likewise.
26822         * m4/stdint.m4: Likewise.
26823         Suggested by Eric Blake.
26824
26825 2010-06-04  Martin Lambers  <marlam@marlam.de>
26826             Bruno Haible  <bruno@clisp.org>
26827
26828         havelib: Allow library names with '+' characters.
26829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26830         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26831
26832 2010-06-09  Bruno Haible  <bruno@clisp.org>
26833
26834         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26835         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26836         realloc failed.
26837
26838 2010-06-08  Peter Simons  <simons@cryp.to>
26839
26840         maint.mk: make the news-check rule more configurable
26841         * top/maint.mk (news-check-lines-spec): New variable.
26842         (news-check): Use "sed -n 1,10p" in place of "head".
26843
26844 2010-06-07  Jim Meyering  <meyering@redhat.com>
26845
26846         do-release-commit-and-tag: fix typo in --help
26847         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26848
26849         regex: avoid new dead-code warning with gcc-4.6.0
26850         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26851         if-block containing a while-loop.  It's been unused for at least
26852         5 years.
26853
26854 2010-06-05  Bruno Haible  <bruno@clisp.org>
26855
26856         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26857         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26858
26859 2010-06-04  Bruno Haible  <bruno@clisp.org>
26860
26861         Update to GNU gettext 0.18.1.
26862         * modules/gettext (configure.ac): Require gettext infrastructure from
26863         version 0.18.1.
26864
26865 2010-06-03  Bruno Haible  <bruno@clisp.org>
26866
26867         Don't use AC_LIBOBJ with file names in subdirectories.
26868         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26869         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26870         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26871         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26872         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26873         gl_LIBUNISTRING_LIBSOURCE.
26874         (Makefile.am): Augment lib_SOURCES here, conditionally.
26875         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26876
26877 2010-06-03  Bruno Haible  <bruno@clisp.org>
26878
26879         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26880         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26881         expansion does not end with a newline.
26882         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26883         unnecessary newline.
26884
26885 2010-06-03  Bruno Haible  <bruno@clisp.org>
26886
26887         Reduce dependencies.
26888         * tests/test-quotearg.h: New file, extracted from
26889         tests/test-quotearg.c.
26890         * tests/test-quotearg-simple.c: New file, extracted from
26891         tests/test-quotearg.c.
26892         * tests/test-quotearg.c: Don't include <ctype.h>.
26893         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26894         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26895         use_quote_double_quotes, use_quotearg_colon): Moved to
26896         tests/test-quotearg.h.
26897         (results_g, flag_results, custom_quotes, custom_results): Moved
26898         to tests/test-quotearg-simple.c.
26899         (main): Moved the part that does not depend on gettext to
26900         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26901         performed.
26902         * modules/quotearg-simple: New file.
26903         * modules/quotearg-simple-tests: New file.
26904         * modules/quotearg (Depends-on): Add quotearg-simple.
26905         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26906         (Files): Add tests/test-quotearg.h.
26907         Reported by Paolo Bonzini.
26908
26909 2010-06-03  Bruno Haible  <bruno@clisp.org>
26910
26911         Reduce dependencies.
26912         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26913
26914 2010-06-03  Bruno Haible  <bruno@clisp.org>
26915
26916         time: Undefine more broken macros.
26917         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26918         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26919         Reported by Eric Blake.
26920
26921 2010-06-03  Bruno Haible  <bruno@clisp.org>
26922
26923         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26924         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26925         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26926         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26927         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26928         Reported by Ludovic Courtès <ludo@gnu.org>.
26929
26930 2010-06-02  Eric Blake  <eblake@redhat.com>
26931
26932         time: work with mingw + pthreads-win32 library
26933         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26934         if timespec is defined only in pthread.h.
26935         * modules/time (Makefile.am): Substitute it.
26936         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26937         <pthread.h>, when needed.
26938         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26939         from the library.
26940
26941 2010-05-31  Bruno Haible  <bruno@clisp.org>
26942
26943         Avoid expanding two macros in the wrong order.
26944         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26945         gl_LIBUNISTRING if it is defined.
26946         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26947         autoconf >= 2.64.
26948         Reported by Ludovic Courtès <ludo@gnu.org>.
26949
26950 2010-05-27  Jim Meyering  <meyering@redhat.com>
26951
26952         maint.mk: also prohibit "#undef" of always-defined symbols
26953         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26954         Allow more than one space before the symbol name.
26955         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26956         the regexp uses alternation.
26957
26958 2010-05-26  Eric Blake  <eblake@redhat.com>
26959
26960         maint.mk: avoid echo -e
26961         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26962         Convert all uses of echo -* to printf.
26963         Reported by Matthias Bolte.
26964
26965 2010-05-25  Bruno Haible  <bruno@clisp.org>
26966
26967         Update to GNU gettext 0.18, part 2.
26968         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26969         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26970
26971 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26972
26973         Add missing include in test-pwrite.c.
26974         * tests/test-pwrite.c: Include string.h, for strcmp.
26975
26976 2010-05-24  Bruno Haible  <bruno@clisp.org>
26977
26978         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26979
26980 2010-05-24  Bruno Haible  <bruno@clisp.org>
26981
26982         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26983         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26984         iconveh_error argument.
26985         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26986         U_STRCONV_TO_LOCALE.
26987         * lib/unistr/u16-strcoll.c: Likewise.
26988         * lib/unistr/u32-strcoll.c: Likewise.
26989         * modules/unistr/u8-strcoll (Depends-on): Add
26990         uniconv/u8-strconv-to-enc, localcharset. Remove
26991         uniconv/u8-strconv-to-locale.
26992         (configure.ac): Bump version number.
26993         * modules/unistr/u16-strcoll (Depends-on): Add
26994         uniconv/u16-strconv-to-enc, localcharset. Remove
26995         uniconv/u16-strconv-to-locale.
26996         (configure.ac): Bump version number.
26997         * modules/unistr/u32-strcoll (Depends-on): Add
26998         uniconv/u32-strconv-to-enc, localcharset. Remove
26999         uniconv/u32-strconv-to-locale.
27000         (configure.ac): Bump version number.
27001
27002 2010-05-24  Bruno Haible  <bruno@clisp.org>
27003
27004         Avoid a test failure on NetBSD 5.0.
27005         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27006         an iconv() bug.
27007
27008 2010-05-24  Bruno Haible  <bruno@clisp.org>
27009
27010         Adjust #include directive style.
27011         * modules/regex (Includes): Recommend to write <regex.h>.
27012
27013 2010-05-24  Bruno Haible  <bruno@clisp.org>
27014
27015         regex: Don't require alloca.
27016         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27017         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27018         only inside if (0).
27019
27020 2010-05-23  Jim Meyering  <meyering@redhat.com>
27021
27022         test-renameat.c: include <sys/stat.h>
27023         * tests/test-renameat.c: Include <sys/stat.h>; required for
27024         definition of S_IS* macros.
27025
27026 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27027
27028         Update maintainer documentation for 'relocatable-prog' module.
27029         * doc/relocatable-maint.texi: Update.
27030         Comments by Bruno Haible.
27031
27032 2010-05-23  Bruno Haible  <bruno@clisp.org>
27033
27034         git-merge-changelog: Enable --split-merged-entry by default.
27035         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27036         (usage): Don't mention this option any more.
27037         Reported by Ralf Wildenhues.
27038
27039 2010-05-23  Jim Meyering  <meyering@redhat.com>
27040
27041         test-pwrite: do not leave behind a test file named "out"
27042         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27043         The trivial-looking use of init.sh is really necessary.
27044         It ensures that the temporary file, "out", is created in
27045         a temporary directory, and removed upon termination.
27046         * tests/test-pwrite.sh: Re-add file.
27047         * modules/pwrite-tests: Reference it.
27048
27049 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27050
27051         Fix output redirection buglet in init.sh.
27052         * tests/init.sh: Fix redirection of stderr.
27053
27054 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27055
27056         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27057
27058 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27059
27060         * modules/valgrind-tests: New file.
27061         * m4/valgrind-tests.m4: New file.
27062         * doc/valgrind-tests.texi: New file.
27063         * doc/gnulib.texi (Running self-tests under valgrind): New
27064         section.
27065
27066 2010-05-19  Bruno Haible  <bruno@clisp.org>
27067
27068         Clean up dead code in recent commit.
27069         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27070         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27071         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27072         Suggested by Paolo Bonzini.
27073
27074 2010-05-19  Bruno Haible  <bruno@clisp.org>
27075
27076         Avoid valgrind error reports from libunistring.
27077         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27078         * modules/libunistring (Files): Add it.
27079         * modules/libunistring-optional (Files): Likewise.
27080
27081 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27082             Bruno Haible  <bruno@clisp.org>
27083
27084         New module 'libunistring-optional'.
27085         * modules/libunistring-optional: New file.
27086         * m4/libunistring-base.m4: New file.
27087         * m4/libunistring-optional.m4: New file.
27088         * lib/unicase.in.h: Renamed from lib/unicase.h.
27089         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27090         * lib/unictype.in.h: Renamed from lib/unictype.h.
27091         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27092         * lib/uniname.in.h: Renamed from lib/uniname.h.
27093         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27094         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27095         * lib/unistr.in.h: Renamed from lib/unistr.h.
27096         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27097         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27098         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27099         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27100         gl_LIBUNISTRING. If the library was found, determine the installed
27101         version and set LIBUNISTRING_VERSION.
27102         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27103         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27104         handle a configuration option --with-included-libunistring.
27105         * modules/libunistring (Files): Add m4/absolute-header.m4.
27106         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27107         Add m4/libunistring-base.m4.
27108         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27109         (Makefile.am): Build unicase.h from unicase.in.h.
27110         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27111         Add m4/libunistring-base.m4.
27112         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27113         (Makefile.am): Build uniconv.h from uniconv.in.h.
27114         * modules/unictype/base (Files): Use unictype.in.h instead of
27115         unictype.h. Add m4/libunistring-base.m4.
27116         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27117         (Makefile.am): Build unictype.h from unictype.in.h.
27118         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27119         Add m4/libunistring-base.m4.
27120         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27121         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27122         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27123         Add m4/libunistring-base.m4.
27124         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27125         (Makefile.am): Build uniname.h from uniname.in.h.
27126         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27127         Add m4/libunistring-base.m4.
27128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27129         (Makefile.am): Build uninorm.h from uninorm.in.h.
27130         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27131         unistdio.h. Add m4/libunistring-base.m4.
27132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27133         (Makefile.am): Build unistdio.h from unistdio.in.h.
27134         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27135         Add m4/libunistring-base.m4.
27136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27137         (Makefile.am): Build unistr.h from unistr.in.h.
27138         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27139         Add m4/libunistring-base.m4.
27140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27141         (Makefile.am): Build unitypes.h from unitypes.in.h.
27142         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27143         Add m4/libunistring-base.m4.
27144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27145         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27146         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27147         uniwidth.h. Add m4/libunistring-base.m4.
27148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27149         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27150         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27151         instead of augmenting lib_SOURCES.
27152         * modules/unicase/empty-suffix-context: Likewise.
27153         * modules/unicase/locale-language: Likewise.
27154         * modules/unicase/tolower: Likewise.
27155         * modules/unicase/totitle: Likewise.
27156         * modules/unicase/toupper: Likewise.
27157         * modules/unicase/u8-casecmp: Likewise.
27158         * modules/unicase/u8-casecoll: Likewise.
27159         * modules/unicase/u8-casefold: Likewise.
27160         * modules/unicase/u8-casexfrm: Likewise.
27161         * modules/unicase/u8-ct-casefold: Likewise.
27162         * modules/unicase/u8-ct-tolower: Likewise.
27163         * modules/unicase/u8-ct-totitle: Likewise.
27164         * modules/unicase/u8-ct-toupper: Likewise.
27165         * modules/unicase/u8-is-cased: Likewise.
27166         * modules/unicase/u8-is-casefolded: Likewise.
27167         * modules/unicase/u8-is-lowercase: Likewise.
27168         * modules/unicase/u8-is-titlecase: Likewise.
27169         * modules/unicase/u8-is-uppercase: Likewise.
27170         * modules/unicase/u8-prefix-context: Likewise.
27171         * modules/unicase/u8-suffix-context: Likewise.
27172         * modules/unicase/u8-tolower: Likewise.
27173         * modules/unicase/u8-totitle: Likewise.
27174         * modules/unicase/u8-toupper: Likewise.
27175         * modules/unicase/u16-casecmp: Likewise.
27176         * modules/unicase/u16-casecoll: Likewise.
27177         * modules/unicase/u16-casefold: Likewise.
27178         * modules/unicase/u16-casexfrm: Likewise.
27179         * modules/unicase/u16-ct-casefold: Likewise.
27180         * modules/unicase/u16-ct-tolower: Likewise.
27181         * modules/unicase/u16-ct-totitle: Likewise.
27182         * modules/unicase/u16-ct-toupper: Likewise.
27183         * modules/unicase/u16-is-cased: Likewise.
27184         * modules/unicase/u16-is-casefolded: Likewise.
27185         * modules/unicase/u16-is-lowercase: Likewise.
27186         * modules/unicase/u16-is-titlecase: Likewise.
27187         * modules/unicase/u16-is-uppercase: Likewise.
27188         * modules/unicase/u16-prefix-context: Likewise.
27189         * modules/unicase/u16-suffix-context: Likewise.
27190         * modules/unicase/u16-tolower: Likewise.
27191         * modules/unicase/u16-totitle: Likewise.
27192         * modules/unicase/u16-toupper: Likewise.
27193         * modules/unicase/u32-casecmp: Likewise.
27194         * modules/unicase/u32-casecoll: Likewise.
27195         * modules/unicase/u32-casefold: Likewise.
27196         * modules/unicase/u32-casexfrm: Likewise.
27197         * modules/unicase/u32-ct-casefold: Likewise.
27198         * modules/unicase/u32-ct-tolower: Likewise.
27199         * modules/unicase/u32-ct-totitle: Likewise.
27200         * modules/unicase/u32-ct-toupper: Likewise.
27201         * modules/unicase/u32-is-cased: Likewise.
27202         * modules/unicase/u32-is-casefolded: Likewise.
27203         * modules/unicase/u32-is-lowercase: Likewise.
27204         * modules/unicase/u32-is-titlecase: Likewise.
27205         * modules/unicase/u32-is-uppercase: Likewise.
27206         * modules/unicase/u32-prefix-context: Likewise.
27207         * modules/unicase/u32-suffix-context: Likewise.
27208         * modules/unicase/u32-tolower: Likewise.
27209         * modules/unicase/u32-totitle: Likewise.
27210         * modules/unicase/u32-toupper: Likewise.
27211         * modules/unicase/ulc-casecmp: Likewise.
27212         * modules/unicase/ulc-casecoll: Likewise.
27213         * modules/unicase/ulc-casexfrm: Likewise.
27214         * modules/uniconv/u8-conv-from-enc: Likewise.
27215         * modules/uniconv/u8-conv-to-enc: Likewise.
27216         * modules/uniconv/u8-strconv-from-enc: Likewise.
27217         * modules/uniconv/u8-strconv-from-locale: Likewise.
27218         * modules/uniconv/u8-strconv-to-enc: Likewise.
27219         * modules/uniconv/u8-strconv-to-locale: Likewise.
27220         * modules/uniconv/u16-conv-from-enc: Likewise.
27221         * modules/uniconv/u16-conv-to-enc: Likewise.
27222         * modules/uniconv/u16-strconv-from-enc: Likewise.
27223         * modules/uniconv/u16-strconv-from-locale: Likewise.
27224         * modules/uniconv/u16-strconv-to-enc: Likewise.
27225         * modules/uniconv/u16-strconv-to-locale: Likewise.
27226         * modules/uniconv/u32-conv-from-enc: Likewise.
27227         * modules/uniconv/u32-conv-to-enc: Likewise.
27228         * modules/uniconv/u32-strconv-from-enc: Likewise.
27229         * modules/uniconv/u32-strconv-from-locale: Likewise.
27230         * modules/uniconv/u32-strconv-to-enc: Likewise.
27231         * modules/uniconv/u32-strconv-to-locale: Likewise.
27232         * modules/unictype/bidicategory-byname: Likewise.
27233         * modules/unictype/bidicategory-name: Likewise.
27234         * modules/unictype/bidicategory-of: Likewise.
27235         * modules/unictype/bidicategory-test: Likewise.
27236         * modules/unictype/block-list: Likewise.
27237         * modules/unictype/block-test: Likewise.
27238         * modules/unictype/category-C: Likewise.
27239         * modules/unictype/category-Cc: Likewise.
27240         * modules/unictype/category-Cf: Likewise.
27241         * modules/unictype/category-Cn: Likewise.
27242         * modules/unictype/category-Co: Likewise.
27243         * modules/unictype/category-Cs: Likewise.
27244         * modules/unictype/category-L: Likewise.
27245         * modules/unictype/category-Ll: Likewise.
27246         * modules/unictype/category-Lm: Likewise.
27247         * modules/unictype/category-Lo: Likewise.
27248         * modules/unictype/category-Lt: Likewise.
27249         * modules/unictype/category-Lu: Likewise.
27250         * modules/unictype/category-M: Likewise.
27251         * modules/unictype/category-Mc: Likewise.
27252         * modules/unictype/category-Me: Likewise.
27253         * modules/unictype/category-Mn: Likewise.
27254         * modules/unictype/category-N: Likewise.
27255         * modules/unictype/category-Nd: Likewise.
27256         * modules/unictype/category-Nl: Likewise.
27257         * modules/unictype/category-No: Likewise.
27258         * modules/unictype/category-P: Likewise.
27259         * modules/unictype/category-Pc: Likewise.
27260         * modules/unictype/category-Pd: Likewise.
27261         * modules/unictype/category-Pe: Likewise.
27262         * modules/unictype/category-Pf: Likewise.
27263         * modules/unictype/category-Pi: Likewise.
27264         * modules/unictype/category-Po: Likewise.
27265         * modules/unictype/category-Ps: Likewise.
27266         * modules/unictype/category-S: Likewise.
27267         * modules/unictype/category-Sc: Likewise.
27268         * modules/unictype/category-Sk: Likewise.
27269         * modules/unictype/category-Sm: Likewise.
27270         * modules/unictype/category-So: Likewise.
27271         * modules/unictype/category-Z: Likewise.
27272         * modules/unictype/category-Zl: Likewise.
27273         * modules/unictype/category-Zp: Likewise.
27274         * modules/unictype/category-Zs: Likewise.
27275         * modules/unictype/category-and: Likewise.
27276         * modules/unictype/category-and-not: Likewise.
27277         * modules/unictype/category-byname: Likewise.
27278         * modules/unictype/category-name: Likewise.
27279         * modules/unictype/category-none: Likewise.
27280         * modules/unictype/category-of: Likewise.
27281         * modules/unictype/category-or: Likewise.
27282         * modules/unictype/category-test: Likewise.
27283         * modules/unictype/combining-class: Likewise.
27284         * modules/unictype/ctype-alnum: Likewise.
27285         * modules/unictype/ctype-alpha: Likewise.
27286         * modules/unictype/ctype-blank: Likewise.
27287         * modules/unictype/ctype-cntrl: Likewise.
27288         * modules/unictype/ctype-digit: Likewise.
27289         * modules/unictype/ctype-graph: Likewise.
27290         * modules/unictype/ctype-lower: Likewise.
27291         * modules/unictype/ctype-print: Likewise.
27292         * modules/unictype/ctype-punct: Likewise.
27293         * modules/unictype/ctype-space: Likewise.
27294         * modules/unictype/ctype-upper: Likewise.
27295         * modules/unictype/ctype-xdigit: Likewise.
27296         * modules/unictype/decimal-digit: Likewise.
27297         * modules/unictype/digit: Likewise.
27298         * modules/unictype/mirror: Likewise.
27299         * modules/unictype/numeric: Likewise.
27300         * modules/unictype/property-alphabetic: Likewise.
27301         * modules/unictype/property-ascii-hex-digit: Likewise.
27302         * modules/unictype/property-bidi-arabic-digit: Likewise.
27303         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27304         * modules/unictype/property-bidi-block-separator: Likewise.
27305         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27306         * modules/unictype/property-bidi-common-separator: Likewise.
27307         * modules/unictype/property-bidi-control: Likewise.
27308         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27309         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27310         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27311         * modules/unictype/property-bidi-european-digit: Likewise.
27312         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27313         * modules/unictype/property-bidi-left-to-right: Likewise.
27314         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27315         * modules/unictype/property-bidi-other-neutral: Likewise.
27316         * modules/unictype/property-bidi-pdf: Likewise.
27317         * modules/unictype/property-bidi-segment-separator: Likewise.
27318         * modules/unictype/property-bidi-whitespace: Likewise.
27319         * modules/unictype/property-byname: Likewise.
27320         * modules/unictype/property-combining: Likewise.
27321         * modules/unictype/property-composite: Likewise.
27322         * modules/unictype/property-currency-symbol: Likewise.
27323         * modules/unictype/property-dash: Likewise.
27324         * modules/unictype/property-decimal-digit: Likewise.
27325         * modules/unictype/property-default-ignorable-code-point: Likewise.
27326         * modules/unictype/property-deprecated: Likewise.
27327         * modules/unictype/property-diacritic: Likewise.
27328         * modules/unictype/property-extender: Likewise.
27329         * modules/unictype/property-format-control: Likewise.
27330         * modules/unictype/property-grapheme-base: Likewise.
27331         * modules/unictype/property-grapheme-extend: Likewise.
27332         * modules/unictype/property-grapheme-link: Likewise.
27333         * modules/unictype/property-hex-digit: Likewise.
27334         * modules/unictype/property-hyphen: Likewise.
27335         * modules/unictype/property-id-continue: Likewise.
27336         * modules/unictype/property-id-start: Likewise.
27337         * modules/unictype/property-ideographic: Likewise.
27338         * modules/unictype/property-ids-binary-operator: Likewise.
27339         * modules/unictype/property-ids-trinary-operator: Likewise.
27340         * modules/unictype/property-ignorable-control: Likewise.
27341         * modules/unictype/property-iso-control: Likewise.
27342         * modules/unictype/property-join-control: Likewise.
27343         * modules/unictype/property-left-of-pair: Likewise.
27344         * modules/unictype/property-line-separator: Likewise.
27345         * modules/unictype/property-logical-order-exception: Likewise.
27346         * modules/unictype/property-lowercase: Likewise.
27347         * modules/unictype/property-math: Likewise.
27348         * modules/unictype/property-non-break: Likewise.
27349         * modules/unictype/property-not-a-character: Likewise.
27350         * modules/unictype/property-numeric: Likewise.
27351         * modules/unictype/property-other-alphabetic: Likewise.
27352         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27353         * modules/unictype/property-other-grapheme-extend: Likewise.
27354         * modules/unictype/property-other-id-continue: Likewise.
27355         * modules/unictype/property-other-id-start: Likewise.
27356         * modules/unictype/property-other-lowercase: Likewise.
27357         * modules/unictype/property-other-math: Likewise.
27358         * modules/unictype/property-other-uppercase: Likewise.
27359         * modules/unictype/property-paired-punctuation: Likewise.
27360         * modules/unictype/property-paragraph-separator: Likewise.
27361         * modules/unictype/property-pattern-syntax: Likewise.
27362         * modules/unictype/property-pattern-white-space: Likewise.
27363         * modules/unictype/property-private-use: Likewise.
27364         * modules/unictype/property-punctuation: Likewise.
27365         * modules/unictype/property-quotation-mark: Likewise.
27366         * modules/unictype/property-radical: Likewise.
27367         * modules/unictype/property-sentence-terminal: Likewise.
27368         * modules/unictype/property-soft-dotted: Likewise.
27369         * modules/unictype/property-space: Likewise.
27370         * modules/unictype/property-terminal-punctuation: Likewise.
27371         * modules/unictype/property-test: Likewise.
27372         * modules/unictype/property-titlecase: Likewise.
27373         * modules/unictype/property-unassigned-code-value: Likewise.
27374         * modules/unictype/property-unified-ideograph: Likewise.
27375         * modules/unictype/property-uppercase: Likewise.
27376         * modules/unictype/property-variation-selector: Likewise.
27377         * modules/unictype/property-white-space: Likewise.
27378         * modules/unictype/property-xid-continue: Likewise.
27379         * modules/unictype/property-xid-start: Likewise.
27380         * modules/unictype/property-zero-width: Likewise.
27381         * modules/unictype/scripts: Likewise.
27382         * modules/unictype/syntax-c-ident: Likewise.
27383         * modules/unictype/syntax-c-whitespace: Likewise.
27384         * modules/unictype/syntax-java-ident: Likewise.
27385         * modules/unictype/syntax-java-whitespace: Likewise.
27386         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27387         * modules/unilbrk/u8-width-linebreaks: Likewise.
27388         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27389         * modules/unilbrk/u16-width-linebreaks: Likewise.
27390         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27391         * modules/unilbrk/u32-width-linebreaks: Likewise.
27392         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27393         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27394         * modules/uniname/uniname: Likewise.
27395         * modules/uninorm/canonical-decomposition: Likewise.
27396         * modules/uninorm/composition: Likewise.
27397         * modules/uninorm/decomposing-form: Likewise.
27398         * modules/uninorm/decomposition: Likewise.
27399         * modules/uninorm/filter: Likewise.
27400         * modules/uninorm/nfc: Likewise.
27401         * modules/uninorm/nfd: Likewise.
27402         * modules/uninorm/nfkc: Likewise.
27403         * modules/uninorm/nfkd: Likewise.
27404         * modules/uninorm/u8-normalize: Likewise.
27405         * modules/uninorm/u8-normcmp: Likewise.
27406         * modules/uninorm/u8-normcoll: Likewise.
27407         * modules/uninorm/u8-normxfrm: Likewise.
27408         * modules/uninorm/u16-normalize: Likewise.
27409         * modules/uninorm/u16-normcmp: Likewise.
27410         * modules/uninorm/u16-normcoll: Likewise.
27411         * modules/uninorm/u16-normxfrm: Likewise.
27412         * modules/uninorm/u32-normalize: Likewise.
27413         * modules/uninorm/u32-normcmp: Likewise.
27414         * modules/uninorm/u32-normcoll: Likewise.
27415         * modules/uninorm/u32-normxfrm: Likewise.
27416         * modules/unistdio/u8-asnprintf: Likewise.
27417         * modules/unistdio/u8-asprintf: Likewise.
27418         * modules/unistdio/u8-snprintf: Likewise.
27419         * modules/unistdio/u8-sprintf: Likewise.
27420         * modules/unistdio/u8-u8-asnprintf: Likewise.
27421         * modules/unistdio/u8-u8-asprintf: Likewise.
27422         * modules/unistdio/u8-u8-snprintf: Likewise.
27423         * modules/unistdio/u8-u8-sprintf: Likewise.
27424         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27425         * modules/unistdio/u8-u8-vasprintf: Likewise.
27426         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27427         * modules/unistdio/u8-u8-vsprintf: Likewise.
27428         * modules/unistdio/u8-vasnprintf: Likewise.
27429         * modules/unistdio/u8-vasprintf: Likewise.
27430         * modules/unistdio/u8-vsnprintf: Likewise.
27431         * modules/unistdio/u8-vsprintf: Likewise.
27432         * modules/unistdio/u16-asnprintf: Likewise.
27433         * modules/unistdio/u16-asprintf: Likewise.
27434         * modules/unistdio/u16-snprintf: Likewise.
27435         * modules/unistdio/u16-sprintf: Likewise.
27436         * modules/unistdio/u16-u16-asnprintf: Likewise.
27437         * modules/unistdio/u16-u16-asprintf: Likewise.
27438         * modules/unistdio/u16-u16-snprintf: Likewise.
27439         * modules/unistdio/u16-u16-sprintf: Likewise.
27440         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27441         * modules/unistdio/u16-u16-vasprintf: Likewise.
27442         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27443         * modules/unistdio/u16-u16-vsprintf: Likewise.
27444         * modules/unistdio/u16-vasnprintf: Likewise.
27445         * modules/unistdio/u16-vasprintf: Likewise.
27446         * modules/unistdio/u16-vsnprintf: Likewise.
27447         * modules/unistdio/u16-vsprintf: Likewise.
27448         * modules/unistdio/u32-asnprintf: Likewise.
27449         * modules/unistdio/u32-asprintf: Likewise.
27450         * modules/unistdio/u32-snprintf: Likewise.
27451         * modules/unistdio/u32-sprintf: Likewise.
27452         * modules/unistdio/u32-u32-asnprintf: Likewise.
27453         * modules/unistdio/u32-u32-asprintf: Likewise.
27454         * modules/unistdio/u32-u32-snprintf: Likewise.
27455         * modules/unistdio/u32-u32-sprintf: Likewise.
27456         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27457         * modules/unistdio/u32-u32-vasprintf: Likewise.
27458         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27459         * modules/unistdio/u32-u32-vsprintf: Likewise.
27460         * modules/unistdio/u32-vasnprintf: Likewise.
27461         * modules/unistdio/u32-vasprintf: Likewise.
27462         * modules/unistdio/u32-vsnprintf: Likewise.
27463         * modules/unistdio/u32-vsprintf: Likewise.
27464         * modules/unistdio/ulc-asnprintf: Likewise.
27465         * modules/unistdio/ulc-asprintf: Likewise.
27466         * modules/unistdio/ulc-fprintf: Likewise.
27467         * modules/unistdio/ulc-snprintf: Likewise.
27468         * modules/unistdio/ulc-sprintf: Likewise.
27469         * modules/unistdio/ulc-vasnprintf: Likewise.
27470         * modules/unistdio/ulc-vasprintf: Likewise.
27471         * modules/unistdio/ulc-vfprintf: Likewise.
27472         * modules/unistdio/ulc-vsnprintf: Likewise.
27473         * modules/unistdio/ulc-vsprintf: Likewise.
27474         * modules/unistr/u8-check: Likewise.
27475         * modules/unistr/u8-chr: Likewise.
27476         * modules/unistr/u8-cmp: Likewise.
27477         * modules/unistr/u8-cmp2: Likewise.
27478         * modules/unistr/u8-cpy: Likewise.
27479         * modules/unistr/u8-cpy-alloc: Likewise.
27480         * modules/unistr/u8-endswith: Likewise.
27481         * modules/unistr/u8-mblen: Likewise.
27482         * modules/unistr/u8-mbsnlen: Likewise.
27483         * modules/unistr/u8-mbtouc: Likewise.
27484         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27485         * modules/unistr/u8-mbtoucr: Likewise.
27486         * modules/unistr/u8-move: Likewise.
27487         * modules/unistr/u8-next: Likewise.
27488         * modules/unistr/u8-prev: Likewise.
27489         * modules/unistr/u8-set: Likewise.
27490         * modules/unistr/u8-startswith: Likewise.
27491         * modules/unistr/u8-stpcpy: Likewise.
27492         * modules/unistr/u8-stpncpy: Likewise.
27493         * modules/unistr/u8-strcat: Likewise.
27494         * modules/unistr/u8-strchr: Likewise.
27495         * modules/unistr/u8-strcmp: Likewise.
27496         * modules/unistr/u8-strcoll: Likewise.
27497         * modules/unistr/u8-strcpy: Likewise.
27498         * modules/unistr/u8-strcspn: Likewise.
27499         * modules/unistr/u8-strdup: Likewise.
27500         * modules/unistr/u8-strlen: Likewise.
27501         * modules/unistr/u8-strmblen: Likewise.
27502         * modules/unistr/u8-strmbtouc: Likewise.
27503         * modules/unistr/u8-strncat: Likewise.
27504         * modules/unistr/u8-strncmp: Likewise.
27505         * modules/unistr/u8-strncpy: Likewise.
27506         * modules/unistr/u8-strnlen: Likewise.
27507         * modules/unistr/u8-strpbrk: Likewise.
27508         * modules/unistr/u8-strrchr: Likewise.
27509         * modules/unistr/u8-strspn: Likewise.
27510         * modules/unistr/u8-strstr: Likewise.
27511         * modules/unistr/u8-strtok: Likewise.
27512         * modules/unistr/u8-to-u16: Likewise.
27513         * modules/unistr/u8-to-u32: Likewise.
27514         * modules/unistr/u8-uctomb: Likewise.
27515         * modules/unistr/u16-check: Likewise.
27516         * modules/unistr/u16-chr: Likewise.
27517         * modules/unistr/u16-cmp: Likewise.
27518         * modules/unistr/u16-cmp2: Likewise.
27519         * modules/unistr/u16-cpy: Likewise.
27520         * modules/unistr/u16-cpy-alloc: Likewise.
27521         * modules/unistr/u16-endswith: Likewise.
27522         * modules/unistr/u16-mblen: Likewise.
27523         * modules/unistr/u16-mbsnlen: Likewise.
27524         * modules/unistr/u16-mbtouc: Likewise.
27525         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27526         * modules/unistr/u16-mbtoucr: Likewise.
27527         * modules/unistr/u16-move: Likewise.
27528         * modules/unistr/u16-next: Likewise.
27529         * modules/unistr/u16-prev: Likewise.
27530         * modules/unistr/u16-set: Likewise.
27531         * modules/unistr/u16-startswith: Likewise.
27532         * modules/unistr/u16-stpcpy: Likewise.
27533         * modules/unistr/u16-stpncpy: Likewise.
27534         * modules/unistr/u16-strcat: Likewise.
27535         * modules/unistr/u16-strchr: Likewise.
27536         * modules/unistr/u16-strcmp: Likewise.
27537         * modules/unistr/u16-strcoll: Likewise.
27538         * modules/unistr/u16-strcpy: Likewise.
27539         * modules/unistr/u16-strcspn: Likewise.
27540         * modules/unistr/u16-strdup: Likewise.
27541         * modules/unistr/u16-strlen: Likewise.
27542         * modules/unistr/u16-strmblen: Likewise.
27543         * modules/unistr/u16-strmbtouc: Likewise.
27544         * modules/unistr/u16-strncat: Likewise.
27545         * modules/unistr/u16-strncmp: Likewise.
27546         * modules/unistr/u16-strncpy: Likewise.
27547         * modules/unistr/u16-strnlen: Likewise.
27548         * modules/unistr/u16-strpbrk: Likewise.
27549         * modules/unistr/u16-strrchr: Likewise.
27550         * modules/unistr/u16-strspn: Likewise.
27551         * modules/unistr/u16-strstr: Likewise.
27552         * modules/unistr/u16-strtok: Likewise.
27553         * modules/unistr/u16-to-u32: Likewise.
27554         * modules/unistr/u16-to-u8: Likewise.
27555         * modules/unistr/u16-uctomb: Likewise.
27556         * modules/unistr/u32-check: Likewise.
27557         * modules/unistr/u32-chr: Likewise.
27558         * modules/unistr/u32-cmp: Likewise.
27559         * modules/unistr/u32-cmp2: Likewise.
27560         * modules/unistr/u32-cpy: Likewise.
27561         * modules/unistr/u32-cpy-alloc: Likewise.
27562         * modules/unistr/u32-endswith: Likewise.
27563         * modules/unistr/u32-mblen: Likewise.
27564         * modules/unistr/u32-mbsnlen: Likewise.
27565         * modules/unistr/u32-mbtouc: Likewise.
27566         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27567         * modules/unistr/u32-mbtoucr: Likewise.
27568         * modules/unistr/u32-move: Likewise.
27569         * modules/unistr/u32-next: Likewise.
27570         * modules/unistr/u32-prev: Likewise.
27571         * modules/unistr/u32-set: Likewise.
27572         * modules/unistr/u32-startswith: Likewise.
27573         * modules/unistr/u32-stpcpy: Likewise.
27574         * modules/unistr/u32-stpncpy: Likewise.
27575         * modules/unistr/u32-strcat: Likewise.
27576         * modules/unistr/u32-strchr: Likewise.
27577         * modules/unistr/u32-strcmp: Likewise.
27578         * modules/unistr/u32-strcoll: Likewise.
27579         * modules/unistr/u32-strcpy: Likewise.
27580         * modules/unistr/u32-strcspn: Likewise.
27581         * modules/unistr/u32-strdup: Likewise.
27582         * modules/unistr/u32-strlen: Likewise.
27583         * modules/unistr/u32-strmblen: Likewise.
27584         * modules/unistr/u32-strmbtouc: Likewise.
27585         * modules/unistr/u32-strncat: Likewise.
27586         * modules/unistr/u32-strncmp: Likewise.
27587         * modules/unistr/u32-strncpy: Likewise.
27588         * modules/unistr/u32-strnlen: Likewise.
27589         * modules/unistr/u32-strpbrk: Likewise.
27590         * modules/unistr/u32-strrchr: Likewise.
27591         * modules/unistr/u32-strspn: Likewise.
27592         * modules/unistr/u32-strstr: Likewise.
27593         * modules/unistr/u32-strtok: Likewise.
27594         * modules/unistr/u32-to-u16: Likewise.
27595         * modules/unistr/u32-to-u8: Likewise.
27596         * modules/unistr/u32-uctomb: Likewise.
27597         * modules/uniwbrk/u8-wordbreaks: Likewise.
27598         * modules/uniwbrk/u16-wordbreaks: Likewise.
27599         * modules/uniwbrk/u32-wordbreaks: Likewise.
27600         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27601         * modules/uniwbrk/wordbreak-property: Likewise.
27602         * modules/uniwidth/u8-strwidth: Likewise.
27603         * modules/uniwidth/u8-width: Likewise.
27604         * modules/uniwidth/u16-strwidth: Likewise.
27605         * modules/uniwidth/u16-width: Likewise.
27606         * modules/uniwidth/u32-strwidth: Likewise.
27607         * modules/uniwidth/u32-width: Likewise.
27608         * modules/uniwidth/width: Likewise.
27609         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27610         with $(LIBUNISTRING).
27611         * modules/unicase/ignorable-tests: Likewise.
27612         * modules/unicase/locale-language-tests: Likewise.
27613         * modules/unicase/tolower-tests: Likewise.
27614         * modules/unicase/totitle-tests: Likewise.
27615         * modules/unicase/toupper-tests: Likewise.
27616         * modules/unicase/u8-casecmp-tests: Likewise.
27617         * modules/unicase/u8-casecoll-tests: Likewise.
27618         * modules/unicase/u8-casefold-tests: Likewise.
27619         * modules/unicase/u8-is-cased-tests: Likewise.
27620         * modules/unicase/u8-is-casefolded-tests: Likewise.
27621         * modules/unicase/u8-is-lowercase-tests: Likewise.
27622         * modules/unicase/u8-is-titlecase-tests: Likewise.
27623         * modules/unicase/u8-is-uppercase-tests: Likewise.
27624         * modules/unicase/u8-tolower-tests: Likewise.
27625         * modules/unicase/u8-totitle-tests: Likewise.
27626         * modules/unicase/u8-toupper-tests: Likewise.
27627         * modules/unicase/u16-casecmp-tests: Likewise.
27628         * modules/unicase/u16-casecoll-tests: Likewise.
27629         * modules/unicase/u16-casefold-tests: Likewise.
27630         * modules/unicase/u16-is-cased-tests: Likewise.
27631         * modules/unicase/u16-is-casefolded-tests: Likewise.
27632         * modules/unicase/u16-is-lowercase-tests: Likewise.
27633         * modules/unicase/u16-is-titlecase-tests: Likewise.
27634         * modules/unicase/u16-is-uppercase-tests: Likewise.
27635         * modules/unicase/u16-tolower-tests: Likewise.
27636         * modules/unicase/u16-totitle-tests: Likewise.
27637         * modules/unicase/u16-toupper-tests: Likewise.
27638         * modules/unicase/u32-casecmp-tests: Likewise.
27639         * modules/unicase/u32-casecoll-tests: Likewise.
27640         * modules/unicase/u32-casefold-tests: Likewise.
27641         * modules/unicase/u32-is-cased-tests: Likewise.
27642         * modules/unicase/u32-is-casefolded-tests: Likewise.
27643         * modules/unicase/u32-is-lowercase-tests: Likewise.
27644         * modules/unicase/u32-is-titlecase-tests: Likewise.
27645         * modules/unicase/u32-is-uppercase-tests: Likewise.
27646         * modules/unicase/u32-tolower-tests: Likewise.
27647         * modules/unicase/u32-totitle-tests: Likewise.
27648         * modules/unicase/u32-toupper-tests: Likewise.
27649         * modules/unicase/ulc-casecmp-tests: Likewise.
27650         * modules/unicase/ulc-casecoll-tests: Likewise.
27651         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27652         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27653         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27654         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27655         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27656         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27657         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27658         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27659         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27660         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27661         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27662         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27663         * modules/unictype/bidicategory-byname-tests: Likewise.
27664         * modules/unictype/bidicategory-name-tests: Likewise.
27665         * modules/unictype/bidicategory-of-tests: Likewise.
27666         * modules/unictype/bidicategory-test-tests: Likewise.
27667         * modules/unictype/block-list-tests: Likewise.
27668         * modules/unictype/block-of-tests: Likewise.
27669         * modules/unictype/block-test-tests: Likewise.
27670         * modules/unictype/category-C-tests: Likewise.
27671         * modules/unictype/category-Cc-tests: Likewise.
27672         * modules/unictype/category-Cf-tests: Likewise.
27673         * modules/unictype/category-Cn-tests: Likewise.
27674         * modules/unictype/category-Co-tests: Likewise.
27675         * modules/unictype/category-Cs-tests: Likewise.
27676         * modules/unictype/category-L-tests: Likewise.
27677         * modules/unictype/category-Ll-tests: Likewise.
27678         * modules/unictype/category-Lm-tests: Likewise.
27679         * modules/unictype/category-Lo-tests: Likewise.
27680         * modules/unictype/category-Lt-tests: Likewise.
27681         * modules/unictype/category-Lu-tests: Likewise.
27682         * modules/unictype/category-M-tests: Likewise.
27683         * modules/unictype/category-Mc-tests: Likewise.
27684         * modules/unictype/category-Me-tests: Likewise.
27685         * modules/unictype/category-Mn-tests: Likewise.
27686         * modules/unictype/category-N-tests: Likewise.
27687         * modules/unictype/category-Nd-tests: Likewise.
27688         * modules/unictype/category-Nl-tests: Likewise.
27689         * modules/unictype/category-No-tests: Likewise.
27690         * modules/unictype/category-P-tests: Likewise.
27691         * modules/unictype/category-Pc-tests: Likewise.
27692         * modules/unictype/category-Pd-tests: Likewise.
27693         * modules/unictype/category-Pe-tests: Likewise.
27694         * modules/unictype/category-Pf-tests: Likewise.
27695         * modules/unictype/category-Pi-tests: Likewise.
27696         * modules/unictype/category-Po-tests: Likewise.
27697         * modules/unictype/category-Ps-tests: Likewise.
27698         * modules/unictype/category-S-tests: Likewise.
27699         * modules/unictype/category-Sc-tests: Likewise.
27700         * modules/unictype/category-Sk-tests: Likewise.
27701         * modules/unictype/category-Sm-tests: Likewise.
27702         * modules/unictype/category-So-tests: Likewise.
27703         * modules/unictype/category-Z-tests: Likewise.
27704         * modules/unictype/category-Zl-tests: Likewise.
27705         * modules/unictype/category-Zp-tests: Likewise.
27706         * modules/unictype/category-Zs-tests: Likewise.
27707         * modules/unictype/category-and-not-tests: Likewise.
27708         * modules/unictype/category-and-tests: Likewise.
27709         * modules/unictype/category-byname-tests: Likewise.
27710         * modules/unictype/category-name-tests: Likewise.
27711         * modules/unictype/category-none-tests: Likewise.
27712         * modules/unictype/category-of-tests: Likewise.
27713         * modules/unictype/category-or-tests: Likewise.
27714         * modules/unictype/category-test-withtable-tests: Likewise.
27715         * modules/unictype/combining-class-tests: Likewise.
27716         * modules/unictype/ctype-alnum-tests: Likewise.
27717         * modules/unictype/ctype-alpha-tests: Likewise.
27718         * modules/unictype/ctype-blank-tests: Likewise.
27719         * modules/unictype/ctype-cntrl-tests: Likewise.
27720         * modules/unictype/ctype-digit-tests: Likewise.
27721         * modules/unictype/ctype-graph-tests: Likewise.
27722         * modules/unictype/ctype-lower-tests: Likewise.
27723         * modules/unictype/ctype-print-tests: Likewise.
27724         * modules/unictype/ctype-punct-tests: Likewise.
27725         * modules/unictype/ctype-space-tests: Likewise.
27726         * modules/unictype/ctype-upper-tests: Likewise.
27727         * modules/unictype/ctype-xdigit-tests: Likewise.
27728         * modules/unictype/decimal-digit-tests: Likewise.
27729         * modules/unictype/digit-tests: Likewise.
27730         * modules/unictype/mirror-tests: Likewise.
27731         * modules/unictype/numeric-tests: Likewise.
27732         * modules/unictype/property-alphabetic-tests: Likewise.
27733         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27734         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27735         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27736         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27737         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27738         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27739         * modules/unictype/property-bidi-control-tests: Likewise.
27740         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27741         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27742         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27743         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27744         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27745         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27746         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27747         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27748         * modules/unictype/property-bidi-pdf-tests: Likewise.
27749         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27750         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27751         * modules/unictype/property-byname-tests: Likewise.
27752         * modules/unictype/property-combining-tests: Likewise.
27753         * modules/unictype/property-composite-tests: Likewise.
27754         * modules/unictype/property-currency-symbol-tests: Likewise.
27755         * modules/unictype/property-dash-tests: Likewise.
27756         * modules/unictype/property-decimal-digit-tests: Likewise.
27757         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27758         * modules/unictype/property-deprecated-tests: Likewise.
27759         * modules/unictype/property-diacritic-tests: Likewise.
27760         * modules/unictype/property-extender-tests: Likewise.
27761         * modules/unictype/property-format-control-tests: Likewise.
27762         * modules/unictype/property-grapheme-base-tests: Likewise.
27763         * modules/unictype/property-grapheme-extend-tests: Likewise.
27764         * modules/unictype/property-grapheme-link-tests: Likewise.
27765         * modules/unictype/property-hex-digit-tests: Likewise.
27766         * modules/unictype/property-hyphen-tests: Likewise.
27767         * modules/unictype/property-id-continue-tests: Likewise.
27768         * modules/unictype/property-id-start-tests: Likewise.
27769         * modules/unictype/property-ideographic-tests: Likewise.
27770         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27771         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27772         * modules/unictype/property-ignorable-control-tests: Likewise.
27773         * modules/unictype/property-iso-control-tests: Likewise.
27774         * modules/unictype/property-join-control-tests: Likewise.
27775         * modules/unictype/property-left-of-pair-tests: Likewise.
27776         * modules/unictype/property-line-separator-tests: Likewise.
27777         * modules/unictype/property-logical-order-exception-tests: Likewise.
27778         * modules/unictype/property-lowercase-tests: Likewise.
27779         * modules/unictype/property-math-tests: Likewise.
27780         * modules/unictype/property-non-break-tests: Likewise.
27781         * modules/unictype/property-not-a-character-tests: Likewise.
27782         * modules/unictype/property-numeric-tests: Likewise.
27783         * modules/unictype/property-other-alphabetic-tests: Likewise.
27784         * modules/unictype/property-other-default-ignorable-code-point-tests:
27785         Likewise.
27786         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27787         * modules/unictype/property-other-id-continue-tests: Likewise.
27788         * modules/unictype/property-other-id-start-tests: Likewise.
27789         * modules/unictype/property-other-lowercase-tests: Likewise.
27790         * modules/unictype/property-other-math-tests: Likewise.
27791         * modules/unictype/property-other-uppercase-tests: Likewise.
27792         * modules/unictype/property-paired-punctuation-tests: Likewise.
27793         * modules/unictype/property-paragraph-separator-tests: Likewise.
27794         * modules/unictype/property-pattern-syntax-tests: Likewise.
27795         * modules/unictype/property-pattern-white-space-tests: Likewise.
27796         * modules/unictype/property-private-use-tests: Likewise.
27797         * modules/unictype/property-punctuation-tests: Likewise.
27798         * modules/unictype/property-quotation-mark-tests: Likewise.
27799         * modules/unictype/property-radical-tests: Likewise.
27800         * modules/unictype/property-sentence-terminal-tests: Likewise.
27801         * modules/unictype/property-soft-dotted-tests: Likewise.
27802         * modules/unictype/property-space-tests: Likewise.
27803         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27804         * modules/unictype/property-test-tests: Likewise.
27805         * modules/unictype/property-titlecase-tests: Likewise.
27806         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27807         * modules/unictype/property-unified-ideograph-tests: Likewise.
27808         * modules/unictype/property-uppercase-tests: Likewise.
27809         * modules/unictype/property-variation-selector-tests: Likewise.
27810         * modules/unictype/property-white-space-tests: Likewise.
27811         * modules/unictype/property-xid-continue-tests: Likewise.
27812         * modules/unictype/property-xid-start-tests: Likewise.
27813         * modules/unictype/property-zero-width-tests: Likewise.
27814         * modules/unictype/scripts-tests: Likewise.
27815         * modules/unictype/syntax-c-ident-tests: Likewise.
27816         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27817         * modules/unictype/syntax-java-ident-tests: Likewise.
27818         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27819         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27820         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27821         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27822         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27823         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27824         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27825         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27826         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27827         * modules/uniname/uniname-tests: Likewise.
27828         * modules/uninorm/canonical-decomposition-tests: Likewise.
27829         * modules/uninorm/compat-decomposition-tests: Likewise.
27830         * modules/uninorm/composition-tests: Likewise.
27831         * modules/uninorm/decomposing-form-tests: Likewise.
27832         * modules/uninorm/decomposition-tests: Likewise.
27833         * modules/uninorm/filter-tests: Likewise.
27834         * modules/uninorm/nfc-tests: Likewise.
27835         * modules/uninorm/nfd-tests: Likewise.
27836         * modules/uninorm/nfkc-tests: Likewise.
27837         * modules/uninorm/nfkd-tests: Likewise.
27838         * modules/uninorm/u8-normcmp-tests: Likewise.
27839         * modules/uninorm/u8-normcoll-tests: Likewise.
27840         * modules/uninorm/u16-normcmp-tests: Likewise.
27841         * modules/uninorm/u16-normcoll-tests: Likewise.
27842         * modules/uninorm/u32-normcmp-tests: Likewise.
27843         * modules/uninorm/u32-normcoll-tests: Likewise.
27844         * modules/unistdio/u8-asnprintf-tests: Likewise.
27845         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27846         * modules/unistdio/u8-vasprintf-tests: Likewise.
27847         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27848         * modules/unistdio/u8-vsprintf-tests: Likewise.
27849         * modules/unistdio/u16-asnprintf-tests: Likewise.
27850         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27851         * modules/unistdio/u16-vasprintf-tests: Likewise.
27852         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27853         * modules/unistdio/u16-vsprintf-tests: Likewise.
27854         * modules/unistdio/u32-asnprintf-tests: Likewise.
27855         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27856         * modules/unistdio/u32-vasprintf-tests: Likewise.
27857         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27858         * modules/unistdio/u32-vsprintf-tests: Likewise.
27859         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27860         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27861         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27862         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27863         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27864         * modules/unistr/u8-check-tests: Likewise.
27865         * modules/unistr/u8-chr-tests: Likewise.
27866         * modules/unistr/u8-cmp-tests: Likewise.
27867         * modules/unistr/u8-cmp2-tests: Likewise.
27868         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27869         * modules/unistr/u8-cpy-tests: Likewise.
27870         * modules/unistr/u8-mblen-tests: Likewise.
27871         * modules/unistr/u8-mbsnlen-tests: Likewise.
27872         * modules/unistr/u8-mbtouc-tests: Likewise.
27873         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27874         * modules/unistr/u8-mbtoucr-tests: Likewise.
27875         * modules/unistr/u8-move-tests: Likewise.
27876         * modules/unistr/u8-next-tests: Likewise.
27877         * modules/unistr/u8-prev-tests: Likewise.
27878         * modules/unistr/u8-set-tests: Likewise.
27879         * modules/unistr/u8-stpcpy-tests: Likewise.
27880         * modules/unistr/u8-stpncpy-tests: Likewise.
27881         * modules/unistr/u8-strcat-tests: Likewise.
27882         * modules/unistr/u8-strcmp-tests: Likewise.
27883         * modules/unistr/u8-strcoll-tests: Likewise.
27884         * modules/unistr/u8-strcpy-tests: Likewise.
27885         * modules/unistr/u8-strdup-tests: Likewise.
27886         * modules/unistr/u8-strlen-tests: Likewise.
27887         * modules/unistr/u8-strmblen-tests: Likewise.
27888         * modules/unistr/u8-strmbtouc-tests: Likewise.
27889         * modules/unistr/u8-strncat-tests: Likewise.
27890         * modules/unistr/u8-strncmp-tests: Likewise.
27891         * modules/unistr/u8-strncpy-tests: Likewise.
27892         * modules/unistr/u8-strnlen-tests: Likewise.
27893         * modules/unistr/u8-to-u16-tests: Likewise.
27894         * modules/unistr/u8-to-u32-tests: Likewise.
27895         * modules/unistr/u8-uctomb-tests: Likewise.
27896         * modules/unistr/u16-check-tests: Likewise.
27897         * modules/unistr/u16-chr-tests: Likewise.
27898         * modules/unistr/u16-cmp-tests: Likewise.
27899         * modules/unistr/u16-cmp2-tests: Likewise.
27900         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27901         * modules/unistr/u16-cpy-tests: Likewise.
27902         * modules/unistr/u16-mblen-tests: Likewise.
27903         * modules/unistr/u16-mbsnlen-tests: Likewise.
27904         * modules/unistr/u16-mbtouc-tests: Likewise.
27905         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27906         * modules/unistr/u16-mbtoucr-tests: Likewise.
27907         * modules/unistr/u16-move-tests: Likewise.
27908         * modules/unistr/u16-next-tests: Likewise.
27909         * modules/unistr/u16-prev-tests: Likewise.
27910         * modules/unistr/u16-set-tests: Likewise.
27911         * modules/unistr/u16-stpcpy-tests: Likewise.
27912         * modules/unistr/u16-stpncpy-tests: Likewise.
27913         * modules/unistr/u16-strcat-tests: Likewise.
27914         * modules/unistr/u16-strcmp-tests: Likewise.
27915         * modules/unistr/u16-strcoll-tests: Likewise.
27916         * modules/unistr/u16-strcpy-tests: Likewise.
27917         * modules/unistr/u16-strdup-tests: Likewise.
27918         * modules/unistr/u16-strlen-tests: Likewise.
27919         * modules/unistr/u16-strmblen-tests: Likewise.
27920         * modules/unistr/u16-strmbtouc-tests: Likewise.
27921         * modules/unistr/u16-strncat-tests: Likewise.
27922         * modules/unistr/u16-strncmp-tests: Likewise.
27923         * modules/unistr/u16-strncpy-tests: Likewise.
27924         * modules/unistr/u16-strnlen-tests: Likewise.
27925         * modules/unistr/u16-to-u32-tests: Likewise.
27926         * modules/unistr/u16-to-u8-tests: Likewise.
27927         * modules/unistr/u16-uctomb-tests: Likewise.
27928         * modules/unistr/u32-check-tests: Likewise.
27929         * modules/unistr/u32-chr-tests: Likewise.
27930         * modules/unistr/u32-cmp-tests: Likewise.
27931         * modules/unistr/u32-cmp2-tests: Likewise.
27932         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27933         * modules/unistr/u32-cpy-tests: Likewise.
27934         * modules/unistr/u32-mblen-tests: Likewise.
27935         * modules/unistr/u32-mbsnlen-tests: Likewise.
27936         * modules/unistr/u32-mbtouc-tests: Likewise.
27937         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27938         * modules/unistr/u32-mbtoucr-tests: Likewise.
27939         * modules/unistr/u32-move-tests: Likewise.
27940         * modules/unistr/u32-next-tests: Likewise.
27941         * modules/unistr/u32-prev-tests: Likewise.
27942         * modules/unistr/u32-set-tests: Likewise.
27943         * modules/unistr/u32-stpcpy-tests: Likewise.
27944         * modules/unistr/u32-stpncpy-tests: Likewise.
27945         * modules/unistr/u32-strcat-tests: Likewise.
27946         * modules/unistr/u32-strcmp-tests: Likewise.
27947         * modules/unistr/u32-strcoll-tests: Likewise.
27948         * modules/unistr/u32-strcpy-tests: Likewise.
27949         * modules/unistr/u32-strdup-tests: Likewise.
27950         * modules/unistr/u32-strlen-tests: Likewise.
27951         * modules/unistr/u32-strmblen-tests: Likewise.
27952         * modules/unistr/u32-strmbtouc-tests: Likewise.
27953         * modules/unistr/u32-strncat-tests: Likewise.
27954         * modules/unistr/u32-strncmp-tests: Likewise.
27955         * modules/unistr/u32-strncpy-tests: Likewise.
27956         * modules/unistr/u32-strnlen-tests: Likewise.
27957         * modules/unistr/u32-to-u16-tests: Likewise.
27958         * modules/unistr/u32-to-u8-tests: Likewise.
27959         * modules/unistr/u32-uctomb-tests: Likewise.
27960         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27961         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27962         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27963         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27964         * modules/uniwidth/u8-strwidth-tests: Likewise.
27965         * modules/uniwidth/u8-width-tests: Likewise.
27966         * modules/uniwidth/u16-strwidth-tests: Likewise.
27967         * modules/uniwidth/u16-width-tests: Likewise.
27968         * modules/uniwidth/u32-strwidth-tests: Likewise.
27969         * modules/uniwidth/u32-width-tests: Likewise.
27970         * modules/uniwidth/width-tests: Likewise.
27971
27972 2010-05-18  Richard Jones  <rjones@redhat.com>
27973
27974         doc: users.txt: list hivex
27975         * users.txt: Add hivex.
27976
27977 2010-05-18  Richard Jones  <rjones@redhat.com>
27978
27979         doc: users.txt: list febootstrap
27980         * users.txt: Add febootstrap.
27981
27982 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27983
27984         bootstrap: fix an error when gnulib is not used as a git submodule
27985         * build-aux/bootstrap (gnulib_path): If its length is zero then
27986         assign "gnulib" to it.
27987         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27988
27989 2010-05-16  Bruno Haible  <bruno@clisp.org>
27990
27991         Avoid autoconf warnings about AM_ICONV.
27992         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27993         2.64.
27994
27995 2010-05-16  Bruno Haible  <bruno@clisp.org>
27996
27997         absolute-header: Make the macro usable in more situations.
27998         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27999         from gl_ABSOLUTE_HEADER.
28000         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28001
28002 2010-05-16  James Youngman  <jay@gnu.org>
28003
28004         doc: update users.txt
28005         * users.txt: Add CSSC.
28006
28007 2010-05-16  Jim Meyering  <meyering@redhat.com>
28008
28009         init.sh: fix an error in the previous change; add more comments
28010         * tests/init.sh: Compare exit code in loop against 9, not 2.
28011         Patch by Bruno Haible.
28012         Make the two tests more similar by adding an empty "then" clause.
28013         Add comments.
28014
28015         init.sh: avoid unnecessary shell re-exec
28016         * tests/init.sh: Improve the re-exec-required check to first test the
28017         current shell.  If it passes the test, do not search for a shell that
28018         does pass, and do not re-exec.  This test is particularly contorted to
28019         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28020         of $(...) evokes a syntax error and causes immediate shell exit with
28021         status 2.  Bruno Haible reported that the re-exec made it impossible
28022         to single-step through any init.sh-using script.
28023
28024 2010-05-16  Bruno Haible  <bruno@clisp.org>
28025
28026         Fix collision between gnulib's and libintl's printf replacements.
28027         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28028         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28029         (printf): When using GNU C, map the __printf__ function to rpl_printf
28030         via __asm__. When not using GNU C, define rpl_printf instead of
28031         __printf__.
28032         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28033         commit.
28034         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28035         commit.
28036         * m4/asm-underscore.m4: New file.
28037         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28038         * modules/stdio (Files): Add m4/asm-underscore.m4.
28039         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28040         Reported by Ben Pfaff.
28041
28042 2010-05-16  Bruno Haible  <bruno@clisp.org>
28043
28044         verify: Avoid skipping the test on openSUSE 11.0.
28045         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28046
28047 2010-05-13  Bruno Haible  <bruno@clisp.org>
28048
28049         Avoid useless warnings from G++.
28050         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28051         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28052         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28053
28054 2010-05-11  Jim Meyering  <meyering@redhat.com>
28055
28056         maint.mk: tweak preceding change
28057         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28058         regexps tighter by anchoring at EOL, and make the new group "shy"
28059         for slightly decreased overhead.
28060
28061 2010-05-11  Eric Blake  <eblake@redhat.com>
28062
28063         maint.mk: gnulib doesn't guarantee NSIG
28064         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28065
28066 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28067
28068         test-pwrite.c: Remove unused variable declaration.
28069         * tests/test-pwrite.c (main): Remove read_buf declaration.
28070
28071         Remove useless test-pwrite.sh file.
28072         * tests/test-pwrite.sh: Delete file.
28073         * modules/pwrite-tests: Remove references.
28074         Reported by Bruno Haible.
28075
28076 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28077
28078         init.sh: fix a typo
28079         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28080
28081 2010-05-10  Jim Meyering  <meyering@redhat.com>
28082
28083         maint.mk: avoid using a temporary file in the always-defined-macros check
28084         * top/maint.mk (.re-defmac): Remove rule.
28085         (gl_trap_): Remove definition.
28086         (sc_prohibit_always-defined_macros): Rewrite not to create and
28087         depend on a temporary file.  Instead, depend on GNU grep's ability
28088         to read a list of regular expressions from stdin when given "-f -".
28089
28090 2010-05-09  Bruno Haible  <bruno@clisp.org>
28091
28092         Update to GNU gettext 0.18, part 1.
28093         * m4/gettext.m4: Update to GNU gettext 0.18.
28094         * m4/intl.m4: Likewise.
28095         * m4/po.m4: Likewise.
28096         * modules/gettext (Files): Add m4/fcntl-o.m4.
28097         (configure.ac): Require gettext infrastructure from version 0.18.
28098
28099 2010-05-09  Jim Meyering  <meyering@redhat.com>
28100
28101         init.sh: enable MALLOC_PERTURB_
28102         * tests/init.sh: Enable glibc's malloc-perturbing option.
28103
28104         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28105         With my recent change in init.sh from the two-line form:
28106             -#   : ${srcdir=.}
28107             -#   . "$srcdir/init.sh"; path_prepend_ .
28108             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28109         I noticed that using the one-line form would cause this test
28110         to fail with a false-positive, or to stop working altogether,
28111         depending on whether help-version changed or all the tests did.
28112         * top/maint.mk (_hv_regex): Remove this definition.
28113         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28114         (_hv_regex_strong): Use a stronger regex to check for conformance.
28115         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28116         Give a separate diagnostic for lack of conforming use.
28117
28118         maint.mk: prohibit definition of symbols defined by gnulib
28119         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28120         definition of symbols defined by gnulib.
28121
28122 2010-05-09  Bruno Haible  <bruno@clisp.org>
28123
28124         acl: Avoid test failure on Cygwin-hosted mingw.
28125         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28126
28127 2010-05-09  Bruno Haible  <bruno@clisp.org>
28128
28129         error: Use system's fcntl function.
28130         * lib/error.c (fcntl): Undefine.
28131
28132 2010-05-09  Jim Meyering  <meyering@redhat.com>
28133
28134         verify: adjust formatting to be more consistent
28135         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28136         argument-list '('s, and after one comma.
28137
28138 2010-05-09  Bruno Haible  <bruno@clisp.org>
28139
28140         error: More reliable output on mingw.
28141         * lib/error.c: Include <windows.h>.
28142         (is_open): New function.
28143         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28144         defined.
28145
28146 2010-05-09  Bruno Haible  <bruno@clisp.org>
28147
28148         vasnprintf: Fix syntax errors in libintl build on mingw.
28149         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28150         pad_ourselves and prec_ourselves after use.
28151
28152 2010-05-08  Bruno Haible  <bruno@clisp.org>
28153
28154         * lib/config.charset: Update comments for Cygwin 1.7.
28155         * lib/localcharset.c: Likewise.
28156
28157 2010-05-07  Jim Meyering  <meyering@redhat.com>
28158
28159         init.sh: improve comments
28160         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28161         . "${srcdir=.}/init.sh"; path_prepend_ .
28162         Add a note about path_prepend_ and the alternative of using
28163         TESTS_ENVIRONMENT.
28164
28165 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28166
28167         exclude: Unescape hashed patterns in wildcard mode.
28168         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28169         to the hash list.
28170         * tests/test-exclude8.sh: New test case.
28171         * modules/exclude-tests: Add new test.
28172
28173 2010-05-05  Eric Blake  <eblake@redhat.com>
28174
28175         verify: automate tests
28176         * modules/verify-tests: New module.
28177         * tests/test-verify.sh: New file.
28178         * tests/test-verify.c: Guard each negative test with a unique id.
28179         Also avoid warning about unused left hand of comma expressions.
28180
28181 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28182
28183         Further improvements to verify.h, suggested by Eric Blake.
28184         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28185         the GL_* versions, to avoid collision with OpenGL.
28186         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28187         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28188         than testing merely whether it's defined.
28189
28190         Modify verify.h to pacify gcc -Wredundant_decls.
28191         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28192         These use the prefix "GL_" since they're likely to be useful elsewhere.
28193         We may need to break them out into a different .h file.
28194         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28195         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28196         of verify_function__.
28197
28198 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28199
28200         Tests for module pwrite.
28201         * modules/pwrite-tests: New file.
28202         * tests/test-pwrite.sh: New file.
28203         * tests/test-pwrite.c: New file.
28204
28205         New module pwrite.
28206         * lib/unistd.in.h (pwrite): New declaration.
28207         * lib/pwrite.c: New file, from glibc with modifications.
28208         * m4/pwrite.m4: New file.
28209         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28210         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28211         REPLACE_PWRITE.
28212         * modules/pwrite: New file.
28213         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28214         REPLACE_PWRITE.
28215         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28216         * doc/posix-functions/pwrite.texi: Mention the new module.
28217
28218 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28219
28220         pread: Update documentation.
28221         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28222
28223 2010-05-04  Eric Blake  <eblake@redhat.com>
28224
28225         docs: update cygwin progress
28226         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28227         this bug.
28228         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28229         Added in cygwin 1.7.2.
28230         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28231         Likewise.
28232         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28233         Likewise.
28234         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28235         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28236         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28237         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28238         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28239         Mention nproc module.
28240         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28241         bug in cygwin 1.7.5 addition.
28242         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28243         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28244         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28245         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28246         1.7.5.
28247         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28248         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28249         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28250         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28251         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28252         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28253         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28254         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28255         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28256         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28257         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28258         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28259         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28260         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28261         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28262         Likewise.
28263         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28264         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28265         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28266         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28267         Likewise.
28268         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28269         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28270         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28271         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28272         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28273         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28274         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28275         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28276         Likewise.
28277         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28278         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28279         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28280         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28281         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28282         Likewise.
28283         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28284         Likewise.
28285         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28286         Likewise.
28287         * doc/glibc-functions/xdrrec_endofrecord.texi
28288         (xdrrec_endofrecord): Likewise.
28289         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28290         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28291         Likewise.
28292         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28293         Likewise.
28294
28295 2010-05-04  Jim Meyering  <meyering@redhat.com>
28296
28297         gendocs.sh: make its "-s FILE" option more useful
28298         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28299         $PACKAGE to reflect the probably-different basename of "FILE".
28300
28301 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28302
28303         bootstrap: don't ignore download_po_files failure
28304         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28305         failure.
28306
28307 2010-05-03  Jim Meyering  <meyering@redhat.com>
28308
28309         maint.mk: allow to pass options to gendocs.sh
28310         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28311         (gendocs_options_): New overridable variable.
28312
28313         gnu-web-doc-update: don't ignore configure or build failure
28314         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28315
28316         announce-gen: backslash-escape '@'s in --help output
28317         * build-aux/announce-gen: Fix syntax errors.
28318
28319         maint.mk, announce-gen: allow project-specific announcement mail headers
28320         * top/maint.mk (translation_project_): Define default.
28321         (announcement_Cc_, announcement_mail_headers_): Likewise.
28322         (announcement): Invoke announce-gen with new --mail-headers option.
28323         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28324
28325         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28326         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28327         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28328         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28329         line in the "err2" output file when running "make check" in verbose
28330         mode (i.e., with set -x enabled).
28331
28332 2010-05-03  Bruno Haible  <bruno@clisp.org>
28333
28334         wctob: Fix for weird platforms.
28335         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28336         argument value.
28337
28338 2010-05-03  Jim Meyering  <meyering@redhat.com>
28339
28340         maint.mk: prohibit unwarranted use of <strings.h>
28341         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28342         strings.h in a file that does not also use strcasecmp, strncasecmp,
28343         ffs or ffsll.
28344
28345         maint.mk: remove obsolete comments
28346         * top/maint.mk: Remove stale, commented-out rules.
28347
28348 2010-05-02  Bruno Haible  <bruno@clisp.org>
28349
28350         wcwidth: Declare also when it's aliased.
28351         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28352         macro.
28353
28354 2010-05-02  Bruno Haible  <bruno@clisp.org>
28355
28356         Fix regression from 2010-04-25.
28357         * gnulib-tool (func_modules_transitive_closure): Check the status of
28358         all modules, not only of the tests that are of the form foo-tests where
28359         foo is a module.
28360
28361 2010-05-02  Bruno Haible  <bruno@clisp.org>
28362
28363         wctob: Work around nasty Cygwin 1.7.2 bug.
28364         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28365         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28366
28367 2010-05-01  Bruno Haible  <bruno@clisp.org>
28368
28369         fpurge: Sharper test.
28370         * tests/test-fpurge.c (main): Add one more ftell check.
28371         * modules/fpurge-tests (Depends-on): Add ftell.
28372         Suggested by Eric Blake.
28373
28374 2010-05-01  Bruno Haible  <bruno@clisp.org>
28375
28376         ftello: Another test.
28377         * tests/test-ftello3.c: New file.
28378         * modules/ftello-tests (Files): Add it.
28379         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28380         MOSTLYCLEANFILES.
28381
28382         ftell: Another test.
28383         * tests/test-ftell3.c: New file.
28384         * modules/ftell-tests (Files): Add it.
28385         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28386         MOSTLYCLEANFILES.
28387
28388 2010-05-01  Bruno Haible  <bruno@clisp.org>
28389
28390         ftell, ftello: Work around Solaris bug.
28391         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28392         * lib/ftello.c: Include stdio-impl.h.
28393         (ftello): On Solaris, when _IOWRT is set, compute the result without
28394         looking at _IOREAD.
28395         * modules/ftello (Files): Add lib/stdio-impl.h.
28396         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28397         * doc/posix-functions/ftello.texi: Likewise.
28398         Reported by Eric Blake.
28399
28400 2010-05-01  Bruno Haible  <bruno@clisp.org>
28401
28402         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28403         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28404         the _IOWRT flag is also set.
28405
28406 2010-05-01  Bruno Haible  <bruno@clisp.org>
28407
28408         Fix doc about a HP-UX stdio bug.
28409         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28410         * doc/posix-functions/ftello.texi: Likewise.
28411
28412 2010-05-01  Bruno Haible  <bruno@clisp.org>
28413
28414         lseek test: Fix failure on Solaris.
28415         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28416         output.
28417
28418 2010-04-30  Jim Meyering  <meyering@redhat.com>
28419
28420         bootstrap: don't ignore failure to generate po*/Makevars
28421         * build-aux/bootstrap (with_gettext): Don't ignore failure
28422         to create po/Makevars or runtime-po/Makevars.
28423
28424 2010-04-29  Eric Blake  <eblake@redhat.com>
28425
28426         headers: relax license to LGPLv2+
28427         * modules/fcntl-h (License): Relax license.
28428         * modules/getopt-posix (License): Likewise.
28429         * modules/locale (License): Likewise.
28430         * modules/math (License): Likewise.
28431         * modules/pty (License): Likewise.
28432         * modules/sched (License): Likewise.
28433         * modules/search (License): Likewise.
28434         * modules/spawn (License): Likewise.
28435         * modules/stdarg (License): Likewise.
28436         * modules/sysexits (License): Likewise.
28437
28438 2010-04-29  Jim Meyering  <meyering@redhat.com>
28439
28440         inttypes: relax license to LGPLv2+
28441         * modules/inttypes (License): Relax license.
28442
28443 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28444
28445         * top/maint.mk (indent): Run twice to produce idempotent results.
28446
28447 2010-04-28  Bruno Haible  <bruno@clisp.org>
28448
28449         getdate: Generate getdate.c in the source directory.
28450         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28451         MOSTLYCLEANFILES.
28452         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28453
28454 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28455
28456         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28457         is not declared as a const *; avoid warnings in that case.
28458
28459 2010-04-28  Eric Blake  <eblake@redhat.com>
28460
28461         canonicalize-lgpl: avoid compiler warning
28462         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28463         declaration' / 'extraneous semicolon' warning with some compilers.
28464         Reported by Andreas Gruenbacher.
28465
28466 2010-04-28  Jim Meyering  <meyering@redhat.com>
28467
28468         init.sh: ensure a more reliable exit status when exiting via trap
28469         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28470         Inspired by patches from Dmitry V. Levin.
28471         Also trap on signal 3 (SIGQUIT).
28472
28473 2010-04-27  Bruno Haible  <bruno@clisp.org>
28474
28475         Update doc about utimes().
28476         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28477         'utimens' module.
28478         Reported by Andreas Gruenbacher <agruen@suse.de>.
28479
28480 2010-04-27  Eric Blake  <eblake@redhat.com>
28481
28482         full-read, full-write: relax license
28483         * modules/full-read (License): Drop to LGPLv2+.
28484         * modules/full-write (License): Likewise.
28485         * modules/safe-read (License): Likewise.
28486         * modules/safe-write (License): Likewise.
28487
28488         pthread: mention library for linking
28489         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28490
28491 2010-04-27  Jim Meyering  <meyering@redhat.com>
28492
28493         maint.mk: fix a bug introduced in last change
28494         * top/maint.mk (gl_assured_headers_): Now that all names are on
28495         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28496         is not anchored to end of word, it should be adequate.
28497
28498         maint.mk: avoid side-effect in latest syntax-check
28499         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28500         to run commands via $(shell...), and hence to incur cost only when
28501         the new rule is actually run.
28502
28503         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28504         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28505         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28506         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28507         (gl_assured_headers_, az_, AZ_): Define.
28508         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28509
28510 2010-04-26  Jim Meyering  <jim@meyering.net>
28511             Bruno Haible  <bruno@clisp.org>
28512
28513         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28514         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28515         Prompted by an exchange with Gilles Espinasse.
28516
28517 2010-04-26  Jim Meyering  <meyering@redhat.com>
28518
28519         git-version-gen: aesthetic tweak
28520         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28521         so that the command remains on a single line.
28522
28523 2010-04-26  Eric Blake  <eblake@redhat.com>
28524
28525         git-version-gen: allow use on EBCDIC hosts
28526         * build-aux/git-version-gen (dirty): Use literal rather than tying
28527         ourselves to ascii.
28528         Reported by Steve Goetze.
28529
28530 2010-04-25  Bruno Haible  <bruno@clisp.org>
28531
28532         netdb: Add support for GNULIB_POSIXCHECK.
28533         * lib/netdb.in.h: Include warn-on-use.h.
28534         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28535         functions are used when GNULIB_POSIXCHECK is defined and the
28536         getaddrinfo module is not in use.
28537         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28538         freeaddrinfo, gai_strerror, getnameinfo are declared.
28539         * modules/netdb (Depends-on): Add warn-on-use.
28540         (Makefile.am): Include warn-on-use.h in netdb.h.
28541
28542 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28543
28544         build: avoid "make check" failure without .git/ directory
28545         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28546         there is no .git/ directory.
28547
28548 2010-04-25  Bruno Haible  <bruno@clisp.org>
28549
28550         ptsname: Fix misuse of ttyname_r.
28551         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28552         of errno.
28553
28554 2010-04-25  Bruno Haible  <bruno@clisp.org>
28555
28556         ttyname_r: Make it work on Solaris 10.
28557         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28558         if the system function has the POSIX declaration. Test whether the
28559         function fails if the buffer is less than 128 bytes large.
28560         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28561         system's ttyname_r function. Provide a reasonably large buffer.
28562         * modules/ttyname_r (Depends-on): Add extensions.
28563         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28564
28565 2010-04-25  Bruno Haible  <bruno@clisp.org>
28566
28567         Use the 'extensions' module for some more functions on Solaris.
28568         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28569         module.
28570         * doc/posix-functions/ctime_r.texi: Likewise.
28571         * doc/posix-functions/getgrgid_r.texi: Likewise.
28572         * doc/posix-functions/getgrnam_r.texi: Likewise.
28573         * doc/posix-functions/getpwnam_r.texi: Likewise.
28574         * doc/posix-functions/getpwuid_r.texi: Likewise.
28575         * doc/posix-functions/readdir_r.texi: Likewise.
28576         * doc/posix-functions/sigwait.texi: Likewise.
28577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28578         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28579
28580 2010-04-25  Bruno Haible  <bruno@clisp.org>
28581
28582         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28583         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28584         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28585         * lib/ttyname_r.c: Include <limits.h>.
28586         (ttyname_r): Define using the system's ttyname_r function, if it exists
28587         and not on Solaris.
28588         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28589         set.
28590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28591         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28592         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28593         Reported by Simon Josefsson.
28594
28595 2010-04-25  Bruno Haible  <bruno@clisp.org>
28596
28597         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28598         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28599         * doc/posix-functions/ctime_r.texi: Likewise.
28600         * doc/posix-functions/getgrgid_r.texi: Likewise.
28601         * doc/posix-functions/getgrnam_r.texi: Likewise.
28602         * doc/posix-functions/getlogin_r.texi: Likewise.
28603         * doc/posix-functions/getpwnam_r.texi: Likewise.
28604         * doc/posix-functions/getpwuid_r.texi: Likewise.
28605         * doc/posix-functions/readdir_r.texi: Likewise.
28606         * doc/posix-functions/sigwait.texi: Likewise.
28607         * doc/posix-functions/ttyname_r.texi: Likewise.
28608         Reported by Simon Josefsson.
28609
28610 2010-04-25  Bruno Haible  <bruno@clisp.org>
28611
28612         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28613         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28614         also to --create-testdir.
28615         (func_acceptable): Don't consider the status of *-tests modules here.
28616         (func_modules_transitive_closure): Consider it here, before including a
28617         test module.
28618         (func_import, func_create_testdir): Set inc_all_direct_tests,
28619         inc_all_indirect_tests.
28620         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28621         --create-testdir and --create-megatestdir.
28622
28623 2010-04-25  Bruno Haible  <bruno@clisp.org>
28624
28625         gnulib-tool: Add --without-*-tests options.
28626         * gnulib-tool (func_usage): Document the --without-*-tests options.
28627         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28628         excl_unportable_tests): New variables.
28629         Fail if they are specified with --import or --update.
28630         (func_acceptable): Respect the excl_*_tests variables.
28631         (func_import): Set the excl_*_tests variables to empty.
28632
28633 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28634             Bruno Haible  <bruno@clisp.org>
28635
28636         Work around a MacOS X 10.4 bug with openpty.
28637         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28638         * tests/test-openpty.c (main): Close the master side explicitly.
28639
28640 2010-04-25  Bruno Haible  <bruno@clisp.org>
28641
28642         strnlen: Fix a C++ test error on MacOS X and Solaris.
28643         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28644         the function is not declared.
28645         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28646         Simon Josefsson.
28647
28648 2010-04-24  Bruno Haible  <bruno@clisp.org>
28649
28650         Avoid a gcc warning.
28651         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28652         of correct type for %08lx directive.
28653         Reported by Eric Blake.
28654
28655 2010-04-24  Bruno Haible  <bruno@clisp.org>
28656
28657         vasnprintf: Correct errno value in case of out-of-memory.
28658         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28659         or sprintf. Use the errno value from SNPRINTF or sprintf.
28660         Reported by Ian Beckwith <ianb@erislabs.net>.
28661
28662 2010-04-24  Bruno Haible  <bruno@clisp.org>
28663
28664         ansi-c++-opt: Find correct compiler when cross-compiling.
28665         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28666         AC_CHECK_PROGS.
28667         Reported by Simon Josefsson.
28668
28669 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28670
28671         vc-list-files: Add support for subversion
28672         * build-aux/vc-list-files: Use "svn list" to generate the list of
28673         files controlled by subversion.
28674
28675 2010-04-23  Jim Meyering  <meyering@redhat.com>
28676
28677         vc-list-files tests: convert to use init.sh
28678         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28679         path_prepend_.
28680         Use Exit, not exit.
28681         Use skip_ rather than open coding it.
28682         Remove trap set-up and compare definitions.
28683         * tests/test-vc-list-files-git.sh: Likewise.
28684         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28685
28686 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28687
28688         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28689         backup files.
28690
28691 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28692
28693         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28694
28695 2010-04-20  Eric Blake  <eblake@redhat.com>
28696
28697         tests: be robust to ignored SIGPIPE
28698         * tests/test-select-in.sh: Consume all output.
28699         * tests/test-lseek.sh: Check correct exit status, while avoiding
28700         EPIPE.
28701
28702 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28703             Bruno Haible  <bruno@clisp.org>
28704
28705         visibility: Don't use -fvisibility if it leads to a warning.
28706         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28707         yes, don't pretend that visibility works if it leads to a warning.
28708         Reported by Mike Gran <spk121@yahoo.com>.
28709
28710 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28711
28712         * build-aux/bootstrap: Use "git -h" for testing for supported options
28713         instead of "git --help".  The short-form option only shows a summary,
28714         and doesn't layout the full man page.  Grep for the full option name
28715         in the summary, too.
28716
28717 2010-04-19  Bruno Haible  <bruno@clisp.org>
28718
28719         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28720         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28721         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28722         mention of RELOCATABLE_STRIP.
28723         Reported by Sylvain Beucler <beuc@beuc.net>.
28724
28725 2010-04-19  Bruno Haible  <bruno@clisp.org>
28726
28727         * lib/diffseq.h: Fix typo in comment.
28728         Reported by Eric Blake.
28729
28730 2010-04-19  Bruno Haible  <bruno@clisp.org>
28731
28732         ioctl: Move autoconf macro to a .m4 file.
28733         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28734         * modules/ioctl (Files): Add it.
28735         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28736         Reported by Ian Beckwith <ianb@erislabs.net>.
28737
28738 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28739             Bruno Haible  <bruno@clisp.org>
28740
28741         diffseq: Accommodate use-case with abstract arrays.
28742         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28743         is not defined.
28744         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28745         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28746
28747 2010-04-18  Bruno Haible  <bruno@clisp.org>
28748
28749         * doc/posix-headers/stdbool.texi: More precise wording.
28750
28751 2010-04-17  Jim Meyering  <meyering@redhat.com>
28752
28753         maint.mk: use gnu-style indentation in an embedded perl script
28754         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28755         Rename variable: s/two/last_two_bytes/
28756
28757 2010-04-16  Eric Blake  <eblake@redhat.com>
28758
28759         test-stdbool: skip test that fails with Solaris CC
28760         * tests/test-stdbool.c (f): Skip test that causes compilation
28761         error under buggy C++ compiler.
28762         * lib/stdbool.in.h: Document the limitation.
28763         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28764
28765         setenv: allow compilation with C++
28766         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28767         register keyword.
28768
28769         stdint: allow test to pass with C++
28770         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28771
28772         getopt: allow compilation with C++
28773         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28774         struct.
28775         * lib/getopt.c (_getopt_internal_r): Use correct type.
28776         Reported by Dagobert Michelson, via Joel E. Denny.
28777
28778 2010-04-16  Bruno Haible  <bruno@clisp.org>
28779
28780         Override netdb.h always.
28781         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28782         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28783         Reported by Ludovic Courtès <ludo@gnu.org>.
28784
28785 2010-04-15  Bruno Haible  <bruno@clisp.org>
28786
28787         openpty: Fix mistake from 2010-03-21.
28788         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28789         Reported by Simon Josefsson.
28790
28791 2010-04-15  Eric Blake  <eblake@redhat.com>
28792
28793         test-forkpty: fix expected signature
28794         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28795         Reported by Simon Josefsson.
28796
28797 2010-04-15  Jim Meyering  <meyering@redhat.com>
28798
28799         maint.mk: texinfo_suffix_re_: correct the default regexp
28800         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28801
28802         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28803         make it configurable via texinfo_suffix_re_.
28804
28805 2010-04-14  Eric Blake  <eblake@redhat.com>
28806
28807         strtok_r: relax license to LGPLv2+
28808         * modules/strtok_r (License): Relax license.
28809         Reported by Matthias Bolte.
28810
28811 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28812
28813         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28814         version 1.4.4 by default instead of requiring the libgcrypt
28815         version used during build.  This makes it possible to use the
28816         application with older but still binary compatible libgcrypt
28817         versions.
28818
28819 2010-04-13  Eric Blake  <eblake@redhat.com>
28820
28821         getopt-gnu: match recent glibc fixes and posix ruling
28822         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28823         '+' handling, when requesting extensions.
28824         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28825         'W;' handling.
28826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28827         * doc/posix-functions/getopt.texi (getopt): Document this.
28828         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28829         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28830         Likewise.
28831
28832         getopt: merge bug fixes from glibc
28833         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28834         diagnostics.  Honor '+:' correctly.  Reject ';'.
28835
28836         getopt-posix: detect MacOS bug
28837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28838         optind when missing a required argument.
28839         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28840         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28841         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28842         Likewise.
28843
28844         getopt-posix: avoid spurious failure on Solaris
28845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28846         an indicator that setting optind=1 is sufficient for reset.
28847
28848         getopt-posix: avoid spurious failure on FreeBSD
28849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28850         in POSIX mode, since the m4 test uses it.
28851
28852         gnulib-tool: silence warning on BSD sh
28853         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28854
28855 2010-04-13  Jim Meyering  <meyering@redhat.com>
28856
28857         doc: users.txt: GNU patch now uses gnulib
28858         * users.txt: Add patch.
28859
28860 2010-04-12  Jim Meyering  <meyering@redhat.com>
28861
28862         maint.mk: generate more concise timing data for syntax-check rules
28863         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28864         " done" from each line that reports a syntax-check test duration.
28865
28866 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28867
28868         git-version-gen: use "git update-index..." rather than "git status"
28869         * build-aux/git-version-gen: Use git update-index --refresh, not
28870         "git status".  With some versions of git, "git status" would fail
28871         to update the index and result in an unwarranted "-dirty" suffix.
28872
28873 2010-04-11  Jim Meyering  <meyering@redhat.com>
28874
28875         openat: correct formatting (no semantic change)
28876         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28877         Suggested by Bruno Haible.
28878
28879 2010-04-11  Bruno Haible  <bruno@clisp.org>
28880
28881         Stricter declaration checking in testdirs.
28882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28883         If for_tests is true, augment AM_CPPFLAGS to define
28884         GNULIB_STRICT_CHECKING.
28885         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28886         GNULIB_STRICT_CHECKING is defined, verify that the function is
28887         declared.
28888
28889 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28890             Bruno Haible  <bruno@clisp.org>
28891
28892         libunistring: Improve configure output.
28893         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28894         Don't say "consider installing GNU libunistring" when checking again
28895         with libiconv.
28896
28897 2010-04-11  Bruno Haible  <bruno@clisp.org>
28898
28899         libunistring: Correct value of $LTLIBUNISTRING.
28900         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28901         correct the value of $LTLIBUNISTRING.
28902
28903 2010-04-11  Bruno Haible  <bruno@clisp.org>
28904
28905         havelib: Add static libraries to LIBS in the right order.
28906         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28907         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28908
28909 2010-04-11  Bruno Haible  <bruno@clisp.org>
28910
28911         libunistring: Detect libunistring also when it depends on libiconv.
28912         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28913         the second AC_LIB_HAVE_LINKFLAGS invocation.
28914
28915 2010-04-11  James Youngman  <jay@gnu.org>
28916
28917         close-stream: declare local scalars to be "const"
28918         * lib/close-stream.c (close_stream): Make boolean variables const
28919         to document the fact that we set but do not change them.
28920
28921 2010-04-11  Bruno Haible  <bruno@clisp.org>
28922
28923         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28924
28925 2010-04-11  Jim Meyering  <meyering@redhat.com>
28926
28927         maint.mk: don't include dist-check.mk
28928         * top/maint.mk: Remove bogus include directive.
28929
28930         maint.mk: improve empty-line-at-EOF check
28931         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28932         solution, rather than tail+Perl-based one.  The latter would read
28933         a few kilobytes from the end of each file, and did not handle empty
28934         files properly.
28935
28936         maint.mk: print the elapsed time for each syntax-check rule
28937         * top/maint.mk (sc_m_rules_): Save start time in a file.
28938         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28939         (local-check): Interpose the .z rules
28940
28941 2010-04-11  Jim Meyering  <meyering@redhat.com>
28942
28943         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28944         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28945         empty file with one that ends in an empty line.
28946
28947 2010-04-10  Bruno Haible  <bruno@clisp.org>
28948
28949         mkdir: Make it work on mingw64.
28950         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28951         * lib/mkdir.c: Update comment.
28952         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28953
28954 2010-04-10  Bruno Haible  <bruno@clisp.org>
28955
28956         Don't override improved macro from newer autoconf.
28957         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28958         autoconf >= 2.62.
28959         Reported by Joel E. Denny <jdenny@clemson.edu>.
28960
28961 2010-04-10  Jim Meyering  <meyering@redhat.com>
28962
28963         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28964         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28965
28966         maint.mk: correct a diagnostic
28967         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28968         in diagnostic; now use $prohibit.
28969
28970 2010-04-10  Bruno Haible  <address@hidden>
28971
28972         fchownat: Fix a C++ test error on Solaris 8.
28973         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28974         the function does not exist.
28975
28976 2010-04-10  Bruno Haible  <bruno@clisp.org>
28977
28978         vasnprintf: Add more tests.
28979         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28980         (test_function): Test converting an invalid wide string.
28981
28982         vasnprintf: Correct handling of unconvertible wide string arguments.
28983         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28984         VASNPRINTF.
28985         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28986         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28987         smaller than the expected maximum need for the directive. Set errno to
28988         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28989         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28991         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28992         * modules/vasnprintf (Files): Add m4/printf.m4.
28993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28994
28995 2010-04-10  Bruno Haible  <bruno@clisp.org>
28996
28997         vasnprintf: Fix crash in %ls directive.
28998         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28999         string is passed as argument to %ls, with no precision and no width.
29000         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29001
29002 2010-04-10  Bruno Haible  <bruno@clisp.org>
29003
29004         vasnprintf: Fix multiple test failures on mingw.
29005         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29006         _snprintf, or snwprintf, not _snwprintf.
29007
29008 2010-04-10  Bruno Haible  <bruno@clisp.org>
29009
29010         write: Fix a C++ test error on mingw.
29011         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29012
29013 2010-04-10  Bruno Haible  <bruno@clisp.org>
29014
29015         vasnprintf test: Reduce code duplication.
29016         * tests/test-vasnprintf.c (test_function): New function, extracted from
29017         test_vasnprintf.
29018         (test_vasnprintf, test_asnprintf): Invoke it.
29019
29020 2010-04-10  Bruno Haible  <bruno@clisp.org>
29021
29022         strnlen: Fix warning in C++ mode on MacOS X.
29023         * lib/string.in.h (strnlen): Use the modern idiom.
29024         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29025         defining strnlen as a macro already in <config.h>.
29026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29027         REPLACE_STRNLEN.
29028         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29029         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29030
29031 2010-04-08  James Youngman  <jay@gnu.org>
29032
29033         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29034         the example.
29035
29036 2010-04-09  Jim Meyering  <meyering@redhat.com>
29037
29038         maint.mk: print better diagnostic when there is no $(_hv_file)
29039         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29040         announce that when $(_hv_file) (aka help-version) does not exist.
29041
29042         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29043         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29044         not try to interpret its random input bytes.  Jarno Rajahalme reported
29045         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29046         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29047         (mktempd_): Likewise, just in case.
29048
29049         ftruncate: add two years to projected module removal date: 2012
29050         * m4/ftruncate.m4: Adjust comments.
29051
29052         ftruncate: mark module as obsolete; even MinGW provides it, now
29053         * modules/ftruncate (Status): Obsolete.
29054         (Notice): Say that.
29055         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29056         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29057
29058 2010-04-08  Bruno Haible  <bruno@clisp.org>
29059
29060         Fix side effects from tests-related modules.
29061         * modules/dprintf-posix (Comment): New section.
29062         * modules/fprintf-posix (Comment): Likewise.
29063         * modules/obstack-printf-posix (Comment): Likewise.
29064         * modules/printf-posix (Comment): Likewise.
29065         * modules/snprintf-posix (Comment): Likewise.
29066         * modules/sprintf-posix (Comment): Likewise.
29067         * modules/vasnprintf-posix (Comment): Likewise.
29068         * modules/vasprintf-posix (Comment): Likewise.
29069         * modules/vdprintf-posix (Comment): Likewise.
29070         * modules/vfprintf-posix (Comment): Likewise.
29071         * modules/vprintf-posix (Comment): Likewise.
29072         * modules/vsnprintf-posix (Comment): Likewise.
29073         * modules/vsprintf-posix (Comment): Likewise.
29074         * modules/xprintf-posix (Comment): Likewise.
29075         * modules/xvasprintf-posix (Comment): Likewise.
29076         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29077         * modules/floorf-tests (Depends-on): Likewise.
29078         * modules/round-tests (Depends-on): Likewise.
29079         * modules/roundf-tests (Depends-on): Likewise.
29080         * modules/trunc-tests (Depends-on): Likewise.
29081         * modules/truncf-tests (Depends-on): Likewise.
29082         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29083         'fprintf-posix' module is not present.
29084         * tests/test-floorf2.c (check): Likewise.
29085         * tests/test-trunc2.c (check): Likewise.
29086         * tests/test-truncf2.c (check): Likewise.
29087         * tests/test-round2.c (equal): Likewise.
29088         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29089
29090 2010-04-07  Karl Berry  <karl@gnu.org>
29091
29092         * config/srclist.txt,
29093         * config/srclistvars.sh,
29094         * config/srclist-update: doc fixes.
29095
29096 2010-04-07  Jim Meyering  <meyering@redhat.com>
29097
29098         maint.mk: add a PATH crosschecking syntax-check rule
29099         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29100         Useful if you use a test like the one in help-version (coreutils,
29101         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29102         printed by prog --version.
29103
29104 2010-04-06  Bruno Haible  <bruno@clisp.org>
29105
29106         Fix link error on mingw.
29107         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29108         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29109
29110 2010-04-06  Bruno Haible  <bruno@clisp.org>
29111
29112         Assume rmdir exists.
29113         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29114
29115 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29116
29117         doc: update users.txt
29118         * users.txt: Add gcal.
29119
29120 2010-04-06  Jim Meyering  <meyering@redhat.com>
29121
29122         init.sh: simply unset TMPDIR rather than risking env -i
29123         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29124         although it probably works fine on all Unix-based systems, some
29125         systems (Cygwin?) cannot tolerate a totally cleared environment.
29126         Suggestion from Eric Blake.
29127
29128 2010-04-06  Jim Meyering  <meyering@redhat.com>
29129
29130         init.sh: portability fix: use env's POSIX-specified -i option not -u
29131         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29132         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29133
29134 2010-04-05  Bruno Haible  <bruno@clisp.org>
29135
29136         btowc: Work around Cygwin 1.7.2 bug.
29137         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29138         does not map NUL to 0.
29139         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29140
29141 2010-04-05  Bruno Haible  <bruno@clisp.org>
29142
29143         Make the multithread modules work on Cygwin 1.7.2.
29144         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29145         imported symbols can be declared weak, so that it returns "no" on
29146         Cygwin 1.7.2.
29147
29148 2010-04-05  Bruno Haible  <bruno@clisp.org>
29149
29150         Use the module 'strncat'.
29151         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29152
29153         Tests for module 'strncat'.
29154         * modules/strncat-tests: New file.
29155         * tests/test-strncat.c: New file.
29156
29157         New module 'strncat'.
29158         * lib/string.in.h (strncat): New declaration.
29159         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29160         * m4/strncat.m4: New file, based on m4/memchr.m4.
29161         * modules/strncat: New file.
29162         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29163         is declared.
29164         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29165         REPLACE_STRNCAT.
29166         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29167         REPLACE_STRNCAT.
29168         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29169         module.
29170         * tests/test-string-c++.cc: Check signature of strncat.
29171
29172 2010-04-05  Jim Meyering  <meyering@redhat.com>
29173
29174         xstrtoumax-tests: convert to use init.sh
29175         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29176         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29177         Use Exit, not exit.
29178         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29179
29180         xstrtoimax-tests: convert to use init.sh
29181         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29182         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29183         Use Exit, not exit.
29184         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29185
29186 2010-04-05  Bruno Haible  <bruno@clisp.org>
29187
29188         sys_socket: Avoid #define replacements in C++ mode.
29189         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29190         warning to the function if possible, rather than #defining the symbol
29191         to a dysfunctional alias.
29192
29193 2010-04-05  Bruno Haible  <bruno@clisp.org>
29194
29195         fseeko: Fix C++ test error on mingw.
29196         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29197         gl_FUNC_FSEEKO.
29198         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29199         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29200         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29201         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29202
29203 2010-04-05  Bruno Haible  <bruno@clisp.org>
29204
29205         duplocale: Improve test output.
29206         * tests/test-duplocale.c (main): Print reason for skipped test.
29207
29208 2010-04-05  Bruno Haible  <bruno@clisp.org>
29209
29210         Assume rmdir exists.
29211         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29212         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29213
29214 2010-04-05  Bruno Haible  <bruno@clisp.org>
29215
29216         Fix link error on Solaris 8 with cc.
29217         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29218
29219 2010-04-05  Bruno Haible  <bruno@clisp.org>
29220
29221         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29222         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29223
29224 2010-04-05  Bruno Haible  <bruno@clisp.org>
29225
29226         vasprintf: Update documentation.
29227         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29228
29229 2010-04-05  Bruno Haible  <bruno@clisp.org>
29230
29231         ptsname: Improve test.
29232         * tests/test-ptsname.c (main): Also try the various master names of BSD
29233         systems.
29234
29235 2010-04-05  Bruno Haible  <bruno@clisp.org>
29236
29237         memchr: Avoid a possible C++ test error.
29238         * lib/string.in.h (memchr): Provide declaration if function is missing.
29239         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29240         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29242         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29243
29244 2010-04-05  Bruno Haible  <bruno@clisp.org>
29245
29246         strtok_r: Improve idiom.
29247         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29248         AC_LIBOBJ is used.
29249
29250 2010-04-05  Bruno Haible  <bruno@clisp.org>
29251
29252         strdup: Improve idiom.
29253         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29254         AC_LIBOBJ is used.
29255         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29256         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29257         when AC_LIBOBJ is used.
29258
29259 2010-04-05  Bruno Haible  <bruno@clisp.org>
29260
29261         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29263         don't set REPLACE_MBSINIT to 1.
29264         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29265         don't set REPLACE_MBRTOWC to 1.
29266         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29267         exist, don't set REPLACE_MBSRTOWCS to 1.
29268         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29269         exist, don't set REPLACE_MBSNRTOWCS to 1.
29270         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29271         don't set REPLACE_WCRTOMB to 1.
29272         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29273         exist, don't set REPLACE_WCSRTOMBS to 1.
29274         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29275         exist, don't set REPLACE_WCSNRTOMBS to 1.
29276
29277 2010-04-05  Bruno Haible  <bruno@clisp.org>
29278
29279         ldexpl: Improve idiom.
29280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29281         make sure to set HAVE_DECL_LDEXPL to 0.
29282
29283 2010-04-05  Jim Meyering  <meyering@redhat.com>
29284
29285         xstrtol-tests: convert to use init.sh
29286         * modules/xstrtol-tests (Files): Add tests/init.sh.
29287         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29288         Use Exit, not exit.
29289         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29290
29291         atexit-tests: convert to use init.sh
29292         * modules/atexit-tests (Files): Add tests/init.sh.
29293         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29294         Use Exit, not exit.
29295         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29296
29297         init.sh: fix typo
29298         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29299
29300         init.sh: make it easier for a test script to write to the tty, ...
29301         when using automake's parallel-tests mode.
29302         * tests/init.sh (stderr_fileno_): Define overridable variable.
29303         (warn_): New function, to use it.
29304         (fail_, skip_, framework_failure_): Use warn_.
29305
29306 2010-04-04  Bruno Haible  <bruno@clisp.org>
29307
29308         btowc: Avoid warning.
29309         * lib/btowc.c: Include <stdlib.h>.
29310         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29311
29312 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29313             Bruno Haible  <bruno@clisp.org>
29314
29315         wchar: Port to NetBSD 1.5.
29316         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29317         * lib/wctype.in.h (WEOF): Likewise.
29318
29319 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29320             Bruno Haible  <bruno@clisp.org>
29321
29322         Port extended stdio to NetBSD 1.5.
29323         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29324         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29325         older.
29326
29327 2010-04-04  Bruno Haible  <bruno@clisp.org>
29328
29329         string: Remove unused substitution.
29330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29331         HAVE_DECL_STRERROR.
29332         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29333
29334 2010-04-04  Bruno Haible  <bruno@clisp.org>
29335
29336         strtod: Avoid a possible C++ test error.
29337         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29338         set REPLACE_STRTOD.
29339
29340 2010-04-04  Bruno Haible  <bruno@clisp.org>
29341
29342         strerror: Update documentation.
29343         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29344
29345 2010-04-04  Bruno Haible  <bruno@clisp.org>
29346
29347         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29348         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29349         _GL_CXXALIAS_SYS_CAST.
29350
29351 2010-04-04  Bruno Haible  <bruno@clisp.org>
29352
29353         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29354         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29355         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29356         REPLACE_FREXPL to 1.
29357         * doc/posix-functions/frexpl.texi: Update documentation.
29358
29359 2010-04-04  Bruno Haible  <bruno@clisp.org>
29360
29361         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29362         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29363
29364 2010-04-04  Bruno Haible  <bruno@clisp.org>
29365
29366         Implement nanosleep for native Windows.
29367         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29368
29369 2010-04-04  Bruno Haible  <bruno@clisp.org>
29370
29371         math: Fix some C++ test errors on Solaris 8.
29372         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29373
29374 2010-04-04  Bruno Haible  <bruno@clisp.org>
29375
29376         math: Fix some C++ test errors on Cygwin.
29377         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29378         truncl): Provide declaration if the system does not have it.
29379         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29380         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29381         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29382         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29383         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29384         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29385         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29386         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29387         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29388         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29389         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29390         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29391         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29392         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29393         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29394         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29396         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29397         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29398         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29399         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29400         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29401
29402 2010-04-04  Bruno Haible  <bruno@clisp.org>
29403
29404         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29405         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29406         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29407         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29408         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29409         * m4/isinf.m4 (gl_ISINF): Likewise.
29410         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29411
29412 2010-04-04  Bruno Haible  <bruno@clisp.org>
29413
29414         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29415         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29416
29417 2010-04-04  Bruno Haible  <bruno@clisp.org>
29418
29419         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29420         * modules/tmpfile (configure.ac): Update.
29421
29422         tmpfile: Fix C++ test error on mingw.
29423         * lib/stdio.in.h (tmpfile): New declaration.
29424         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29425         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29426         * modules/tmpfile (Depends-on): Add stdio.
29427         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29428         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29429         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29430         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29431         REPLACE_TMPFILE.
29432         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29433
29434 2010-04-04  Bruno Haible  <bruno@clisp.org>
29435
29436         ioctl: Fix C++ test error on mingw.
29437         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29438         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29439         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29440
29441 2010-04-03  Bruno Haible  <bruno@clisp.org>
29442
29443         wcwidth: Fix C++ test error on mingw.
29444         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29446         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29447
29448 2010-04-03  Bruno Haible  <bruno@clisp.org>
29449
29450         nanosleep: Fix C++ test error on mingw.
29451         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29452         * lib/time.in.h (nanosleep): Use modern idiom.
29453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29454         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29455         REPLACE_NANOSLEEP to 1.
29456         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29457         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29458
29459 2010-04-03  Bruno Haible  <bruno@clisp.org>
29460
29461         strptime: Fix C++ test error on mingw.
29462         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29463         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29464         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29465         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29467         not REPLACE_STRPTIME.
29468         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29469         REPLACE_STRPTIME.
29470
29471 2010-04-03  Bruno Haible  <bruno@clisp.org>
29472
29473         timegm: Fix C++ test error on mingw.
29474         * lib/time.in.h (timegm): Use modern idiom.
29475         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29476         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29477         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29478         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29479
29480 2010-04-03  Bruno Haible  <bruno@clisp.org>
29481
29482         timegm: Assume declaration if function exists.
29483         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29484         if it exists. Don't clobber ac_cv_func_timegm.
29485
29486 2010-04-03  Bruno Haible  <bruno@clisp.org>
29487
29488         time_r: Fix C++ test error on mingw.
29489         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29490         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29491         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29492         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29493         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29494
29495 2010-04-03  Bruno Haible  <bruno@clisp.org>
29496
29497         time_r: Minor updates.
29498         * modules/time_r (Description): Mention the provided functions.
29499         * lib/time_r.c: Don't include <string.h>.
29500         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29501         * doc/posix-functions/localtime_r.texi: Likewise.
29502
29503 2010-04-03  Bruno Haible  <bruno@clisp.org>
29504
29505         time: Fix regression introduced on 2010-03-08.
29506         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29507         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29508
29509 2010-04-03  Jim Meyering  <meyering@redhat.com>
29510
29511         maint.mk: don't silently disable project-specific syntax-check rules
29512         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29513         that they need to convert their project-specific syntax-check rules
29514         to use the new _sc_search_regexp.
29515
29516 2010-04-03  Bruno Haible  <bruno@clisp.org>
29517
29518         fchdir: Fix regression introduced on 2010-03-08.
29519         * lib/unistd.in.h (fchdir): Fix declaration.
29520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29522         REPLACE_FCHDIR.
29523         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29524         REPLACE_FCHDIR.
29525
29526 2010-04-03  Bruno Haible  <bruno@clisp.org>
29527
29528         getpagesize: Fix C++ test error on mingw.
29529         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29530         system does not declare the function.
29531         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29532         declared.
29533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29534         HAVE_DECL_GETPAGESIZE.
29535         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29536
29537 2010-04-03  Bruno Haible  <bruno@clisp.org>
29538
29539         stdio: Make C++ tests work on mingw.
29540         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29541         does not declare the function.
29542
29543 2010-04-03  Bruno Haible  <bruno@clisp.org>
29544
29545         ftello: Fix C++ test error on mingw.
29546         * lib/stdio.in.h (ftello): Use modern idiom.
29547         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29548         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29549         is missing and that it needs to be replaced.
29550         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29552         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29553
29554 2010-04-03  Bruno Haible  <bruno@clisp.org>
29555
29556         fseeko: Fix C++ test error on mingw.
29557         * lib/stdio.in.h (fseeko): Use modern idiom.
29558         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29560         is missing and that it needs to be replaced.
29561         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29563         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29564
29565 2010-04-03  Bruno Haible  <bruno@clisp.org>
29566
29567         mkstemp: Fix C++ test error on mingw.
29568         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29569         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29570         function is missing and that it needs to be replaced.
29571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29572         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29573
29574 2010-04-03  Bruno Haible  <bruno@clisp.org>
29575
29576         stpncpy: Fix C++ test error on mingw.
29577         * lib/string.in.h (stpncpy): Use modern idiom.
29578         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29579         function is missing and that it needs to be replaced.
29580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29581         REPLACE_STPNCPY.
29582         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29583
29584 2010-04-03  Bruno Haible  <bruno@clisp.org>
29585
29586         sys_stat: Fix C++ test error on mingw.
29587         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29588         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29589
29590 2010-04-03  Bruno Haible  <bruno@clisp.org>
29591
29592         pty: Update doc.
29593         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29594
29595 2010-04-03  Bruno Haible  <bruno@clisp.org>
29596
29597         unistd: Fix C++ test error on mingw.
29598         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29599
29600 2010-04-03  Bruno Haible  <bruno@clisp.org>
29601
29602         Update doc regarding mingw.
29603         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29604         * doc/glibc-functions/login_tty.texi: Likewise.
29605         * doc/glibc-functions/forkpty.texi: Likewise.
29606
29607 2010-04-03  Bruno Haible  <bruno@clisp.org>
29608
29609         stdlib: Avoid compilation failure of c-strtold on mingw.
29610         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29611
29612 2010-04-03  Bruno Haible  <bruno@clisp.org>
29613
29614         locale: Make C++ tests work on Cygwin and mingw.
29615         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29616         cannot provide the function.
29617         Reported by Simon Josefsson.
29618
29619 2010-04-03  Bruno Haible  <bruno@clisp.org>
29620
29621         localename: Port to MacOS X 10.6.
29622         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29623         memory layout of the locales in MacOS X 10.6 as well.
29624         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29625
29626 2010-04-02  Bruno Haible  <bruno@clisp.org>
29627
29628         gnulib-tool: Ensure that long-running tests are executed last.
29629         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29630         running tests after the one for the other tests.
29631
29632 2010-04-02  Bruno Haible  <bruno@clisp.org>
29633
29634         gnulib-tool: Ensure the tests in the main directory are executed first.
29635         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29636         start with the current directory.
29637
29638 2010-04-02  Bruno Haible  <bruno@clisp.org>
29639
29640         Tests for module 'havelib', moved here from GNU gettext.
29641         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29642         modifications.
29643         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29644         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29645         with modifications.
29646         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29647         modifications.
29648         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29649         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29650         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29651         with modifications.
29652         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29653         with modifications.
29654         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29655         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29656         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29657         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29658         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29659         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29660         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29661         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29662         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29663         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29664         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29665         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29666         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29667         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29668         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29669         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29670         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29671         with modifications.
29672         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29673         with modifications.
29674         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29675         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29676         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29677         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29678         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29679         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29680         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29681         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29682         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29683         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29684         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29685         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29686         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29687         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29688         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29689         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29690         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29691         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29692         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29693         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29694         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29695         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29696         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29697         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29698         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29699         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29700         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29701         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29702         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29703         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29704         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29705         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29706         * tests/havelib/rpathx/rpathx.c: New file, from
29707         gettext/autoconf-lib-link.
29708         * tests/havelib/rpathx/Makefile.am: New file, from
29709         gettext/autoconf-lib-link.
29710         * tests/havelib/rpathx/configure.ac: New file, from
29711         gettext/autoconf-lib-link with modifications.
29712         * tests/havelib/rpathy/rpathy.c: New file, from
29713         gettext/autoconf-lib-link.
29714         * tests/havelib/rpathy/Makefile.am: New file, from
29715         gettext/autoconf-lib-link.
29716         * tests/havelib/rpathy/configure.ac: New file, from
29717         gettext/autoconf-lib-link with modifications.
29718         * tests/havelib/rpathz/rpathz.c: New file, from
29719         gettext/autoconf-lib-link.
29720         * tests/havelib/rpathz/Makefile.am: New file, from
29721         gettext/autoconf-lib-link.
29722         * tests/havelib/rpathz/configure.ac: New file, from
29723         gettext/autoconf-lib-link with modifications.
29724         * tests/havelib/rpathlx/usex.c: New file, from
29725         gettext/autoconf-lib-link.
29726         * tests/havelib/rpathlx/Makefile.am: New file, from
29727         gettext/autoconf-lib-link.
29728         * tests/havelib/rpathlx/configure.ac: New file, from
29729         gettext/autoconf-lib-link with modifications.
29730         * tests/havelib/rpathly/usey.c: New file, from
29731         gettext/autoconf-lib-link.
29732         * tests/havelib/rpathly/Makefile.am: New file, from
29733         gettext/autoconf-lib-link.
29734         * tests/havelib/rpathly/configure.ac: New file, from
29735         gettext/autoconf-lib-link with modifications.
29736         * tests/havelib/rpathlz/usez.c: New file, from
29737         gettext/autoconf-lib-link.
29738         * tests/havelib/rpathlz/Makefile.am: New file, from
29739         gettext/autoconf-lib-link.
29740         * tests/havelib/rpathlz/configure.ac: New file, from
29741         gettext/autoconf-lib-link with modifications.
29742         * tests/havelib/rpathlyx/usey.c: New file, from
29743         gettext/autoconf-lib-link.
29744         * tests/havelib/rpathlyx/Makefile.am: New file, from
29745         gettext/autoconf-lib-link.
29746         * tests/havelib/rpathlyx/configure.ac: New file, from
29747         gettext/autoconf-lib-link with modifications.
29748         * tests/havelib/rpathlzyx/usez.c: New file, from
29749         gettext/autoconf-lib-link.
29750         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29751         gettext/autoconf-lib-link.
29752         * tests/havelib/rpathlzyx/configure.ac: New file, from
29753         gettext/autoconf-lib-link with modifications.
29754         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29755         with modifications.
29756
29757 2010-04-02  Bruno Haible  <bruno@clisp.org>
29758
29759         gnulib-tool: Create distributed built sources also for the tests.
29760         * gnulib-tool (func_create_testdir): Also generate distributed built
29761         sources in the tests directory.
29762
29763 2010-04-02  Bruno Haible  <bruno@clisp.org>
29764
29765         gnulib-tool: Obey user's environment variables.
29766         * gnulib-tool (func_create_testdir): When creating built sources,
29767         respect the environment variables for autoconf, automake, etc. given by
29768         the user.
29769
29770 2010-04-02  Bruno Haible  <bruno@clisp.org>
29771
29772         gnulib-tool: Provide the value of --m4-base to modules.
29773         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29774         of gl_m4_base.
29775
29776 2010-04-02  Eric Blake  <eblake@redhat.com>
29777
29778         maint.mk: fix some fallout
29779         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29780         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29781
29782 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29783
29784         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29785         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29786         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29787         (sc_cast_of_x_alloc_return_value): Likewise.
29788         (sc_cast_of_alloca_return_value): Likewise.
29789         (sc_space_tab): Likewise.
29790         (sc_prohibit_atoi_atof): Likewise.
29791         (sc_prohibit_magic_number_exit): Likewise.
29792         (sc_error_exit_success): Likewise.
29793         (sc_file_system): Likewise.
29794         (sc_prohibit_have_config_h): Likewise.
29795         (sc_require_config_h): Likewise.
29796         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29797         (sc_obsolete_symbols): Likewise.
29798         (sc_changelog): Likewise.
29799         (sc_program_name): Likewise.
29800         (sc_the_the): Likewise.
29801         (sc_trailing_blank): Likewise.
29802         (sc_two_space_separator_in_usage): Likewise.
29803         (sc_useless_cpp_parens): Likewise.
29804         (sc_GPL_version): Likewise.
29805         (sc_GFDL_version): Likewise.
29806         (sc_texinfo_acronym): Likewise.
29807         (sc_prohibit_cvs_keyword): Likewise.
29808         (sc_prohibit_stat_st_blocks): Likewise.
29809         (sc_prohibit_S_IS_definition): Likewise.
29810         (sc_redundant_const): Likewise.
29811         (sc_makefile_TAB_only_indentation): Likewise.
29812         (sc_m4_quote_check): Likewise.
29813         (sc_makefile_path_separator_check): Likewise.
29814         (sc_copyright_check): Likewise.
29815         (sc_Wundef_boolean): Likewise.
29816         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29817
29818         maint.mk: match 0 or more whitespace-before-function-call '('
29819         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29820         that have zero or two-and-more spaces between the function name
29821         and the open parenthesis.
29822         (sc_error_message_warn_fatal): Likewise.
29823         (sc_error_message_uppercase): Likewise.
29824         (sc_error_message_period): Likewise.
29825
29826 2010-03-31  Eric Blake  <eblake@redhat.com>
29827
29828         maint.mk: check for [ as well as test
29829         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29830         Based on a libvirt report by Matthias Bolte.
29831
29832         gnumakefile: don't squelch _version output
29833         * top/GNUmakefile (_version): Create one-shot dependency rather
29834         than using $(shell) when version must be regenerated.
29835         (_autoreconf): Run verbosely, by default.
29836
29837         sys_time: avoid compiler warnings
29838         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29839         unconditional, fixing regression from 2010-03-29.
29840         Reported by Simon Josefsson.
29841
29842 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29843
29844         maint.mk: s/_header_without_use/_sc_header_without_use/
29845         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29846         (sc_prohibit_assert_without_use): Use the new name.
29847         (sc_prohibit_close_stream_without_use): Likewise.
29848         (sc_prohibit_getopt_without_use): Likewise.
29849         (sc_prohibit_quotearg_without_use): Likewise.
29850         (sc_prohibit_quote_without_use): Likewise.
29851         (sc_prohibit_long_options_without_use): Likewise.
29852         (sc_prohibit_inttostr_without_use): Likewise.
29853         (sc_prohibit_ignore_value_without_use): Likewise.
29854         (sc_prohibit_error_without_use): Likewise.
29855         (sc_prohibit_xalloc_without_use): Likewise.
29856         (sc_prohibit_hash_without_use): Likewise.
29857         (sc_prohibit_hash_pjw_without_use): Likewise.
29858         (sc_prohibit_safe_read_without_use): Likewise.
29859         (sc_prohibit_argmatch_without_use): Likewise.
29860         (sc_prohibit_canonicalize_without_use): Likewise.
29861         (sc_prohibit_root_dev_ino_without_use): Likewise.
29862         (sc_prohibit_openat_without_use): Likewise.
29863         (sc_prohibit_c_ctype_without_use): Likewise.
29864         (sc_prohibit_signal_without_use): Likewise.
29865         (sc_prohibit_intprops_without_use): Likewise.
29866
29867 2010-03-30  Eric Blake  <eblake@redhat.com>
29868
29869         maint: improve module indicators
29870         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29871         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29872         columns, and avoid extra macro expansion.
29873
29874         fdopendir: work around FreeBSD bug
29875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29877         * modules/dirent (Makefile.am): Substitute it.
29878         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29879         declaration.
29880         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29881         fix.
29882         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29883
29884 2010-03-29  Bruno Haible  <bruno@clisp.org>
29885
29886         Emit #pragma system_header after the inclusion guard, not before.
29887         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29888         guard that spans the entire file, not before. This enables an
29889         optimization in GCC's preprocessor.
29890         * lib/ctype.in.h: Likewise.
29891         * lib/dirent.in.h: Likewise.
29892         * lib/errno.in.h: Likewise.
29893         * lib/float.in.h: Likewise.
29894         * lib/getopt.in.h: Likewise.
29895         * lib/iconv.in.h: Likewise.
29896         * lib/langinfo.in.h: Likewise.
29897         * lib/locale.in.h: Likewise.
29898         * lib/math.in.h: Likewise.
29899         * lib/netdb.in.h: Likewise.
29900         * lib/netinet_in.in.h: Likewise.
29901         * lib/pty.in.h: Likewise.
29902         * lib/sched.in.h: Likewise.
29903         * lib/se-selinux.in.h: Likewise.
29904         * lib/search.in.h: Likewise.
29905         * lib/spawn.in.h: Likewise.
29906         * lib/stdarg.in.h: Likewise.
29907         * lib/stdint.in.h: Likewise.
29908         * lib/string.in.h: Likewise.
29909         * lib/strings.in.h: Likewise.
29910         * lib/sys_file.in.h: Likewise.
29911         * lib/sys_ioctl.in.h: Likewise.
29912         * lib/sys_time.in.h: Likewise.
29913         * lib/sys_times.in.h: Likewise.
29914         * lib/sys_utsname.in.h: Likewise.
29915         * lib/sys_wait.in.h: Likewise.
29916         * lib/sysexits.in.h: Likewise.
29917         * lib/wctype.in.h: Likewise.
29918
29919 2010-03-28  James Youngman  <jay@gnu.org>
29920
29921         save-cwd: don't leak a file descriptor when the caller execs.
29922         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29923         saved file descriptor.
29924         * modules/save-cwd (Depends-on): Depend on cloexec.
29925
29926 2010-03-29  Bruno Haible  <bruno@clisp.org>
29927
29928         Remove vestiges of fts-lgpl module.
29929         * lib/fts_.h: Assume GNULIB_FTS is 1.
29930         * lib/fts.c: Likewise.
29931         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29932
29933 2010-03-28  Bruno Haible  <bruno@clisp.org>
29934
29935         Fix definition of tests witness macro.
29936         * gnulib-tool (func_import): Fix definition of witness macro.
29937
29938 2010-03-28  Bruno Haible  <bruno@clisp.org>
29939
29940         Fix ioctl's protoype on glibc systems.
29941         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29942         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29943         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29944         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29945         signature. If not, arrange to replace the ioctl function.
29946         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29947         REPLACE_IOCTL.
29948         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29949         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29950         Reported by Ludovic Courtès <ludo@gnu.org>.
29951
29952 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29953
29954         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29955         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29956         made it so grep -r --include=GLOB* ... did not work.
29957
29958 2010-03-26  Jim Meyering  <meyering@redhat.com>
29959             Eric Blake  <eblake@redhat.com>
29960
29961         maint.mk: prohibit use of test's -o and -a operators
29962         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29963
29964 2010-03-28  Bruno Haible  <bruno@clisp.org>
29965
29966         Remove unused GNULIB_XYZ macro definitions.
29967         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29968         invocation.
29969
29970 2010-03-28  Bruno Haible  <bruno@clisp.org>
29971
29972         Mark privileged tests modules.
29973         * modules/idpriv-drop-tests (Status): New section.
29974         * modules/idpriv-droptemp-tests (Status): New section.
29975
29976 2010-03-28  Bruno Haible  <bruno@clisp.org>
29977
29978         Split C++ tests into separate tests modules.
29979         * modules/dirent-c++-tests: New file, extracted from
29980         modules/dirent-tests.
29981         * modules/dirent-tests: Depend on it.
29982         * modules/fcntl-h-c++-tests: New file, extracted from
29983         modules/fcntl-h-tests.
29984         * modules/fcntl-h-tests: Depend on it.
29985         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29986         * modules/glob-tests: Depend on it.
29987         * modules/iconv-h-c++-tests: New file, extracted from
29988         modules/iconv-h-tests.
29989         * modules/iconv-h-tests: Depend on it.
29990         * modules/langinfo-c++-tests: New file, extracted from
29991         modules/langinfo-tests.
29992         * modules/langinfo-tests: Depend on it.
29993         * modules/locale-c++-tests: New file, extracted from
29994         modules/locale-tests.
29995         * modules/locale-tests: Depend on it.
29996         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29997         * modules/math-tests: Depend on it.
29998         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29999         * modules/pty-tests: Depend on it.
30000         * modules/search-c++-tests: New file, extracted from
30001         modules/search-tests.
30002         * modules/search-tests: Depend on it.
30003         * modules/signal-c++-tests: New file, extracted from
30004         modules/signal-tests.
30005         * modules/signal-tests: Depend on it.
30006         * modules/spawn-c++-tests: New file, extracted from
30007         modules/spawn-tests.
30008         * modules/spawn-tests: Depend on it.
30009         * modules/stdio-c++-tests: New file, extracted from
30010         modules/stdio-tests.
30011         * modules/stdio-tests: Depend on it.
30012         * modules/stdlib-c++-tests: New file, extracted from
30013         modules/stdlib-tests.
30014         * modules/stdlib-tests: Depend on it.
30015         * modules/string-c++-tests: New file, extracted from
30016         modules/string-tests.
30017         * modules/string-tests: Depend on it.
30018         * modules/sys_ioctl-c++-tests: New file, extracted from
30019         modules/sys_ioctl-tests.
30020         * modules/sys_ioctl-tests: Depend on it.
30021         * modules/sys_select-c++-tests: New file, extracted from
30022         modules/sys_select-tests.
30023         * modules/sys_select-tests: Depend on it.
30024         * modules/sys_socket-c++-tests: New file, extracted from
30025         modules/sys_socket-tests.
30026         * modules/sys_socket-tests: Depend on it.
30027         * modules/sys_stat-c++-tests: New file, extracted from
30028         modules/sys_stat-tests.
30029         * modules/sys_stat-tests: Depend on it.
30030         * modules/sys_time-c++-tests: New file, extracted from
30031         modules/sys_time-tests.
30032         * modules/sys_time-tests: Depend on it.
30033         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30034         * modules/time-tests: Depend on it.
30035         * modules/unistd-c++-tests: New file, extracted from
30036         modules/unistd-tests.
30037         * modules/unistd-tests: Depend on it.
30038         * modules/wchar-c++-tests: New file, extracted from
30039         modules/wchar-tests.
30040         * modules/wchar-tests: Depend on it.
30041         * modules/wctype-c++-tests: New file, extracted from
30042         modules/wctype-tests.
30043         * modules/wctype-tests: Depend on it.
30044         Reported by Simon Josefsson.
30045
30046 2010-03-28  Bruno Haible  <bruno@clisp.org>
30047
30048         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30049         * gnulib-tool (func_exists_module): New function, extracted from
30050         func_verify_module.
30051         (func_verify_module): Use it.
30052         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30053         'foo' only if 'foo' exists.
30054         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30055         module.
30056
30057 2010-03-28  Bruno Haible  <bruno@clisp.org>
30058
30059         gnulib-tool: Add support for special categories of tests.
30060         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30061         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30062         (func_usage): Document them.
30063         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30064         inc_unportable_tests, inc_all_tests): New variables.
30065         (func_acceptable): Consider these variables.
30066         (func_modules_transitive_closure): Make it work when the 'Status' field
30067         consists of multiple words.
30068         (func_import): Store and restore the values of inc_cxx_tests,
30069         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30070         inc_all_tests in gnulib-comp.m4.
30071         (func_create_testdir): Set inc_all_tests to true.
30072         * doc/gnulib.texi (Extra tests modules): New section.
30073         Suggested by Jim Meyering.
30074
30075 2010-03-28  Bruno Haible  <bruno@clisp.org>
30076
30077         ansi-c++-opt: Allow turning off the C++ build by default.
30078         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30079         gl_CXX_CHOICE_DEFAULT_NO is defined.
30080         Requested by Eric Blake.
30081
30082 2010-03-28  Bruno Haible  <bruno@clisp.org>
30083
30084         unistd: Avoid #define replacements in C++ mode.
30085         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30086         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30087         setsockopt, shutdown, select): In C++, attach a warning to the function
30088         if possible, rather than #defining the symbol to a dysfunctional alias.
30089         Reported by John W. Eaton <jwe@gnu.org>.
30090
30091 2010-03-28  Bruno Haible  <bruno@clisp.org>
30092
30093         Fix link errors on mingw.
30094         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30095         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30096         $(LIBSOCKET).
30097         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30098         $(LIBSOCKET).
30099
30100 2010-03-28  Bruno Haible  <bruno@clisp.org>
30101             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30102
30103         lib-ignore: Determine different options for different compilers.
30104         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30105         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30106         Add comments.
30107         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30108         * NEWS: Mention the change.
30109
30110 2010-03-27  Bruno Haible  <bruno@clisp.org>
30111
30112         Remove unused GNULIB_XYZ macro definitions.
30113         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30114         * modules/fseek (configure.ac): Likewise.
30115         * modules/ioctl (configure.ac): Likewise.
30116         * modules/open (configure.ac): Likewise.
30117         * modules/stdlib-safer (configure.ac): Likewise.
30118
30119 2010-03-27  Bruno Haible  <bruno@clisp.org>
30120
30121         Add a remark about certain modules.
30122         * modules/malloc (Comment): New section.
30123         * modules/realloc (Comment): Likewise.
30124         * modules/sigpipe (Comment): Likewise.
30125
30126 2010-03-27  Bruno Haible  <bruno@clisp.org>
30127
30128         Resolve conflict between the two kinds of module indicators.
30129         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30130         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30131         * modules/canonicalize (configure.ac): Invoke
30132         gl_MODULE_INDICATOR_FOR_TESTS.
30133         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30134         GNULIB_XYZ.
30135         * tests/test-dirent-c++.cc: Likewise.
30136         * tests/test-dirent-safer.c: Likewise.
30137         * tests/test-dup2.c: Likewise.
30138         * tests/test-fchdir.c: Likewise.
30139         * tests/test-fcntl-h-c++.cc: Likewise.
30140         * tests/test-getopt.c: Likewise.
30141         * tests/test-getopt.h: Likewise.
30142         * tests/test-langinfo-c++.cc: Likewise.
30143         * tests/test-locale-c++.cc: Likewise.
30144         * tests/test-math-c++.cc: Likewise.
30145         * tests/test-pty-c++.cc: Likewise.
30146         * tests/test-search-c++.cc: Likewise.
30147         * tests/test-signal-c++.cc: Likewise.
30148         * tests/test-spawn-c++.cc: Likewise.
30149         * tests/test-stdio-c++.cc: Likewise.
30150         * tests/test-stdlib-c++.cc: Likewise.
30151         * tests/test-string-c++.cc: Likewise.
30152         * tests/test-sys_ioctl-c++.cc: Likewise.
30153         * tests/test-sys_select-c++.cc: Likewise.
30154         * tests/test-sys_socket-c++.cc: Likewise.
30155         * tests/test-sys_stat-c++.cc: Likewise.
30156         * tests/test-sys_time-c++.cc: Likewise.
30157         * tests/test-time-c++.cc: Likewise.
30158         * tests/test-unistd-c++.cc: Likewise.
30159         * tests/test-wchar-c++.cc: Likewise.
30160         * tests/uninorm/test-u8-nfc.c: Likewise.
30161         * tests/uninorm/test-u8-nfd.c: Likewise.
30162         * tests/uninorm/test-u8-nfkc.c: Likewise.
30163         * tests/uninorm/test-u8-nfkd.c: Likewise.
30164         * tests/uninorm/test-u16-nfc.c: Likewise.
30165         * tests/uninorm/test-u16-nfd.c: Likewise.
30166         * tests/uninorm/test-u16-nfkc.c: Likewise.
30167         * tests/uninorm/test-u16-nfkd.c: Likewise.
30168         * tests/uninorm/test-u32-nfc.c: Likewise.
30169         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30170         * tests/uninorm/test-u32-nfd.c: Likewise.
30171         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30172         * tests/uninorm/test-u32-nfkc.c: Likewise.
30173         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30174         * tests/uninorm/test-u32-nfkd.c: Likewise.
30175         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30176         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30177
30178 2010-03-27  Bruno Haible  <bruno@clisp.org>
30179
30180         Distinguish two kinds of module indicators.
30181         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30182         gl_MODULE_INDICATOR.
30183         (gl_MODULE_INDICATOR): New macro.
30184         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30185         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30186         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30187         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30188         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30189         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30190         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30191         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30192         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30193         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30194         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30195         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30197         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30198         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30199         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30200         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30201         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30202         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30203         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30204         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30205         * modules/cloexec (configure.ac): Likewise.
30206         * modules/getopt-gnu (configure.ac): Likewise.
30207         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30208         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30209         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30210         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30211
30212 2010-03-27  Bruno Haible  <bruno@clisp.org>
30213
30214         New module description field 'Comment'.
30215         * gnulib-tool: New option --extract-comment.
30216         (func_usage): Document it.
30217         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30218         (func_get_comment): New function.
30219         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30220
30221 2010-03-27  Bruno Haible  <bruno@clisp.org>
30222
30223         Addendum to 2010-02-07 commit.
30224         * gnulib-tool (func_usage): Document --extract-applicability option.
30225
30226 2010-03-27  Bruno Haible  <bruno@clisp.org>
30227
30228         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30229         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30230         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30231         rather than link errors.
30232
30233 2010-03-27  Bruno Haible  <bruno@clisp.org>
30234
30235         Avoid side effects from tests-related modules on the compilation of lib.
30236         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30237         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30238         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30239         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30240         macro.
30241         (func_import): Define a witness macro. Assign it a value that depends
30242         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30243         tests-related modules.
30244         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30245         Reported by Jim Meyering.
30246
30247 2010-03-27  Bruno Haible  <bruno@clisp.org>
30248
30249         Factorize common .m4 code.
30250         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30251         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30252         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30253         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30254         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30255         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30256         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30257         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30258         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30259         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30260         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30261         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30262         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30263         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30264         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30265         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30266         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30267         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30269         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30270         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30271         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30272         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30273         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30274         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30275         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30276         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30277         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30278         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30279         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30280         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30281         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30282
30283 2010-03-27  Bruno Haible  <bruno@clisp.org>
30284
30285         Fix a compilation error on Cygwin with g++ >= 4.3.
30286         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30287         if it is undefined or if we alias it to chmod.
30288         (lstat): Don't warn about the use of this function if it is undefined
30289         or if we alias it to stat.
30290         Reported by Simon Josefsson.
30291
30292 2010-03-27  Bruno Haible  <bruno@clisp.org>
30293
30294         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30295         * modules/getlogin (configure.ac): Update.
30296
30297         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30298         * modules/getlogin_r (configure.ac): Update.
30299
30300         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30302         * modules/inet_ntop (configure.ac): Update.
30303
30304         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30305         * modules/inet_pton (configure.ac): Update.
30306
30307         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30308         * modules/mbslen (configure.ac): Update.
30309
30310         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30311         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30312         * modules/forkpty (configure.ac): Update.
30313         * modules/openpty (configure.ac): Update.
30314
30315 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30316
30317         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30318         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30319
30320 2010-03-25  Eric Blake  <eblake@redhat.com>
30321
30322         maint: use pragma consistently across replacement headers
30323         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30324         * lib/dirent.in.h (system_header): Likewise.
30325         * lib/errno.in.h (system_header): Likewise.
30326         * lib/float.in.h (system_header): Likewise.
30327         * lib/getopt.in.h (system_header): Likewise.
30328         * lib/iconv.in.h (system_header): Likewise.
30329         * lib/inttypes.in.h (system_header): Likewise.
30330         * lib/langinfo.in.h (system_header): Likewise.
30331         * lib/locale.in.h (system_header): Likewise.
30332         * lib/math.in.h (system_header): Likewise.
30333         * lib/netdb.in.h (system_header): Likewise.
30334         * lib/netinet_in.in.h (system_header): Likewise.
30335         * lib/pty.in.h (system_header): Likewise.
30336         * lib/sched.in.h (system_header): Likewise.
30337         * lib/se-selinux.in.h (system_header): Likewise.
30338         * lib/search.in.h (system_header): Likewise.
30339         * lib/spawn.in.h (system_header): Likewise.
30340         * lib/stdarg.in.h (system_header): Likewise.
30341         * lib/stdint.in.h (system_header): Likewise.
30342         * lib/string.in.h (system_header): Likewise.
30343         * lib/strings.in.h (system_header): Likewise.
30344         * lib/sys_file.in.h (system_header): Likewise.
30345         * lib/sys_ioctl.in.h (system_header): Likewise.
30346         * lib/sys_socket.in.h (system_header): Likewise.
30347         * lib/sys_times.in.h (system_header): Likewise.
30348         * lib/sys_utsname.in.h (system_header): Likewise.
30349         * lib/sys_wait.in.h (system_header): Likewise.
30350         * lib/sysexits.in.h (system_header): Likewise.
30351         * lib/unistd.in.h (system_header): Likewise.
30352         * lib/wctype.in.h (system_header): Likewise.
30353
30354         arpa/inet: fix mingw compilation warning
30355         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30356         Reported by Matthew Bolte.
30357
30358 2010-03-25  Bruno Haible  <bruno@clisp.org>
30359
30360         Avoid collision between gnulib wrapper and libintl wrapper.
30361         * lib/printf.c (printf): Don't define if a printf wrapper is already
30362         defined in intl/printf.c.
30363         Reported by Michel Boaventura <michel@michelboaventura.com>.
30364
30365 2010-03-25  Bruno Haible  <bruno@clisp.org>
30366
30367         Use ANSI C.
30368         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30369
30370 2010-03-25  Bruno Haible  <bruno@clisp.org>
30371
30372         Minor formatting changes.
30373         * lib/acosl.c: Insert space before function argument list.
30374         * lib/argz.c: Likewise.
30375         * lib/asinl.c: Likewise.
30376         * lib/expl.c: Likewise.
30377         * lib/gen-uni-tables.c: Likewise.
30378         * lib/gettext.h: Likewise.
30379         * lib/glthread/lock.h: Likewise.
30380         * lib/tanl.c: Likewise.
30381         * lib/uniname/uniname.c: Likewise.
30382         * tests/test-idpriv-drop.c: Likewise.
30383         * tests/test-idpriv-droptemp.c: Likewise.
30384         * tests/test-lock.c: Likewise.
30385         * tests/test-tls.c: Likewise.
30386         * lib/argp-help.c: Insert space before function-like macro argument
30387         list.
30388         * lib/memcmp.c: Likewise.
30389         * tests/test-base64.c: Likewise.
30390         * lib/localename.c: Insert space before sizeof's argument list.
30391         * lib/safe-alloc.h: Likewise.
30392         * lib/file-set.h: Insert space before macro argument list.
30393         * tests/test-argp.c: Likewise.
30394         * lib/argp-namefrob.h: Insert space before function parameter list.
30395         * lib/getaddrinfo.c: Likewise.
30396         * lib/netdb.in.h: Likewise.
30397         * lib/parse-duration.h: Likewise.
30398         * lib/parse-duration.c: Likewise.
30399         * lib/poll.c: Likewise.
30400         * lib/select.c: Likewise.
30401         * lib/trim.h: Likewise.
30402         * tests/test-usleep.c: Likewise.
30403         * lib/ldexpl.c: Insert space before function parameter list and before
30404         function argument list.
30405         * lib/logl.c: Likewise.
30406         * lib/sqrtl.c: Likewise.
30407         * lib/trim.c: Likewise.
30408         * lib/cosl.c: Use GNU style indentation. Insert space before function
30409         argument list.
30410         * lib/sinl.c: Likewise.
30411         * lib/tsearch.c: Insert space after 'for'.
30412         Reported by Jim Meyering.
30413
30414 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30415
30416         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30417         config header before grepping, as it's not present before
30418         autoreconf/configure are run.  Reported by Simon Josefsson.
30419
30420 2010-03-23  Bruno Haible  <bruno@clisp.org>
30421
30422         pt_chown: Make it work with automake < 1.11.
30423         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30424         Reported by Simon Josefsson.
30425
30426 2010-03-23  Bruno Haible  <bruno@clisp.org>
30427
30428         pt_chown: Don't depend on GPLed modules.
30429         * lib/pt_chown.c: Don't include idpriv.h.
30430         (main): Don't drop privileges.
30431         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30432         Reported by Simon Josefsson.
30433
30434 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30435
30436         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30437         suggestions from karl@freefriends.org (Karl Berry).
30438
30439 2010-03-22  Eric Blake  <eblake@redhat.com>
30440
30441         gethostname: further tweaks
30442         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30443         are overriding gethostname.
30444         Suggested by Bruno Haible.
30445
30446 2010-03-21  Bruno Haible  <bruno@clisp.org>
30447
30448         Fix comments.
30449         * lib/forkpty.c (rpl_forkpty): Fix comment.
30450         * lib/openpty.c (rpl_openpty): Likewise.
30451         Reported by Eric Blake.
30452
30453 2010-03-22  Eric Blake  <eblake@redhat.com>
30454
30455         gethostname: fix build on mingw
30456         * lib/unistd.in.h (includes): Work around fact that mingw
30457         <winsock2.h> re-includes <unistd.h>, by avoiding any
30458         redeclarations if we are being included by <winsock2.h>.
30459         Reported by Matthias Bolte.
30460
30461 2010-03-21  Bruno Haible  <bruno@clisp.org>
30462
30463         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30464         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30465         modifications.
30466         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30467         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30468         provide the replacement.
30469         * modules/forkpty (Depends-on): Add openpty, login_tty.
30470         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30471         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30472         * doc/glibc-functions/forkpty.texi: More supported platforms.
30473         * config/srclist.txt: Add forkpty.c (commented).
30474
30475 2010-03-21  Bruno Haible  <bruno@clisp.org>
30476
30477         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30478         (Makefile.am): Verify that PTY_LIB is defined.
30479
30480         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30481
30482 2010-03-21  Bruno Haible  <bruno@clisp.org>
30483
30484         Tests for module 'login_tty'.
30485         * modules/login_tty-tests: New file.
30486         * tests/test-login_tty.c: New file.
30487
30488         New module 'login_tty'.
30489         * lib/login_tty.c: New file.
30490         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30491         * modules/login_tty: New file.
30492         * doc/glibc-functions/login_tty.texi: Mention the new module.
30493
30494 2010-03-21  Bruno Haible  <bruno@clisp.org>
30495
30496         login_tty: Documentation.
30497         * doc/glibc-functions/login_tty.texi: New file.
30498         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30499
30500 2010-03-21  Bruno Haible  <bruno@clisp.org>
30501
30502         pty: Consistent macro naming.
30503         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30504         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30505         * modules/pty (configure.ac): Update.
30506
30507 2010-03-21  Bruno Haible  <bruno@clisp.org>
30508
30509         Tests for openpty: Make stricter.
30510         * tests/test-openpty.c (main): Add test of canonical processing and
30511         erase.
30512         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30513
30514         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30515         * lib/openpty.c (openpty): New replacement function.
30516         * lib/pty.in.h: Include <termios.h>.
30517         (openpty): Update declaration. Add comments.
30518         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30519         is not declared, arrange to provide the replacement. Check for _getpty
30520         and posix_openpt.
30521         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30522         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30523         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30524         * modules/pty-tests (test_pty_c___LDADD): New variable.
30525         * doc/glibc-functions/openpty.texi: More supported platforms.
30526
30527 2010-03-21  Bruno Haible  <bruno@clisp.org>
30528
30529         setenv: Tweaks.
30530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30531         the test program.
30532         * doc/posix-functions/setenv.texi: Update platforms list.
30533
30534 2010-03-21  Bruno Haible  <bruno@clisp.org>
30535
30536         New module 'unlockpt'.
30537         * lib/unlockpt.c: New file, from glibc with modifications.
30538         * m4/unlockpt.m4: New file.
30539         * modules/unlockpt: New file.
30540         * lib/stdlib.in.h (unlockpt): New declaration.
30541         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30542         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30543         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30544         HAVE_UNLOCKPT.
30545         * doc/posix-functions/unlockpt.texi: Mention the new module.
30546         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30547         * config/srclist.txt: Add unlockpt.c (commented).
30548
30549 2010-03-21  Jim Meyering  <meyering@redhat.com>
30550
30551         maint.mk: prohibit inclusion of "intprops.h" without use
30552         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30553
30554 2010-03-21  Bruno Haible  <bruno@clisp.org>
30555
30556         New module 'grantpt'.
30557         * lib/grantpt.c: New file, from glibc with modifications.
30558         * m4/grantpt.m4: New file.
30559         * modules/grantpt: New file.
30560         * lib/stdlib.in.h (grantpt): New declaration.
30561         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30562         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30563         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30564         HAVE_GRANTPT.
30565         * doc/posix-functions/grantpt.texi: Mention the new module.
30566         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30567         * config/srclist.txt: Add grantpt.c (commented).
30568
30569 2010-03-21  Bruno Haible  <bruno@clisp.org>
30570
30571         New module 'pt_chown'.
30572         * lib/pt_chown.c: New file, from glibc with modifications.
30573         * lib/pty-private.h: New file, from glibc with modifications.
30574         * modules/pt_chown: New file.
30575         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30576
30577 2010-03-21  Bruno Haible  <bruno@clisp.org>
30578
30579         Tests for module 'ptsname'.
30580         * modules/ptsname-tests: New file.
30581         * tests/test-ptsname.c: New file.
30582
30583         New module 'ptsname'.
30584         * lib/ptsname.c: New file, from glibc with modifications.
30585         * m4/ptsname.m4: New file.
30586         * modules/ptsname: New file.
30587         * lib/stdlib.in.h (ptsname): New declaration.
30588         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30589         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30590         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30591         HAVE_PTSNAME.
30592         * doc/posix-functions/ptsname.texi: Mention the new module.
30593         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30594         * config/srclist.txt: Add ptsname.c (commented).
30595
30596 2010-03-21  Bruno Haible  <bruno@clisp.org>
30597
30598         Tests for module 'ttyname_r'.
30599         * modules/ttyname_r-tests: New file.
30600         * tests/test-ttyname_r.c: New file.
30601
30602         New module 'ttyname_r'.
30603         * lib/ttyname_r.c: New file.
30604         * m4/ttyname_r.m4: New file.
30605         * modules/ttyname_r: New file.
30606         * lib/unistd.in.h (ttyname_r): New declaration.
30607         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30608         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30609         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30610         HAVE_TTYNAME_R.
30611         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30612         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30613
30614 2010-03-20  Bruno Haible  <bruno@clisp.org>
30615
30616         signal: Undefine macro definitions in C++ mode.
30617         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30618         sigfillset): Undefine macro definitions from the system header in C++
30619         mode.
30620         Reported by John W. Eaton <jwe@gnu.org>.
30621
30622 2010-03-20  Bruno Haible  <bruno@clisp.org>
30623
30624         Ensure no #include statements inside extern "C" { ... }.
30625         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30626         contain #include statements.
30627         * lib/time.in.h: Likewise.
30628
30629 2010-03-20  Bruno Haible  <bruno@clisp.org>
30630
30631         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30632         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30633         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30634         Reported by John W. Eaton <jwe@gnu.org>.
30635
30636 2010-03-20  Bruno Haible  <bruno@clisp.org>
30637
30638         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30639         Reported by Jim Meyering.
30640
30641 2010-03-20  Bruno Haible  <bruno@clisp.org>
30642
30643         pipe: Set errno upon failure.
30644         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30645         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30646         errno value in error message.
30647
30648 2010-03-20  Bruno Haible  <bruno@clisp.org>
30649             Jim Meyering  <meyering@redhat.com>
30650
30651         lchown: Avoid "unused variable" warning.
30652         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30653
30654 2010-03-20  Bruno Haible  <bruno@clisp.org>
30655
30656         Work around unlink() bug on MacOS X 10.5.6.
30657         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30658         attempting to unlink a parent directory.
30659         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30660         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30661         activate for the replacement function.
30662         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30663
30664 2010-03-20  Bruno Haible  <bruno@clisp.org>
30665
30666         Fix link errors on Solaris 8.
30667         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30668         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30669
30670 2010-03-19  Jim Meyering  <meyering@redhat.com>
30671
30672         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30673         The _LIBC implementation of build_range_exp correctly honors the
30674         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30675         However, the non-_LIBC implementation would ignore that syntax-bit
30676         flag and return REG_ERANGE unconditionally.
30677         This change makes it honor that flag.
30678         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30679         Make two pointer parameters "const".
30680         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30681         (parse_bracket_exp): Update caller.
30682
30683         regex.m4: correct the reversed range endpoint ([b-a]) test
30684         * m4/regex.m4: When requiring that [b-a] evoke failure,
30685         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30686         test pass once again for x86-based systems.
30687
30688 2010-03-19  Bruno Haible  <bruno@clisp.org>
30689
30690         scandir: Fix link error on Solaris 8.
30691         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30692         macros.
30693
30694 2010-03-19  Bruno Haible  <bruno@clisp.org>
30695
30696         getusershell: Fix documentation.
30697         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30698         module.
30699         * doc/glibc-functions/setusershell.texi: Likewise.
30700
30701         getusershell: Provide declaration, missing on Solaris 9.
30702         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30703         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30704         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30705         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30707         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30708         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30709         HAVE_GETUSERSHELL.
30710         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30711
30712 2010-03-19  Bruno Haible  <bruno@clisp.org>
30713
30714         wctype: Provide iswblank function.
30715         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30716         exists and is fine.
30717         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30718         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30719         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30720         * doc/posix-functions/iswblank.texi: Update.
30721
30722 2010-03-19  Bruno Haible  <bruno@clisp.org>
30723
30724         Tests of module 'pty' in C++ mode.
30725         * modules/pty-tests: New file.
30726         * tests/test-pty-c++.cc: New file.
30727         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30728
30729 2010-03-19  Eric Blake  <eblake@redhat.com>
30730
30731         logb: fix documentation
30732         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30733         1.5 declaration bug.
30734
30735         forkpty, openpty: prefer glibc's const-safe prototype
30736         * lib/forkpty.c (rpl_forkpty): New file.
30737         * lib/openpty.c (rpl_openpty): Likewise.
30738         * modules/forkpty (Files): Distribute it.
30739         * modules/openpty (Files): Likewise.
30740         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30741         check...
30742         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30743         replacement for for non-const BSD signature.
30744         * modules/pty (Makefile.am): Substitute witnesses.
30745         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30746         * tests/test-forkpty.c: Update signature check.
30747         * tests/test-openpty.c: Likewise.
30748         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30749         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30750
30751         forkpty, openpty: split functions into new modules
30752         * modules/pty (Makefile.am): Substitute new witnesses.
30753         (Libraries): Move library detection...
30754         * modules/forkpty: ...into new module.
30755         * modules/openpty: Another new module.
30756         * modules/pty-tests: Rename and split...
30757         * modules/forkpty-tests: ...to this...
30758         * modules/openpty-tests: ...and this.
30759         * tests/test-pty.c: Rename and split...
30760         * tests/test-forkpty.c: ...to this...
30761         * tests/test-openpty.c: ...and this.
30762         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30763         (gl_PTY): Split library searching...
30764         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30765         (gl_FORKPTY, gl_OPENPTY): New macros.
30766         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30767         * NEWS: Mention the split.
30768         * MODULES.html.sh (Misc): Document the modules.
30769         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30770         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30771
30772         pty: improve replacement header
30773         * lib/pty.in.h: New file.
30774         * modules/pty (Files): Ship it.
30775         (Makefile.am): Always build replacement.
30776         * m4/pty.m4: Rename...
30777         * m4/pty_h.m4: ...to this.
30778         (gl_PTY): Modernize setting of witness macros; update check of
30779         forkpty to take proper advantage of cache.
30780         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30781
30782         getopt: avoid compiler warning
30783         * lib/getopt.c (attribute_hidden): Remove unused macro.
30784
30785 2010-03-18  Bruno Haible  <bruno@clisp.org>
30786
30787         Fix link errors on Solaris 8.
30788         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30789         * modules/search-tests (test_search_c___LDADD): Likewise.
30790         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30791         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30792         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30793         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30794         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30795         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30796         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30797
30798 2010-03-18  Bruno Haible  <bruno@clisp.org>
30799
30800         Fix bug introduced on 2010-03-14.
30801         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30802         (gl_SPAWN_H): Require it.
30803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30804         Reported by Simon Josefsson.
30805
30806 2010-03-18  Bruno Haible  <bruno@clisp.org>
30807
30808         Fix typo introduced on 2009-12-31.
30809         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30810         posix_spawn_file_actions_adddup2.
30811
30812 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30813         and Eric Blake  <eblake@redhat.com>
30814
30815         test-vc-list-files-git: make more robust
30816         * tests/test-vc-list-files-git.sh: Unset problematic environment
30817         variables.  Chain commands together.
30818
30819 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30820
30821         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30822         `AC_CHECK_DECL' invocation.
30823
30824 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30825
30826         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30827         appears before executable statements. Suggested by Petr Sumbera
30828         <Petr.Sumbera@Sun.COM>.
30829
30830 2010-03-14  Bruno Haible  <bruno@clisp.org>
30831
30832         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30833         portability problems. Instead use a simpler test.
30834         (main): Check that invalid arguments are rejected only on Linux.
30835
30836 2010-03-14  Bruno Haible  <bruno@clisp.org>
30837
30838         Fix bug introduced on 2009-12-31.
30839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30840         gl_PREREQ_SYS_H_WINSOCK2 always.
30841         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30842         SYS_SOCKET_H variable.
30843         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30844         Update comments.
30845         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30846         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30847         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30848         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30849         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30850
30851 2010-03-14  Bruno Haible  <bruno@clisp.org>
30852
30853         Fix values returned by sinl, cosl.
30854         * lib/trigl.h: Add specification comments.
30855         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30856         that combines the values from the precomputed table with the values of
30857         the Chebyshev polynomials.
30858
30859 2010-03-14  Bruno Haible  <bruno@clisp.org>
30860
30861         Fix compilation error when modules 'posix_spawn[p]' are not used.
30862         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30864
30865 2010-03-14  Bruno Haible  <bruno@clisp.org>
30866
30867         Fix compilation error on mingw when module 'time_r' is not used.
30868         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30869         is 1.
30870         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30871         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30872         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30873         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30874
30875 2010-03-14  Bruno Haible  <bruno@clisp.org>
30876
30877         Fix compilation error with Sun C.
30878         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30879         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30880         instead of GCC specific ULONG_LONG_MAX.
30881         * lib/xstrtoll.c: Likewise.
30882         * lib/xstrtoull.c: Likewise.
30883
30884 2010-03-13  Bruno Haible  <bruno@clisp.org>
30885
30886         Allow the user to disable C++ code and tests.
30887         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30888         (gl_PROG_ANSI_CXX): Require it.
30889
30890 2010-03-13  Bruno Haible  <bruno@clisp.org>
30891
30892         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30893         cases.
30894
30895 2010-03-13  Bruno Haible  <bruno@clisp.org>
30896
30897         Test that gnulib does not break the standard C++ headers.
30898         * tests/test-locale-c++2.cc: New file.
30899         * modules/locale-tests (Files): Add it.
30900         (Makefile.am): Compile it for test-locale-c++.
30901         * tests/test-math-c++2.cc: New file.
30902         * modules/math-tests (Files): Add it.
30903         (Makefile.am): Compile it for test-math-c++.
30904         * tests/test-signal-c++2.cc: New file.
30905         * modules/signal-tests (Files): Add it.
30906         (Makefile.am): Compile it for test-signal-c++.
30907         * tests/test-stdio-c++2.cc: New file.
30908         * modules/stdio-tests (Files): Add it.
30909         (Makefile.am): Compile it for test-stdio-c++.
30910         * tests/test-stdlib-c++2.cc: New file.
30911         * modules/stdlib-tests (Files): Add it.
30912         (Makefile.am): Compile it for test-stdlib-c++.
30913         * tests/test-string-c++2.cc: New file.
30914         * modules/string-tests (Files): Add it.
30915         (Makefile.am): Compile it for test-string-c++.
30916         * tests/test-time-c++2.cc: New file.
30917         * modules/time-tests (Files): Add it.
30918         (Makefile.am): Compile it for test-time-c++.
30919         Reported by John W. Eaton <jwe@gnu.org>.
30920
30921 2010-03-13  Bruno Haible  <bruno@clisp.org>
30922
30923         * gnulib-tool (func_usage): Clarify which options are available for
30924         --create-testdir and --create-megatestdir.
30925
30926 2010-03-13  Bruno Haible  <bruno@clisp.org>
30927
30928         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30929         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30930         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30931         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30932         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30933         when appropriate.
30934         Reported by Jim Meyering.
30935
30936 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30937
30938         * gnulib-tool (func_import): Explain origin of code.
30939
30940 2010-03-12  Bruno Haible  <bruno@clisp.org>
30941
30942         Fix problem with automake's definition of CXXLINK.
30943         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30944         Reported by Simon Josefsson and Ludovic Courtès.
30945
30946 2010-03-12  Bruno Haible  <bruno@clisp.org>
30947
30948         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30949         stable releases.
30950
30951 2010-03-11  Bruno Haible  <bruno@clisp.org>
30952
30953         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30954         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30955         whether the system provides one variant or multiple variants of the
30956         function.
30957         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30958         C++ compilers.
30959         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30960         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30961         Reported by Jim Meyering.
30962
30963 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30964
30965         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30966
30967 2010-03-08  Bruno Haible  <bruno@clisp.org>
30968
30969         gnulib-tool: Add support for --libtool in --create-testdir.
30970         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30971         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30972
30973 2010-03-08  Eric Blake  <eblake@redhat.com>
30974
30975         gnulib-tool.texi: mention possibility of git submodule
30976         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30977         submodules.
30978         * doc/.gitignore: Ignore another generated file.
30979
30980 2010-03-08  Karl Berry  <karl@gnu.org>
30981
30982         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30983         of committing gnulib files while skipping others.
30984
30985 2010-03-07  Bruno Haible  <bruno@clisp.org>
30986
30987         Tests of module 'wctype' in C++ mode.
30988         * tests/test-wctype-c++.cc: New file.
30989         * modules/wctype-tests (Files): Add it and tests/signature.h.
30990         (Depends-on): Add ansi-c++-opt.
30991         (Makefile.am): Arrange to compile and run test-wctype-c++.
30992
30993         Tests of module 'wchar' in C++ mode.
30994         * tests/test-wchar-c++.cc: New file.
30995         * modules/wchar-tests (Files): Add it and tests/signature.h.
30996         (Depends-on): Add ansi-c++-opt.
30997         (Makefile.am): Arrange to compile and run test-wchar-c++.
30998         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30999         gl_MODULE_INDICATOR.
31000
31001         Tests of module 'unistd' in C++ mode.
31002         * tests/test-unistd-c++.cc: New file.
31003         * modules/unistd-tests (Files): Add it and tests/signature.h.
31004         (Depends-on): Add ansi-c++-opt.
31005         (Makefile.am): Arrange to compile and run test-unistd-c++.
31006         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31007         gl_MODULE_INDICATOR.
31008
31009         Tests of module 'time' in C++ mode.
31010         * tests/test-time-c++.cc: New file.
31011         * modules/time-tests (Files): Add it and tests/signature.h.
31012         (Depends-on): Add ansi-c++-opt.
31013         (Makefile.am): Arrange to compile and run test-time-c++.
31014         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31015
31016         Tests of module 'sys_time' in C++ mode.
31017         * tests/test-sys_time-c++.cc: New file.
31018         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31019         (Depends-on): Add ansi-c++-opt.
31020         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31021         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31022         gl_MODULE_INDICATOR.
31023
31024         Tests of module 'sys_stat' in C++ mode.
31025         * tests/test-sys_stat-c++.cc: New file.
31026         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31027         (Depends-on): Add ansi-c++-opt.
31028         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31029         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31030         gl_MODULE_INDICATOR.
31031
31032         Tests of module 'sys_socket' in C++ mode.
31033         * tests/test-sys_socket-c++.cc: New file.
31034         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31035         (Depends-on): Add ansi-c++-opt.
31036         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31037         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31038         gl_MODULE_INDICATOR.
31039
31040         Tests of module 'sys_select' in C++ mode.
31041         * tests/test-sys_select-c++.cc: New file.
31042         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31043         (Depends-on): Add ansi-c++-opt.
31044         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31045         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31046         gl_MODULE_INDICATOR.
31047
31048         Tests of module 'sys_ioctl' in C++ mode.
31049         * tests/test-sys_ioctl-c++.cc: New file.
31050         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31051         (Depends-on): Add ansi-c++-opt.
31052         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31053         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31054         gl_MODULE_INDICATOR.
31055
31056         Tests of module 'string' in C++ mode.
31057         * tests/test-string-c++.cc: New file.
31058         * modules/string-tests (Files): Add it and tests/signature.h.
31059         (Depends-on): Add ansi-c++-opt.
31060         (Makefile.am): Arrange to compile and run test-string-c++.
31061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31062         gl_MODULE_INDICATOR.
31063
31064         Tests of module 'stdlib' in C++ mode.
31065         * tests/test-stdlib-c++.cc: New file.
31066         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31067         (Depends-on): Add ansi-c++-opt.
31068         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31069         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31070         gl_MODULE_INDICATOR.
31071
31072         Tests of module 'stdio' in C++ mode.
31073         * tests/test-stdio-c++.cc: New file.
31074         * modules/stdio-tests (Files): Add it and tests/signature.h.
31075         (Depends-on): Add ansi-c++-opt.
31076         (Makefile.am): Arrange to compile and run test-stdio-c++.
31077         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31078         gl_MODULE_INDICATOR.
31079
31080         Tests of module 'spawn' in C++ mode.
31081         * tests/test-spawn-c++.cc: New file.
31082         * modules/spawn-tests (Files): Add it and tests/signature.h.
31083         (Depends-on): Add ansi-c++-opt.
31084         (Makefile.am): Arrange to compile and run test-spawn-c++.
31085         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31086         gl_MODULE_INDICATOR.
31087
31088         Tests of module 'signal' in C++ mode.
31089         * tests/test-signal-c++.cc: New file.
31090         * modules/signal-tests (Files): Add it and tests/signature.h.
31091         (Depends-on): Add ansi-c++-opt.
31092         (Makefile.am): Arrange to compile and run test-signal-c++.
31093         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31094         gl_MODULE_INDICATOR.
31095
31096         Tests of module 'search' in C++ mode.
31097         * tests/test-search-c++.cc: New file.
31098         * modules/search-tests (Files): Add it and tests/signature.h.
31099         (Depends-on): Add ansi-c++-opt.
31100         (Makefile.am): Arrange to compile and run test-search-c++.
31101         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31102         gl_MODULE_INDICATOR.
31103
31104         Tests of module 'math' in C++ mode.
31105         * tests/test-math-c++.cc: New file.
31106         * modules/math-tests (Files): Add it and tests/signature.h.
31107         (Depends-on): Add ansi-c++-opt.
31108         (Makefile.am): Arrange to compile and run test-math-c++.
31109         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31110
31111         Tests of module 'locale' in C++ mode.
31112         * tests/test-locale-c++.cc: New file.
31113         * modules/locale-tests (Files): Add it and tests/signature.h.
31114         (Depends-on): Add ansi-c++-opt.
31115         (Makefile.am): Arrange to compile and run test-locale-c++.
31116         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31117         gl_MODULE_INDICATOR.
31118
31119         Tests of module 'langinfo' in C++ mode.
31120         * tests/test-langinfo-c++.cc: New file.
31121         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31122         (Depends-on): Add ansi-c++-opt.
31123         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31124         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31125         gl_MODULE_INDICATOR.
31126
31127         Tests of module 'iconv-h' in C++ mode.
31128         * tests/test-iconv-h-c++.cc: New file.
31129         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31130         (Depends-on): Add ansi-c++-opt.
31131         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31132
31133         Tests of module 'glob' in C++ mode.
31134         * tests/test-glob-c++.cc: New file.
31135         * modules/glob-tests (Files): Add it.
31136         (Depends-on): Add ansi-c++-opt.
31137         (Makefile.am): Arrange to compile and run test-glob-c++.
31138
31139         Tests of module 'fcntl-h' in C++ mode.
31140         * tests/test-fcntl-h-c++.cc: New file.
31141         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31142         (Depends-on): Add ansi-c++-opt.
31143         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31144         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31145         gl_MODULE_INDICATOR.
31146
31147         Tests of module 'dirent' in C++ mode.
31148         * tests/test-dirent-c++.cc: New file.
31149         * modules/dirent-tests (Files): Add it and tests/signature.h.
31150         (Depends-on): Add ansi-c++-opt.
31151         (Makefile.am): Arrange to compile and run test-dirent-c++.
31152         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31153         gl_MODULE_INDICATOR.
31154
31155         New module 'ansi-c++-opt'.
31156         * modules/ansi-c++-opt: New file.
31157         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31158
31159         Document C++ namespace mode.
31160         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31161
31162         wctype: Avoid #define replacements in C++ mode.
31163         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31164         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31165         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31166         In C++, define a namespaced alias symbol.
31167         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31168         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31169         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31170         rule.
31171
31172         wchar: Avoid #define replacements in C++ mode.
31173         * lib/wchar.in.h: Include c++defs.h.
31174         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31175         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31176         symbol.
31177         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31178         * modules/wchar (Depends-on): Add c++defs.
31179         (Makefile.am): Update wchar.h rule.
31180
31181         unistd: Avoid #define replacements in C++ mode.
31182         * lib/unistd.in.h: Include c++defs.h.
31183         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31184         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31185         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31186         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31187         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31188         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31189         symbol.
31190         (environ): Update.
31191         * modules/unistd (Depends-on): Add c++defs.
31192         (Makefile.am): Update unistd.h rule.
31193
31194         time: Avoid #define replacements in C++ mode.
31195         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31196         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31197         define a namespaced alias symbol.
31198         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31199         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31200         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31201         * modules/time (Depends-on): Add c++defs, warn-on-use.
31202         (Makefile.am): Update time.h rule.
31203         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31204         * modules/nanosleep (configure.ac): Likewise.
31205         * modules/strptime (configure.ac): Likewise.
31206         * modules/timegm (configure.ac): Likewise.
31207
31208         sys_time: Avoid #define replacements in C++ mode.
31209         * lib/sys_time.in.h: Include c++defs.h.
31210         (gettimeofday): In C++, define a namespaced alias symbol.
31211         * modules/sys_time (Depends-on): Add c++defs.
31212         (Makefile.am): Update sys/time.h rule.
31213
31214         sys_stat: Avoid #define replacements in C++ mode.
31215         * lib/sys_stat.in.h: Include c++defs.h.
31216         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31217         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31218         namespaced alias symbol.
31219         In C++, define a namespaced alias symbol.
31220         * modules/sys_stat (Depends-on): Add c++defs.
31221         (Makefile.am): Update sys/stat.h rule.
31222
31223         sys_socket: Avoid #define replacements in C++ mode.
31224         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31225         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31226         definitions also when the system has a <sys/socket.h>.
31227         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31228         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31229         In C++, define a namespaced alias symbol.
31230         * modules/sys_socket (Depends-on): Add c++defs.
31231         (Makefile.am): Update sys/socket.h rule.
31232
31233         sys_select: Avoid #define replacements in C++ mode.
31234         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31235         definitions also when the system has a <sys/select.h>.
31236         (select): In C++, define a namespaced alias symbol.
31237         * modules/sys_select (Depends-on): Add c++defs.
31238         (Makefile.am): Update sys/select.h rule.
31239
31240         sys_ioctl: Avoid #define replacements in C++ mode.
31241         * lib/sys_ioctl.in.h: Include c++defs.h.
31242         (ioctl): In C++, define a namespaced alias symbol.
31243         * modules/sys_ioctl (Depends-on): Add c++defs.
31244         (Makefile.am): Update sys/ioctl.h rule.
31245
31246         string: Avoid #define replacements in C++ mode.
31247         * lib/string.in.h: Include c++defs.h.
31248         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31249         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31250         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31251         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31252         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31253         * modules/string (Depends-on): Add c++defs.
31254         (Makefile.am): Update string.h rule.
31255
31256         stdlib: Avoid #define replacements in C++ mode.
31257         * lib/stdlib.in.h: Include c++defs.h.
31258         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31259         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31260         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31261         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31262         symbol.
31263         * modules/stdlib (Depends-on): Add c++defs.
31264         (Makefile.am): Update stdlib.h rule.
31265
31266         stdio: Avoid #define replacements in C++ mode.
31267         * lib/stdio.in.h: Include c++defs.h.
31268         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31269         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31270         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31271         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31272         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31273         namespaced alias symbol.
31274         * modules/stdio (Depends-on): Add c++defs.
31275         (Makefile.am): Update stdio.h rule.
31276
31277         spawn: Avoid #define replacements in C++ mode.
31278         * lib/spawn.in.h: Include c++defs.h.
31279         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31280         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31281         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31282         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31283         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31284         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31285         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31286         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31287         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31288         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31289         In C++, define a namespaced alias symbol.
31290         * modules/spawn (Depends-on): Add c++defs.
31291         (Makefile.am): Update spawn.h rule.
31292
31293         signal: Avoid #define replacements in C++ mode.
31294         * lib/signal.in.h: Include c++defs.h.
31295         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31296         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31297         namespaced alias symbol.
31298         * modules/signal (Depends-on): Add c++defs.
31299         (Makefile.am): Update signal.h rule.
31300
31301         search: Avoid #define replacements in C++ mode.
31302         * lib/search.in.h: Include c++defs.h.
31303         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31304         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31305         symbol.
31306         * modules/search (Depends-on): Add c++defs.
31307         (Makefile.am): Update search.h rule.
31308
31309         math: Avoid #define replacements in C++ mode.
31310         * lib/math.in.h: Include c++defs.h.
31311         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31312         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31313         trunc, truncl): In C++, define a namespaced alias symbol.
31314         * modules/math (Depends-on): Add c++defs.
31315         (Makefile.am): Update math.h rule.
31316
31317         locale: Avoid #define replacements in C++ mode.
31318         * lib/locale.in.h: Include c++defs.h.
31319         (duplocale): In C++, define a namespaced alias symbol.
31320         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31321         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31322         * modules/locale (Depends-on): Add c++defs.
31323         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31324
31325         langinfo: Avoid #define replacements in C++ mode.
31326         * lib/langinfo.in.h: Include c++defs.h.
31327         (nl_langinfo): In C++, define a namespaced alias symbol.
31328         * modules/langinfo (Depends-on): Add c++defs.
31329         (Makefile.am): Update langinfo.h rule.
31330
31331         iconv-h: Avoid #define replacements in C++ mode.
31332         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31333         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31334         symbol.
31335         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31336         whenever iconv is present.
31337         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31338         (Makefile.am): Update iconv.h rule.
31339
31340         glob: Avoid #define replacements in C++ mode.
31341         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31342         (_gl_glob_errfunc_fn): New type.
31343         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31344         symbol.
31345         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31346         (Makefile.am): Update glob.h rule.
31347
31348         fcntl-h: Avoid #define replacements in C++ mode.
31349         * lib/fcntl.in.h: Include c++defs.h.
31350         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31351         * modules/fcntl-h (Depends-on): Add c++defs.
31352         (Makefile.am): Update fcntl.h rule.
31353
31354         dirent: Avoid #define replacements in C++ mode.
31355         * lib/dirent.in.h: Include c++defs.h.
31356         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31357         namespaced alias symbol.
31358         (dirfd): Update declaration.
31359         * modules/dirent (Depends-on): Add c++defs.
31360         (Makefile.am): Update dirent.h rule.
31361
31362         ctype: Make it usable in C++ code.
31363         * lib/ctype.in.h: Include c++defs.h.
31364         (isblank): Declare as extern "C".
31365         * modules/ctype (Depends-on): Add c++defs.
31366         (Makefile.am): Update ctype.h rule.
31367
31368         New module 'c++defs'.
31369         * modules/c++defs: New file.
31370         * build-aux/c++defs.h: New file.
31371         Reported by John W. Eaton <jwe@gnu.org>.
31372
31373 2010-03-07  Bruno Haible  <bruno@clisp.org>
31374
31375         logb: Provide missing declaration for Cygwin.
31376         * lib/math.in.h (logb): New declaration.
31377         * m4/logb.m4: New file.
31378         * modules/logb (Files): Add m4/logb.m4.
31379         (Depends-on): Add math.
31380         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31381         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31383         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31384         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31385
31386 2010-03-07  Bruno Haible  <bruno@clisp.org>
31387
31388         Fix test-cond link error.
31389         * tests/test-cond.c: Include <stdio.h>.
31390
31391 2010-03-07  Bruno Haible  <bruno@clisp.org>
31392
31393         Fix test-dirent-safer link error.
31394         * modules/dirent-safer-tests (Makefile.am): Define
31395         test_dirent_safer_LDADD.
31396
31397 2010-03-07  Bruno Haible  <bruno@clisp.org>
31398
31399         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31400         among default module list.
31401
31402 2010-03-07  Bruno Haible  <bruno@clisp.org>
31403
31404         Fix link error on platforms with GNU libiconv.
31405         * modules/unistr/u8-strcoll-tests (Makefile): Define
31406         test_u8_strcoll_LDADD.
31407         * modules/unistr/u16-strcoll-tests (Makefile): Define
31408         test_u16_strcoll_LDADD.
31409         * modules/unistr/u32-strcoll-tests (Makefile): Define
31410         test_u32_strcoll_LDADD.
31411
31412 2010-03-07  Bruno Haible  <bruno@clisp.org>
31413
31414         Use POSIX declarations for socket functions.
31415         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31416         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31417         rpl_sendto): Change declaration to match POSIX.
31418         * lib/connect.c (rpl_connect): Likewise.
31419         * lib/accept.c (rpl_accept): Likewise.
31420         * lib/bind.c (rpl_bind): Likewise.
31421         * lib/getpeername.c (rpl_getpeername): Likewise.
31422         * lib/getsockname.c (rpl_getsockname): Likewise.
31423         * lib/recv.c (rpl_recv): Likewise.
31424         * lib/send.c (rpl_send): Likewise.
31425         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31426         * lib/sendto.c (rpl_sendto): Likewise.
31427
31428 2010-03-06  Bruno Haible  <bruno@clisp.org>
31429
31430         Clarify access, euidaccess, faccessat.
31431         * doc/posix-functions/faccessat.texi: Mention security problem under
31432         "Other problems", not "Portability problems".
31433         * doc/posix-functions/access.texi: Likewise. Mention a related security
31434         problem.
31435         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31436         * lib/euidaccess.c: Add comments about platforms.
31437         * lib/unistd.in.h (access, euidaccess): Add warnings.
31438
31439 2010-03-07  Bruno Haible  <bruno@clisp.org>
31440
31441         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31442         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31443         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31444         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31445         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31446         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31447         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31448         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31449         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31451         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31452         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31453         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31454         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31455         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31456         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31457         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31458         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31459         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31460         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31461         Likewise.
31462         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31463         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31464         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31465         Likewise.
31466         * tests/test-spawn.c (main): Make it work when
31467         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31468
31469 2010-03-07  Bruno Haible  <bruno@clisp.org>
31470
31471         Fix incorrect Makefile.am generation in German locale.
31472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31473         Execute sed command with character range in C locale.
31474
31475 2010-03-06  Bruno Haible  <bruno@clisp.org>
31476
31477         Tests for module 'iconv-h'.
31478         * modules/iconv-h-tests: New file.
31479         * tests/test-iconv-h.c: New file.
31480
31481         New module 'iconv-h'.
31482         * modules/iconv-h: New file.
31483         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31484         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31485         (configure.ac): Remove gl_ICONV_H.
31486         (Makefile.am): Remove rule for iconv.h.
31487
31488 2010-03-06  Bruno Haible  <bruno@clisp.org>
31489
31490         More consistent naming of *.m4 files.
31491         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31492         * modules/wctype (Files): Update.
31493
31494         More consistent naming of *.m4 files.
31495         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31496         * modules/wchar (Files): Update.
31497
31498 2010-03-06  Jim Meyering  <meyering@redhat.com>
31499
31500         euidaccess: relax license to LGPLv2+
31501         * modules/euidaccess (License): Relax to LGPLv2+.
31502
31503 2010-03-06  Bruno Haible  <bruno@clisp.org>
31504
31505         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31506         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31507         (Makefile.am): Augment lib_SOURCES instead.
31508
31509 2010-03-04  Jim Meyering  <meyering@redhat.com>
31510
31511         utime: remove obsolete module
31512         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31513         unnecessary for years, and has been marked as obsolete for 10 months.
31514         * modules/utime: Remove file.
31515         * lib/utime.c: Remove file.
31516         * m4/utime.m4: Remove file.
31517         * m4/utimes-null.m4: Remove file.
31518         * doc/posix-functions/utime.texi (utime): Remove reference to
31519         the module.  Move the sole "fixed by gnulib" item into the
31520         "problems not fixed by Gnulib" list.
31521         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31522
31523 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31524
31525         * modules/exit (License): Relax license to LGPLv2+.
31526         (Status): Mark as obsolete.
31527         * NEWS: Mention deprecated 'exit' module.
31528         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31529         of now obsolete 'exit'.
31530
31531 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31532
31533         fts-lgpl: remove unused module
31534         * modules/fts-lgpl: Remove.
31535         * MODULES.html.sh (func_all_modules): Adjust.
31536         * check-module (find_included_lib_files): Adjust.
31537         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31538
31539 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31540
31541         copy-acl: enhance Solaris ACL error handling
31542         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31543         * lib/set-mode-acl.c (qset_acl): Likewise.
31544
31545 2010-03-02  Bruno Haible  <bruno@clisp.org>
31546
31547         spawn: Don't override the system defined values on FreeBSD 8.
31548         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31549         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31550         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31551         if HAVE_POSIX_SPAWN is 1.
31552         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31553
31554 2010-03-01  Bruno Haible  <bruno@clisp.org>
31555
31556         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31557         regarding Automake.
31558
31559 2010-02-25  Bruno Haible  <bruno@clisp.org>
31560
31561         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31562         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31563         setting, not afterwards.
31564         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31565
31566 2010-02-24  Eric Blake  <eblake@redhat.com>
31567
31568         bootstrap, git-version-gen: use timestamp
31569         * build-aux/git-version-gen (scriptversion): Force UTC.
31570         * build-aux/bootstrap (scriptversion): New variable.
31571
31572         bootstrap: allow older git
31573         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31574         older than 1.6.4.  Requested by the libvirt project.
31575
31576 2010-02-23  Eric Blake  <eblake@redhat.com>
31577
31578         warn-on-use: work with old autoconf
31579         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31580         AS_VAR semantics of autoconf 2.60.
31581         Reported by Bruno Haible.
31582
31583         bootstrap: improve some comments
31584         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31585         clarification comments.
31586
31587         gettimeofday: provide correct function
31588         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31589         when replacement is declared, otherwise provide gettimeofday.
31590         Reported by Michael Goffioul.
31591
31592 2010-02-23  Jim Meyering  <meyering@redhat.com>
31593
31594         lib-ignore: relax license to "unlimited", not LGPLv2+
31595         * modules/lib-ignore (License): Relax to "unlimited".
31596
31597 2010-02-23  Jim Meyering  <meyering@redhat.com>
31598
31599         lib-ignore: relax license to LGPLv2+
31600         * modules/lib-ignore (License): Relax to LGPLv2+.
31601
31602 2010-02-22  Eric Blake  <eblake@redhat.com>
31603
31604         lseek: avoid bash 3.2 broken pipe bug
31605         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31606         warning from bash 3.2.
31607         Reported by Ben Pfaff, with analysis from Bruno Haible.
31608
31609         bootstrap: support non-FSF copyright holder
31610         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31611         bootstrap.conf override of COPYRIGHT_HOLDER.
31612         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31613
31614         bootstrap: interoperate with gettext 0.14.1
31615         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31616
31617         bootstrap: allow for alternate submodule location
31618         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31619         hardcoding submodule location.
31620         (gnulib_mk): Allow direct use of Makefile.am.
31621
31622         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31623         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31624         rather than reconfiguring where the submodule points.
31625
31626         gettimeofday: restore support for platforms that lack function
31627         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31628         replacement if function is missing.
31629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31630         * modules/sys_time (Makefile.am): Substitute it.
31631         * lib/sys_time.in.h (gettimeofday): Check it.
31632         Reported by Michael Goffioul.
31633
31634 2010-02-21  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/stdio.in.h (obstack_printf): Fix typo.
31637
31638 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31639
31640         vc-list-files: use bzr ls's -R option
31641         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31642         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31643
31644 2010-02-21  Jim Meyering  <meyering@redhat.com>
31645
31646         init.sh: fix EXEEXT shims to work also for names like test-prog
31647         * tests/init.sh: Re-exec a better shell, when needed.
31648         If the current shell lacks support for posix $(...), an init.sh-using
31649         test will now try to find a shell that supports that.  If EXEEXT is
31650         nonempty, we also require support for hyphen-in-alias-name and shell
31651         substitutions like ${var#glob}.  Failure to find such a shell results
31652         in a skipped test.
31653
31654 2010-02-21  Bruno Haible  <bruno@clisp.org>
31655
31656         Really work around around "broken pipe" error message from bash 3.2.
31657         * gnulib-tool (func_reset_sigpipe): Remove function.
31658         (echo): In bash 3.2, define to a function that uses printf.
31659         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31660
31661 2010-02-20  Bruno Haible  <bruno@clisp.org>
31662
31663         Restore support for automake 1.9.6 with autoconf 2.61.
31664         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31665         Reported by James Youngman <jay@gnu.org>.
31666
31667 2010-02-20  Bruno Haible  <bruno@clisp.org>
31668
31669         Improve *printf warning condition.
31670         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31671         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31672         and the function is overridden due to SIGPIPE emulation.
31673
31674 2010-02-20  Bruno Haible  <bruno@clisp.org>
31675
31676         * lib/stdio.in.h: Tweak comments.
31677
31678 2010-02-19  Bruno Haible  <bruno@clisp.org>
31679
31680         Make it easier to find modules. New gnulib-tool option '--find'.
31681         * gnulib-tool: New option --find.
31682         (func_usage): Document it.
31683         (func_sanitize_modulelist): New function, extracted from
31684         func_all_modules.
31685         (func_all_modules): Invoke it.
31686         * doc/gnulib-tool.texi (Which modules?): New node.
31687
31688 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31689
31690         * lib/sys_select.in.h: Provide select replacement even if
31691         sys/select.h exists on a system, for Interix.
31692
31693 2010-02-18  Jim Meyering  <meyering@redhat.com>
31694
31695         init.sh: don't use $(...) just yet
31696         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31697         to accommodate e.g., Solaris' /bin/sh.
31698
31699 2010-02-17  Bruno Haible  <bruno@clisp.org>
31700
31701         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31702         Reported by Ludovic Courtès <ludo@gnu.org>.
31703
31704 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31705
31706         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31707         linking with -lintl.
31708
31709 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31710
31711         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31712         if not provided by the system's netdb.h.  Reported by
31713         ludo@gnu.org (Ludovic Courtès).
31714
31715 2010-02-15  Jim Meyering  <meyering@redhat.com>
31716
31717         init.sh: improve portability and efficiency
31718         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31719         "dummy" in a for loop.
31720         Use '!', not '^' to select the complement of a character set used
31721         in a "case" statement.
31722         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31723         Suggestions from Eric Blake.
31724
31725         init.sh: automatically accommodate programs with the .exe suffix
31726         Automatically arrange for an invocation of "prog" to execute the
31727         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31728         may use the simpler "prog", yet still work when built on a system
31729         that requires specifying the added suffix.
31730         Do this by constructing a function named "prog" that invokes
31731         "prog.exe" for each .exe file in selected directories.
31732         * tests/init.sh (find_exe_basenames_): New function.
31733         (create_exe_shim_functions_): New function.
31734         (path_prepend_): Use it.
31735
31736         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31737         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31738         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31739
31740 2010-02-14  Jim Meyering  <meyering@redhat.com>
31741
31742         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31743         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31744         (sc_prohibit_hash_pjw_without_use): New rule.
31745
31746         maint.mk: allow the default upload destination dir to be overridden
31747         * top/maint.mk (upload_dest_dir_): Define with a default that
31748         preserves the status quo.
31749         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31750         Reported by Peter Simons.
31751
31752         maint.mk: prohibit inclusion of "hash.h" without_use
31753         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31754
31755 2010-02-10  Jim Meyering  <meyering@redhat.com>
31756
31757         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31758         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31759
31760 2010-02-09  Eric Blake  <ebb9@byu.net>
31761         and Bruno Haible  <bruno@clisp.org>
31762
31763         obstack-printf-posix: ensure declaration
31764         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31765         extracted from gl_FUNC_OBSTACK_PRINTF.
31766         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31767         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31768         Likewise.
31769         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31770         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31771         0.
31772
31773 2010-02-08  Bruno Haible  <bruno@clisp.org>
31774
31775         gnulib-tool: Fix typo in 2010-02-07 commit.
31776         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31777         Reported by Eric Blake.
31778
31779 2010-02-07  Bruno Haible  <bruno@clisp.org>
31780
31781         gnulib-tool: Fix up caching patches.
31782         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31783         option --no-cache. Use associative arrays when supported by the shell.
31784         (sed_comments): New variable.
31785         (modcache): Renamed from do_cache.
31786         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31787         abbreviate unnecessarily.
31788         (have_associative): New variable.
31789         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31790         way also for ksh and zsh.
31791         (func_init_sed_convert_to_cache_statements): New function, extracted
31792         from func_cache_lookup_module. Add support for associative arrays.
31793         Don't set the c_MODULE_cached variable here. Ignore all lines before
31794         the first field header. Remove only the final newline, not all trailing
31795         newlines. Support empty fields correctly. Limit the use of 'eval' to
31796         assignments.
31797         (func_get_description, func_get_status, func_get_notice,
31798         func_get_applicability, func_get_filelist, func_get_dependencies,
31799         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31800         func_get_automake_snippet, func_get_include_directive,
31801         func_get_link_directive, func_get_license, func_get_maintainer):
31802         Update documentation. List the unoptimized code first. Add support for
31803         associative arrays. Limit the use of 'eval' to assignments.
31804         (func_get_applicability): Undo stylistic pessimisations.
31805         (func_get_automake_snippet, func_get_include_directive): Reduce code
31806         duplication.
31807         (func_modules_transitive_closure, func_modules_add_dummy,
31808         func_modules_notice, func_modules_to_filelist, func_add_file,
31809         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31810         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31811         func_create_testdir, func_create_megatestdir): Update documentation.
31812
31813 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31814
31815         * gnulib-tool (func_cache_lookup_module): Store the module name
31816         belonging to the cache variable; error out if two different
31817         module names map to the same cache variable name.
31818
31819 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31820
31821         gnulib-tool: Make caching optional.
31822         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31823         Update matching short versions of --no-changelog.
31824         (func_usage): Update.
31825         (sed_extract_cache_prog): Renamed from ...
31826         (sed_extract_prog): ... this; revert to old extraction script.
31827         (func_get_description, func_get_status)
31828         (func_get_notice, func_get_applicability, func_get_filelist)
31829         (func_get_dependencies, func_get_autoconf_early_snippet)
31830         (func_get_autoconf_snippet, func_get_automake_snippet)
31831         (func_get_include_directive, func_get_link_directive)
31832         (func_get_license, func_get_maintainer): If $do_cache is false,
31833         use old, non-caching extraction scripts.
31834         Suggestion by Bruno Haible.
31835
31836 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31837
31838         gnulib-tool: cache module metainformation.
31839         * gnulib-tool (sed_extract_prog): Match newline before each
31840         header, and rewrite header to a shell variable suffix.
31841         (func_cache_var, func_cache_lookup_module): New functions,
31842         to turn a module name into a cache variable prefix, and to
31843         look up and cache module metainformation.
31844         (func_get_description, func_get_status)
31845         (func_get_notice, func_get_applicability, func_get_filelist)
31846         (func_get_dependencies, func_get_autoconf_early_snippet)
31847         (func_get_autoconf_snippet, func_get_automake_snippet)
31848         (func_get_include_directive, func_get_link_directive)
31849         (func_get_license, func_get_maintainer): Use
31850         func_cache_lookup_module.
31851
31852 2010-02-07  Bruno Haible  <bruno@clisp.org>
31853
31854         fnctl: Fix missing dependency.
31855         * modules/fcntl (Depends-on): Add getdtablesize.
31856         Reported by John W. Eaton <jwe@gnu.org>.
31857
31858 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31859
31860         Argp: fix recognition of short alias options.
31861
31862         * lib/argp-parse.c (convert_options): Fix improper use of
31863         `|' between character values.
31864         * tests/test-argp.c (group1_option): New alias option
31865         --read (-r).
31866         (group1_parser): Special handling for 'r'.
31867         (test15): New test case.
31868         (test_fun): Add test15.
31869         * tests/test-argp-2.sh: Update expected --help and --usage
31870         outputs.
31871
31872 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31873
31874         * tests/test-argp.c: Fix indentation.
31875
31876 2010-02-04  Eric Blake  <ebb9@byu.net>
31877
31878         gettimeofday: expose type of second argument
31879         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31880         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31881         * tests/test-gettimeofday.c: Use it to silence warning.
31882         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31883         the issue.
31884
31885 2010-02-03  Jim Meyering  <meyering@redhat.com>
31886
31887         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31888         * lib/regcomp.c (TYPE_SIGNED): Define.
31889         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31890
31891         regcomp.c: avoid a new -Wshadow warning
31892         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31893
31894 2010-02-01  Jim Meyering  <meyering@redhat.com>
31895
31896         removing useless parentheses in cpp #define directives
31897         For motivation, see commit c0221df4, "define STREQ(a,b)
31898         consistently, removing useless parentheses"
31899         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31900         * lib/mountlist.c (MNT_IGNORE): Likewise.
31901         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31902
31903 2010-02-01  Eric Blake  <ebb9@byu.net>
31904
31905         sys_time: use link-warning
31906         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31907         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31908         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31909         * modules/sys_time (Depends-on): Add warn-on-use.
31910         (Makefile.am): Always build replacement.
31911         (configure.ac): Update substitutions.
31912         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31913         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31914         bother with SYS_TIME_H.
31915         * modules/gettimeofday (configure.ac): Declare indicator.
31916         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31917         in use.
31918
31919         closein-tests: silence compiler warning
31920         * tests/test-closein.c (main): Ignore fread result.
31921         * modules/closein-tests (Depends-on): Add ignore-value.
31922
31923         tests: silence warning about system return
31924         * tests/test-areadlink-with-size.c (main): Ignore system result.
31925         * tests/test-areadlink.c (main): Likewise.
31926         * tests/test-areadlinkat-with-size.c (main): Likewise.
31927         * tests/test-areadlinkat.c (main): Likewise.
31928         * tests/test-canonicalize-lgpl.c (main): Likewise.
31929         * tests/test-canonicalize.c (main): Likewise.
31930         * tests/test-chown.c (main): Likewise.
31931         * tests/test-fchownat.c (main): Likewise.
31932         * tests/test-fdutimensat.c (main): Likewise.
31933         * tests/test-fstatat.c (main): Likewise.
31934         * tests/test-futimens.c (main): Likewise.
31935         * tests/test-lchown.c (main): Likewise.
31936         * tests/test-link.c (main): Likewise.
31937         * tests/test-linkat.c (main): Likewise.
31938         * tests/test-lstat.c (main): Likewise.
31939         * tests/test-mkdir.c (main): Likewise.
31940         * tests/test-mkdirat.c (main): Likewise.
31941         * tests/test-mkfifo.c (main): Likewise.
31942         * tests/test-mkfifoat.c (main): Likewise.
31943         * tests/test-mknod.c (main): Likewise.
31944         * tests/test-readlink.c (main): Likewise.
31945         * tests/test-remove.c (main): Likewise.
31946         * tests/test-rename.c (main): Likewise.
31947         * tests/test-renameat.c (main): Likewise.
31948         * tests/test-rmdir.c (main): Likewise.
31949         * tests/test-symlink.c (main): Likewise.
31950         * tests/test-symlinkat.c (main): Likewise.
31951         * tests/test-unlink.c (main): Likewise.
31952         * tests/test-unlinkat.c (main): Likewise.
31953         * tests/test-utimens.c (main): Likewise.
31954         * tests/test-utimensat.c (main): Likewise.
31955         * modules/areadlink-tests (Depends-on): Add ignore-value.
31956         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31957         * modules/areadlinkat-tests (Depends-on): Likewise.
31958         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31960         * modules/canonicalize-tests (Depends-on): Likewise.
31961         * modules/chown-tests (Depends-on): Likewise.
31962         * modules/fdutimensat-tests (Depends-on): Likewise.
31963         * modules/futimens-tests (Depends-on): Likewise.
31964         * modules/lchown-tests (Depends-on): Likewise.
31965         * modules/link-tests (Depends-on): Likewise.
31966         * modules/linkat-tests (Depends-on): Likewise.
31967         * modules/lstat-tests (Depends-on): Likewise.
31968         * modules/mkdir-tests (Depends-on): Likewise.
31969         * modules/mkfifo-tests (Depends-on): Likewise.
31970         * modules/mkfifoat-tests (Depends-on): Likewise.
31971         * modules/mknod-tests (Depends-on): Likewise.
31972         * modules/openat-tests (Depends-on): Likewise.
31973         * modules/readlink-tests (Depends-on): Likewise.
31974         * modules/remove-tests (Depends-on): Likewise.
31975         * modules/rename-tests (Depends-on): Likewise.
31976         * modules/renameat-tests (Depends-on): Likewise.
31977         * modules/rmdir-tests (Depends-on): Likewise.
31978         * modules/symlink-tests (Depends-on): Likewise.
31979         * modules/symlinkat-tests (Depends-on): Likewise.
31980         * modules/unlink-tests (Depends-on): Likewise.
31981         * modules/utimens-tests (Depends-on): Likewise.
31982         * modules/utimensat-tests (Depends-on): Likewise.
31983
31984 2010-01-31  Bruno Haible  <bruno@clisp.org>
31985
31986         Perform the same test for many <math.h> functions.
31987         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31988         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31989         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31990         of gl_MATHFUNC.
31991         * modules/acos (configure.ac): Likewise.
31992         * modules/asin (configure.ac): Likewise.
31993         * modules/atan (configure.ac): Likewise.
31994         * modules/atan2 (configure.ac): Likewise.
31995         * modules/cbrt (configure.ac): Likewise.
31996         * modules/copysign (configure.ac): Likewise.
31997         * modules/cos (configure.ac): Likewise.
31998         * modules/cosh (configure.ac): Likewise.
31999         * modules/erf (configure.ac): Likewise.
32000         * modules/erfc (configure.ac): Likewise.
32001         * modules/exp (configure.ac): Likewise.
32002         * modules/fmod (configure.ac): Likewise.
32003         * modules/hypot (configure.ac): Likewise.
32004         * modules/j0 (configure.ac): Likewise.
32005         * modules/j1 (configure.ac): Likewise.
32006         * modules/jn (configure.ac): Likewise.
32007         * modules/lgamma (configure.ac): Likewise.
32008         * modules/log (configure.ac): Likewise.
32009         * modules/log10 (configure.ac): Likewise.
32010         * modules/log1p (configure.ac): Likewise.
32011         * modules/pow (configure.ac): Likewise.
32012         * modules/remainder (configure.ac): Likewise.
32013         * modules/sin (configure.ac): Likewise.
32014         * modules/sinh (configure.ac): Likewise.
32015         * modules/tan (configure.ac): Likewise.
32016         * modules/tanh (configure.ac): Likewise.
32017         * modules/y0 (configure.ac): Likewise.
32018         * modules/y1 (configure.ac): Likewise.
32019         * modules/yn (configure.ac): Likewise.
32020         Suggested by Paolo Bonzini.
32021
32022 2010-01-31  Bruno Haible  <bruno@clisp.org>
32023
32024         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32025
32026 2010-01-31  Bruno Haible  <bruno@clisp.org>
32027
32028         Work around getdelim() bug on FreeBSD 8.0.
32029         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32030         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32031         not work.
32032         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32033         is 1.
32034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32035         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32036         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32037         a non-zero size.
32038         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32039
32040 2010-01-31  Bruno Haible  <bruno@clisp.org>
32041
32042         Work around getline() bug on FreeBSD 8.0.
32043         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32044         and a non-zero size.
32045         * tests/test-getline.c (main): Likewise.
32046         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32047         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32048
32049 2010-01-28  Eric Blake  <ebb9@byu.net>
32050
32051         regex: fix build failure
32052         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32053         platforms.
32054
32055 2010-01-28  Jim Meyering  <meyering@redhat.com>
32056
32057         regex: do not ignore memory allocation failure
32058         * lib/regex_internal.c (create_cd_newstate): Detect
32059         re_node_set_init_copy failure.   Extracted from glibc commit
32060         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32061
32062         regex: sync more white-space changes from libc
32063         * lib/regex_internal.c: White-space only changes.
32064         * lib/regexec.c: Likewise.
32065
32066         regex: add many uses of __attribute_warn_unused_result__
32067         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32068         * lib/regexec.c: Likewise.
32069         Extracted from a messy glibc commit.
32070
32071         regcomp.c: spelling and merge-artifact from glibc
32072         * lib/regcomp.c: Merge remainder of glibc's
32073         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32074
32075         regcomp.c: sync white-space changes from glibc
32076         * lib/regcomp.c: Merge to accommodate white space
32077         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32078
32079         regcomp.c: do not ignore internal return values
32080         * lib/regcomp.c: Do not ignore internal return values.
32081         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32082         but without its white-space changes and spelling fixes.
32083
32084         regex_internal.h: define __attribute_warn_unused_result__
32085         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32086
32087         maint: add a syntax-check rule to check for vulnerable Makefile.in
32088         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32089
32090 2010-01-27  Jim Meyering  <meyering@redhat.com>
32091
32092         ncftpput-ftp: clean up spaces
32093         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32094         Remove trailing blanks.
32095
32096 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32097
32098         * build-aux/git-version-gen: Fix copyright statement.
32099         * build-aux/gnupload: Likewise.
32100         * tests/test-arcfour.c: Likewise.
32101         * tests/test-arctwo.c: Likewise.
32102         * tests/test-count-one-bits.c: Likewise.
32103         * tests/test-crc.c: Likewise.
32104         * tests/test-des.c: Likewise.
32105         * tests/test-gc-arcfour.c: Likewise.
32106         * tests/test-gc-arctwo.c: Likewise.
32107         * tests/test-gc-des.c: Likewise.
32108         * tests/test-gc-hmac-md5.c: Likewise.
32109         * tests/test-gc-hmac-sha1.c: Likewise.
32110         * tests/test-gc-md2.c: Likewise.
32111         * tests/test-gc-md4.c: Likewise.
32112         * tests/test-gc-md5.c: Likewise.
32113         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32114         * tests/test-gc-rijndael.c: Likewise.
32115         * tests/test-gc-sha1.c: Likewise.
32116         * tests/test-gc.c: Likewise.
32117         * tests/test-gethostname.c: Likewise.
32118         * tests/test-gettimeofday.c: Likewise.
32119         * tests/test-hash.c: Likewise.
32120         * tests/test-hmac-md5.c: Likewise.
32121         * tests/test-hmac-sha1.c: Likewise.
32122         * tests/test-md2.c: Likewise.
32123         * tests/test-md4.c: Likewise.
32124         * tests/test-md5.c: Likewise.
32125         * tests/test-memchr.c: Likewise.
32126         * tests/test-memchr2.c: Likewise.
32127         * tests/test-memcmp.c: Likewise.
32128         * tests/test-memmem.c: Likewise.
32129         * tests/test-memrchr.c: Likewise.
32130         * tests/test-rawmemchr.c: Likewise.
32131         * tests/test-read-file.c: Likewise.
32132         * tests/test-rijndael.c: Likewise.
32133         * tests/test-sockets.c: Likewise.
32134         * tests/test-strchrnul.c: Likewise.
32135         * tests/test-strstr.c: Likewise.
32136         * tests/test-strtod.c: Likewise.
32137         * build-aux/ncftpput-ftp: Likewise.
32138
32139 2010-01-26  Eric Blake  <ebb9@byu.net>
32140
32141         ignore-value: update recommended header name
32142         * modules/ignore-value (Include): Only use <> for headers that
32143         exist in glibc.
32144
32145 2010-01-26  Jim Meyering  <meyering@redhat.com>
32146
32147         test-userspec.c: avoid compiler warnings
32148         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32149         and "initialization discards qualifiers..." warnings.
32150         Put the first "uid" in its own scope, and make char* members "const".
32151
32152 2010-01-25  Bruno Haible  <bruno@clisp.org>
32153
32154         gnulib-tool: Make warning diagnostics consistent.
32155         * gnulib-tool (func_warning): New function.
32156         Use it everywhere where gnulib-tool produces output to stderr and it is
32157         not a fatal error.
32158
32159 2010-01-25  Bruno Haible  <bruno@clisp.org>
32160
32161         Fix test dependencies.
32162         * modules/xstrtol-tests (Depends-on): Add inttypes.
32163         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32164
32165 2010-01-25 Pádraig Brady <P@draigBrady.com>
32166
32167         syntax-check: detect incorrect boolean macro values in config.h
32168         * modules/maintainer-makefile (configure.ac): Parameterize the location
32169         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32170         The logic is from Eric Blake and the location indicated by Jim Meyering.
32171         Note the more natural CONFIG_HEADER name is prohibited by automake
32172         for backwards compatibility reasons.
32173         * top/maint.mk (sc_Wundef_boolean): New rule.
32174
32175 2010-01-25  Jim Meyering  <meyering@redhat.com>
32176
32177         bootstrap: detect MacOS 10.6's shasum, too
32178         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32179         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32180
32181 2010-01-23  Jim Meyering  <meyering@redhat.com>
32182
32183         xstrtoll: new module
32184         * modules/xstrtoll: New file.
32185         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32186         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32187         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32188         ./configure fails if you use this module and lack "long long".
32189         * modules/xstrtoll-tests: New module.
32190         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32191         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32192         new init.sh-based test framework.
32193
32194 2010-01-24  Bruno Haible  <bruno@clisp.org>
32195
32196         Tests for module 'yn'.
32197         * modules/yn-tests: New file.
32198         * tests/test-yn.c: New file.
32199
32200         Tests for module 'y1'.
32201         * modules/y1-tests: New file.
32202         * tests/test-y1.c: New file.
32203
32204         Tests for module 'y0'.
32205         * modules/y0-tests: New file.
32206         * tests/test-y0.c: New file.
32207
32208         Tests for module 'tanh'.
32209         * modules/tanh-tests: New file.
32210         * tests/test-tanh.c: New file.
32211
32212         Tests for module 'tan'.
32213         * modules/tan-tests: New file.
32214         * tests/test-tan.c: New file.
32215
32216         Tests for module 'sqrt'.
32217         * modules/sqrt-tests: New file.
32218         * tests/test-sqrt.c: New file.
32219
32220         Tests for module 'sinh'.
32221         * modules/sinh-tests: New file.
32222         * tests/test-sinh.c: New file.
32223
32224         Tests for module 'sin'.
32225         * modules/sin-tests: New file.
32226         * tests/test-sin.c: New file.
32227
32228         Tests for module 'rint'.
32229         * modules/rint-tests: New file.
32230         * tests/test-rint.c: New file.
32231
32232         Tests for module 'remainder'.
32233         * modules/remainder-tests: New file.
32234         * tests/test-remainder.c: New file.
32235
32236         Tests for module 'pow'.
32237         * modules/pow-tests: New file.
32238         * tests/test-pow.c: New file.
32239
32240         Tests for module 'nextafter'.
32241         * modules/nextafter-tests: New file.
32242         * tests/test-nextafter.c: New file.
32243
32244         Tests for module 'modf'.
32245         * modules/modf-tests: New file.
32246         * tests/test-modf.c: New file.
32247
32248         Tests for module 'logb'.
32249         * modules/logb-tests: New file.
32250         * tests/test-logb.c: New file.
32251
32252         Tests for module 'log1p'.
32253         * modules/log1p-tests: New file.
32254         * tests/test-log1p.c: New file.
32255
32256         Tests for module 'log10'.
32257         * modules/log10-tests: New file.
32258         * tests/test-log10.c: New file.
32259
32260         Tests for module 'log'.
32261         * modules/log-tests: New file.
32262         * tests/test-log.c: New file.
32263
32264         Tests for module 'lgamma'.
32265         * modules/lgamma-tests: New file.
32266         * tests/test-lgamma.c: New file.
32267
32268         Tests for module 'ldexp'.
32269         * modules/ldexp-tests: New file.
32270         * tests/test-ldexp.c: New file.
32271
32272         Tests for module 'jn'.
32273         * modules/jn-tests: New file.
32274         * tests/test-jn.c: New file.
32275
32276         Tests for module 'j1'.
32277         * modules/j1-tests: New file.
32278         * tests/test-j1.c: New file.
32279
32280         Tests for module 'j0'.
32281         * modules/j0-tests: New file.
32282         * tests/test-j0.c: New file.
32283
32284         Tests for module 'hypot'.
32285         * modules/hypot-tests: New file.
32286         * tests/test-hypot.c: New file.
32287
32288         Tests for module 'fmod'.
32289         * modules/fmod-tests: New file.
32290         * tests/test-fmod.c: New file.
32291
32292         Tests for module 'fabs'.
32293         * modules/fabs-tests: New file.
32294         * tests/test-fabs.c: New file.
32295
32296         Tests for module 'exp'.
32297         * modules/exp-tests: New file.
32298         * tests/test-exp.c: New file.
32299
32300         Tests for module 'erfc'.
32301         * modules/erfc-tests: New file.
32302         * tests/test-erfc.c: New file.
32303
32304         Tests for module 'erf'.
32305         * modules/erf-tests: New file.
32306         * tests/test-erf.c: New file.
32307
32308         Tests for module 'cosh'.
32309         * modules/cosh-tests: New file.
32310         * tests/test-cosh.c: New file.
32311
32312         Tests for module 'cos'.
32313         * modules/cos-tests: New file.
32314         * tests/test-cos.c: New file.
32315
32316         Tests for module 'copysign'.
32317         * modules/copysign-tests: New file.
32318         * tests/test-copysign.c: New file.
32319
32320         Tests for module 'cbrt'.
32321         * modules/cbrt-tests: New file.
32322         * tests/test-cbrt.c: New file.
32323
32324         Tests for module 'atan2'.
32325         * modules/atan2-tests: New file.
32326         * tests/test-atan2.c: New file.
32327
32328         Tests for module 'atan'.
32329         * modules/atan-tests: New file.
32330         * tests/test-atan.c: New file.
32331
32332         Tests for module 'asin'.
32333         * modules/asin-tests: New file.
32334         * tests/test-asin.c: New file.
32335
32336         Tests for module 'acos'.
32337         * modules/acos-tests: New file.
32338         * tests/test-acos.c: New file.
32339
32340 2010-01-24  Bruno Haible  <bruno@clisp.org>
32341
32342         Fix tests for common <math.h> functions.
32343         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32344         code snippet that references the function pointer, rather than merely
32345         calling the function. Substitute the FUNC_LIBM variable.
32346         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32347         * modules/acos (configure.ac): Likewise.
32348         * modules/asin (configure.ac): Likewise.
32349         * modules/atan (configure.ac): Likewise.
32350         * modules/atan2 (configure.ac): Likewise.
32351         * modules/cbrt (configure.ac): Likewise.
32352         * modules/copysign (configure.ac): Likewise.
32353         * modules/cos (configure.ac): Likewise.
32354         * modules/cosh (configure.ac): Likewise.
32355         * modules/erf (configure.ac): Likewise.
32356         * modules/erfc (configure.ac): Likewise.
32357         * modules/exp (configure.ac): Likewise.
32358         * modules/fabs (configure.ac): Likewise.
32359         * modules/fmod (configure.ac): Likewise.
32360         * modules/hypot (configure.ac): Likewise.
32361         * modules/j0 (configure.ac): Likewise.
32362         * modules/j1 (configure.ac): Likewise.
32363         * modules/jn (configure.ac): Likewise.
32364         * modules/ldexp (configure.ac): Likewise.
32365         * modules/lgamma (configure.ac): Likewise.
32366         * modules/log (configure.ac): Likewise.
32367         * modules/log10 (configure.ac): Likewise.
32368         * modules/log1p (configure.ac): Likewise.
32369         * modules/logb (configure.ac): Likewise.
32370         * modules/modf (configure.ac): Likewise.
32371         * modules/nextafter (configure.ac): Likewise.
32372         * modules/pow (configure.ac): Likewise.
32373         * modules/remainder (configure.ac): Likewise.
32374         * modules/rint (configure.ac): Likewise.
32375         * modules/sin (configure.ac): Likewise.
32376         * modules/sinh (configure.ac): Likewise.
32377         * modules/tan (configure.ac): Likewise.
32378         * modules/tanh (configure.ac): Likewise.
32379         * modules/y0 (configure.ac): Likewise.
32380         * modules/y1 (configure.ac): Likewise.
32381         * modules/yn (configure.ac): Likewise.
32382
32383 2010-01-24  Bruno Haible  <bruno@clisp.org>
32384
32385         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32386         * tests/test-acosl.c (x): New variable.
32387         (main): Store argument in x and fetch it from x.
32388         * tests/test-asinl.c (x): New variable.
32389         (main): Store argument in x and fetch it from x.
32390         * tests/test-atanl.c (x): New variable.
32391         (main): Store argument in x and fetch it from x.
32392         * tests/test-cosl.c (x): New variable.
32393         (main): Store argument in x and fetch it from x.
32394         * tests/test-expl.c (x): New variable.
32395         (main): Store argument in x and fetch it from x.
32396         * tests/test-logl.c (x): New variable.
32397         (main): Store argument in x and fetch it from x.
32398         * tests/test-sinl.c (x): New variable.
32399         (main): Store argument in x and fetch it from x.
32400         * tests/test-sqrtl.c (x): New variable.
32401         (main): Store argument in x and fetch it from x.
32402         * tests/test-tanl.c (x): New variable.
32403         (main): Store argument in x and fetch it from x.
32404
32405 2010-01-24  Bruno Haible  <bruno@clisp.org>
32406
32407         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32408         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32409         assignments to the initial TESTS_ENVIRONMENT.
32410         * doc/gnulib.texi (Unit test modules): Document it.
32411         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32412         TESTS_ENVIRONMENT.
32413         * modules/btowc-tests (Makefile.am): Likewise.
32414         * modules/c-stack-tests (Makefile.am): Likewise.
32415         * modules/c-strcase-tests (Makefile.am): Likewise.
32416         * modules/copy-file-tests (Makefile.am): Likewise.
32417         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32418         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32419         * modules/mbrtowc-tests (Makefile.am): Likewise.
32420         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32421         * modules/mbscasestr-tests (Makefile.am): Likewise.
32422         * modules/mbschr-tests (Makefile.am): Likewise.
32423         * modules/mbscspn-tests (Makefile.am): Likewise.
32424         * modules/mbsinit-tests (Makefile.am): Likewise.
32425         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32426         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32427         * modules/mbspbrk-tests (Makefile.am): Likewise.
32428         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32429         * modules/mbsrchr-tests (Makefile.am): Likewise.
32430         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32431         * modules/mbsspn-tests (Makefile.am): Likewise.
32432         * modules/mbsstr-tests (Makefile.am): Likewise.
32433         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32434         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32435         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32436         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32437         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32438         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32439         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32440         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32441         * modules/wcrtomb-tests (Makefile.am): Likewise.
32442         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32443         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32444         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32445         assignments from TESTS_ENVIRONMENT.
32446         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32447         augmentation.
32448         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32449         * modules/atexit-tests (Makefile.am): Likewise.
32450         * modules/binary-io-tests (Makefile.am): Likewise.
32451         * modules/closein-tests (Makefile.am): Likewise.
32452         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32453         * modules/exclude-tests (Makefile.am): Likewise.
32454         * modules/fflush-tests (Makefile.am): Likewise.
32455         * modules/fpending-tests (Makefile.am): Likewise.
32456         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32457         * modules/freadahead-tests (Makefile.am): Likewise.
32458         * modules/freadptr-tests (Makefile.am): Likewise.
32459         * modules/freadseek-tests (Makefile.am): Likewise.
32460         * modules/fseek-tests (Makefile.am): Likewise.
32461         * modules/fseeko-tests (Makefile.am): Likewise.
32462         * modules/ftell-tests (Makefile.am): Likewise.
32463         * modules/ftello-tests (Makefile.am): Likewise.
32464         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32465         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32466         * modules/lseek-tests (Makefile.am): Likewise.
32467         * modules/parse-duration-tests (Makefile.am): Likewise.
32468         * modules/perror-tests (Makefile.am): Likewise.
32469         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32470         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32471         * modules/pipe-tests (Makefile.am): Likewise.
32472         * modules/pread-tests (Makefile.am): Likewise.
32473         * modules/printf-posix-tests (Makefile.am): Likewise.
32474         * modules/select-tests (Makefile.am): Likewise.
32475         * modules/sigpipe-tests (Makefile.am): Likewise.
32476         * modules/tsearch-tests (Makefile.am): Likewise.
32477         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32478         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32479         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32480         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32481         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32482         * modules/version-etc-tests (Makefile.am): Likewise.
32483         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32484         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32485         * modules/xalloc-die-tests (Makefile.am): Likewise.
32486         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32487         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32488         * modules/xstrtol-tests (Makefile.am): Likewise.
32489         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32490         * modules/yesno-tests (Makefile.am): Likewise.
32491         Suggested by Jim Meyering.
32492
32493 2010-01-24  Bruno Haible  <bruno@clisp.org>
32494
32495         More documentation.
32496         * doc/gnulib.texi (Writing modules): New chapter.
32497         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32498         the new chapter.
32499
32500 2010-01-24  Jim Meyering  <meyering@redhat.com>
32501
32502         maint.mk: do not prepend "./" after filtering
32503         * top/maint.mk (_prepend_srcdir_prefix): New variable
32504         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32505         "./" when $(srcdir) is ".".
32506
32507         define STREQ(a,b) consistently, removing useless parentheses
32508         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32509         since the only risk is that "a" or "b" contains an unparenthesized
32510         comma, but if either did that, STREQ would have 3 or more arguments.
32511         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32512         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32513         * lib/hash-triple.c (STREQ): Likewise.
32514         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32515         * lib/getugroups.c (STREQ): Likewise.
32516
32517 2010-01-23  Jim Meyering  <meyering@redhat.com>
32518
32519         maint.mk: fix syntax-check in a non-srcdir build directory
32520         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32521         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32522
32523 2010-01-22  Jim Meyering  <meyering@redhat.com>
32524
32525         userspec: add unit tests
32526         * tests/test-userspec.c: New file.
32527         * modules/userspec-tests: Likewise.
32528
32529 2010-01-21  Jim Meyering  <meyering@redhat.com>
32530
32531         maint.mk: handle source file names containing "." robustly
32532         * top/maint.mk (_dot_escaped_srcdir): Define.
32533         (VC_LIST): Use it in LHS of sed substitution.
32534
32535 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32536
32537         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32538         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32539         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32540         from a non-srcdir build.
32541
32542 2010-01-20  Eric Blake  <ebb9@byu.net>
32543
32544         warn-on-use: use instead of link-warning
32545         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32546         * modules/unistd (Depends-on, Makefile.am): Likewise.
32547         * modules/arpa_inet (Depends-on): Replace link-warning with
32548         warn-on-use.
32549         (Makefile.am): Update rules accordingly.
32550         * modules/ctype (Depends-on, Makefile.am): Likewise.
32551         * modules/dirent (Depends-on, Makefile.am): Likewise.
32552         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32553         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32554         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32555         * modules/locale (Depends-on, Makefile.am): Likewise.
32556         * modules/math (Depends-on, Makefile.am): Likewise.
32557         * modules/search (Depends-on, Makefile.am): Likewise.
32558         * modules/signal (Depends-on, Makefile.am): Likewise.
32559         * modules/spawn (Depends-on, Makefile.am): Likewise.
32560         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32561         * modules/string (Depends-on, Makefile.am): Likewise.
32562         * modules/strings (Depends-on, Makefile.am): Likewise.
32563         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32564         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32565         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32566         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32567         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32568         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32569         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32570         * modules/wchar (Depends-on, Makefile.am): Likewise.
32571         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32572         should be poisoned.
32573         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32574         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32575         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32576         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32577         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32578         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32579         * m4/math_h.m4 (gl_MATH_H): Likewise.
32580         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32581         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32582         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32583         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32584         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32586         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32587         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32592         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32593         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32594         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32595         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32596         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32597         GL_LINK_WARNING.
32598         * lib/ctype.in.h: Likewise.
32599         * lib/dirent.in.h: Likewise.
32600         * lib/fcntl.in.h: Likewise.
32601         * lib/inttypes.in.h: Likewise.
32602         * lib/langinfo.in.h: Likewise.
32603         * lib/locale.in.h: Likewise.
32604         * lib/math.in.h: Likewise.
32605         * lib/search.in.h: Likewise.
32606         * lib/signal.in.h: Likewise.
32607         * lib/spawn.in.h: Likewise.
32608         * lib/stdio.in.h: Likewise.
32609         * lib/stdlib.in.h: Likewise.
32610         * lib/string.in.h: Likewise.
32611         * lib/strings.in.h: Likewise.
32612         * lib/sys_file.in.h: Likewise.
32613         * lib/sys_ioctl.in.h: Likewise.
32614         * lib/sys_select.in.h: Likewise.
32615         * lib/sys_socket.in.h: Likewise.
32616         * lib/sys_stat.in.h: Likewise.
32617         * lib/sys_times.in.h: Likewise.
32618         * lib/sys_utsname.in.h: Likewise.
32619         * lib/unistd.in.h: Likewise.
32620         * lib/wchar.in.h: Likewise.
32621
32622 2010-01-20  Bruno Haible  <bruno@clisp.org>
32623
32624         Avoid duplicate -lm.
32625         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32626         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32628         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32629         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32630         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32631         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32632         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32633         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32634         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32635         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32636         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32637         Reported by Paolo Bonzini.
32638
32639 2010-01-19  Bruno Haible  <bruno@clisp.org>
32640
32641         langinfo, nl_langinfo: Relicense under LGPLv2+.
32642         * modules/langinfo (License): Change to LGPLv2+.
32643         * modules/nl_langinfo (License): Likewise.
32644         Patch by David Lutterkort <lutter@redhat.com>.
32645
32646 2010-01-19  Bruno Haible  <bruno@clisp.org>
32647
32648         Avoid compilation error with cc on OSF/1 5.1.
32649         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32650         statement, not before.
32651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32652
32653 2010-01-18  Bruno Haible  <bruno@clisp.org>
32654
32655         Avoid a link error due to the __printf__ symbol.
32656         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32657         and 2.6.x.
32658         (__format__, __printf__): Remove definitions.
32659         * lib/argp-fmtstream.h: Likewise.
32660         * lib/argp.h: Likewise.
32661         * lib/error.h: Likewise.
32662         * lib/vasnprintf.h: Likewise.
32663         * lib/xprintf.h: Likewise.
32664         * lib/xvasprintf.h: Likewise.
32665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32666
32667 2010-01-18  Bruno Haible  <bruno@clisp.org>
32668
32669         Tests for module 'tanl'.
32670         * modules/tanl-tests: New file.
32671         * tests/test-tanl.c: New file.
32672
32673         Tests for module 'sqrtl'.
32674         * modules/sqrtl-tests: New file.
32675         * tests/test-sqrtl.c: New file.
32676
32677         Tests for module 'sinl'.
32678         * modules/sinl-tests: New file.
32679         * tests/test-sinl.c: New file.
32680
32681         Tests for module 'logl'.
32682         * modules/logl-tests: New file.
32683         * tests/test-logl.c: New file.
32684
32685         Tests for module 'expl'.
32686         * modules/expl-tests: New file.
32687         * tests/test-expl.c: New file.
32688
32689         Tests for module 'cosl'.
32690         * modules/cosl-tests: New file.
32691         * tests/test-cosl.c: New file.
32692
32693         Tests for module 'atanl'.
32694         * modules/atanl-tests: New file.
32695         * tests/test-atanl.c: New file.
32696
32697         Tests for module 'asinl'.
32698         * modules/asinl-tests: New file.
32699         * tests/test-asinl.c: New file.
32700
32701         Tests for module 'acosl'.
32702         * modules/acosl-tests: New file.
32703         * tests/test-acosl.c: New file.
32704
32705         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32706         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32707         tanl): Use the standard gnulib idiom.
32708         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32709         * lib/sinl.c: Likewise.
32710         * lib/tanl.c: Don't include trigl.c.
32711         (kernel_tanl): Make static.
32712         * lib/sincosl.c: Include trigl.h first.
32713         * lib/trigl.c: Likewise.
32714         * m4/acosl.m4: New file.
32715         * m4/asinl.m4: New file.
32716         * m4/atanl.m4: New file.
32717         * m4/cosl.m4: New file.
32718         * m4/expl.m4: New file.
32719         * m4/logl.m4: New file.
32720         * m4/sinl.m4: New file.
32721         * m4/sqrtl.m4: New file.
32722         * m4/tanl.m4: New file.
32723         * m4/mathl.m4: Remove file.
32724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32725         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32726         Don't initialize GNULIB_MATHL.
32727         * modules/acosl: New file.
32728         * modules/asinl: New file.
32729         * modules/atanl: New file.
32730         * modules/cosl: New file.
32731         * modules/expl: New file.
32732         * modules/logl: New file.
32733         * modules/sinl: New file.
32734         * modules/sqrtl: New file.
32735         * modules/tanl: New file.
32736         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32737         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32738         substitute GNULIB_MATHL.
32739         * modules/mathl: Rewritten.
32740         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32741         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32742         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32743         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32744         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32745         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32746         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32747         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32748         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32749
32750 2010-01-18  Bruno Haible  <bruno@clisp.org>
32751
32752         sqrt: Make gl_FUNC_SQRT requirable.
32753         * m4/sqrt.m4: New file.
32754         * modules/sqrt (Files): Add it.
32755         (configure.ac): Invoke gl_FUNC_SQRT.
32756
32757 2010-01-18  Bruno Haible  <bruno@clisp.org>
32758
32759         New modules for common <math.h> functions.
32760         * m4/mathfunc.m4: New file.
32761         * modules/acos: New file.
32762         * modules/asin: New file.
32763         * modules/atan: New file.
32764         * modules/atan2: New file.
32765         * modules/cbrt: New file.
32766         * modules/copysign: New file.
32767         * modules/cos: New file.
32768         * modules/cosh: New file.
32769         * modules/erf: New file.
32770         * modules/erfc: New file.
32771         * modules/exp: New file.
32772         * modules/fabs: New file.
32773         * modules/fmod: New file.
32774         * modules/hypot: New file.
32775         * modules/j0: New file.
32776         * modules/j1: New file.
32777         * modules/jn: New file.
32778         * modules/ldexp: New file.
32779         * modules/lgamma: New file.
32780         * modules/log: New file.
32781         * modules/log10: New file.
32782         * modules/log1p: New file.
32783         * modules/logb: New file.
32784         * modules/modf: New file.
32785         * modules/nextafter: New file.
32786         * modules/pow: New file.
32787         * modules/remainder: New file.
32788         * modules/rint: New file.
32789         * modules/sin: New file.
32790         * modules/sinh: New file.
32791         * modules/sqrt: New file.
32792         * modules/tan: New file.
32793         * modules/tanh: New file.
32794         * modules/y0: New file.
32795         * modules/y1: New file.
32796         * modules/yn: New file.
32797         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32798         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32799         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32800         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32801         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32802         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32803         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32804         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32805         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32806         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32807         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32808         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32809         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32810         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32811         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32812         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32813         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32814         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32815         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32816         * doc/posix-functions/log.texi: Mention the 'log' module.
32817         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32818         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32819         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32820         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32821         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32822         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32823         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32824         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32825         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32826         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32827         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32828         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32829         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32830         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32831         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32832         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32833
32834 2010-01-18  Jim Meyering  <meyering@redhat.com>
32835
32836         ignore-value: relax license to LGPLv2+
32837         * modules/ignore-value (License): Relax to LGPLv2+.
32838
32839         getdate: don't leak when TZ contains two or more '"'s
32840         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32841         double quote in TZ after the first one.
32842
32843         readtokens: do not leak internal token_lengths buffer
32844         * lib/readtokens.c (readtokens): Free the local, lengths,
32845         when the supplied "token_lengths" parameter is NULL.
32846
32847 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32848
32849         Fix a couple of missing LIBTHREAD link failures on AIX.
32850         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32851         $(LIBTHREAD).
32852         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32853
32854         Link test-poll against INET_PTON_LIB.
32855         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32856         for inet_pton on Solaris 10.
32857
32858 2010-01-17  Bruno Haible  <bruno@clisp.org>
32859
32860         unistdio/*-sprintf: Fix typo in module description.
32861         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32862         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32863         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32864         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32865         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32866         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32867         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32869
32870 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32871
32872         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32873         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32874         variables in shell case patterns, for AIX and HP-UX ksh.
32875
32876         Split large sed scripts, for HP-UX sed.
32877         * modules/stdio: Split sed scripts around 50 sed commands,
32878         to avoid HP-UX limit of 99 commands, in the near future.
32879         * modules/string: Likewise.
32880         * modules/unistd: Likewise.
32881
32882         gnulib-tool: avoid writing in the current directory.
32883         * gnulib-tool (func_emit_lib_Makefile_am)
32884         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32885         not in the current directory, so concurrent gnulib-tool
32886         instances do not interfere.
32887
32888 2010-01-16  Jim Meyering  <meyering@redhat.com>
32889
32890         doc: update users.txt
32891         * users.txt: Add grep.
32892         (diffutils, gzip): Update URLs.
32893
32894 2010-01-12  Bruno Haible  <bruno@clisp.org>
32895
32896         posix_spawn: Avoid test failure on Cygwin.
32897         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32898         characters.
32899         Reported by Simon Josefsson.
32900
32901 2010-01-12  Bruno Haible  <bruno@clisp.org>
32902
32903         * tests/test-cond.c (main): When skipping the test, show the reason.
32904
32905 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32906
32907         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32908
32909 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32910
32911         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32912         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32913
32914 2010-01-12  Eric Blake  <ebb9@byu.net>
32915
32916         build: guarantee AS_VAR_IF
32917         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32918         (gl_AS_VAR_IF): Move...
32919         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32920         Reported by Simon Josefsson.
32921
32922 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32923
32924         * lib/stdio.in.h: Fix typo.
32925
32926 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32927
32928         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32929         libgpg-error.
32930
32931 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32932
32933         * tests/test-xalloc-die.sh: Use $EXEEXT.
32934
32935 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32936             Bruno Haible  <bruno@clisp.org>
32937
32938         getlogin, getlogin_r: Avoid test failure.
32939         * tests/test-getlogin.c: Include <stdio.h>.
32940         (main): Skip the test when the function fails because stdin is not a
32941         tty.
32942         * tests/test-getlogin_r.c: Include <stdio.h>.
32943         (main): Skip the test when the function fails because stdin is not a
32944         tty.
32945
32946 2010-01-11  Eric Blake  <ebb9@byu.net>
32947
32948         tests: avoid more large file warnings
32949         * tests/test-fflush.c: Avoid warning about ftell use.
32950         * tests/test-fseek.c: Avoid warning about fseek use.
32951
32952 2010-01-10  Bruno Haible  <bruno@clisp.org>
32953
32954         nproc: Work better on Linux when /proc and /sys are not mounted.
32955         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32956         as lower bound when, on glibc/Linux systems,
32957         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32958         Suggested by Pádraig Brady <P@draigbrady.com>.
32959         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32960
32961         nproc: Refactor.
32962         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32963         extracted from num_processors.
32964         (num_processors): Call it.
32965
32966 2010-01-11  Jim Meyering  <meyering@redhat.com>
32967
32968         utimecmp: avoid new warning from upcoming gcc-4.5.0
32969         * lib/utimecmp.c (BILLION): Define using #define rather than an
32970         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32971
32972 2010-01-11  Eric Blake  <ebb9@byu.net>
32973
32974         math: add portability warnings for classification macros
32975         * modules/math (Depends-on): Add warn-on-use.
32976         (Makefile.am): Provide new substitutions.
32977         * m4/math_h.m4 (gl_MATH_H): Require inline.
32978         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32979         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32980         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32981         implement warnings.
32982
32983         unistd: warn on use of environ without module
32984         * modules/unistd (Depends-on): Add warn-on-use.
32985         (Makefile.am): Provide new substitutions.
32986         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32987         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32988
32989         stdio: warn on suspicious uses
32990         * modules/stdio (Depends-on): Add warn-on-use.
32991         (Makefile.am): Provide new substitutions.
32992         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32993         fseeko.
32994         * lib/stdio.in.h (gets): Always warn on use.
32995         (fseek, ftell): Adjust when warnings are issued, and honor
32996         _GL_NO_LARGE_FILES as a way to silence the warning.
32997         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32998         any warning about large file offsets.
32999         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33000         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33001         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33002         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33003         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33004         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33005         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33006         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33007
33008         warn-on-use: new module
33009         * modules/warn-on-use: New file.
33010         * build-aux/warn-on-use.h: Likewise.
33011         * m4/warn-on-use.m4: Likewise.
33012         * MODULES.html.sh (Support for building): Mention it.
33013
33014 2010-01-10  Bruno Haible  <bruno@clisp.org>
33015
33016         Tests for module 'unistr/u32-strdup'.
33017         * modules/unistr/u32-strdup-tests: New file.
33018         * tests/unistr/test-u32-strdup.c: New file.
33019
33020         Tests for module 'unistr/u16-strdup'.
33021         * modules/unistr/u16-strdup-tests: New file.
33022         * tests/unistr/test-u16-strdup.c: New file.
33023
33024         Tests for module 'unistr/u8-strdup'.
33025         * modules/unistr/u8-strdup-tests: New file.
33026         * tests/unistr/test-u8-strdup.c: New file.
33027         * tests/unistr/test-strdup.h: New file.
33028
33029         Tests for module 'unistr/u32-strncmp'.
33030         * modules/unistr/u32-strncmp-tests: New file.
33031         * tests/unistr/test-u32-strncmp.c: New file.
33032
33033         Tests for module 'unistr/u16-strncmp'.
33034         * modules/unistr/u16-strncmp-tests: New file.
33035         * tests/unistr/test-u16-strncmp.c: New file.
33036
33037         Tests for module 'unistr/u8-strncmp'.
33038         * modules/unistr/u8-strncmp-tests: New file.
33039         * tests/unistr/test-u8-strncmp.c: New file.
33040         * tests/unistr/test-strncmp.h: New file.
33041
33042         Tests for module 'unistr/u32-strcoll'.
33043         * modules/unistr/u32-strcoll-tests: New file.
33044         * tests/unistr/test-u32-strcoll.c: New file.
33045
33046         Tests for module 'unistr/u16-strcoll'.
33047         * modules/unistr/u16-strcoll-tests: New file.
33048         * tests/unistr/test-u16-strcoll.c: New file.
33049
33050         Tests for module 'unistr/u8-strcoll'.
33051         * modules/unistr/u8-strcoll-tests: New file.
33052         * tests/unistr/test-u8-strcoll.c: New file.
33053
33054         Tests for module 'unistr/u32-strcmp'.
33055         * modules/unistr/u32-strcmp-tests: New file.
33056         * tests/unistr/test-u32-strcmp.c: New file.
33057         * tests/unistr/test-u32-strcmp.h: New file.
33058
33059         Tests for module 'unistr/u16-strcmp'.
33060         * modules/unistr/u16-strcmp-tests: New file.
33061         * tests/unistr/test-u16-strcmp.c: New file.
33062         * tests/unistr/test-u16-strcmp.h: New file.
33063
33064         Tests for module 'unistr/u8-strcmp'.
33065         * modules/unistr/u8-strcmp-tests: New file.
33066         * tests/unistr/test-u8-strcmp.c: New file.
33067         * tests/unistr/test-u8-strcmp.h: New file.
33068         * tests/unistr/test-strcmp.h: New file.
33069
33070         Tests for module 'unistr/u32-strncat'.
33071         * modules/unistr/u32-strncat-tests: New file.
33072         * tests/unistr/test-u32-strncat.c: New file.
33073
33074         Tests for module 'unistr/u16-strncat'.
33075         * modules/unistr/u16-strncat-tests: New file.
33076         * tests/unistr/test-u16-strncat.c: New file.
33077
33078         Tests for module 'unistr/u8-strncat'.
33079         * modules/unistr/u8-strncat-tests: New file.
33080         * tests/unistr/test-u8-strncat.c: New file.
33081         * tests/unistr/test-strncat.h: New file.
33082
33083         Tests for module 'unistr/u32-strcat'.
33084         * modules/unistr/u32-strcat-tests: New file.
33085         * tests/unistr/test-u32-strcat.c: New file.
33086
33087         Tests for module 'unistr/u16-strcat'.
33088         * modules/unistr/u16-strcat-tests: New file.
33089         * tests/unistr/test-u16-strcat.c: New file.
33090
33091         Tests for module 'unistr/u8-strcat'.
33092         * modules/unistr/u8-strcat-tests: New file.
33093         * tests/unistr/test-u8-strcat.c: New file.
33094         * tests/unistr/test-strcat.h: New file.
33095
33096         Tests for module 'unistr/u32-stpncpy'.
33097         * modules/unistr/u32-stpncpy-tests: New file.
33098         * tests/unistr/test-u32-stpncpy.c: New file.
33099
33100         Tests for module 'unistr/u16-stpncpy'.
33101         * modules/unistr/u16-stpncpy-tests: New file.
33102         * tests/unistr/test-u16-stpncpy.c: New file.
33103
33104         Tests for module 'unistr/u8-stpncpy'.
33105         * modules/unistr/u8-stpncpy-tests: New file.
33106         * tests/unistr/test-u8-stpncpy.c: New file.
33107         * tests/unistr/test-stpncpy.h: New file.
33108
33109         Tests for module 'unistr/u32-strncpy'.
33110         * modules/unistr/u32-strncpy-tests: New file.
33111         * tests/unistr/test-u32-strncpy.c: New file.
33112
33113         Tests for module 'unistr/u16-strncpy'.
33114         * modules/unistr/u16-strncpy-tests: New file.
33115         * tests/unistr/test-u16-strncpy.c: New file.
33116
33117         Tests for module 'unistr/u8-strncpy'.
33118         * modules/unistr/u8-strncpy-tests: New file.
33119         * tests/unistr/test-u8-strncpy.c: New file.
33120         * tests/unistr/test-strncpy.h: New file.
33121
33122         Tests for module 'unistr/u32-stpcpy'.
33123         * modules/unistr/u32-stpcpy-tests: New file.
33124         * tests/unistr/test-u32-stpcpy.c: New file.
33125
33126         Tests for module 'unistr/u16-stpcpy'.
33127         * modules/unistr/u16-stpcpy-tests: New file.
33128         * tests/unistr/test-u16-stpcpy.c: New file.
33129
33130         Tests for module 'unistr/u8-stpcpy'.
33131         * modules/unistr/u8-stpcpy-tests: New file.
33132         * tests/unistr/test-u8-stpcpy.c: New file.
33133         * tests/unistr/test-stpcpy.h: New file.
33134
33135         Tests for module 'unistr/u32-strcpy'.
33136         * modules/unistr/u32-strcpy-tests: New file.
33137         * tests/unistr/test-u32-strcpy.c: New file.
33138
33139         Tests for module 'unistr/u16-strcpy'.
33140         * modules/unistr/u16-strcpy-tests: New file.
33141         * tests/unistr/test-u16-strcpy.c: New file.
33142
33143         Tests for module 'unistr/u8-strcpy'.
33144         * modules/unistr/u8-strcpy-tests: New file.
33145         * tests/unistr/test-u8-strcpy.c: New file.
33146         * tests/unistr/test-strcpy.h: New file.
33147
33148         Tests for module 'unistr/u32-strnlen'.
33149         * modules/unistr/u32-strnlen-tests: New file.
33150         * tests/unistr/test-u32-strnlen.c: New file.
33151
33152         Tests for module 'unistr/u16-strnlen'.
33153         * modules/unistr/u16-strnlen-tests: New file.
33154         * tests/unistr/test-u16-strnlen.c: New file.
33155
33156         Tests for module 'unistr/u8-strnlen'.
33157         * modules/unistr/u8-strnlen-tests: New file.
33158         * tests/unistr/test-u8-strnlen.c: New file.
33159         * tests/unistr/test-strnlen.h: New file.
33160
33161         Tests for module 'unistr/u32-strlen'.
33162         * modules/unistr/u32-strlen-tests: New file.
33163         * tests/unistr/test-u32-strlen.c: New file.
33164
33165         Tests for module 'unistr/u16-strlen'.
33166         * modules/unistr/u16-strlen-tests: New file.
33167         * tests/unistr/test-u16-strlen.c: New file.
33168
33169         Tests for module 'unistr/u8-strlen'.
33170         * modules/unistr/u8-strlen-tests: New file.
33171         * tests/unistr/test-u8-strlen.c: New file.
33172
33173         Tests for module 'unistr/u32-prev'.
33174         * modules/unistr/u32-prev-tests: New file.
33175         * tests/unistr/test-u32-prev.c: New file.
33176
33177         Tests for module 'unistr/u16-prev'.
33178         * modules/unistr/u16-prev-tests: New file.
33179         * tests/unistr/test-u16-prev.c: New file.
33180
33181         Tests for module 'unistr/u8-prev'.
33182         * modules/unistr/u8-prev-tests: New file.
33183         * tests/unistr/test-u8-prev.c: New file.
33184
33185         Tests for module 'unistr/u32-next'.
33186         * modules/unistr/u32-next-tests: New file.
33187         * tests/unistr/test-u32-next.c: New file.
33188
33189         Tests for module 'unistr/u16-next'.
33190         * modules/unistr/u16-next-tests: New file.
33191         * tests/unistr/test-u16-next.c: New file.
33192
33193         Tests for module 'unistr/u8-next'.
33194         * modules/unistr/u8-next-tests: New file.
33195         * tests/unistr/test-u8-next.c: New file.
33196
33197         Tests for module 'unistr/u32-strmbtouc'.
33198         * modules/unistr/u32-strmbtouc-tests: New file.
33199         * tests/unistr/test-u32-strmbtouc.c: New file.
33200
33201         Tests for module 'unistr/u16-strmbtouc'.
33202         * modules/unistr/u16-strmbtouc-tests: New file.
33203         * tests/unistr/test-u16-strmbtouc.c: New file.
33204
33205         Tests for module 'unistr/u8-strmbtouc'.
33206         * modules/unistr/u8-strmbtouc-tests: New file.
33207         * tests/unistr/test-u8-strmbtouc.c: New file.
33208
33209         Tests for module 'unistr/u32-strmblen'.
33210         * modules/unistr/u32-strmblen-tests: New file.
33211         * tests/unistr/test-u32-strmblen.c: New file.
33212
33213         Tests for module 'unistr/u16-strmblen'.
33214         * modules/unistr/u16-strmblen-tests: New file.
33215         * tests/unistr/test-u16-strmblen.c: New file.
33216
33217         Tests for module 'unistr/u8-strmblen'.
33218         * modules/unistr/u8-strmblen-tests: New file.
33219         * tests/unistr/test-u8-strmblen.c: New file.
33220
33221         Tests for module 'unistr/u32-cpy-alloc'.
33222         * modules/unistr/u32-cpy-alloc-tests: New file.
33223         * tests/unistr/test-u32-cpy-alloc.c: New file.
33224
33225         Tests for module 'unistr/u16-cpy-alloc'.
33226         * modules/unistr/u16-cpy-alloc-tests: New file.
33227         * tests/unistr/test-u16-cpy-alloc.c: New file.
33228
33229         Tests for module 'unistr/u8-cpy-alloc'.
33230         * modules/unistr/u8-cpy-alloc-tests: New file.
33231         * tests/unistr/test-u8-cpy-alloc.c: New file.
33232         * tests/unistr/test-cpy-alloc.h: New file.
33233
33234         Tests for module 'unistr/u32-mbsnlen'.
33235         * modules/unistr/u32-mbsnlen-tests: New file.
33236         * tests/unistr/test-u32-mbsnlen.c: New file.
33237
33238         Tests for module 'unistr/u16-mbsnlen'.
33239         * modules/unistr/u16-mbsnlen-tests: New file.
33240         * tests/unistr/test-u16-mbsnlen.c: New file.
33241
33242         Tests for module 'unistr/u8-mbsnlen'.
33243         * modules/unistr/u8-mbsnlen-tests: New file.
33244         * tests/unistr/test-u8-mbsnlen.c: New file.
33245
33246         Tests for module 'unistr/u32-chr'.
33247         * modules/unistr/u32-chr-tests: New file.
33248         * tests/unistr/test-u32-chr.c: New file.
33249
33250         Tests for module 'unistr/u16-chr'.
33251         * modules/unistr/u16-chr-tests: New file.
33252         * tests/unistr/test-u16-chr.c: New file.
33253
33254         Tests for module 'unistr/u8-chr'.
33255         * modules/unistr/u8-chr-tests: New file.
33256         * tests/unistr/test-u8-chr.c: New file.
33257         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33258
33259         Tests for module 'unistr/u32-cmp2'.
33260         * modules/unistr/u32-cmp2-tests: New file.
33261         * tests/unistr/test-u32-cmp2.c: New file.
33262
33263         Tests for module 'unistr/u16-cmp2'.
33264         * modules/unistr/u16-cmp2-tests: New file.
33265         * tests/unistr/test-u16-cmp2.c: New file.
33266
33267         Tests for module 'unistr/u8-cmp2'.
33268         * modules/unistr/u8-cmp2-tests: New file.
33269         * tests/unistr/test-u8-cmp2.c: New file.
33270         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33271
33272         Tests for module 'unistr/u32-cmp'.
33273         * modules/unistr/u32-cmp-tests: New file.
33274         * tests/unistr/test-u32-cmp.c: New file.
33275
33276         Tests for module 'unistr/u16-cmp'.
33277         * modules/unistr/u16-cmp-tests: New file.
33278         * tests/unistr/test-u16-cmp.c: New file.
33279
33280         Tests for module 'unistr/u8-cmp'.
33281         * modules/unistr/u8-cmp-tests: New file.
33282         * tests/unistr/test-u8-cmp.c: New file.
33283         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33284
33285         Tests for module 'unistr/u32-set'.
33286         * modules/unistr/u32-set-tests: New file.
33287         * tests/unistr/test-u32-set.c: New file.
33288
33289         Tests for module 'unistr/u16-set'.
33290         * modules/unistr/u16-set-tests: New file.
33291         * tests/unistr/test-u16-set.c: New file.
33292
33293         Tests for module 'unistr/u8-set'.
33294         * modules/unistr/u8-set-tests: New file.
33295         * tests/unistr/test-u8-set.c: New file.
33296         * tests/unistr/test-set.h: New file.
33297
33298         Tests for module 'unistr/u32-move'.
33299         * modules/unistr/u32-move-tests: New file.
33300         * tests/unistr/test-u32-move.c: New file.
33301
33302         Tests for module 'unistr/u16-move'.
33303         * modules/unistr/u16-move-tests: New file.
33304         * tests/unistr/test-u16-move.c: New file.
33305
33306         Tests for module 'unistr/u8-move'.
33307         * modules/unistr/u8-move-tests: New file.
33308         * tests/unistr/test-u8-move.c: New file.
33309         * tests/unistr/test-move.h: New file.
33310
33311         Tests for module 'unistr/u32-cpy'.
33312         * modules/unistr/u32-cpy-tests: New file.
33313         * tests/unistr/test-u32-cpy.c: New file.
33314
33315         Tests for module 'unistr/u16-cpy'.
33316         * modules/unistr/u16-cpy-tests: New file.
33317         * tests/unistr/test-u16-cpy.c: New file.
33318
33319         Tests for module 'unistr/u8-cpy'.
33320         * modules/unistr/u8-cpy-tests: New file.
33321         * tests/unistr/test-u8-cpy.c: New file.
33322         * tests/unistr/test-cpy.h: New file.
33323
33324 2010-01-09  Bruno Haible  <bruno@clisp.org>
33325
33326         Tests for module 'unistr/u32-uctomb'.
33327         * modules/unistr/u32-uctomb-tests: New file.
33328         * tests/unistr/test-u32-uctomb.c: New file.
33329
33330         Tests for module 'unistr/u16-uctomb'.
33331         * modules/unistr/u16-uctomb-tests: New file.
33332         * tests/unistr/test-u16-uctomb.c: New file.
33333
33334         Tests for module 'unistr/u8-uctomb'.
33335         * modules/unistr/u8-uctomb-tests: New file.
33336         * tests/unistr/test-u8-uctomb.c: New file.
33337
33338         Tests for module 'unistr/u32-mbtoucr'.
33339         * modules/unistr/u32-mbtoucr-tests: New file.
33340         * tests/unistr/test-u32-mbtoucr.c: New file.
33341
33342         Tests for module 'unistr/u16-mbtoucr'.
33343         * modules/unistr/u16-mbtoucr-tests: New file.
33344         * tests/unistr/test-u16-mbtoucr.c: New file.
33345
33346         Tests for module 'unistr/u8-mbtoucr'.
33347         * modules/unistr/u8-mbtoucr-tests: New file.
33348         * tests/unistr/test-u8-mbtoucr.c: New file.
33349
33350         Tests for module 'unistr/u32-mbtouc'.
33351         * modules/unistr/u32-mbtouc-tests: New file.
33352         * tests/unistr/test-u32-mbtouc.c: New file.
33353
33354         Tests for module 'unistr/u16-mbtouc'.
33355         * modules/unistr/u16-mbtouc-tests: New file.
33356         * tests/unistr/test-u16-mbtouc.c: New file.
33357
33358         Tests for module 'unistr/u8-mbtouc'.
33359         * modules/unistr/u8-mbtouc-tests: New file.
33360         * tests/unistr/test-u8-mbtouc.c: New file.
33361
33362         Tests for module 'unistr/u32-mbtouc-unsafe'.
33363         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33364         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33365         * tests/unistr/test-u32-mbtouc.h: New file.
33366
33367         Tests for module 'unistr/u16-mbtouc-unsafe'.
33368         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33369         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33370         * tests/unistr/test-u16-mbtouc.h: New file.
33371
33372         Tests for module 'unistr/u8-mbtouc-unsafe'.
33373         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33374         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33375         * tests/unistr/test-u8-mbtouc.h: New file.
33376
33377         Tests for module 'unistr/u32-mblen'.
33378         * modules/unistr/u32-mblen-tests: New file.
33379         * tests/unistr/test-u32-mblen.c: New file.
33380
33381         Tests for module 'unistr/u16-mblen'.
33382         * modules/unistr/u16-mblen-tests: New file.
33383         * tests/unistr/test-u16-mblen.c: New file.
33384
33385         Tests for module 'unistr/u8-mblen'.
33386         * modules/unistr/u8-mblen-tests: New file.
33387         * tests/unistr/test-u8-mblen.c: New file.
33388
33389         Tests for module 'unistr/u32-to-u16'.
33390         * modules/unistr/u32-to-u16-tests: New file.
33391         * tests/unistr/test-u32-to-u16.c: New file.
33392
33393         Tests for module 'unistr/u32-to-u8'.
33394         * modules/unistr/u32-to-u8-tests: New file.
33395         * tests/unistr/test-u32-to-u8.c: New file.
33396
33397         Tests for module 'unistr/u16-to-u32'.
33398         * modules/unistr/u16-to-u32-tests: New file.
33399         * tests/unistr/test-u16-to-u32.c: New file.
33400
33401         Tests for module 'unistr/u16-to-u8'.
33402         * modules/unistr/u16-to-u8-tests: New file.
33403         * tests/unistr/test-u16-to-u8.c: New file.
33404
33405         Tests for module 'unistr/u8-to-u32'.
33406         * modules/unistr/u8-to-u32-tests: New file.
33407         * tests/unistr/test-u8-to-u32.c: New file.
33408
33409         Tests for module 'unistr/u8-to-u16'.
33410         * modules/unistr/u8-to-u16-tests: New file.
33411         * tests/unistr/test-u8-to-u16.c: New file.
33412
33413         Tests for module 'unistr/u32-check'.
33414         * modules/unistr/u32-check-tests: New file.
33415         * tests/unistr/test-u32-check.c: New file.
33416
33417         Tests for module 'unistr/u16-check'.
33418         * modules/unistr/u16-check-tests: New file.
33419         * tests/unistr/test-u16-check.c: New file.
33420
33421         Tests for module 'unistr/u8-check'.
33422         * modules/unistr/u8-check-tests: New file.
33423         * tests/unistr/test-u8-check.c: New file.
33424
33425         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33426         (category_equals): New function.
33427         (main): Add more tests.
33428         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33429
33430         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33431
33432 2010-01-10  Bruno Haible  <bruno@clisp.org>
33433
33434         unistr/u*-strcoll: Try harder to distinguish different strings.
33435         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33436         compare s1 and s2 to see if they are different.
33437
33438 2010-01-10  Bruno Haible  <bruno@clisp.org>
33439
33440         unistr/u*-stpncpy: Fix the return value.
33441         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33442         description of the return value consistent with stpncpy in glibc.
33443         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33444         written non-NUL unit.
33445
33446 2010-01-10  Bruno Haible  <bruno@clisp.org>
33447
33448         unistr/u*-next: Add missing dependencies.
33449         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33450         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33451         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33452
33453 2010-01-10  Bruno Haible  <bruno@clisp.org>
33454
33455         unistr/u8-mbsnlen: Fix return value for incomplete character.
33456         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33457         u8_mblen.
33458         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33459         Remove unistr/u8-mblen.
33460         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33461         u16_mblen.
33462         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33463         Remove unistr/u16-mblen.
33464
33465 2010-01-10  Bruno Haible  <bruno@clisp.org>
33466
33467         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33468         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33469         Reported by Brian Gough <bjg@gnu.org> and
33470         Chris Clayton <chris2553@googlemail.com> via
33471         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33472
33473 2010-01-09  Bruno Haible  <bruno@clisp.org>
33474
33475         unistr/u16-to-u32: Reject invalid input.
33476         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33477         u16_mbtouc.
33478         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33479         Remove unistr/u16-mbtouc.
33480
33481         unistr/u16-to-u8: Reject invalid input.
33482         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33483         u16_mbtouc.
33484         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33485         Remove unistr/u16-mbtouc.
33486
33487         unistr/u8-to-u32: Reject invalid input.
33488         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33489         u8_mbtouc.
33490         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33491         Remove unistr/u8-mbtouc.
33492
33493         unistr/u8-to-u16: Reject invalid input.
33494         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33495         u8_mbtouc.
33496         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33497         Remove unistr/u8-mbtouc.
33498
33499 2010-01-09  Bruno Haible  <bruno@clisp.org>
33500
33501         Tests for module 'getlogin'.
33502         * modules/getlogin-tests: New file.
33503         * tests/test-getlogin.c: New file.
33504
33505         New module 'getlogin'.
33506         * lib/unistd.in.h (getlogin): New declaration.
33507         * lib/getlogin.c: New file.
33508         * m4/getlogin.m4: New file.
33509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33510         HAVE_GETLOGIN.
33511         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33512         HAVE_GETLOGIN.
33513         * modules/getlogin: New file.
33514         * doc/posix-functions/getlogin.texi: Mention the new module.
33515         Reported by John W. Eaton <jwe@gnu.org>.
33516
33517 2010-01-09  Bruno Haible  <bruno@clisp.org>
33518
33519         getlogin_r: Support for native Windows.
33520         * lib/getlogin_r.c: Include <windows.h>
33521         (getlogin_r): Implement for native Windows.
33522         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33523         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33524         via John W. Eaton <jwe@gnu.org>.
33525
33526 2010-01-09  Bruno Haible  <bruno@clisp.org>
33527
33528         getlogin_r: Small fixes.
33529         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33530         succeeds.
33531         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33532         before testing whether getlogin_r is declared. No need to set
33533         HAVE_DECL_GETLOGIN_R to 1.
33534         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33535
33536 2010-01-09  Bruno Haible  <bruno@clisp.org>
33537
33538         * lib/unistd.in.h (getlogin_r): Add comment.
33539
33540 2010-01-09  Bruno Haible  <bruno@clisp.org>
33541
33542         Tests for module 'getlogin_r'.
33543         * modules/getlogin_r-tests: New file.
33544         * tests/test-getlogin_r.c: New file.
33545
33546 2010-01-09  Jim Meyering  <meyering@redhat.com>
33547
33548         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33549         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33550         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33551
33552 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33553
33554         * lib/dup2.c (rpl_dup2): Improve comment.
33555
33556 2010-01-08  Eric Blake  <ebb9@byu.net>
33557
33558         maint.mk: allow packages to add makefile @@ exceptions
33559         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33560         (sc_makefile_check): Rename...
33561         (sc_makefile_at_at_check): ...to this, and use hook.
33562
33563         dup2: work around mingw bug
33564         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33565         Reported by Simon Josefsson.
33566
33567 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33568
33569         glob: Fix C++ compilation.
33570         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33571         C++.
33572
33573 2010-01-07  Bruno Haible  <bruno@clisp.org>
33574
33575         Fix indentation of wctype.in.h, broken since 2007-01-06.
33576         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33577
33578 2010-01-07  Bruno Haible  <bruno@clisp.org>
33579
33580         mbslen: Avoid collision with system function.
33581         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33582         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33583         * m4/mbslen.m4: New file.
33584         * modules/mbslen (Files): Add it.
33585         (configure.ac): Invoke gl_MBSLEN.
33586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33587         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33588         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33589         via Ian Beckwith <ianb@erislabs.net>.
33590
33591 2010-01-07  Bruno Haible  <bruno@clisp.org>
33592
33593         dirent: Document the last fix.
33594         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33595
33596 2010-01-07  Bruno Haible  <bruno@clisp.org>
33597
33598         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33599         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33600         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33601         va_list are defined.
33602         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33603         Reported by Eric Blake.
33604
33605 2010-01-07  Bruno Haible  <bruno@clisp.org>
33606
33607         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33608         * modules/xlist (Depends-on): Add 'list',
33609         * modules/xoset (Depends-on): Add 'oset'.
33610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33611
33612 2010-01-07  Bruno Haible  <bruno@clisp.org>
33613
33614         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33615         * doc/posix-functions/strncasecmp.texi: Likewise.
33616
33617 2010-01-07  Bruno Haible  <bruno@clisp.org>
33618
33619         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33620
33621 2010-01-07  John W. Eaton  <jwe@octave.org>
33622
33623         wctype: allow C++ use
33624         * lib/wctype.in.h: Add extern "C" block for C++.
33625
33626 2010-01-06  Eric Blake  <ebb9@byu.net>
33627
33628         maint.mk: detect incorrect GFDL usage
33629         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33630
33631 2010-01-06  Jim Meyering  <meyering@redhat.com>
33632         and Eric Blake  <ebb9@byu.net>
33633
33634         maint.mk: ignore multi-line copyright in NEWS
33635         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33636
33637 2010-01-06  Eric Blake  <ebb9@byu.net>
33638
33639         select: add missing dependency
33640         * modules/select-tests (Depends-on): Move sockets dependency...
33641         * modules/select (Depends-on): ...here.
33642         Reported by Ian Beckwith.
33643
33644         doc: regenerate INSTALL
33645         * doc/INSTALL: Reflect recent autoconf update.
33646         * doc/INSTALL.ISO: Likewise.
33647         * doc/INSTALL.UTF-8: Likewise.
33648
33649         pread: fix compilation on glibc
33650         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33651         Reported by Ralf Wildenhues.
33652
33653         dirent: fix test failure
33654         * lib/dirent.in.h (includes): Guarantee ino_t.
33655         Reported by Ralf Wildenhues.
33656
33657 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33658
33659         linkat, renameat: avoid bad free
33660         * lib/at-func2.c (at_func2): Fix typo.
33661         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33662
33663 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33664
33665         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33666         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33667         to avoid failure of symlink test later.
33668
33669 2010-01-06  Eric Blake  <ebb9@byu.net>
33670
33671         stdio, unistd: guarantee ssize_t
33672         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33673         2008 are exposed when needed.
33674         * lib/stdio.in.h (includes): Likewise.
33675         Reported by Ralf Wildenhues.
33676
33677 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33678
33679         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33680         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33681         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33682
33683 2010-01-06  Jim Meyering  <meyering@redhat.com>
33684
33685         readtokens: this module *does* require xalloc.h
33686         It uses only functions that were omitted by the old syntax-check rule.
33687         * lib/readtokens.c: Include "xalloc.h" once again.
33688         * modules/readtokens (Depends-on): Add xalloc.
33689         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33690
33691 2010-01-05  Eric Blake  <ebb9@byu.net>
33692
33693         maint: support 'make announcement' from a VPATH build
33694         * top/maint.mk (announcement): Look for correct NEWS file.
33695
33696 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33697
33698         utimens (fdutimens): ignore a negative FD, per contract
33699         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33700         when we have a valid file descriptor.  Otherwise, using a brand
33701         new glibc (with just-patched futimens that now fails with EBADF)
33702         would cause this function to fail with ENOSYS.
33703         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33704         See also http://bugzilla.redhat.com/552320.
33705
33706 2010-01-05  Eric Blake  <ebb9@byu.net>
33707
33708         strcase: document what it provides
33709         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33710         gnulib module.
33711         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33712         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33713
33714 2010-01-05  Jim Meyering  <meyering@redhat.com>
33715
33716         maint: remove useless inclusions of "xalloc.h"
33717         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33718         * lib/readtokens.c: Likewise.
33719         * lib/same.c: Likewise.
33720         * modules/getloadavg (Depends-on): Remove xalloc.
33721         * modules/readtokens: Likewise.
33722         * modules/same: Likewise.
33723
33724         maint.mk: include 4 more function names in alloca.h-checking regexp
33725         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33726         regexp.  Before, we would give a false-positive (saying alloca.h
33727         is included unnecessarily) when the only uses involved omitted symbols.
33728
33729         xalloc.h: use consistent formatting
33730         * lib/xalloc.h: Move declarations to start in the first column.
33731
33732 2010-01-05  Eric Blake  <ebb9@byu.net>
33733
33734         mkdir: avoid xalloc
33735         * lib/mkdir.c (includes): Drop unused header.
33736         Reported by John W. Eaton.
33737
33738 2010-01-04  Jim Meyering  <meyering@redhat.com>
33739
33740         nl_langinfo: avoid configure-time syntax error
33741         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33742         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33743         the empty string.  Don't let that provoke a shell syntax error.
33744
33745         regcomp, regexec, fnmatch: avoid array bounds read error
33746         * lib/regcomp.c (build_equiv_class): From glibc:
33747         Use only the low 24 bits of a findidx return value as an index
33748         into the weights array.  Patch by Ulrich Drepper:
33749         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33750         * lib/regexec.c (check_node_accept_bytes): Likewise.
33751         * lib/fnmatch_loop.c (FCT): Likewise.
33752
33753         regcomp: skip collseq lookup when there are no rules
33754         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33755         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33756
33757         regcomp: recognize ill-formed { } expressions
33758         * lib/regcomp.c (parse_dup_op): From glibc:
33759         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33760
33761         regcomp: fix typo in comment
33762         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33763         s/satisfy/satisfies/.
33764
33765         regcomp: sync from glibc: remove dead store
33766         * lib/regcomp.c (duplicate_node_closure): Remove useless
33767         search_duplicated_node call and dead store.
33768
33769         regcomp: sync from glibc; always use nl_langinfo
33770         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33771         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33772         * modules/regex (Depends-on): Add nl_langinfo.
33773
33774 2010-01-04  Eric Blake  <ebb9@byu.net>
33775
33776         fdopendir: fix configure test
33777         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33778
33779 2010-01-01  Bruno Haible  <bruno@clisp.org>
33780
33781         wchar: Remove unused configure check.
33782         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33783
33784 2010-01-01  Eric Blake  <ebb9@byu.net>
33785
33786         headers: make check of system header explicit
33787         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33788         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33789         ourselves.
33790         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33791         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33792         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33793         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33794         internals.
33795         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33796         missing.
33797         Suggested by Bruno Haible.
33798
33799 2010-01-01  Jim Meyering  <meyering@redhat.com>
33800
33801         ChangeLog: tweak to eliminate unnecessary copyright line
33802         * ChangeLog: Remove a copyright line that was mistakenly updated
33803         by today's update-copyright run.  Reported by Eric Blake.
33804
33805         test-update-copyright: don't let envvar setting cause test failure
33806         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33807
33808 2010-01-01  Bruno Haible  <bruno@clisp.org>
33809
33810         localename: Avoid gcc warning.
33811         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33812         function if it is not used.
33813
33814 2010-01-01  Jim Meyering  <meyering@redhat.com>
33815
33816         update nearly all FSF copyright year lists to include 2010
33817         Use the same procedure as for 2009, outlined in
33818         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33819
33820         version-etc: set COPYRIGHT_YEAR to 2010
33821         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33822
33823 2009-12-31  Eric Blake  <ebb9@byu.net>
33824
33825         doc: correct availability of cygwin 1.5.x getopt
33826         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33827         variables.
33828         * doc/posix-functions/opterr.texi (opterr): Likewise.
33829         * doc/posix-functions/optind.texi (optind): Likewise.
33830         * doc/posix-functions/optopt.texi (optopt): Likewise.
33831         * doc/posix-functions/tzname.texi (tzname): Likewise.
33832
33833         openat: update maintainer
33834         * modules/openat (Maintainer): Add myself.
33835
33836         utimens: avoid shadowing warning
33837         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33838         buffers into one, to avoid shadowing, as well as avoiding a
33839         redundant stat.
33840         Reported by Jim Meyering.
33841
33842         test-dup2: avoid compiler warning
33843         * tests/test-dup2.c (is_inheritable): Only define if used.
33844
33845 2010-01-01  Bruno Haible  <bruno@clisp.org>
33846
33847         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33848         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33849         defined, use wctomb instead of wcrtomb.
33850
33851 2010-01-01  Bruno Haible  <bruno@clisp.org>
33852
33853         iconv: Reject native Solaris iconv.
33854         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33855         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33856
33857 2009-12-31  Bruno Haible  <bruno@clisp.org>
33858
33859         * tests/test-signal.c (main): Remove test of 'SIG'.
33860
33861 2009-12-31  Bruno Haible  <bruno@clisp.org>
33862
33863         spawn: Fix incomplete fix.
33864         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33865         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33866         warnings for GNULIB_POSIXCHECK again.
33867         Reported by Eric Blake.
33868
33869 2009-12-31  Bruno Haible  <bruno@clisp.org>
33870
33871         Avoid namespace pollution on glibc systems.
33872         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33873         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33874         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33875         glibc systems.
33876
33877 2009-12-31  Bruno Haible  <bruno@clisp.org>
33878
33879         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33880         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33881         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33882         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33883         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33884         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33885         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33886
33887 2009-12-31  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33890         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33891         afterwards.
33892
33893 2009-12-31  Bruno Haible  <bruno@clisp.org>
33894
33895         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33896         SYS_UTSNAME_H.
33897
33898 2009-12-31  Bruno Haible  <bruno@clisp.org>
33899
33900         spawn: Fix misapplied patch.
33901         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33902         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33903         warnings for GNULIB_POSIXCHECK.
33904
33905 2009-12-31  Bruno Haible  <bruno@clisp.org>
33906
33907         times: Update after sys_times changed.
33908         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33909         * modules/times (Files): Add it.
33910         (configure.ac): Invoke gl_FUNC_TIMES.
33911
33912 2009-12-31  Bruno Haible  <bruno@clisp.org>
33913
33914         Use AC_C_INLINE where necessary.
33915         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33917         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33918         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33919         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33920         * m4/mbiter.m4 (gl_MBITER): Likewise.
33921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33922         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33923         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33924         * modules/u64 (configure.ac): Likewise.
33925
33926 2009-12-31  Bruno Haible  <bruno@clisp.org>
33927
33928         Use AC_C_INLINE instead of module 'inline' where possible.
33929         * modules/inline (Description): Clarify purpose.
33930         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33931         * modules/count-one-bits (Depends-on): Remove inline.
33932         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33933         * modules/openat (Depends-on): Remove inline.
33934         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33935         instead of depending on module 'inline'.
33936         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33937         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33938         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33939         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33940         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33941         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33942         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33943         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33944         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33945         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33946         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33947         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33948         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33949         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33950         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33951         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33952         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33953         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33954         Likewise.
33955         * modules/unictype/property-ascii-hex-digit (Depends-on,
33956         configure.ac): Likewise.
33957         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33958         configure.ac): Likewise.
33959         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33960         configure.ac): Likewise.
33961         * modules/unictype/property-bidi-block-separator (Depends-on,
33962         configure.ac): Likewise.
33963         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33964         configure.ac): Likewise.
33965         * modules/unictype/property-bidi-common-separator (Depends-on,
33966         configure.ac): Likewise.
33967         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33968         Likewise.
33969         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33970         configure.ac): Likewise.
33971         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33972         configure.ac): Likewise.
33973         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33974         configure.ac): Likewise.
33975         * modules/unictype/property-bidi-european-digit (Depends-on,
33976         configure.ac): Likewise.
33977         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33978         configure.ac): Likewise.
33979         * modules/unictype/property-bidi-left-to-right (Depends-on,
33980         configure.ac): Likewise.
33981         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33982         configure.ac): Likewise.
33983         * modules/unictype/property-bidi-other-neutral (Depends-on,
33984         configure.ac): Likewise.
33985         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33986         Likewise.
33987         * modules/unictype/property-bidi-segment-separator (Depends-on,
33988         configure.ac): Likewise.
33989         * modules/unictype/property-bidi-whitespace (Depends-on,
33990         configure.ac): Likewise.
33991         * modules/unictype/property-combining (Depends-on, configure.ac):
33992         Likewise.
33993         * modules/unictype/property-composite (Depends-on, configure.ac):
33994         Likewise.
33995         * modules/unictype/property-currency-symbol (Depends-on,
33996         configure.ac): Likewise.
33997         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33998         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33999         Likewise.
34000         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34001         configure.ac): Likewise.
34002         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34003         Likewise.
34004         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34005         Likewise.
34006         * modules/unictype/property-extender (Depends-on, configure.ac):
34007         Likewise.
34008         * modules/unictype/property-format-control (Depends-on, configure.ac):
34009         Likewise.
34010         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34011         Likewise.
34012         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34013         Likewise.
34014         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34015         Likewise.
34016         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34017         Likewise.
34018         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34019         Likewise.
34020         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34021         Likewise.
34022         * modules/unictype/property-id-start (Depends-on, configure.ac):
34023         Likewise.
34024         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34025         Likewise.
34026         * modules/unictype/property-ids-binary-operator (Depends-on,
34027         configure.ac): Likewise.
34028         * modules/unictype/property-ids-trinary-operator (Depends-on,
34029         configure.ac): Likewise.
34030         * modules/unictype/property-ignorable-control (Depends-on,
34031         configure.ac): Likewise.
34032         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34033         Likewise.
34034         * modules/unictype/property-join-control (Depends-on, configure.ac):
34035         Likewise.
34036         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34037         Likewise.
34038         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34039         Likewise.
34040         * modules/unictype/property-logical-order-exception (Depends-on,
34041         configure.ac): Likewise.
34042         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34043         Likewise.
34044         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34045         * modules/unictype/property-non-break (Depends-on, configure.ac):
34046         Likewise.
34047         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34048         Likewise.
34049         * modules/unictype/property-numeric (Depends-on, configure.ac):
34050         Likewise.
34051         * modules/unictype/property-other-alphabetic (Depends-on,
34052         configure.ac): Likewise.
34053         * modules/unictype/property-other-default-ignorable-code-point
34054         (Depends-on, configure.ac): Likewise.
34055         * modules/unictype/property-other-grapheme-extend (Depends-on,
34056         configure.ac): Likewise.
34057         * modules/unictype/property-other-id-continue (Depends-on,
34058         configure.ac): Likewise.
34059         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34060         Likewise.
34061         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34062         Likewise.
34063         * modules/unictype/property-other-math (Depends-on, configure.ac):
34064         Likewise.
34065         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34066         Likewise.
34067         * modules/unictype/property-paired-punctuation (Depends-on,
34068         configure.ac): Likewise.
34069         * modules/unictype/property-paragraph-separator (Depends-on,
34070         configure.ac): Likewise.
34071         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34072         Likewise.
34073         * modules/unictype/property-pattern-white-space (Depends-on,
34074         configure.ac): Likewise.
34075         * modules/unictype/property-private-use (Depends-on, configure.ac):
34076         Likewise.
34077         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34078         Likewise.
34079         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34080         Likewise.
34081         * modules/unictype/property-radical (Depends-on, configure.ac):
34082         Likewise.
34083         * modules/unictype/property-sentence-terminal (Depends-on,
34084         configure.ac): Likewise.
34085         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34086         Likewise.
34087         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34088         * modules/unictype/property-terminal-punctuation (Depends-on,
34089         configure.ac): Likewise.
34090         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34091         Likewise.
34092         * modules/unictype/property-unassigned-code-value (Depends-on,
34093         configure.ac): Likewise.
34094         * modules/unictype/property-unified-ideograph (Depends-on,
34095         configure.ac): Likewise.
34096         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34097         Likewise.
34098         * modules/unictype/property-variation-selector (Depends-on,
34099         configure.ac): Likewise.
34100         * modules/unictype/property-white-space (Depends-on, configure.ac):
34101         Likewise.
34102         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34103         Likewise.
34104         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34105         Likewise.
34106         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34107         Likewise.
34108         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34109         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34110         Likewise.
34111
34112 2009-12-31  Bruno Haible  <bruno@clisp.org>
34113
34114         Remove unnecessary AC_C_INLINE invocation.
34115         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34116         since 2009-08-21.
34117
34118 2009-12-31  Jim Meyering  <meyering@redhat.com>
34119
34120         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34121         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34122         With this change, we can all remove the gpg_key_ID = ... definition
34123         from our respective cfg.mk files.
34124
34125         maint.mk: create announcement template in ~/, not in /tmp
34126         * top/maint.mk (emit_upload_commands): Adjust.
34127         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34128         Remove temporary file, .ci-msg.
34129
34130 2009-12-31  Eric Blake  <ebb9@byu.net>
34131
34132         link-warning: always build headers with link warnings
34133         * modules/arpa_inet (Makefile.am): Always build replacement
34134         header.
34135         * modules/ctype (Makefile.am): Likewise.
34136         * modules/dirent (Makefile.am): Likewise.
34137         * modules/inttypes (Makefile.am): Likewise.
34138         * modules/langinfo (Makefile.am): Likewise.
34139         * modules/locale (Makefile.am): Likewise.
34140         * modules/spawn (Makefile.am): Likewise.
34141         * modules/sys_file (Makefile.am): Likewise.
34142         * modules/sys_ioctl (Makefile.am): Likewise.
34143         * modules/sys_select (Makefile.am): Likewise.
34144         * modules/sys_socket (Makefile.am): Likewise.
34145         * modules/sys_times (Makefile.am): Likewise.
34146         * modules/sys_utsname (Makefile.am): Likewise.
34147         * modules/sys_wait (Makefile.am): Likewise.
34148         * modules/wchar (Makefile.am): Likewise.
34149         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34150         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34151         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34152         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34153         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34154         Likewise.
34155         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34156         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34157         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34158         Likewise.
34159         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34160         Likewise.
34161         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34162         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34163         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34165         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34167         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34168         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34169         (gl_WCHAR_H_DEFAULTS): Likewise.
34170
34171 2009-12-31  Eric Blake  <ebb9@byu.net>
34172
34173         signal, spawn: use link warnings
34174         * lib/signal.in.h (sigset_t): Make unconditional.
34175         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34176         (sigpending, sigprocmask, sigaction): Add link warnings.
34177         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34178         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34179         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34180         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34181         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34182         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34183         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34184         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34185         (posix_spawn_file_actions_destroy)
34186         (posix_spawn_file_actions_addopen)
34187         (posix_spawn_file_actions_addclose)
34188         (posix_spawn_file_actions_adddup2): Likewise.
34189         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34190         * tests/test-signal.c (main): Enhance test.
34191
34192         spawn: improve wrapper support
34193         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34194         (gl_SPAWN_H_DEFAULTS): New defaults.
34195         * modules/spawn (Makefile.am): Substitute them.
34196         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34197         Only declare if missing or broken.
34198
34199         sys_times, sys_utsname: use include_next
34200         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34201         header.
34202         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34203         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34204         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34205         * modules/sys_times (Depends-on): Add include_next.
34206         (Makefile.am): Substitute additional values.
34207         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34208         * lib/sys_times.in.h (includes): Include native header, if
34209         available.
34210         * lib/sys_utsname.in.h (includes): Likewise.
34211         * tests/test-sys_times.c (main): Enhance test.
34212
34213         fdutimensat: revert prior patch
34214         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34215         utimens.h.
34216         Reported by Bruno Haible.
34217
34218 2009-12-30  Eric Blake  <ebb9@byu.net>
34219
34220         sys_wait: drop link-warning dependency
34221         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34222         link-warning efforts.
34223         * lib/sys_wait.in.h: Likewise.
34224
34225         fdutimensat: remove bogus dependency
34226         * modules/fdutimensat (Depends-on): Drop inline.
34227
34228         unistd: fix typo
34229         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34230
34231 2009-12-30  Bruno Haible  <bruno@clisp.org>
34232
34233         Fix compilation error with Solaris cc.
34234         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34235         * lib/unicase/u16-is-invariant.c: Likewise.
34236         * lib/unicase/u32-is-invariant.c: Likewise.
34237         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34238
34239 2009-12-30  Bruno Haible  <bruno@clisp.org>
34240
34241         Fix test crash.
34242         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34243         locales.
34244         Reported by Simon Josefsson <simon@josefsson.org>.
34245
34246 2009-12-30  Bruno Haible  <bruno@clisp.org>
34247
34248         Fix compilation error on most platforms.
34249         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34250         Reported by Simon Josefsson <simon@josefsson.org>
34251         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34252
34253 2009-12-30  Eric Blake  <ebb9@byu.net>
34254
34255         futimens, utimensat: work around ntfs-3g bug
34256         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34257         a ctime bug is present, and expand workaround to cover ntfs-3g.
34258         * lib/utimens.c (fdutimens, lutimens): Likewise.
34259         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34260         (validate_timespec): Adjust return value.
34261         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34262         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34263         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34264
34265 2009-12-29  Eric Blake  <ebb9@byu.net>
34266
34267         link-warning: make usage consistent
34268         * modules/ctype (Depends-on): Add link-warning.
34269         (Makefile.am): Update rules accordingly.
34270         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34271         * modules/locale (Depends-on, Makefile.am): Likewise.
34272         * modules/sys_file (Makefile.am): Likewise.
34273         * modules/getopt-posix (Makefile.am): Delete unused link warning
34274         efforts.
34275         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34276         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34277         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34278         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34279
34280         stdio: remove unused variables
34281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34282         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34283         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34284
34285         tests: test more substitute headers
34286         * modules/ctype-tests: New file.
34287         * modules/dirent-tests: Likewise.
34288         * modules/spawn-tests: Likewise.
34289         * modules/sys_file-tests: Likewise.
34290         * modules/sys_ioctl-tests: Likewise.
34291         * modules/sys_wait-tests: Likewise.
34292         * tests/test-ctype.c: Likewise.
34293         * tests/test-dirent.c: Likewise.
34294         * tests/test-spawn.c: Likewise.
34295         * tests/test-sys_file.c: Likewise.
34296         * tests/test-sys_ioctl.c: Likewise.
34297         * tests/test-sys_wait.c: Likewise.
34298         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34299         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34300         whether or not flock is in use.
34301
34302         tests: remove License section from module
34303         * modules/arpa_inet-tests: Remove unneeded section.
34304         * modules/byteswap-tests: Likewise.
34305         * modules/ceilf-tests: Likewise.
34306         * modules/ceill-tests: Likewise.
34307         * modules/crypto/des-tests: Likewise.
34308         * modules/crypto/gc-arcfour-tests: Likewise.
34309         * modules/crypto/gc-arctwo-tests: Likewise.
34310         * modules/crypto/gc-des-tests: Likewise.
34311         * modules/crypto/gc-hmac-md5-tests: Likewise.
34312         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34313         * modules/crypto/gc-md2-tests: Likewise.
34314         * modules/crypto/gc-md4-tests: Likewise.
34315         * modules/crypto/gc-md5-tests: Likewise.
34316         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34317         * modules/crypto/gc-rijndael-tests: Likewise.
34318         * modules/crypto/gc-sha1-tests: Likewise.
34319         * modules/crypto/gc-tests: Likewise.
34320         * modules/crypto/md2-tests: Likewise.
34321         * modules/crypto/md4-tests: Likewise.
34322         * modules/fcntl-h-tests: Likewise.
34323         * modules/floorf-tests: Likewise.
34324         * modules/floorl-tests: Likewise.
34325         * modules/frexp-nolibm-tests: Likewise.
34326         * modules/frexp-tests: Likewise.
34327         * modules/frexpl-nolibm-tests: Likewise.
34328         * modules/frexpl-tests: Likewise.
34329         * modules/getaddrinfo-tests: Likewise.
34330         * modules/inttypes-tests: Likewise.
34331         * modules/isfinite-tests: Likewise.
34332         * modules/isinf-tests: Likewise.
34333         * modules/ldexpl-tests: Likewise.
34334         * modules/locale-tests: Likewise.
34335         * modules/math-tests: Likewise.
34336         * modules/netdb-tests: Likewise.
34337         * modules/netinet_in-tests: Likewise.
34338         * modules/printf-frexp-tests: Likewise.
34339         * modules/printf-frexpl-tests: Likewise.
34340         * modules/priv-set-tests: Likewise.
34341         * modules/random_r-tests: Likewise.
34342         * modules/round-tests: Likewise.
34343         * modules/roundf-tests: Likewise.
34344         * modules/roundl-tests: Likewise.
34345         * modules/search-tests: Likewise.
34346         * modules/select-tests: Likewise.
34347         * modules/signal-tests: Likewise.
34348         * modules/stdbool-tests: Likewise.
34349         * modules/stddef-tests: Likewise.
34350         * modules/stdint-tests: Likewise.
34351         * modules/stdio-tests: Likewise.
34352         * modules/stdlib-tests: Likewise.
34353         * modules/string-tests: Likewise.
34354         * modules/strings-tests: Likewise.
34355         * modules/sys_select-tests: Likewise.
34356         * modules/sys_socket-tests: Likewise.
34357         * modules/sys_stat-tests: Likewise.
34358         * modules/sys_time-tests: Likewise.
34359         * modules/sys_utsname-tests: Likewise.
34360         * modules/sysexits-tests: Likewise.
34361         * modules/time-tests: Likewise.
34362         * modules/trunc-tests: Likewise.
34363         * modules/truncf-tests: Likewise.
34364         * modules/truncl-tests: Likewise.
34365         * modules/tsearch-tests: Likewise.
34366         * modules/unistd-tests: Likewise.
34367         * modules/wchar-tests: Likewise.
34368         * modules/wctype-tests: Likewise.
34369
34370         tests: fix license on several tests
34371         * tests/test-des.c: Update to GPLv3+.
34372         * tests/test-flock.c: Likewise.
34373         * tests/test-fsync.c: Likewise.
34374         * tests/test-futimens.h: Likewise.
34375         * tests/test-gc-arcfour.c: Likewise.
34376         * tests/test-gc-arctwo.c: Likewise.
34377         * tests/test-gc-des.c: Likewise.
34378         * tests/test-gc-hmac-md5.c: Likewise.
34379         * tests/test-gc-hmac-sha1.c: Likewise.
34380         * tests/test-gc-md2.c: Likewise.
34381         * tests/test-gc-md4.c: Likewise.
34382         * tests/test-gc-md5.c: Likewise.
34383         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34384         * tests/test-gc-rijndael.c: Likewise.
34385         * tests/test-gc-sha1.c: Likewise.
34386         * tests/test-gc.c: Likewise.
34387         * tests/test-getcwd.c: Likewise.
34388         * tests/test-link.c: Likewise.
34389         * tests/test-link.h: Likewise.
34390         * tests/test-lutimens.h: Likewise.
34391         * tests/test-md2.c: Likewise.
34392         * tests/test-md4.c: Likewise.
34393         * tests/test-mkdir.h: Likewise.
34394         * tests/test-rename.c: Likewise.
34395         * tests/test-rename.h: Likewise.
34396         * tests/test-safe-alloc.c: Likewise.
34397         * tests/test-utimens-common.h: Likewise.
34398         * tests/test-utimens.h: Likewise.
34399
34400         maint: sync license texts
34401         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34402         * doc/gpl-3.0.texi: Revert copyright year update.
34403         * doc/lgpl-3.0.texi: Likewise.
34404
34405 2009-12-29  Jim Meyering  <meyering@redhat.com>
34406
34407         update nearly all FSF copyright year lists to include 2009
34408         The files named by the following are exempted:
34409             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34410               test -f "$dst" && { echo "$dst"; continue; }
34411               test -d "$dst" || continue
34412               echo "$dst"/$(basename "$src")
34413             done > exempt
34414             git ls-files tests/unictype >> exempt
34415         In the remaining files, convert to all-interval notation if
34416         - there is already at least one year interval like 2000-2003
34417         - the file is maintained by me
34418         - the file is in lib/uni*/, where that style already prevails
34419         Otherwise, use update-copyright's default.
34420
34421 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34422         and Eric Blake  <ebb9@byu.net>
34423
34424         tests: don't require debug system() to pass
34425         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34426         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34427         * tests/test-unlink.h (test_unlink_func): Likewise.
34428         * tests/test-fstatat.c (main): ...into callers.
34429         * tests/test-lstat.c (main): Likewise.
34430         * tests/test-rmdir.c (main): Likewise.
34431         * tests/test-unlink.c (main): Likewise.
34432         * tests/test-unlinkat.c (main): Likewise.
34433         * tests/test-areadlink-with-size.c (main): Don't require a
34434         debug-only system call to pass, aiding cross-testing to mingw.
34435         * tests/test-areadlink.c (main): Likewise.
34436         * tests/test-areadlinkat-with-size.c (main): Likewise.
34437         * tests/test-areadlinkat.c (main): Likewise.
34438         * tests/test-canonicalize-lgpl.c (main): Likewise.
34439         * tests/test-canonicalize.c (main): Likewise.
34440         * tests/test-chown.c (main): Likewise.
34441         * tests/test-fchownat.c (main): Likewise.
34442         * tests/test-lchown.c (main): Likewise.
34443         * tests/test-fdutimensat.c (main): Likewise.
34444         * tests/test-futimens.c (main): Likewise.
34445         * tests/test-link.c (main): Likewise.
34446         * tests/test-linkat.c (main): Likewise.
34447         * tests/test-mkdir.c (main): Likewise.
34448         * tests/test-mkdirat.c (main): Likewise.
34449         * tests/test-mkfifo.c (main): Likewise.
34450         * tests/test-mkfifoat.c (main): Likewise.
34451         * tests/test-mknod.c (main): Likewise.
34452         * tests/test-readlink.c (main): Likewise.
34453         * tests/test-remove.c (main): Likewise.
34454         * tests/test-rename.c (main): Likewise.
34455         * tests/test-renameat.c (main): Likewise.
34456         * tests/test-symlink.c (main): Likewise.
34457         * tests/test-symlinkat.c (main): Likewise.
34458         * tests/test-utimens.c (main): Likewise.
34459         * tests/test-utimensat.c (main): Likewise.
34460
34461 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34462
34463         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34464         on $(UNUSED_PARAMETER_H) to avoid build failure.
34465
34466 2009-12-28  Jim Meyering  <meyering@redhat.com>
34467
34468         update-copyright: you may specify a max. line length other than 72
34469         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34470
34471         maint: use consistent FSF copyright line syntax
34472         * lib/posixtm.c: Add missing comma in FSF copyright line.
34473         * lib/posixtm.h: Likewise.
34474         * lib/getugroups.c: Add missing ", Inc.".
34475
34476         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34477         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34478         FSF copyright line.  Remove trailing blanks.
34479
34480 2009-12-28  Eric Blake  <ebb9@byu.net>
34481
34482         test-dup2: reduce dependencies
34483         * modules/cloexec (Configure.ac): Set witness.
34484         * modules/dup2-tests (Depends-on): Drop cloexec.
34485         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34486         not present.
34487         Suggested by Bruno Haible.
34488
34489 2009-12-26  Bruno Haible  <bruno@clisp.org>
34490
34491         Remove an unneeded dependency.
34492         * modules/fseterr (Depends-on): Remove dup2.
34493
34494 2009-12-26  Eric Blake  <ebb9@byu.net>
34495
34496         tests: use macros.h in more places
34497         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34498         (ASSERT_STREAM): Provide default of stderr.
34499         * tests/test-dirent-safer.c: Include macros.h, using alternate
34500         stream for assertions.
34501         * tests/test-dup-safer.c: Likewise.
34502         * tests/test-freopen-safer.c: Likewise.
34503         * tests/test-getopt.c: Likewise.
34504         * tests/test-openat-safer.c: Likewise.
34505         * tests/test-pipe.c: Likewise.
34506         * tests/test-popen-safer.c: Likewise.
34507         * modules/dirent-safer-tests (Files): Include macros.h.
34508         * modules/unistd-safer-tests (Files): Likewise.
34509         * modules/freopen-safer-tests (Files): Likewise.
34510         * modules/getopt-posix-tests (Files): Likewise.
34511         * modules/openat-safer-tests (Files): Likewise.
34512         * modules/pipe-tests (Files): Likewise.
34513
34514 2009-12-26  Bruno Haible  <bruno@clisp.org>
34515
34516         javacomp: Portability fix.
34517         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34518         that it also works on Solaris.
34519
34520 2009-12-26  Bruno Haible  <bruno@clisp.org>
34521
34522         localename: Fix storage allocation of gl_locale_name_thread's result.
34523         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34524         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34525         all platforms that have 'uselocale'.
34526         (gl_locale_name_thread_unsafe): New function, extracted from
34527         gl_locale_name_thread.
34528         (gl_locale_name_thread): Call struniq on all platforms that have
34529         'uselocale'.
34530         * tests/test-localename.c (test_locale_name_thread): Check that the
34531         resulting strings are permanently allocated.
34532         * modules/localename-tests (Depends-on): Add strdup.
34533
34534 2009-12-26  Bruno Haible  <bruno@clisp.org>
34535
34536         * tests/test-localename.c (categories): Fill in the strings.
34537
34538 2009-12-26  Jim Meyering  <meyering@redhat.com>
34539
34540         isdir: complete the removal of m4/isdir.m4
34541         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34542
34543         isdir: clean up, since at least grep still uses it
34544         * lib/isdir.c: Include "isdir.h".
34545         (S_ISDIR): Remove now-unneeded definition.
34546         * modules/isdir (Files): Add lib/isdir.h.
34547         * lib/isdir.h: New file, with declaration.
34548         * m4/isdir.m4: Remove file -- unneeded.
34549
34550 2009-12-25  Bruno Haible  <bruno@clisp.org>
34551
34552         selinux-h: Make generated .h files standalone.
34553         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34554         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34555         * lib/se-selinux.in.h: Likewise.
34556         * modules/selinux-h (Depends-on): Add unused-parameter.
34557         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34558         selinux/selinux.h and selinux/context.h.
34559         Suggested by Eric Blake.
34560
34561 2009-12-25  Bruno Haible  <bruno@clisp.org>
34562
34563         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34564         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34565         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34566         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34567         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34568
34569 2009-12-24  Bruno Haible  <bruno@clisp.org>
34570
34571         openat: Fix warning.
34572         * lib/openat-proc.c: Include <unistd.h>.
34573
34574 2009-12-24  Bruno Haible  <bruno@clisp.org>
34575
34576         New module 'unused-parameter'.
34577         * build-aux/unused-parameter.h: New file, extracted from earlier
34578         gnulib-common.m4.
34579         * modules/unused-parameter: New file.
34580         * lib/unistr.h: Include unused-parameter.h.
34581         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34582         _GL_UNUSED.
34583         * modules/unistr/base (Depends-on): Add unused-parameter.
34584
34585 2009-12-24  Bruno Haible  <bruno@clisp.org>
34586
34587         Add missing dependencies to 'extensions' module.
34588         * m4/extensions.m4: Add comment.
34589         * modules/accept4 (Depends-on): Add extensions.
34590         * modules/dup3 (Depends-on): Likewise.
34591         * modules/fcntl (Depends-on): Likewise.
34592         * modules/futimens (Depends-on): Likewise.
34593         * modules/mknod (Depends-on): Likewise.
34594         * modules/pipe2 (Depends-on): Likewise.
34595         * modules/stat-time (Depends-on): Likewise.
34596         * modules/strcasestr-simple (Depends-on): Likewise.
34597         * modules/strsignal (Depends-on): Likewise.
34598         * modules/utimensat (Depends-on): Likewise.
34599         * modules/localcharset (Depends-on): Likewise. Needed because of
34600         gl_FCNTL_O_FLAGS.
34601         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34602         AC_TYPE_MBSTATE_T.
34603         * modules/wcsnrtombs (Depends-on): Likewise.
34604         * modules/wcsrtombs (Depends-on): Likewise.
34605
34606 2009-12-24  Bruno Haible  <bruno@clisp.org>
34607
34608         binary-io: Avoid gcc warning due to SET_BINARY.
34609         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34610         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34611
34612 2009-12-24  Bruno Haible  <bruno@clisp.org>
34613
34614         Avoid future namespace pollution on glibc systems.
34615         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34616         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34617         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34618         glibc systems.
34619
34620 2009-12-24  Bruno Haible  <bruno@clisp.org>
34621
34622         Refactor common macros used in tests.
34623         * tests/macros.h: New file.
34624         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34625         and/or <stdlib.h>, if appropriate.
34626         (ASSERT, SIZEOF): Remove macros.
34627         * tests/test-areadlink-with-size.c: Likewise.
34628         * tests/test-areadlinkat.c: Likewise.
34629         * tests/test-areadlinkat-with-size.c: Likewise.
34630         * tests/test-argmatch.c: Likewise.
34631         * tests/test-argv-iter.c: Likewise.
34632         * tests/test-array-mergesort.c: Likewise.
34633         * tests/test-array_list.c: Likewise.
34634         * tests/test-array_oset.c: Likewise.
34635         * tests/test-avltree_list.c: Likewise.
34636         * tests/test-avltree_oset.c: Likewise.
34637         * tests/test-avltreehash_list.c: Likewise.
34638         * tests/test-base64.c: Likewise.
34639         * tests/test-binary-io.c: Likewise.
34640         * tests/test-bitrotate.c: Likewise.
34641         * tests/test-btowc.c: Likewise.
34642         * tests/test-byteswap.c: Likewise.
34643         * tests/test-c-ctype.c: Likewise.
34644         * tests/test-c-stack.c: Likewise.
34645         * tests/test-c-strcasecmp.c: Likewise.
34646         * tests/test-c-strcasestr.c: Likewise.
34647         * tests/test-c-strncasecmp.c: Likewise.
34648         * tests/test-c-strstr.c: Likewise.
34649         * tests/test-canonicalize-lgpl.c: Likewise.
34650         * tests/test-canonicalize.c: Likewise.
34651         * tests/test-carray_list.c: Likewise.
34652         * tests/test-ceilf1.c: Likewise.
34653         * tests/test-ceilf2.c: Likewise.
34654         * tests/test-ceill.c: Likewise.
34655         * tests/test-chown.c: Likewise.
34656         * tests/test-cloexec.c: Likewise.
34657         * tests/test-copy-acl.c: Likewise.
34658         * tests/test-copy-file.c: Likewise.
34659         * tests/test-count-one-bits.c: Likewise.
34660         * tests/test-dprintf-posix.c: Likewise.
34661         * tests/test-dup2.c: Likewise.
34662         * tests/test-dup3.c: Likewise.
34663         * tests/test-duplocale.c: Likewise.
34664         * tests/test-fbufmode.c: Likewise.
34665         * tests/test-fchdir.c: Likewise.
34666         * tests/test-fchownat.c: Likewise.
34667         * tests/test-fcntl-safer.c: Likewise.
34668         * tests/test-fcntl.c: Likewise.
34669         * tests/test-fdopendir.c: Likewise.
34670         * tests/test-fdutimensat.c: Likewise.
34671         * tests/test-fflush2.c: Likewise.
34672         * tests/test-file-has-acl.c: Likewise.
34673         * tests/test-filevercmp.c: Likewise.
34674         * tests/test-flock.c: Likewise.
34675         * tests/test-floorf1.c: Likewise.
34676         * tests/test-floorf2.c: Likewise.
34677         * tests/test-floorl.c: Likewise.
34678         * tests/test-fnmatch.c: Likewise.
34679         * tests/test-fopen.h: Likewise.
34680         * tests/test-fpending.c: Likewise.
34681         * tests/test-fprintf-posix.c: Likewise.
34682         * tests/test-fpurge.c: Likewise.
34683         * tests/test-freadable.c: Likewise.
34684         * tests/test-freadahead.c: Likewise.
34685         * tests/test-freading.c: Likewise.
34686         * tests/test-freadptr.c: Likewise.
34687         * tests/test-freadptr2.c: Likewise.
34688         * tests/test-freadseek.c: Likewise.
34689         * tests/test-freopen.c: Likewise.
34690         * tests/test-frexp.c: Likewise.
34691         * tests/test-frexpl.c: Likewise.
34692         * tests/test-fseek.c: Likewise.
34693         * tests/test-fseeko.c: Likewise.
34694         * tests/test-fstatat.c: Likewise.
34695         * tests/test-fstrcmp.c: Likewise.
34696         * tests/test-fsync.c: Likewise.
34697         * tests/test-ftell.c: Likewise.
34698         * tests/test-ftello.c: Likewise.
34699         * tests/test-func.c: Likewise.
34700         * tests/test-futimens.c: Likewise.
34701         * tests/test-fwritable.c: Likewise.
34702         * tests/test-fwriting.c: Likewise.
34703         * tests/test-getcwd.c: Likewise.
34704         * tests/test-getdate.c: Likewise.
34705         * tests/test-getdelim.c: Likewise.
34706         * tests/test-getdtablesize.c: Likewise.
34707         * tests/test-getgroups.c: Likewise.
34708         * tests/test-getline.c: Likewise.
34709         * tests/test-getndelim2.c: Likewise.
34710         * tests/test-glob.c: Likewise.
34711         * tests/test-hash.c: Likewise.
34712         * tests/test-i-ring.c: Likewise.
34713         * tests/test-iconv-utf.c: Likewise.
34714         * tests/test-iconv.c: Likewise.
34715         * tests/test-idpriv-drop.c: Likewise.
34716         * tests/test-idpriv-droptemp.c: Likewise.
34717         * tests/test-inet_ntop.c: Likewise.
34718         * tests/test-inet_pton.c: Likewise.
34719         * tests/test-isblank.c: Likewise.
34720         * tests/test-isfinite.c: Likewise.
34721         * tests/test-isinf.c: Likewise.
34722         * tests/test-isnan.c: Likewise.
34723         * tests/test-isnand.h: Likewise.
34724         * tests/test-isnanf.h: Likewise.
34725         * tests/test-isnanl.h: Likewise.
34726         * tests/test-lchown.c: Likewise.
34727         * tests/test-ldexpl.c: Likewise.
34728         * tests/test-link.c: Likewise.
34729         * tests/test-linkat.c: Likewise.
34730         * tests/test-linked_list.c: Likewise.
34731         * tests/test-linkedhash_list.c: Likewise.
34732         * tests/test-localename.c: Likewise.
34733         * tests/test-lseek.c: Likewise.
34734         * tests/test-lstat.c: Likewise.
34735         * tests/test-mbmemcasecmp.c: Likewise.
34736         * tests/test-mbmemcasecoll.c: Likewise.
34737         * tests/test-mbrtowc.c: Likewise.
34738         * tests/test-mbscasecmp.c: Likewise.
34739         * tests/test-mbscasestr1.c: Likewise.
34740         * tests/test-mbscasestr2.c: Likewise.
34741         * tests/test-mbscasestr3.c: Likewise.
34742         * tests/test-mbscasestr4.c: Likewise.
34743         * tests/test-mbschr.c: Likewise.
34744         * tests/test-mbscspn.c: Likewise.
34745         * tests/test-mbsinit.c: Likewise.
34746         * tests/test-mbsncasecmp.c: Likewise.
34747         * tests/test-mbsnrtowcs.c: Likewise.
34748         * tests/test-mbspbrk.c: Likewise.
34749         * tests/test-mbspcasecmp.c: Likewise.
34750         * tests/test-mbsrchr.c: Likewise.
34751         * tests/test-mbsrtowcs.c: Likewise.
34752         * tests/test-mbsspn.c: Likewise.
34753         * tests/test-mbsstr1.c: Likewise.
34754         * tests/test-mbsstr2.c: Likewise.
34755         * tests/test-mbsstr3.c: Likewise.
34756         * tests/test-memchr.c: Likewise.
34757         * tests/test-memchr2.c: Likewise.
34758         * tests/test-memcmp.c: Likewise.
34759         * tests/test-memmem.c: Likewise.
34760         * tests/test-memrchr.c: Likewise.
34761         * tests/test-mkdir.c: Likewise.
34762         * tests/test-mkdirat.c: Likewise.
34763         * tests/test-mkfifo.c: Likewise.
34764         * tests/test-mkfifoat.c: Likewise.
34765         * tests/test-mknod.c: Likewise.
34766         * tests/test-nanosleep.c: Likewise.
34767         * tests/test-nl_langinfo.c: Likewise.
34768         * tests/test-obstack-printf.c: Likewise.
34769         * tests/test-open.c: Likewise.
34770         * tests/test-openat.c: Likewise.
34771         * tests/test-pipe-filter-gi1.c: Likewise.
34772         * tests/test-pipe-filter-gi2-main.c: Likewise.
34773         * tests/test-pipe-filter-ii1.c: Likewise.
34774         * tests/test-pipe-filter-ii2-main.c: Likewise.
34775         * tests/test-pipe2.c: Likewise.
34776         * tests/test-popen.h: Likewise.
34777         * tests/test-posixtm.c: Likewise.
34778         * tests/test-pread.c: Likewise.
34779         * tests/test-printf-frexp.c: Likewise.
34780         * tests/test-printf-frexpl.c: Likewise.
34781         * tests/test-printf-posix.c: Likewise.
34782         * tests/test-priv-set.c: Likewise.
34783         * tests/test-quotearg.c: Likewise.
34784         * tests/test-random_r.c: Likewise.
34785         * tests/test-rawmemchr.c: Likewise.
34786         * tests/test-rbtree_list.c: Likewise.
34787         * tests/test-rbtree_oset.c: Likewise.
34788         * tests/test-rbtreehash_list.c: Likewise.
34789         * tests/test-readlink.c: Likewise.
34790         * tests/test-remove.c: Likewise.
34791         * tests/test-rename.c: Likewise.
34792         * tests/test-renameat.c: Likewise.
34793         * tests/test-rmdir.c: Likewise.
34794         * tests/test-round1.c: Likewise.
34795         * tests/test-roundf1.c: Likewise.
34796         * tests/test-roundl.c: Likewise.
34797         * tests/test-safe-alloc.c: Likewise.
34798         * tests/test-sameacls.c: Likewise.
34799         * tests/test-set-mode-acl.c: Likewise.
34800         * tests/test-setenv.c: Likewise.
34801         * tests/test-sigaction.c: Likewise.
34802         * tests/test-signbit.c: Likewise.
34803         * tests/test-sleep.c: Likewise.
34804         * tests/test-snprintf-posix.c: Likewise.
34805         * tests/test-snprintf.c: Likewise.
34806         * tests/test-sprintf-posix.c: Likewise.
34807         * tests/test-stat-time.c: Likewise.
34808         * tests/test-stat.c: Likewise.
34809         * tests/test-strcasestr.c: Likewise.
34810         * tests/test-strchrnul.c: Likewise.
34811         * tests/test-strerror.c: Likewise.
34812         * tests/test-striconv.c: Likewise.
34813         * tests/test-striconveh.c: Likewise.
34814         * tests/test-striconveha.c: Likewise.
34815         * tests/test-strsignal.c: Likewise.
34816         * tests/test-strstr.c: Likewise.
34817         * tests/test-strtod.c: Likewise.
34818         * tests/test-strverscmp.c: Likewise.
34819         * tests/test-symlink.c: Likewise.
34820         * tests/test-symlinkat.c: Likewise.
34821         * tests/test-trunc1.c: Likewise.
34822         * tests/test-trunc2.c: Likewise.
34823         * tests/test-truncf1.c: Likewise.
34824         * tests/test-truncf2.c: Likewise.
34825         * tests/test-truncl.c: Likewise.
34826         * tests/test-uname.c: Likewise.
34827         * tests/test-unlink.c: Likewise.
34828         * tests/test-unlinkat.c: Likewise.
34829         * tests/test-unsetenv.c: Likewise.
34830         * tests/test-usleep.c: Likewise.
34831         * tests/test-utimens.c: Likewise.
34832         * tests/test-utimensat.c: Likewise.
34833         * tests/test-vasnprintf-posix.c: Likewise.
34834         * tests/test-vasnprintf-posix2.c: Likewise.
34835         * tests/test-vasnprintf.c: Likewise.
34836         * tests/test-vasprintf-posix.c: Likewise.
34837         * tests/test-vasprintf.c: Likewise.
34838         * tests/test-vdprintf-posix.c: Likewise.
34839         * tests/test-vfprintf-posix.c: Likewise.
34840         * tests/test-vprintf-posix.c: Likewise.
34841         * tests/test-vsnprintf-posix.c: Likewise.
34842         * tests/test-vsnprintf.c: Likewise.
34843         * tests/test-vsprintf-posix.c: Likewise.
34844         * tests/test-wcrtomb.c: Likewise.
34845         * tests/test-wcsnrtombs.c: Likewise.
34846         * tests/test-wcsrtombs.c: Likewise.
34847         * tests/test-wctype.c: Likewise.
34848         * tests/test-wcwidth.c: Likewise.
34849         * tests/test-xfprintf-posix.c: Likewise.
34850         * tests/test-xmemdup0.c: Likewise.
34851         * tests/test-xprintf-posix.c: Likewise.
34852         * tests/test-xvasprintf.c: Likewise.
34853         * tests/unicase/test-locale-language.c: Likewise.
34854         * tests/unicase/test-mapping-part1.h: Likewise.
34855         * tests/unicase/test-predicate-part1.h: Likewise.
34856         * tests/unicase/test-u8-casecmp.c: Likewise.
34857         * tests/unicase/test-u8-casecoll.c: Likewise.
34858         * tests/unicase/test-u8-casefold.c: Likewise.
34859         * tests/unicase/test-u8-is-cased.c: Likewise.
34860         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34861         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34862         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34863         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34864         * tests/unicase/test-u8-tolower.c: Likewise.
34865         * tests/unicase/test-u8-totitle.c: Likewise.
34866         * tests/unicase/test-u8-toupper.c: Likewise.
34867         * tests/unicase/test-u16-casecmp.c: Likewise.
34868         * tests/unicase/test-u16-casecoll.c: Likewise.
34869         * tests/unicase/test-u16-casefold.c: Likewise.
34870         * tests/unicase/test-u16-is-cased.c: Likewise.
34871         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34872         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34873         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34874         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34875         * tests/unicase/test-u16-tolower.c: Likewise.
34876         * tests/unicase/test-u16-totitle.c: Likewise.
34877         * tests/unicase/test-u16-toupper.c: Likewise.
34878         * tests/unicase/test-u32-casecmp.c: Likewise.
34879         * tests/unicase/test-u32-casecoll.c: Likewise.
34880         * tests/unicase/test-u32-casefold.c: Likewise.
34881         * tests/unicase/test-u32-is-cased.c: Likewise.
34882         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34883         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34884         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34885         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34886         * tests/unicase/test-u32-tolower.c: Likewise.
34887         * tests/unicase/test-u32-totitle.c: Likewise.
34888         * tests/unicase/test-u32-toupper.c: Likewise.
34889         * tests/unicase/test-ulc-casecmp.c: Likewise.
34890         * tests/unicase/test-ulc-casecoll.c: Likewise.
34891         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34892         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34893         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34894         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34895         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34896         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34897         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34898         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34899         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34900         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34901         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34902         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34903         * tests/unictype/test-bidi_byname.c: Likewise.
34904         * tests/unictype/test-bidi_name.c: Likewise.
34905         * tests/unictype/test-bidi_of.c: Likewise.
34906         * tests/unictype/test-bidi_test.c: Likewise.
34907         * tests/unictype/test-block_list.c: Likewise.
34908         * tests/unictype/test-block_of.c: Likewise.
34909         * tests/unictype/test-block_test.c: Likewise.
34910         * tests/unictype/test-categ_and.c: Likewise.
34911         * tests/unictype/test-categ_and_not.c: Likewise.
34912         * tests/unictype/test-categ_byname.c: Likewise.
34913         * tests/unictype/test-categ_name.c: Likewise.
34914         * tests/unictype/test-categ_none.c: Likewise.
34915         * tests/unictype/test-categ_of.c: Likewise.
34916         * tests/unictype/test-categ_or.c: Likewise.
34917         * tests/unictype/test-categ_test_withtable.c: Likewise.
34918         * tests/unictype/test-combining.c: Likewise.
34919         * tests/unictype/test-decdigit.c: Likewise.
34920         * tests/unictype/test-digit.c: Likewise.
34921         * tests/unictype/test-mirror.c: Likewise.
34922         * tests/unictype/test-numeric.c: Likewise.
34923         * tests/unictype/test-pr_byname.c: Likewise.
34924         * tests/unictype/test-pr_test.c: Likewise.
34925         * tests/unictype/test-predicate-part1.h: Likewise.
34926         * tests/unictype/test-scripts.c: Likewise.
34927         * tests/unictype/test-sy_c_ident.c: Likewise.
34928         * tests/unictype/test-sy_java_ident.c: Likewise.
34929         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34930         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34931         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34932         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34933         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34934         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34935         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34936         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34937         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34938         * tests/uninorm/test-compat-decomposition.c: Likewise.
34939         * tests/uninorm/test-composition.c: Likewise.
34940         * tests/uninorm/test-decomposing-form.c: Likewise.
34941         * tests/uninorm/test-decomposition.c: Likewise.
34942         * tests/uninorm/test-u8-nfc.c: Likewise.
34943         * tests/uninorm/test-u8-nfd.c: Likewise.
34944         * tests/uninorm/test-u8-nfkc.c: Likewise.
34945         * tests/uninorm/test-u8-nfkd.c: Likewise.
34946         * tests/uninorm/test-u8-normcmp.c: Likewise.
34947         * tests/uninorm/test-u8-normcoll.c: Likewise.
34948         * tests/uninorm/test-u16-nfc.c: Likewise.
34949         * tests/uninorm/test-u16-nfd.c: Likewise.
34950         * tests/uninorm/test-u16-nfkc.c: Likewise.
34951         * tests/uninorm/test-u16-nfkd.c: Likewise.
34952         * tests/uninorm/test-u16-normcmp.c: Likewise.
34953         * tests/uninorm/test-u16-normcoll.c: Likewise.
34954         * tests/uninorm/test-u32-nfc.c: Likewise.
34955         * tests/uninorm/test-u32-nfd.c: Likewise.
34956         * tests/uninorm/test-u32-nfkc.c: Likewise.
34957         * tests/uninorm/test-u32-nfkd.c: Likewise.
34958         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34959         * tests/uninorm/test-u32-normcmp.c: Likewise.
34960         * tests/uninorm/test-u32-normcoll.c: Likewise.
34961         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34962         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34963         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34964         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34965         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34966         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34967         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34968         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34969         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34970         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34971         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34972         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34973         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34974         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34975         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34976         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34977         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34978         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34979         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34980         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34981         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34982         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34983         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34984         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34985         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34986         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34987         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34988         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34989         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34990         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34991         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34992         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34993         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34994         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34995         * tests/uniwidth/test-u8-width.c: Likewise.
34996         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34997         * tests/uniwidth/test-u16-width.c: Likewise.
34998         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34999         * tests/uniwidth/test-u32-width.c: Likewise.
35000         * tests/uniwidth/test-uc_width.c: Likewise.
35001         * tests/uniwidth/test-uc_width2.c: Likewise.
35002         * modules/acl-tests (Files): Add tests/macros.h.
35003         * modules/areadlink-tests (Files): Likewise.
35004         * modules/areadlink-with-size-tests (Files): Likewise.
35005         * modules/areadlinkat-tests (Files): Likewise.
35006         * modules/areadlinkat-with-size-tests (Files): Likewise.
35007         * modules/argmatch-tests (Files): Likewise.
35008         * modules/argv-iter-tests (Files): Likewise.
35009         * modules/array-list-tests (Files): Likewise.
35010         * modules/array-mergesort-tests (Files): Likewise.
35011         * modules/array-oset-tests (Files): Likewise.
35012         * modules/avltree-list-tests (Files): Likewise.
35013         * modules/avltree-oset-tests (Files): Likewise.
35014         * modules/avltreehash-list-tests (Files): Likewise.
35015         * modules/base64-tests (Files): Likewise.
35016         * modules/binary-io-tests (Files): Likewise.
35017         * modules/bitrotate-tests (Files): Likewise.
35018         * modules/btowc-tests (Files): Likewise.
35019         * modules/byteswap-tests (Files): Likewise.
35020         * modules/c-ctype-tests (Files): Likewise.
35021         * modules/c-stack-tests (Files): Likewise.
35022         * modules/c-strcase-tests (Files): Likewise.
35023         * modules/c-strcasestr-tests (Files): Likewise.
35024         * modules/c-strstr-tests (Files): Likewise.
35025         * modules/canonicalize-lgpl-tests (Files): Likewise.
35026         * modules/canonicalize-tests (Files): Likewise.
35027         * modules/carray-list-tests (Files): Likewise.
35028         * modules/ceilf-tests (Files): Likewise.
35029         * modules/ceill-tests (Files): Likewise.
35030         * modules/chown-tests (Files): Likewise.
35031         * modules/cloexec-tests (Files): Likewise.
35032         * modules/copy-file-tests (Files): Likewise.
35033         * modules/count-one-bits-tests (Files): Likewise.
35034         * modules/dprintf-posix-tests (Files): Likewise.
35035         * modules/dup2-tests (Files): Likewise.
35036         * modules/dup3-tests (Files): Likewise.
35037         * modules/duplocale-tests (Files): Likewise.
35038         * modules/fbufmode-tests (Files): Likewise.
35039         * modules/fchdir-tests (Files): Likewise.
35040         * modules/fcntl-safer-tests (Files): Likewise.
35041         * modules/fcntl-tests (Files): Likewise.
35042         * modules/fdopendir-tests (Files): Likewise.
35043         * modules/fdutimensat-tests (Files): Likewise.
35044         * modules/fflush-tests (Files): Likewise.
35045         * modules/filevercmp-tests (Files): Likewise.
35046         * modules/flock-tests (Files): Likewise.
35047         * modules/floorf-tests (Files): Likewise.
35048         * modules/floorl-tests (Files): Likewise.
35049         * modules/fnmatch-tests (Files): Likewise.
35050         * modules/fopen-safer-tests (Files): Likewise.
35051         * modules/fopen-tests (Files): Likewise.
35052         * modules/fpending-tests (Files): Likewise.
35053         * modules/fprintf-posix-tests (Files): Likewise.
35054         * modules/fpurge-tests (Files): Likewise.
35055         * modules/freadable-tests (Files): Likewise.
35056         * modules/freadahead-tests (Files): Likewise.
35057         * modules/freading-tests (Files): Likewise.
35058         * modules/freadptr-tests (Files): Likewise.
35059         * modules/freadseek-tests (Files): Likewise.
35060         * modules/freopen-tests (Files): Likewise.
35061         * modules/frexp-nolibm-tests (Files): Likewise.
35062         * modules/frexp-tests (Files): Likewise.
35063         * modules/frexpl-nolibm-tests (Files): Likewise.
35064         * modules/frexpl-tests (Files): Likewise.
35065         * modules/fseek-tests (Files): Likewise.
35066         * modules/fseeko-tests (Files): Likewise.
35067         * modules/fstrcmp-tests (Files): Likewise.
35068         * modules/fsync-tests (Files): Likewise.
35069         * modules/ftell-tests (Files): Likewise.
35070         * modules/ftello-tests (Files): Likewise.
35071         * modules/func-tests (Files): Likewise.
35072         * modules/futimens-tests (Files): Likewise.
35073         * modules/fwritable-tests (Files): Likewise.
35074         * modules/fwriting-tests (Files): Likewise.
35075         * modules/getcwd-tests (Files): Likewise.
35076         * modules/getdate-tests (Files): Likewise.
35077         * modules/getdelim-tests (Files): Likewise.
35078         * modules/getdtablesize-tests (Files): Likewise.
35079         * modules/getgroups-tests (Files): Likewise.
35080         * modules/getline-tests (Files): Likewise.
35081         * modules/getndelim2-tests (Files): Likewise.
35082         * modules/glob-tests (Files): Likewise.
35083         * modules/hash-tests (Files): Likewise.
35084         * modules/i-ring-tests (Files): Likewise.
35085         * modules/iconv-tests (Files): Likewise.
35086         * modules/iconv_open-utf-tests (Files): Likewise.
35087         * modules/idpriv-drop-tests (Files): Likewise.
35088         * modules/idpriv-droptemp-tests (Files): Likewise.
35089         * modules/inet_ntop-tests (Files): Likewise.
35090         * modules/inet_pton-tests (Files): Likewise.
35091         * modules/isblank-tests (Files): Likewise.
35092         * modules/isfinite-tests (Files): Likewise.
35093         * modules/isinf-tests (Files): Likewise.
35094         * modules/isnan-tests (Files): Likewise.
35095         * modules/isnand-nolibm-tests (Files): Likewise.
35096         * modules/isnand-tests (Files): Likewise.
35097         * modules/isnanf-nolibm-tests (Files): Likewise.
35098         * modules/isnanf-tests (Files): Likewise.
35099         * modules/isnanl-nolibm-tests (Files): Likewise.
35100         * modules/isnanl-tests (Files): Likewise.
35101         * modules/lchown-tests (Files): Likewise.
35102         * modules/ldexpl-tests (Files): Likewise.
35103         * modules/link-tests (Files): Likewise.
35104         * modules/linkat-tests (Files): Likewise.
35105         * modules/linked-list-tests (Files): Likewise.
35106         * modules/linkedhash-list-tests (Files): Likewise.
35107         * modules/localename-tests (Files): Likewise.
35108         * modules/lseek-tests (Files): Likewise.
35109         * modules/lstat-tests (Files): Likewise.
35110         * modules/mbmemcasecmp-tests (Files): Likewise.
35111         * modules/mbmemcasecoll-tests (Files): Likewise.
35112         * modules/mbrtowc-tests (Files): Likewise.
35113         * modules/mbscasecmp-tests (Files): Likewise.
35114         * modules/mbscasestr-tests (Files): Likewise.
35115         * modules/mbschr-tests (Files): Likewise.
35116         * modules/mbscspn-tests (Files): Likewise.
35117         * modules/mbsinit-tests (Files): Likewise.
35118         * modules/mbsncasecmp-tests (Files): Likewise.
35119         * modules/mbsnrtowcs-tests (Files): Likewise.
35120         * modules/mbspbrk-tests (Files): Likewise.
35121         * modules/mbspcasecmp-tests (Files): Likewise.
35122         * modules/mbsrchr-tests (Files): Likewise.
35123         * modules/mbsrtowcs-tests (Files): Likewise.
35124         * modules/mbsspn-tests (Files): Likewise.
35125         * modules/mbsstr-tests (Files): Likewise.
35126         * modules/memchr-tests (Files): Likewise.
35127         * modules/memchr2-tests (Files): Likewise.
35128         * modules/memcmp-tests (Files): Likewise.
35129         * modules/memmem-tests (Files): Likewise.
35130         * modules/memrchr-tests (Files): Likewise.
35131         * modules/mkdir-tests (Files): Likewise.
35132         * modules/mkfifo-tests (Files): Likewise.
35133         * modules/mkfifoat-tests (Files): Likewise.
35134         * modules/mknod-tests (Files): Likewise.
35135         * modules/nanosleep-tests (Files): Likewise.
35136         * modules/nl_langinfo-tests (Files): Likewise.
35137         * modules/obstack-printf-tests (Files): Likewise.
35138         * modules/open-tests (Files): Likewise.
35139         * modules/openat-tests (Files): Likewise.
35140         * modules/pipe-filter-gi-tests (Files): Likewise.
35141         * modules/pipe-filter-ii-tests (Files): Likewise.
35142         * modules/pipe2-tests (Files): Likewise.
35143         * modules/popen-safer-tests (Files): Likewise.
35144         * modules/popen-tests (Files): Likewise.
35145         * modules/posixtm-tests (Files): Likewise.
35146         * modules/pread-tests (Files): Likewise.
35147         * modules/printf-frexp-tests (Files): Likewise.
35148         * modules/printf-frexpl-tests (Files): Likewise.
35149         * modules/printf-posix-tests (Files): Likewise.
35150         * modules/priv-set-tests (Files): Likewise.
35151         * modules/quotearg-tests (Files): Likewise.
35152         * modules/random_r-tests (Files): Likewise.
35153         * modules/rawmemchr-tests (Files): Likewise.
35154         * modules/rbtree-list-tests (Files): Likewise.
35155         * modules/rbtree-oset-tests (Files): Likewise.
35156         * modules/rbtreehash-list-tests (Files): Likewise.
35157         * modules/readlink-tests (Files): Likewise.
35158         * modules/remove-tests (Files): Likewise.
35159         * modules/rename-tests (Files): Likewise.
35160         * modules/renameat-tests (Files): Likewise.
35161         * modules/rmdir-tests (Files): Likewise.
35162         * modules/round-tests (Files): Likewise.
35163         * modules/roundf-tests (Files): Likewise.
35164         * modules/roundl-tests (Files): Likewise.
35165         * modules/safe-alloc-tests (Files): Likewise.
35166         * modules/setenv-tests (Files): Likewise.
35167         * modules/sigaction-tests (Files): Likewise.
35168         * modules/signbit-tests (Files): Likewise.
35169         * modules/sleep-tests (Files): Likewise.
35170         * modules/snprintf-posix-tests (Files): Likewise.
35171         * modules/snprintf-tests (Files): Likewise.
35172         * modules/sprintf-posix-tests (Files): Likewise.
35173         * modules/stat-tests (Files): Likewise.
35174         * modules/stat-time-tests (Files): Likewise.
35175         * modules/strcasestr-tests (Files): Likewise.
35176         * modules/strchrnul-tests (Files): Likewise.
35177         * modules/strerror-tests (Files): Likewise.
35178         * modules/striconv-tests (Files): Likewise.
35179         * modules/striconveh-tests (Files): Likewise.
35180         * modules/striconveha-tests (Files): Likewise.
35181         * modules/strsignal-tests (Files): Likewise.
35182         * modules/strstr-tests (Files): Likewise.
35183         * modules/strtod-tests (Files): Likewise.
35184         * modules/strverscmp-tests (Files): Likewise.
35185         * modules/symlink-tests (Files): Likewise.
35186         * modules/symlinkat-tests (Files): Likewise.
35187         * modules/trunc-tests (Files): Likewise.
35188         * modules/truncf-tests (Files): Likewise.
35189         * modules/truncl-tests (Files): Likewise.
35190         * modules/uname-tests (Files): Likewise.
35191         * modules/unicase/cased-tests (Files): Likewise.
35192         * modules/unicase/ignorable-tests (Files): Likewise.
35193         * modules/unicase/locale-language-tests (Files): Likewise.
35194         * modules/unicase/tolower-tests (Files): Likewise.
35195         * modules/unicase/totitle-tests (Files): Likewise.
35196         * modules/unicase/toupper-tests (Files): Likewise.
35197         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35198         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35199         * modules/unicase/u8-casefold-tests (Files): Likewise.
35200         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35201         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35202         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35203         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35204         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35205         * modules/unicase/u8-tolower-tests (Files): Likewise.
35206         * modules/unicase/u8-totitle-tests (Files): Likewise.
35207         * modules/unicase/u8-toupper-tests (Files): Likewise.
35208         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35209         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35210         * modules/unicase/u16-casefold-tests (Files): Likewise.
35211         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35212         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35213         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35214         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35215         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35216         * modules/unicase/u16-tolower-tests (Files): Likewise.
35217         * modules/unicase/u16-totitle-tests (Files): Likewise.
35218         * modules/unicase/u16-toupper-tests (Files): Likewise.
35219         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35220         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35221         * modules/unicase/u32-casefold-tests (Files): Likewise.
35222         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35223         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35224         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35225         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35226         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35227         * modules/unicase/u32-tolower-tests (Files): Likewise.
35228         * modules/unicase/u32-totitle-tests (Files): Likewise.
35229         * modules/unicase/u32-toupper-tests (Files): Likewise.
35230         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35231         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35232         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35233         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35234         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35235         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35236         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35237         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35238         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35239         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35240         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35241         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35242         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35243         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35244         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35245         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35246         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35247         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35248         * modules/unictype/block-list-tests (Files): Likewise.
35249         * modules/unictype/block-of-tests (Files): Likewise.
35250         * modules/unictype/block-test-tests (Files): Likewise.
35251         * modules/unictype/category-C-tests (Files): Likewise.
35252         * modules/unictype/category-Cc-tests (Files): Likewise.
35253         * modules/unictype/category-Cf-tests (Files): Likewise.
35254         * modules/unictype/category-Cn-tests (Files): Likewise.
35255         * modules/unictype/category-Co-tests (Files): Likewise.
35256         * modules/unictype/category-Cs-tests (Files): Likewise.
35257         * modules/unictype/category-L-tests (Files): Likewise.
35258         * modules/unictype/category-Ll-tests (Files): Likewise.
35259         * modules/unictype/category-Lm-tests (Files): Likewise.
35260         * modules/unictype/category-Lo-tests (Files): Likewise.
35261         * modules/unictype/category-Lt-tests (Files): Likewise.
35262         * modules/unictype/category-Lu-tests (Files): Likewise.
35263         * modules/unictype/category-M-tests (Files): Likewise.
35264         * modules/unictype/category-Mc-tests (Files): Likewise.
35265         * modules/unictype/category-Me-tests (Files): Likewise.
35266         * modules/unictype/category-Mn-tests (Files): Likewise.
35267         * modules/unictype/category-N-tests (Files): Likewise.
35268         * modules/unictype/category-Nd-tests (Files): Likewise.
35269         * modules/unictype/category-Nl-tests (Files): Likewise.
35270         * modules/unictype/category-No-tests (Files): Likewise.
35271         * modules/unictype/category-P-tests (Files): Likewise.
35272         * modules/unictype/category-Pc-tests (Files): Likewise.
35273         * modules/unictype/category-Pd-tests (Files): Likewise.
35274         * modules/unictype/category-Pe-tests (Files): Likewise.
35275         * modules/unictype/category-Pf-tests (Files): Likewise.
35276         * modules/unictype/category-Pi-tests (Files): Likewise.
35277         * modules/unictype/category-Po-tests (Files): Likewise.
35278         * modules/unictype/category-Ps-tests (Files): Likewise.
35279         * modules/unictype/category-S-tests (Files): Likewise.
35280         * modules/unictype/category-Sc-tests (Files): Likewise.
35281         * modules/unictype/category-Sk-tests (Files): Likewise.
35282         * modules/unictype/category-Sm-tests (Files): Likewise.
35283         * modules/unictype/category-So-tests (Files): Likewise.
35284         * modules/unictype/category-Z-tests (Files): Likewise.
35285         * modules/unictype/category-Zl-tests (Files): Likewise.
35286         * modules/unictype/category-Zp-tests (Files): Likewise.
35287         * modules/unictype/category-Zs-tests (Files): Likewise.
35288         * modules/unictype/category-and-not-tests (Files): Likewise.
35289         * modules/unictype/category-and-tests (Files): Likewise.
35290         * modules/unictype/category-byname-tests (Files): Likewise.
35291         * modules/unictype/category-name-tests (Files): Likewise.
35292         * modules/unictype/category-none-tests (Files): Likewise.
35293         * modules/unictype/category-of-tests (Files): Likewise.
35294         * modules/unictype/category-or-tests (Files): Likewise.
35295         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35296         * modules/unictype/combining-class-tests (Files): Likewise.
35297         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35298         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35299         * modules/unictype/ctype-blank-tests (Files): Likewise.
35300         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35301         * modules/unictype/ctype-digit-tests (Files): Likewise.
35302         * modules/unictype/ctype-graph-tests (Files): Likewise.
35303         * modules/unictype/ctype-lower-tests (Files): Likewise.
35304         * modules/unictype/ctype-print-tests (Files): Likewise.
35305         * modules/unictype/ctype-punct-tests (Files): Likewise.
35306         * modules/unictype/ctype-space-tests (Files): Likewise.
35307         * modules/unictype/ctype-upper-tests (Files): Likewise.
35308         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35309         * modules/unictype/decimal-digit-tests (Files): Likewise.
35310         * modules/unictype/digit-tests (Files): Likewise.
35311         * modules/unictype/mirror-tests (Files): Likewise.
35312         * modules/unictype/numeric-tests (Files): Likewise.
35313         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35314         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35315         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35316         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35317         Likewise.
35318         * modules/unictype/property-bidi-block-separator-tests (Files):
35319         Likewise.
35320         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35321         Likewise.
35322         * modules/unictype/property-bidi-common-separator-tests (Files):
35323         Likewise.
35324         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35325         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35326         Likewise.
35327         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35328         Likewise.
35329         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35330         Likewise.
35331         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35332         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35333         Likewise.
35334         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35335         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35336         Likewise.
35337         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35338         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35339         * modules/unictype/property-bidi-segment-separator-tests (Files):
35340         Likewise.
35341         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35342         * modules/unictype/property-byname-tests (Files): Likewise.
35343         * modules/unictype/property-combining-tests (Files): Likewise.
35344         * modules/unictype/property-composite-tests (Files): Likewise.
35345         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35346         * modules/unictype/property-dash-tests (Files): Likewise.
35347         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35348         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35349         Likewise.
35350         * modules/unictype/property-deprecated-tests (Files): Likewise.
35351         * modules/unictype/property-diacritic-tests (Files): Likewise.
35352         * modules/unictype/property-extender-tests (Files): Likewise.
35353         * modules/unictype/property-format-control-tests (Files): Likewise.
35354         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35355         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35356         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35357         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35358         * modules/unictype/property-hyphen-tests (Files): Likewise.
35359         * modules/unictype/property-id-continue-tests (Files): Likewise.
35360         * modules/unictype/property-id-start-tests (Files): Likewise.
35361         * modules/unictype/property-ideographic-tests (Files): Likewise.
35362         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35363         * modules/unictype/property-ids-trinary-operator-tests (Files):
35364         Likewise.
35365         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35366         * modules/unictype/property-iso-control-tests (Files): Likewise.
35367         * modules/unictype/property-join-control-tests (Files): Likewise.
35368         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35369         * modules/unictype/property-line-separator-tests (Files): Likewise.
35370         * modules/unictype/property-logical-order-exception-tests (Files):
35371         Likewise.
35372         * modules/unictype/property-lowercase-tests (Files): Likewise.
35373         * modules/unictype/property-math-tests (Files): Likewise.
35374         * modules/unictype/property-non-break-tests (Files): Likewise.
35375         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35376         * modules/unictype/property-numeric-tests (Files): Likewise.
35377         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35378         * modules/unictype/property-other-default-ignorable-code-point-tests
35379         (Files): Likewise.
35380         * modules/unictype/property-other-grapheme-extend-tests (Files):
35381         Likewise.
35382         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35383         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35384         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35385         * modules/unictype/property-other-math-tests (Files): Likewise.
35386         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35387         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35388         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35389         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35390         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35391         * modules/unictype/property-private-use-tests (Files): Likewise.
35392         * modules/unictype/property-punctuation-tests (Files): Likewise.
35393         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35394         * modules/unictype/property-radical-tests (Files): Likewise.
35395         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35396         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35397         * modules/unictype/property-space-tests (Files): Likewise.
35398         * modules/unictype/property-terminal-punctuation-tests (Files):
35399         Likewise.
35400         * modules/unictype/property-test-tests (Files): Likewise.
35401         * modules/unictype/property-titlecase-tests (Files): Likewise.
35402         * modules/unictype/property-unassigned-code-value-tests (Files):
35403         Likewise.
35404         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35405         * modules/unictype/property-uppercase-tests (Files): Likewise.
35406         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35407         * modules/unictype/property-white-space-tests (Files): Likewise.
35408         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35409         * modules/unictype/property-xid-start-tests (Files): Likewise.
35410         * modules/unictype/property-zero-width-tests (Files): Likewise.
35411         * modules/unictype/scripts-tests (Files): Likewise.
35412         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35413         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35414         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35415         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35416         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35417         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35418         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35419         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35420         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35421         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35422         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35423         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35424         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35425         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35426         * modules/uninorm/composition-tests (Files): Likewise.
35427         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35428         * modules/uninorm/decomposition-tests (Files): Likewise.
35429         * modules/uninorm/filter-tests (Files): Likewise.
35430         * modules/uninorm/nfc-tests (Files): Likewise.
35431         * modules/uninorm/nfd-tests (Files): Likewise.
35432         * modules/uninorm/nfkc-tests (Files): Likewise.
35433         * modules/uninorm/nfkd-tests (Files): Likewise.
35434         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35435         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35436         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35437         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35438         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35439         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35440         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35441         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35442         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35443         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35444         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35445         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35446         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35447         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35448         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35449         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35450         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35451         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35452         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35453         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35454         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35455         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35456         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35457         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35458         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35459         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35460         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35461         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35462         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35463         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35464         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35465         * modules/uniwidth/u8-width-tests (Files): Likewise.
35466         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35467         * modules/uniwidth/u16-width-tests (Files): Likewise.
35468         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35469         * modules/uniwidth/u32-width-tests (Files): Likewise.
35470         * modules/uniwidth/width-tests (Files): Likewise.
35471         * modules/unlink-tests (Files): Likewise.
35472         * modules/unsetenv-tests (Files): Likewise.
35473         * modules/usleep-tests (Files): Likewise.
35474         * modules/utimens-tests (Files): Likewise.
35475         * modules/utimensat-tests (Files): Likewise.
35476         * modules/vasnprintf-posix-tests (Files): Likewise.
35477         * modules/vasnprintf-tests (Files): Likewise.
35478         * modules/vasprintf-posix-tests (Files): Likewise.
35479         * modules/vasprintf-tests (Files): Likewise.
35480         * modules/vdprintf-posix-tests (Files): Likewise.
35481         * modules/vfprintf-posix-tests (Files): Likewise.
35482         * modules/vprintf-posix-tests (Files): Likewise.
35483         * modules/vsnprintf-posix-tests (Files): Likewise.
35484         * modules/vsnprintf-tests (Files): Likewise.
35485         * modules/vsprintf-posix-tests (Files): Likewise.
35486         * modules/wcrtomb-tests (Files): Likewise.
35487         * modules/wcsnrtombs-tests (Files): Likewise.
35488         * modules/wcsrtombs-tests (Files): Likewise.
35489         * modules/wctype-tests (Files): Likewise.
35490         * modules/wcwidth-tests (Files): Likewise.
35491         * modules/xmemdup0-tests (Files): Likewise.
35492         * modules/xprintf-posix-tests (Files): Likewise.
35493         * modules/xvasprintf-tests (Files): Likewise.
35494
35495 2009-12-24  Eric Blake  <ebb9@byu.net>
35496
35497         test-nanosleep: fix typo
35498         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35499         patch.
35500         Reported by Bruno Haible.
35501
35502 2009-12-24  Bruno Haible  <bruno@clisp.org>
35503
35504         Reduce namespace pollution on glibc systems.
35505         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35506         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35507         systems.
35508         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35509         <getopt.h> on glibc systems.
35510         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35511         systems.
35512         * lib/fcntl.c: Include <unistd.h> here instead.
35513
35514 2009-12-24  Bruno Haible  <bruno@clisp.org>
35515
35516         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35517
35518 2009-12-24  Eric Blake  <ebb9@byu.net>
35519
35520         tests: add signature checks
35521         * tests/signature.h (SIGNATURE_CHECK): New file.
35522         * modules/atexit-tests (Files): Use it.
35523         * modules/btowc-tests (Files): Likewise.
35524         * modules/canonicalize-lgpl-tests (Files): Likewise.
35525         * modules/ceilf-tests (Files): Likewise.
35526         * modules/ceill-tests (Files): Likewise.
35527         * modules/chown-tests (Files): Likewise.
35528         * modules/dprintf-posix-tests (Files): Likewise.
35529         * modules/dup2-tests (Files): Likewise.
35530         * modules/dup3-tests (Files): Likewise.
35531         * modules/duplocale-tests (Files): Likewise.
35532         * modules/fchdir-tests (Files): Likewise.
35533         * modules/fcntl-tests (Files): Likewise.
35534         * modules/fdopendir-tests (Files): Likewise.
35535         * modules/fflush-tests (Files): Likewise.
35536         * modules/flock-tests (Files): Likewise.
35537         * modules/floorf-tests (Files): Likewise.
35538         * modules/floorl-tests (Files): Likewise.
35539         * modules/fnmatch-tests (Files): Likewise.
35540         * modules/fopen-tests (Files): Likewise.
35541         * modules/fprintf-posix-tests (Files): Likewise.
35542         * modules/freopen-tests (Files): Likewise.
35543         * modules/frexp-nolibm-tests (Files): Likewise.
35544         * modules/frexp-tests (Files): Likewise.
35545         * modules/frexpl-nolibm-tests (Files): Likewise.
35546         * modules/frexpl-tests (Files): Likewise.
35547         * modules/fseek-tests (Files): Likewise.
35548         * modules/fseeko-tests (Files): Likewise.
35549         * modules/fsync-tests (Files): Likewise.
35550         * modules/ftell-tests (Files): Likewise.
35551         * modules/ftello-tests (Files): Likewise.
35552         * modules/futimens-tests (Files): Likewise.
35553         * modules/getaddrinfo-tests (Files): Likewise.
35554         * modules/getcwd-tests (Files): Likewise.
35555         * modules/getdelim-tests (Files): Likewise.
35556         * modules/getdtablesize-tests (Files): Likewise.
35557         * modules/getgroups-tests (Files): Likewise.
35558         * modules/gethostname-tests (Files): Likewise.
35559         * modules/getline-tests (Files): Likewise.
35560         * modules/getopt-posix-tests (Files): Likewise.
35561         * modules/gettimeofday-tests (Files): Likewise.
35562         * modules/glob-tests (Files): Likewise.
35563         * modules/iconv-tests (Files): Likewise.
35564         * modules/inet_ntop-tests (Files): Likewise.
35565         * modules/inet_pton-tests (Files): Likewise.
35566         * modules/isblank-tests (Files): Likewise.
35567         * modules/lchown-tests (Files): Likewise.
35568         * modules/ldexpl-tests (Files): Likewise.
35569         * modules/link-tests (Files): Likewise.
35570         * modules/linkat-tests (Files): Likewise.
35571         * modules/lseek-tests (Files): Likewise.
35572         * modules/lstat-tests (Files): Likewise.
35573         * modules/mbrtowc-tests (Files): Likewise.
35574         * modules/mbsinit-tests (Files): Likewise.
35575         * modules/mbsnrtowcs-tests (Files): Likewise.
35576         * modules/mbsrtowcs-tests (Files): Likewise.
35577         * modules/memchr-tests (Files): Likewise.
35578         * modules/memcmp-tests (Files): Likewise.
35579         * modules/memmem-tests (Files): Likewise.
35580         * modules/memrchr-tests (Files): Likewise.
35581         * modules/mkdir-tests (Files): Likewise.
35582         * modules/mkfifo-tests (Files): Likewise.
35583         * modules/mkfifoat-tests (Files): Likewise.
35584         * modules/mknod-tests (Files): Likewise.
35585         * modules/nanosleep-tests (Files): Likewise.
35586         * modules/nl_langinfo-tests (Files): Likewise.
35587         * modules/obstack-printf-tests (Files): Likewise.
35588         * modules/open-tests (Files): Likewise.
35589         * modules/openat-tests (Files): Likewise.
35590         * modules/perror-tests (Files): Likewise.
35591         * modules/pipe2-tests (Files): Likewise.
35592         * modules/poll-tests (Files): Likewise.
35593         * modules/popen-tests (Files): Likewise.
35594         * modules/posix_spawn-tests (Files): Likewise.
35595         * modules/posix_spawnp-tests (Files): Likewise.
35596         * modules/pread-tests (Files): Likewise.
35597         * modules/printf-posix-tests (Files): Likewise.
35598         * modules/pty-tests (Files): Likewise.
35599         * modules/random_r-tests (Files): Likewise.
35600         * modules/rawmemchr-tests (Files): Likewise.
35601         * modules/readlink-tests (Files): Likewise.
35602         * modules/remove-tests (Files): Likewise.
35603         * modules/rename-tests (Files): Likewise.
35604         * modules/renameat-tests (Files): Likewise.
35605         * modules/rmdir-tests (Files): Likewise.
35606         * modules/round-tests (Files): Likewise.
35607         * modules/roundf-tests (Files): Likewise.
35608         * modules/roundl-tests (Files): Likewise.
35609         * modules/select-tests (Files): Likewise.
35610         * modules/setenv-tests (Files): Likewise.
35611         * modules/sigaction-tests (Files): Likewise.
35612         * modules/sleep-tests (Files): Likewise.
35613         * modules/snprintf-posix-tests (Files): Likewise.
35614         * modules/snprintf-tests (Files): Likewise.
35615         * modules/sprintf-posix-tests (Files): Likewise.
35616         * modules/stat-tests (Files): Likewise.
35617         * modules/strcasestr-tests (Files): Likewise.
35618         * modules/strchrnul-tests (Files): Likewise.
35619         * modules/strerror-tests (Files): Likewise.
35620         * modules/strsignal-tests (Files): Likewise.
35621         * modules/strstr-tests (Files): Likewise.
35622         * modules/strtod-tests (Files): Likewise.
35623         * modules/strverscmp-tests (Files): Likewise.
35624         * modules/symlink-tests (Files): Likewise.
35625         * modules/symlinkat-tests (Files): Likewise.
35626         * modules/times-tests (Files): Likewise.
35627         * modules/trunc-tests (Files): Likewise.
35628         * modules/truncf-tests (Files): Likewise.
35629         * modules/truncl-tests (Files): Likewise.
35630         * modules/tsearch-tests (Files): Likewise.
35631         * modules/uname-tests (Files): Likewise.
35632         * modules/unlink-tests (Files): Likewise.
35633         * modules/unsetenv-tests (Files): Likewise.
35634         * modules/usleep-tests (Files): Likewise.
35635         * modules/utimensat-tests (Files): Likewise.
35636         * modules/vasprintf-tests (Files): Likewise.
35637         * modules/vdprintf-posix-tests (Files): Likewise.
35638         * modules/vfprintf-posix-tests (Files): Likewise.
35639         * modules/vprintf-posix-tests (Files): Likewise.
35640         * modules/vsnprintf-posix-tests (Files): Likewise.
35641         * modules/vsnprintf-tests (Files): Likewise.
35642         * modules/vsprintf-posix-tests (Files): Likewise.
35643         * modules/wcrtomb-tests (Files): Likewise.
35644         * modules/wcsnrtombs-tests (Files): Likewise.
35645         * modules/wcsrtombs-tests (Files): Likewise.
35646         * modules/wcwidth-tests (Files): Likewise.
35647         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35648         * tests/test-isinf.c (isinf): Likewise.
35649         * tests/test-isnan.c (isnan): Likewise.
35650         * tests/test-signbit.c (signbit): Likewise.
35651         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35652         declaration, either as macro or with correct signature.
35653         (select): Ensure function under test is declared with correct
35654         signature in correct header.
35655         * tests/test-atexit.c (atexit): Likewise.
35656         * tests/test-btowc.c (btowc): Likewise.
35657         * tests/test-canonicalize-lgpl.c (realpath)
35658         (canonicalize_file_name): Likewise.
35659         * tests/test-ceilf1.c (ceilf): Likewise.
35660         * tests/test-ceill.c (ceill): Likewise.
35661         * tests/test-chown.c (chown): Likewise.
35662         * tests/test-dprintf-posix.c (dprintf): Likewise.
35663         * tests/test-dup2.c (dup2): Likewise.
35664         * tests/test-dup3.c (dup3): Likewise.
35665         * tests/test-duplocale.c (duplocale): Likewise.
35666         * tests/test-fchdir.c (fchdir): Likewise.
35667         * tests/test-fchownat.c (fchownat): Likewise.
35668         * tests/test-fcntl.c (fcntl): Likewise.
35669         * tests/test-fdopendir.c (fdopendir): Likewise.
35670         * tests/test-fflush.c (fflush): Likewise.
35671         * tests/test-flock.c (flock): Likewise.
35672         * tests/test-floorf1.c (floorf): Likewise.
35673         * tests/test-floorl.c (floorl): Likewise.
35674         * tests/test-fnmatch.c (fnmatch): Likewise.
35675         * tests/test-fopen.c (fopen): Likewise.
35676         * tests/test-fprintf-posix.c (fprintf): Likewise.
35677         * tests/test-freopen.c (freopen): Likewise.
35678         * tests/test-frexp.c (frexp): Likewise.
35679         * tests/test-frexpl.c (frexpl): Likewise.
35680         * tests/test-fseek.c (fseek): Likewise.
35681         * tests/test-fseeko.c (fseeko): Likewise.
35682         * tests/test-fstatat.c (fstatat): Likewise.
35683         * tests/test-fsync.c (fsync): Likewise.
35684         * tests/test-ftell.c (ftell): Likewise.
35685         * tests/test-ftello.c (ftello): Likewise.
35686         * tests/test-futimens.c (futimens): Likewise.
35687         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35688         (gai_strerror): Likewise.
35689         * tests/test-getcwd.c (getcwd): Likewise.
35690         * tests/test-getdelim.c (getdelim): Likewise.
35691         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35692         * tests/test-getgroups.c (getgroups): Likewise.
35693         * tests/test-gethostname.c (gethostname): Likewise.
35694         * tests/test-getline.c (getline): Likewise.
35695         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35696         Likewise.
35697         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35698         * tests/test-glob.c (glob, globfree): Likewise.
35699         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35700         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35701         * tests/test-inet_pton.c (inet_pton): Likewise.
35702         * tests/test-isblank.c (isblank): Likewise.
35703         * tests/test-lchown.c (lchown): Likewise.
35704         * tests/test-ldexpl.c (ldexpl): Likewise.
35705         * tests/test-link.c (link): Likewise.
35706         * tests/test-linkat.c (linkat): Likewise.
35707         * tests/test-lseek.c (lseek): Likewise.
35708         * tests/test-lstat.c (lstat): Likewise.
35709         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35710         * tests/test-mbsinit.c (mbsinit): Likewise.
35711         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35712         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35713         * tests/test-memchr.c (memchr): Likewise.
35714         * tests/test-memcmp.c (memcmp): Likewise.
35715         * tests/test-memmem.c (memmem): Likewise.
35716         * tests/test-memrchr.c (memrchr): Likewise.
35717         * tests/test-mkdir.c (mkdir): Likewise.
35718         * tests/test-mkdirat.c (mkdirat): Likewise.
35719         * tests/test-mkfifo.c (mkfifo): Likewise.
35720         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35721         * tests/test-mknod.c (mknod): Likewise.
35722         * tests/test-nanosleep.c (nanosleep): Likewise.
35723         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35724         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35725         Likewise.
35726         * tests/test-open.c (open): Likewise.
35727         * tests/test-openat.c (openat): Likewise.
35728         * tests/test-perror.c (perror): Likewise.
35729         * tests/test-pipe2.c (pipe2): Likewise.
35730         * tests/test-poll.c (poll): Likewise.
35731         * tests/test-popen.c (popen, pclose): Likewise.
35732         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35733         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35734         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35735         (posix_spawn_file_actions_destroy)
35736         (posix_spawn_file_actions_addclose)
35737         (posix_spawn_file_actions_addopen)
35738         (posix_spawn_file_actions_adddup2): Likewise.
35739         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35740         * tests/test-pread.c (pread): Likewise.
35741         * tests/test-printf-posix.c (printf): Likewise.
35742         * tests/test-pty.c (openpty, forkpty): Likewise.
35743         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35744         (random_r): Likewise.
35745         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35746         * tests/test-readlink.c (readlink): Likewise.
35747         * tests/test-remove.c (remove): Likewise.
35748         * tests/test-rename.c (rename): Likewise.
35749         * tests/test-renameat.c (renameat): Likewise.
35750         * tests/test-rmdir.c (rmdir): Likewise.
35751         * tests/test-round1.c (round): Likewise.
35752         * tests/test-roundf1.c (roundf): Likewise.
35753         * tests/test-roundl.c (roundl): Likewise.
35754         * tests/test-setenv.c (setenv): Likewise.
35755         * tests/test-sigaction.c (sigaction): Likewise.
35756         * tests/test-sleep.c (sleep): Likewise.
35757         * tests/test-snprintf.c (snprintf): Likewise.
35758         * tests/test-sprintf-posix.c (sprintf): Likewise.
35759         * tests/test-stat.c (stat): Likewise.
35760         * tests/test-stpncpy.c (stpncpy): Likewise.
35761         * tests/test-strcasestr.c (strcasestr): Likewise.
35762         * tests/test-strchrnul.c (strchrnul): Likewise.
35763         * tests/test-strerror.c (strerror): Likewise.
35764         * tests/test-strsignal.c (strsignal): Likewise.
35765         * tests/test-strstr.c (strstr): Likewise.
35766         * tests/test-strtod.c (strtod): Likewise.
35767         * tests/test-strverscmp.c (strverscmp): Likewise.
35768         * tests/test-symlink.c (symlink): Likewise.
35769         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35770         * tests/test-times.c (times): Likewise.
35771         * tests/test-trunc1.c (trunc): Likewise.
35772         * tests/test-truncf1.c (truncf): Likewise.
35773         * tests/test-truncl.c (truncl): Likewise.
35774         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35775         Likewise.
35776         * tests/test-uname.c (uname): Likewise.
35777         * tests/test-unlink.c (unlink): Likewise.
35778         * tests/test-unlinkat.c (unlinkat): Likewise.
35779         * tests/test-unsetenv.c (unsetenv): Likewise.
35780         * tests/test-usleep.c (usleep): Likewise.
35781         * tests/test-utimensat.c (utimensat): Likewise.
35782         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35783         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35784         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35785         * tests/test-vprintf-posix.c (vprintf): Likewise.
35786         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35787         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35788         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35789         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35790         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35791         * tests/test-wcwidth.c (wcwidth): Likewise.
35792
35793         build: pull in conditional headers during GNULIB_POSIXCHECK
35794         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35795         definitions from any conditionally-included headers.
35796         * lib/stdlib.in.h (includes): Likewise.
35797         * lib/unistd.in.h (includes): Likewise.
35798
35799 2009-12-24  Bruno Haible  <bruno@clisp.org>
35800
35801         * tests/test-argv-iter.c: Include header file being tested immediately
35802         after config.h.
35803         * tests/test-base64.c: Likewise.
35804         * tests/test-flock.c: Likewise.
35805         * tests/test-fsync.c: Likewise.
35806         * tests/test-getdate.c: Likewise.
35807         * tests/test-getndelim2.c: Likewise.
35808         * tests/test-isfinite.c: Likewise.
35809         * tests/test-isinf.c: Likewise.
35810         * tests/test-strerror.c: Likewise.
35811         * tests/test-strsignal.c: Likewise.
35812
35813 2009-12-23  Eric Blake  <ebb9@byu.net>
35814
35815         unistd: work around cygwin bug
35816         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35817         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35818         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35819
35820 2009-12-23  Bruno Haible  <bruno@clisp.org>
35821
35822         localename: More tests.
35823         * tests/test-localename.c (SIZEOF): New macro.
35824         (categories): New variable.
35825         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35826         test_locale_name_default): Add test w.r.t. thread locale.
35827         (test_locale_name_thread): New function.
35828         (main): Invoke it.
35829
35830         localename: Make aware of thread locale.
35831         * lib/localename.h (gl_locale_name_thread): New declaration.
35832         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35833         behaviour with respect to thread locale.
35834         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35835         <langinfo.h>, glthread/lock.h.
35836         (SIZE_BITS): New macro.
35837         (string_hash): New function.
35838         (struct hash_node): New type.
35839         (HASH_TABLE_SIZE): New macro.
35840         (struniq_hash_table, struniq_lock): New variables.
35841         (struniq): New function.
35842         (gl_locale_name_thread): New function.
35843         (gl_locale_name): Invoke it.
35844         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35845         * modules/localename (Depends-on): Add lock.
35846         Reported by Mike Gran <spk121@yahoo.com>.
35847
35848 2009-12-23  Eric Blake  <ebb9@byu.net>
35849
35850         va-args: new module
35851         * modules/va-args: New file.
35852         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35853         * MODULES.html.sh (Core language properties): Mention it.
35854
35855         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35856         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35857         named alias for __attribute__((__unused__)).
35858         * lib/chown.c: Update client.
35859         * lib/fchmodat.c: Likewise.
35860         * lib/fts.c: Likewise.
35861         * lib/getdate.y: Likewise.
35862         * lib/getgroups.c: Likewise.
35863         * lib/getopt.c: Likewise.
35864         * lib/getugroups.c: Likewise.
35865         * lib/mkdir.c: Likewise.
35866         * lib/mkfifo.c: Likewise.
35867         * lib/mkfifoat.c: Likewise.
35868         * lib/mknod.c: Likewise.
35869         * lib/mknodat.c: Likewise.
35870         * lib/readlink.c: Likewise.
35871         * lib/se-context.in.h: Likewise.
35872         * lib/se-selinux.in.h: Likewise.
35873         * lib/sockets.c: Likewise.
35874         * lib/symlink.c: Likewise.
35875         * lib/symlinkat.c: Likewise.
35876         * lib/unicodeio.c: Likewise.
35877         * lib/unistr.h: Likewise.
35878         * tests/test-areadlink.c: Likewise.
35879         * tests/test-areadlinkat.c: Likewise.
35880         * tests/test-filenamecat.c: Likewise.
35881         * tests/test-fseeko.c: Likewise.
35882         * tests/test-ftello.c: Likewise.
35883         * tests/test-getdate.c: Likewise.
35884         * tests/test-getgroups.c: Likewise.
35885         * tests/test-gethostname.c: Likewise.
35886         * tests/test-quotearg.c: Likewise.
35887         * tests/test-version-etc.c: Likewise.
35888         * tests/test-xalloc-die.c: Likewise.
35889         * tests/test-xfprintf-posix.c: Likewise.
35890         * tests/test-xprintf-posix.c: Likewise.
35891         * tests/test-xvasprintf.c: Likewise.
35892
35893         tests: avoid compiler warnings
35894         * tests/test-fcntl.c (main): Delete unused parameters.
35895         * tests/test-freopen-safer.c (main): Likewise.
35896         * tests/test-xalloc-die.c (main): Mark unused parameters.
35897         * tests/test-fseeko.c (main): Likewise.
35898         * tests/test-ftello.c (main): Likewise.
35899         * tests/test-nanosleep.c (main): Avoid declaration warning.
35900         * tests/test-sleep.c (main): Likewise.
35901         * tests/test-unsetenv.c (main): Silence warning about string
35902         literal.
35903         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35904
35905 2009-12-23  Bruno Haible  <bruno@clisp.org>
35906
35907         * tests/test-localename.c (test_locale_name): New function, extracted
35908         from main. Also test mixed situations.
35909         (test_locale_name_posix, test_locale_name_environ,
35910         test_locale_name_default): New functions.
35911         (main): Invoke them all.
35912         * modules/localename-tests (configure.ac): Test for newlocale.
35913
35914 2009-12-23  Bruno Haible  <bruno@clisp.org>
35915
35916         unistd: Ensure getcwd gets declared before being overridden.
35917         * lib/unistd.in.h: Conditionally include <io.h>.
35918
35919 2009-12-22  Bruno Haible  <bruno@clisp.org>
35920
35921         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35922         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35923         (gl_WCHAR_H): Invoke it.
35924         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35925         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35926         Reported by Karl Berry <karl@freefriends.org>.
35927
35928 2009-12-22  Eric Blake  <ebb9@byu.net>
35929
35930         math, unistd: avoid redundant includes
35931         * lib/math.in.h (isnan): No need to re-include <math.h>.
35932         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35933
35934         getsubopt: work around cygwin bug
35935         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35936         avoid conflicting with system getsubopt.
35937         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35938         bug.
35939
35940         getopt: synchronize from glibc
35941         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35942         parameter order.  Adjust all callers.
35943         (_getopt_internal_r, main): Adjust quoting in error messages.
35944         Drop considerations for outdated POSIX 1003.2 error message.
35945         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35946         callers.
35947         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35948
35949         test-getopt: test stderr behavior
35950         * modules/getopt-posix-tests (Depends-on): Add dup2.
35951         * tests/test-getopt.c (ASSERT): Avoid stderr.
35952         (main): Move stderr to a temporary file.
35953         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35954         Instead, add parameter to inform caller if output occurred.
35955         (test_getopt): Adjust all existing tests to expect silence, and
35956         add new tests of leading ":".
35957         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35958         glibc shortcomings with leading "-:" or "+:" in optstring.
35959         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35960         Likewise.
35961         * doc/posix-functions/getopt.texi (getopt): Likewise.
35962
35963         test-getopt: enhance test
35964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35965         supports optind=0.
35966         * tests/test-getopt.c (OPTIND_MIN): Move...
35967         * tests/test-getopt.h (OPTIND_MIN): ...here.
35968         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35969         Require that optind=0 works, since modern BSD supports it in
35970         addition to optreset, and since coreutils expects it.
35971         (test_getopt_long_only): New test.
35972         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35973         glibc shortcomings with 'W;', and enforcement of optind=0.
35974         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35975         Likewise.
35976
35977 2009-12-21  Bruno Haible  <bruno@clisp.org>
35978
35979         localename: Improvements for MacOS X and Cygwin.
35980         * lib/localename.h (gl_locale_name_environ): New declaration.
35981         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35982         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35983         (gl_locale_name_posix): Invoke it.
35984         (gl_locale_name_default): Add comments. Use Windows native API also on
35985         Cygwin.
35986
35987 2009-12-21  Bruno Haible  <bruno@clisp.org>
35988
35989         Update list of Win32 locale ids.
35990         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35991         (LANG_SAMI): Renamed from LANG_SAAMI.
35992         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35993         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35994         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35995         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35996         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35997         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35998         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35999         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36000         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36001         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36002         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36003         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36004         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36005         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36006         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36007         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36008         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36009         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36010         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36011         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36012         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36013         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36014         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36015         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36016         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36017         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36018         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36019         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36020         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36021         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36022         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36023         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36024         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36025         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36026         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36027         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36028         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36029         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36030         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36031         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36032         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36033         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36034         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36035         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36036         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36037         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36038         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36039         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36040         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36041         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36042         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36043         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36044         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36045         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36046         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36047         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36048         Add more languages and countries for Sami, Sorbian. Add more countries
36049         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36050         for Pashto. Change country for Syriac, Tswana.
36051
36052 2009-12-21  Eric Blake  <ebb9@byu.net>
36053
36054         test-utimens: avoid spurious failure
36055         * tests/test-chown.h (nap): Factor...
36056         * tests/nap.h: ...into new file.
36057         * tests/test-lchown.h (nap): Avoid duplication.
36058         * tests/test-utimens-common.h (nap): Use shared implementation,
36059         necessary on file systems with 1-second resolution.
36060         * modules/chown-tests (Files): Include new file.
36061         * modules/fdutimensat-tests (Files): Likewise.
36062         * modules/futimens-tests (Files): Likewise.
36063         * modules/lchown-tests (Files): Likewise.
36064         * modules/openat-tests (Files): Likewise.
36065         * modules/utimens-tests (Files): Likewise.
36066         * modules/utimensat-tests (Files): Likewise.
36067
36068 2009-12-19  Eric Blake  <ebb9@byu.net>
36069
36070         futimens, utimensat: work around Linux bug
36071         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36072         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36073         * lib/utimensat.c (rpl_utimensat): Work around it.
36074         * lib/futimens.c (rpl_futimens): Adjust comment.
36075
36076         utimens: work around Linux ctime bug
36077         * lib/utimens.c (detect_ctime_bug): New helper function.
36078         (update_timespec): Differentiate between workaround needed for
36079         this bug vs. what is needed for systems that lack utimensat.
36080         (fdutimens, lutimens): Work around bug.
36081
36082         utimens: check for ctime update
36083         * tests/test-utimens-common.h (check_ctime): Define.
36084         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36085         * tests/test-futimens.h (test_futimens): Likewise.
36086         * tests/test-lutimens.h (test_lutimens): Likewise.
36087         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36088         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36089
36090 2009-12-19  Bruno Haible  <bruno@clisp.org>
36091
36092         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36093         * tests/test-dprintf-posix2.sh: New file.
36094         * tests/test-dprintf-posix2.c: New file.
36095         * modules/dprintf-posix-tests (Files): Add them.
36096         (configure.ac): Check for getrlimit and setrlimit.
36097         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36098
36099 2009-12-19  Bruno Haible  <bruno@clisp.org>
36100
36101         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36102         * tests/test-fprintf-posix3.sh: New file.
36103         * tests/test-fprintf-posix3.c: New file.
36104         * modules/fprintf-posix-tests (Files): Add them.
36105         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36106
36107 2009-12-19  Eric Blake  <ebb9@byu.net>
36108
36109         dirfd: fix prototype
36110         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36111         * lib/dirfd.c (dirfd): Likewise.
36112
36113         canonicalize: reduce memory usage
36114         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36115         allocation to size.
36116         Reported by Solar Designer <solar@openwall.com>.
36117
36118 2009-12-19  Bruno Haible  <bruno@clisp.org>
36119
36120         New module attribute 'Applicability'.
36121         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36122         * gnulib-tool: New option --extract-applicability.
36123         (func_usage): Document it.
36124         (sed_extract_prog): Recognize it.
36125         (func_get_applicability): New function.
36126         (func_import): Generalize handling of 'link-warning' module.
36127         * modules/link-warning (Applicability): New section.
36128         * modules/arg-nonnull (Applicability): New section.
36129         Repoted by Simon Josefsson <simon@josefsson.org>.
36130
36131 2009-12-19  Bruno Haible  <bruno@clisp.org>
36132
36133         fflush: tweak
36134         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36135         * lib/fseeko.c (rpl_fseeko): Likewise.
36136
36137 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36138
36139         * lib/gl_list.h: Fix typo in comment.
36140
36141 2009-12-16  Eric Blake  <ebb9@byu.net>
36142
36143         fcntl: use to simplify other modules
36144         * modules/cloexec (Depends-on): Add fcntl.
36145         * modules/fchdir (Depends-on): Likewise.
36146         * modules/fd-safer-flag (Depends-on): Likewise.
36147         * modules/unistd-safer (Depends-on): Likewise.
36148         * modules/dup3 (configure.ac): Set module indicator.
36149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36150         missing.
36151         * lib/fchdir.c (_gl_register_dup): Fix comment.
36152         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36153         * lib/dup-safer.c (dup_safer): Likewise.
36154         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36155         * lib/dup3.c (dup3): Likewise.
36156         * tests/test-fchdir.c (main): Enhance test.
36157         Fixes a dup_cloexec bug reported by Ondřej Vašík.
36158
36159         fcntl: port portions of fcntl to mingw
36160         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36161         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36162         replacement for mingw.
36163         * modules/fcntl (Description): Update.
36164         (Depends-on): Add dup2.
36165         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36166         * modules/fcntl-h (Makefile.am): Substitute it.
36167         * lib/fcntl.in.h (fcntl): Update declaration.
36168         (F_DUPFD, F_GETFD): New macros, when needed.
36169         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36170         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36171         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36172         we now guarantee.
36173
36174         fcntl: work around cygwin bug in F_DUPFD
36175         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36176         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36177         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36178         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36179         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36180
36181         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36182         * modules/fcntl (Files): List new files.
36183         (configure.ac): Run a test.
36184         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36185         * lib/fcntl.c (rpl_fcntl): Likewise.
36186         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36187         (gl_FCNTL_H): Always replace fcntl.h.
36188         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36189         * lib/fcntl.in.h (fcntl): Declare replacement.
36190         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36191         needed, plus a witness.
36192         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36193         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36194         * tests/test-fcntl.c: New file.
36195         * modules/fcntl-tests: Likewise.
36196
36197         binary-io: avoid potential compilation warning
36198         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36199         directives.
36200
36201         fflush: avoid compilation error on NetBSD
36202         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36203         between off_t and fpos_t, since the latter is sometimes a struct.
36204         * lib/fseeko.c (rpl_fseeko): Likewise.
36205         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36206
36207 2009-12-15  Eric Blake  <ebb9@byu.net>
36208
36209         fcntl-h, stdio, sys_ioctl: fix declarations
36210         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36211         function must not take arguments.
36212         * lib/sys_ioctl.in.h (ioctl): Likewise.
36213         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36214         (open): Add a link warning.
36215
36216 2009-12-15  Jim Meyering  <meyering@redhat.com>
36217
36218         areadlink, areadlink-with-size: relax license to LGPLv2+
36219         * modules/areadlink (License): Relax to LGPLv2+.
36220         * modules/areadlink-with-size (License): Likewise.
36221
36222 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36223             Bruno Haible  <bruno@clisp.org>
36224
36225         *printf: Fix memory leak.
36226         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36227         * lib/vfprintf.c (vfprintf): Likewise.
36228         * lib/dprintf.c (dprintf): Likewise.
36229         * lib/vdprintf.c (vdprintf): Likewise.
36230
36231 2009-12-14  Eric Blake  <ebb9@byu.net>
36232
36233         accept4: adjust module dependencies
36234         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36235
36236         utimens: one more try at avoiding compiler warning
36237         * lib/utimens.c (lutimens): Lower scope of result.
36238
36239 2009-12-13  Bruno Haible  <bruno@clisp.org>
36240
36241         Move the malloc checking from module 'list' to new module 'xlist'.
36242         * modules/xlist: New file.
36243         * lib/gl_xlist.h: New file.
36244         * lib/gl_xlist.c: New file.
36245         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36246         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36247         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36248         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36249         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36250         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36251         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36252         gl_sortedlist_nx_add): New declarations.
36253         (struct gl_list_implementation): Rename and change methods accordingly.
36254         (gl_list_nx_create_empty): Renamed from 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_list.c (gl_list_nx_create_empty): Renamed from
36265         gl_list_create_empty.
36266         (gl_list_nx_create): Renamed from gl_list_create.
36267         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36268         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36269         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36270         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36271         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36272         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36273         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36274         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36275         * lib/gl_array_list.c: Don't include xalloc.h.
36276         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36277         NULL upon out-of-memory.
36278         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36279         out-of-memory.
36280         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36281         Change return type to 'int'.
36282         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36283         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36284         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36285         upon out-of-memory.
36286         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36287         upon out-of-memory.
36288         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36289         upon out-of-memory.
36290         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36291         upon out-of-memory.
36292         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36293         out-of-memory.
36294         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36295         Update.
36296         (gl_array_list_implementation): Update.
36297         * lib/gl_carray_list.c: Don't include xalloc.h.
36298         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36299         Return NULL upon out-of-memory.
36300         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36301         out-of-memory.
36302         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36303         Change return type to 'int'.
36304         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36305         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36306         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36307         upon out-of-memory.
36308         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36309         upon out-of-memory.
36310         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36311         out-of-memory.
36312         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36313         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36314         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36315         Update.
36316         (gl_carray_list_implementation): Update.
36317         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36318         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36319         gl_linked_create_empty. Return NULL upon out-of-memory.
36320         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36321         out-of-memory.
36322         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36323         Change return type to 'int'. Return -1 upon out-of-memory.
36324         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36325         out-of-memory.
36326         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36327         upon out-of-memory.
36328         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36329         upon out-of-memory.
36330         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36331         NULL upon out-of-memory.
36332         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36333         upon out-of-memory.
36334         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36335         out-of-memory.
36336         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36337         Update.
36338         * lib/gl_linked_list.c: Don't include xalloc.h.
36339         (gl_linked_list_implementation): Update.
36340         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36341         (add_to_bucket): Change return type to 'int'.
36342         (gl_linkedhash_list_implementation): Update.
36343         * lib/gl_anytree_list1.h (free_subtree): New function.
36344         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36345         gl_tree_create_empty. Return NULL upon out-of-memory.
36346         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36347         Change return type to 'int'. Return -1 upon out-of-memory.
36348         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36349         out-of-memory.
36350         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36351         (gl_tree_remove_node): New function, moved here from
36352         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36353         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36354         Update.
36355         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36356         malloc, not xmalloc. Return NULL upon out-of-memory.
36357         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36358         out-of-memory.
36359         (gl_tree_remove_node_from_tree): New function, extracted from
36360         gl_tree_remove_node.
36361         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36362         upon out-of-memory.
36363         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36364         out-of-memory.
36365         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36366         upon out-of-memory.
36367         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36368         upon out-of-memory.
36369         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36370         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36371         not xmalloc. Return NULL upon out-of-memory.
36372         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36373         out-of-memory.
36374         (gl_tree_remove_node_from_tree): New function, extracted from
36375         gl_tree_remove_node.
36376         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36377         upon out-of-memory.
36378         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36379         out-of-memory.
36380         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36381         upon out-of-memory.
36382         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36383         upon out-of-memory.
36384         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36385         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36386         gl_anytree_list1.h before gl_anyavltree_list2.h.
36387         (gl_avltree_list_implementation): Update.
36388         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36389         gl_anytree_list1.h before gl_anyavltree_list2.h.
36390         (gl_rbtree_list_implementation): Update.
36391         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36392         Change return type to 'int'. Return -1 upon out-of-memory. Use
36393         __builtin_expect.
36394         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36395         (gl_avltreehash_list_implementation): Update.
36396         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36397         (gl_rbtreehash_list_implementation): Update.
36398         * modules/array-list (Depends-on): Remove xalloc.
36399         * modules/carray-list (Depends-on): Likewise.
36400         * modules/linked-list (Depends-on): Likewise.
36401         * modules/linkedhash-list (Depends-on): Likewise.
36402         * modules/avltree-list (Depends-on): Likewise.
36403         * modules/rbtree-list (Depends-on): Likewise.
36404         * modules/avltreehash-list (Depends-on): Likewise.
36405         * modules/rbtreehash-list (Depends-on): Likewise.
36406
36407         * modules/xsublist: New file.
36408         * lib/gl_xsublist.h: New file.
36409         * lib/gl_xsublist.c: New file.
36410         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36411         (gl_sublist_nx_create): New declaration.
36412         * lib/gl_sublist.c: Don't include xalloc.h.
36413         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36414         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36415         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36416         Change return type to 'int'. Return -1 upon out-of-memory.
36417         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36418         upon out-of-memory.
36419         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36420         NULL upon out-of-memory.
36421         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36422         upon out-of-memory.
36423         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36424         NULL upon out-of-memory.
36425         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36426         NULL upon out-of-memory.
36427         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36428         upon out-of-memory.
36429         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36430         (gl_sublist_list_implementation): Update.
36431         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36432         upon out-of-memory.
36433         * modules/sublist (Depends-on): Remove xalloc.
36434
36435         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36436         * tests/test-carray_list.c: Likewise.
36437         * tests/test-linked_list.c: Likewise.
36438         * tests/test-linkedhash_list.c: Likewise.
36439         * tests/test-avltree_list.c: Likewise.
36440         * tests/test-rbtree_list.c: Likewise.
36441         * tests/test-avltreehash_list.c: Likewise.
36442         * tests/test-rbtreehash_list.c: Likewise.
36443         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36444         * modules/carray-list-tests (Makefile.am): Likewise.
36445         * modules/linked-list-tests (Makefile.am): Likewise.
36446         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36447         * modules/avltree-list-tests (Makefile.am): Likewise.
36448         * modules/rbtree-list-tests (Makefile.am): Likewise.
36449         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36450         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36451
36452         * NEWS: Mention the changes.
36453
36454         * lib/clean-temp.c: Include gl_xlist.h.
36455         * modules/clean-temp (Depends-on): Add xlist.
36456
36457         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36458         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36459
36460         * tests/test-array_oset.c: Include gl_xlist.h.
36461         * modules/array-oset-tests (Depends-on): Add xlist.
36462
36463         Reported by José E. Marchesi <jemarch@gnu.org>.
36464
36465 2009-12-13  Bruno Haible  <bruno@clisp.org>
36466
36467         Move the malloc checking from module 'oset' to new module 'xoset'.
36468         * modules/xoset: New file.
36469         * lib/gl_xoset.h: New file.
36470         * lib/gl_xoset.c: New file.
36471         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36472         declarations.
36473         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36474         (struct gl_oset_implementation): Rename and change methods accordingly.
36475         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36476         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36477         'int'. Mark as __warn_unused_result__.
36478         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36479         gl_oset_create_empty.
36480         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36481         'int'.
36482         * lib/gl_array_oset.c: Don't include xalloc.h.
36483         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36484         malloc, not xmalloc.
36485         (grow): Change return type to 'int'. Don't call xalloc_die.
36486         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36487         to 'int'.
36488         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36489         'int'.
36490         (gl_array_oset_implementation): Update.
36491         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36492         gl_tree_create_empty.
36493         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36494         'int'.
36495         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36496         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36497         xmalloc.
36498         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36499         not xmalloc.
36500         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36501         xmalloc.
36502         (gl_avltree_oset_implementation): Update.
36503         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36504         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36505         xmalloc.
36506         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36507         not xmalloc.
36508         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36509         xmalloc.
36510         (gl_rbtree_oset_implementation): Update.
36511         * modules/array-oset (Depends-on): Remove xalloc.
36512         * modules/avltree-oset (Depends-on): Likewise.
36513         * modules/rbtree-oset (Depends-on): Likewise.
36514         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36515         * tests/test-avltree_oset.c: Likewise.
36516         * tests/test-rbtree_oset.c: Likewise.
36517         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36518         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36519         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36520         * NEWS: Mention the change.
36521
36522 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36523
36524         maint.mk: allow a project to override release-prep commands
36525         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36526         commands into a new rule.
36527         (release-prep): New rule.
36528         (release-prep-hook): New overridable variable.
36529
36530 2009-12-13  Bruno Haible  <bruno@clisp.org>
36531
36532         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36533
36534 2009-12-13  Jim Meyering  <meyering@redhat.com>
36535
36536         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36537         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36538
36539 2009-12-12  Bruno Haible  <bruno@clisp.org>
36540
36541         duplocale: Tweak.
36542         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36543
36544 2009-12-12  Karl Berry  <karl@gnu.org>
36545
36546         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36547
36548 2009-12-12  Bruno Haible  <bruno@clisp.org>
36549
36550         * m4/po.m4: Undo incorrect untabification.
36551
36552 2009-12-12  Bruno Haible  <bruno@clisp.org>
36553
36554         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36555         * modules/c-strtod (Depends-on): Add locale.
36556         * modules/c-strtold (Depends-on): Likewise.
36557
36558 2009-12-12  Bruno Haible  <bruno@clisp.org>
36559
36560         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36561
36562 2009-12-11  Eric Blake  <ebb9@byu.net>
36563
36564         setenv: relax requirement in light of POSIX ruling
36565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36566         not NULL.
36567         * tests/test-setenv.c (main): Relax test.
36568         * tests/test-unsetenv.c (main): Likewise.
36569         * doc/posix-functions/setenv.texi (setenv): Document this.
36570         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36571
36572 2009-12-11  Bruno Haible  <bruno@clisp.org>
36573
36574         New module 'fd-safer-flag'.
36575         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36576         * lib/dup-safer.c (dup_safer_flag): Remove function.
36577         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36578         * lib/fd-safer.c (fd_safer_flag): Remove function.
36579         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36580         * modules/cloexec (configure.ac): Drop indicator macro.
36581         * modules/fd-safer-flag: New file.
36582         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36583         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36584         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36585
36586 2009-12-11  Bruno Haible  <bruno@clisp.org>
36587
36588         Tests for module 'nl_langinfo'.
36589         * modules/nl_langinfo-tests: New file.
36590         * tests/test-nl_langinfo.sh: New file.
36591         * tests/test-nl_langinfo.c: New file.
36592
36593         New module 'nl_langinfo'.
36594         * lib/nl_langinfo.c: New file.
36595         * m4/nl_langinfo.m4: New file.
36596         * modules/nl_langinfo: New file.
36597         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36598
36599 2009-12-11  Bruno Haible  <bruno@clisp.org>
36600
36601         Tests for module 'langinfo'.
36602         * modules/langinfo-tests: New file.
36603         * tests/test-langinfo.c: New file.
36604
36605         New module 'langinfo'.
36606         * lib/langinfo.in.h: New file.
36607         * m4/langinfo_h.m4: New file.
36608         * modules/langinfo: New file.
36609         * doc/posix-headers/langinfo.texi: Mention the new module.
36610
36611 2009-12-11  Bruno Haible  <bruno@clisp.org>
36612
36613         * lib/config.charset: Untabify.
36614
36615 2009-12-11  Bruno Haible  <bruno@clisp.org>
36616
36617         * modules/unistd-safer (configure.ac): Drop indicator macro.
36618
36619 2009-12-11  Bruno Haible  <bruno@clisp.org>
36620
36621         Move pipe2-safer code to its own file.
36622         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36623         * lib/pipe-safer.c (pipe2_safer): Remove function.
36624         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36625         (Makefile.am): Add it to lib_SOURCES.
36626
36627 2009-12-10  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36630
36631 2009-12-10  Bruno Haible  <bruno@clisp.org>
36632
36633         Declare which arguments expect non-NULL values, for GCC and clang.
36634         * build-aux/arg-nonnull.h: New file.
36635         * modules/arg-nonnull: New file.
36636         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36637         (inet_ntop, inet_pton): Use it.
36638         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36639         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36640         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36641         (open, openat): Use it.
36642         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36643         (fnmatch): Use it.
36644         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36645         (getopt, getopt_long, getopt_long_only): Use it.
36646         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36647         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36648         Use it.
36649         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36650         (iconv_open): Use it.
36651         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36652         (strtoimax, strtoumax): Use it.
36653         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36654         (duplocale): Use it.
36655         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36656         (frexp, frexpl): Use it.
36657         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36658         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36659         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36660         (tsearch, tfind, tdelete, twalk): Use it.
36661         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36662         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36663         sigpending): Use it.
36664         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36665         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36666         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36667         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36668         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36669         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36670         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36671         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36672         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36673         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36674         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36675         Use it.
36676         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36677         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36678         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36679         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36680         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36681         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36682         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36683         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36684         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36685         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36686         strtoull, unsetenv): Use it.
36687         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36688         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36689         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36690         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36691         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36692         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36693         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36694         (strcasecmp, strncasecmp): Use it.
36695         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36696         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36697         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36698         rpl_setsockopt): Use it.
36699         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36700         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36701         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36702         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36703         (gettimeofday): Use it.
36704         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36705         (times): Use it.
36706         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36707         (uname): Use it.
36708         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36709         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36710         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36711         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36712         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36713         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36714         unlinkat, write): Use it.
36715         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36716         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36717         * lib/argv-iter.h: Include arg-nonnull.h.
36718         (_ATTRIBUTE_NONNULL_): Remove macro.
36719         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36720         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36721         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36722         optimization.
36723         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36724         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36725         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36726         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36727         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36728         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36729         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36730         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36731         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36732         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36733         * modules/dirent (Depends-on): Add arg-nonnull.
36734         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36735         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36736         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36737         * modules/fnmatch (Depends-on): Add arg-nonnull.
36738         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36739         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36740         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36741         * modules/glob (Depends-on): Add arg-nonnull.
36742         (Makefile.am): Insert arg-nonnull.h into glob.h.
36743         * modules/iconv_open (Depends-on): Add arg-nonnull.
36744         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36745         * modules/inttypes (Depends-on): Add arg-nonnull.
36746         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36747         * modules/locale (Depends-on): Add arg-nonnull.
36748         (Makefile.am): Insert arg-nonnull.h into locale.h.
36749         * modules/math (Depends-on): Add arg-nonnull.
36750         (Makefile.am): Insert arg-nonnull.h into math.h.
36751         * modules/netdb (Depends-on): Add arg-nonnull.
36752         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36753         * modules/search (Depends-on): Add arg-nonnull.
36754         (Makefile.am): Insert arg-nonnull.h into search.h.
36755         * modules/signal (Depends-on): Add arg-nonnull.
36756         (Makefile.am): Insert arg-nonnull.h into signal.h.
36757         * modules/spawn (Depends-on): Add arg-nonnull.
36758         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36759         * modules/stdio (Depends-on): Add arg-nonnull.
36760         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36761         * modules/stdlib (Depends-on): Add arg-nonnull.
36762         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36763         * modules/string (Depends-on): Add arg-nonnull.
36764         (Makefile.am): Insert arg-nonnull.h into string.h.
36765         * modules/strings (Depends-on): Add arg-nonnull.
36766         (Makefile.am): Insert arg-nonnull.h into strings.h.
36767         * modules/sys_socket (Depends-on): Add arg-nonnull.
36768         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36769         * modules/sys_stat (Depends-on): Add arg-nonnull.
36770         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36771         * modules/sys_time (Depends-on): Add arg-nonnull.
36772         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36773         * modules/sys_times (Depends-on): Add arg-nonnull.
36774         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36775         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36776         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36777         * modules/time (Depends-on): Add arg-nonnull.
36778         (Makefile.am): Insert arg-nonnull.h into time.h.
36779         * modules/unistd (Depends-on): Add arg-nonnull.
36780         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36781         * modules/wchar (Depends-on): Add arg-nonnull.
36782         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36783         * modules/argv-iter (Depends-on): Add arg-nonnull.
36784         * tests/test-canonicalize.c (null_ptr): New function.
36785         (main): Use it.
36786         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36787         (main): Use it.
36788         * tests/test-memmem.c (null_ptr): New function.
36789         (main): Use it.
36790         Reported by Jim Meyering.
36791
36792 2009-12-10  Bruno Haible  <bruno@clisp.org>
36793
36794         Use spaces for indentation, not tabs.
36795         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36796         * m4/*.m4: Untabify.
36797         * build-aux/*.h: Untabify.
36798         * tests/**/*.[hc]: Untabify.
36799         * README: New section "Indent with spaces, not TABs", based on
36800         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36801         * NEWS: Mention the change.
36802
36803 2009-12-10  Bruno Haible  <bruno@clisp.org>
36804
36805         pty test: Fix link error.
36806         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36807         test_pty_LDADD.
36808
36809 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36810
36811         * modules/pty: New file.
36812         * modules/pty-tests: New file.
36813         * m4/pty.m4: New file.
36814         * tests/test-pty.c: New file.
36815         * doc/glibc-headers/pty.texi: Modified.
36816         * doc/glibc-functions/forkpty.texi: Modified.
36817         * doc/glibc-functions/openpty.texi: Modified.
36818
36819 2009-12-10  Bruno Haible  <bruno@clisp.org>
36820
36821         Avoid syntax error in C++ mode.
36822         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36823
36824 2009-12-10  Bruno Haible  <bruno@clisp.org>
36825
36826         Use sed with option -e.
36827         * gnulib-tool (func_version, func_emit_copyright_notice,
36828         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36829         option -e to sed.
36830         * modules/link-warning (Makefile.am): Likewise.
36831
36832 2009-12-10  Jim Meyering  <meyering@redhat.com>
36833
36834         mgetgroups: do not write bytes beyond end of malloc'd buffer
36835         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36836         username, we call getgroups with a one-element-shorter buffer,
36837         but still told it the length was original, max_n_groups.
36838
36839 2009-12-09  Eric Blake  <ebb9@byu.net>
36840
36841         cloexec: relax license
36842         * modules/cloexec (Maintainer): Add myself.
36843         (License): Use LGPL, not GPL.
36844
36845         link-warning: optimize generation
36846         * modules/link-warning (Makefile.am): Reduce process usage.
36847
36848 2009-12-09  Bruno Haible  <bruno@clisp.org>
36849
36850         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36851         workaround was added on 2009-11-17.
36852
36853 2009-12-09  Jim Meyering  <meyering@redhat.com>
36854             Bruno Haible  <bruno@clisp.org>
36855
36856         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36857         * modules/link-warning (Makefile.am): Make the comment-removing sed
36858         command more robust in the face of bootstrap-prepended comment lines.
36859
36860 2009-12-09  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36863         most one group.
36864
36865 2009-12-09  Simon Josefsson <simon@josefsson.org>
36866             Bruno Haible  <bruno@clisp.org>
36867
36868         * build-aux/link-warning.h: Add copyright notice.
36869         * modules/link-warning (Makefile.am): Generate link-warning.h from
36870         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36871         * NEWS: Mention change in link-warning module.
36872         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36873         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36874         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36875         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36876         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36877         * modules/math (Makefile.am): Add dependency to math.h.
36878         * modules/search (Makefile.am): Add dependency to search.h.
36879         * modules/signal (Makefile.am): Add dependency to signal.h.
36880         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36881         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36882         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36883         * modules/string (Makefile.am): Add dependency to string.h.
36884         * modules/strings (Makefile.am): Add dependency to strings.h.
36885         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36886         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36887         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36888         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36889         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36890         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36891         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36892         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36893         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36894
36895 2009-12-09  Bruno Haible  <bruno@clisp.org>
36896
36897         fchdir: Optimize away rpl_fstat when possible.
36898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36899         REPLACE_OPEN_DIRECTORY.
36900         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36901
36902 2009-12-09  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/fchdir.c: Update comment.
36905
36906 2009-12-09  Bruno Haible  <bruno@clisp.org>
36907
36908         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36909
36910 2009-12-08  Eric Blake  <ebb9@byu.net>
36911
36912         fchdir: avoid memory leak on re-registration.
36913         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36914
36915 2009-12-08  Jim Meyering  <meyering@redhat.com>
36916
36917         init.sh: avoid Solaris 10 /bin/sh portability problem
36918         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36919         sourced script:
36920           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36921           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36922           bar
36923         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36924         and two tests used that idiom.
36925         * tests/init.sh: Update suggested usage comments.
36926         (path_prepend_): New function, to be used in place
36927         of the --src-path=DIR option.
36928         (setup_): Move PATH-prepending code into path_prepend_.
36929         * tests/test-pread.sh: Adapt to new usage.
36930         * tests/test-xalloc-die.sh: Likewise.
36931
36932 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36933
36934         * doc/gnulib.texi (Glibc pty.h): Add.
36935         * doc/glibc-functions/forkpty.texi: Add.
36936         * doc/glibc-functions/openpty.texi: Add.
36937         Suggested by Bruno Haible.
36938
36939 2009-12-08  Eric Blake  <ebb9@byu.net>
36940
36941         fchdir: fix logic bugs
36942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36943         * tests/test-fchdir.c (main): Enhance test.
36944         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36945         is in use.
36946
36947         dup2: fix logic bugs
36948         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36949         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36950         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36951         exists.
36952         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36953
36954 2009-12-07  Eric Blake  <ebb9@byu.net>
36955
36956         unlink: fix m4 detection
36957         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36958
36959         unistd-safer: add unit test
36960         * modules/unistd-safer-tests: New file.
36961         * tests/test-dup-safer.c: Likewise.
36962         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36963         * tests/test-dup2.c (setmode): Likewise.
36964         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36965
36966         cloexec: preserve text vs. binary across dup_cloexec
36967         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36968         mode.
36969         * modules/dup2-tests (Depends-on): Add binary-io.
36970         * modules/cloexec-tests (Depends-on): Likewise.
36971         * tests/test-dup2.c (setmode, is_mode): New helpers.
36972         (main): Add tests that translation mode is preserved.
36973         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36974         Reported by Bruno Haible.
36975
36976         mgetgroups: reduce duplicate listings
36977         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36978         resulting array.
36979         * tests/test-chown.h (test_chown): Simplify client.
36980         * tests/test-lchown.h (test_lchown): Likewise.
36981
36982 2009-12-06  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36985         value.
36986
36987 2009-12-06  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/progname.c: Include stdio.h, stdlib.h.
36990         (set_program_name): Reject a NULL argument.
36991
36992 2009-12-05  Eric Blake  <ebb9@byu.net>
36993
36994         pipe2-safer: new module
36995         * modules/pipe2-safer: New file.
36996         * lib/unistd-safer.h (pipe2_safer): New prototype.
36997         * lib/unistd--.h (pipe2): New wrapper.
36998         * lib/pipe-safer.c (pipe2_safer): New function.
36999         * modules/pipe (Depends-on): Add pipe2-safer.
37000         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37001
37002         stdlib-safer: preserve cloexec flag for mkostemp[s]
37003         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37004         fd_safer_flag.
37005
37006         unistd-safer: allow preservation of cloexec status via flag
37007         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37008         prototypes.
37009         * lib/dup-safer.c (dup_safer_flag): New function.
37010         * lib/fd-safer.c (fd_safer_flag): Likewise.
37011         * modules/cloexec (configure.ac): Set witness.
37012
37013         test-dup2: enhance test
37014         * modules/dup2-tests (Depends-on): Add cloexec.
37015         * tests/test-dup2.c (main): Enhance test.
37016
37017         cloexec: add dup_cloexec
37018         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37019         header and comments.
37020         * lib/cloexec.c (set_cloexec_flag): Add comments.
37021         (dup_cloexec): New function, with mingw implementation borrowed
37022         from...
37023         * lib/w32spawn.h (dup_noinherit): ...here.
37024         * modules/execute (Depends-on): Add cloexec.
37025         * modules/pipe (Depends-on): Likewise.
37026         * modules/cloexec (Depends-on): Add dup2.
37027         * modules/cloexec-tests (Files): New file.
37028         * tests/test-cloexec.c: Likewise.
37029
37030         test-xalloc-die: fix test for mingw
37031         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37032         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37033         directory and .exe suffix off argv[0] output.
37034
37035         test-fseeko: fix test for mingw
37036         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37037         than undefining fseek, so test will pass on mingw.
37038
37039 2009-12-05  Bruno Haible  <bruno@clisp.org>
37040
37041         * lib/progname.h (set_program_name): Clarify specification.
37042         * lib/progname.c (set_program_name): Likewise.
37043         Reported by Jim Meyering.
37044
37045 2009-12-05  Jim Meyering  <meyering@redhat.com>
37046
37047         maint.mk: backslash-escape parens in default regexp
37048         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37049         backslash-escape the literal parentheses.
37050
37051         maint.mk: news-date-check: use grep -E
37052         * top/maint.mk (today): Define a Make variable, not a...
37053         (news-date-check): ...shell variable.
37054         (news-date-regexp): Use the Make variable.
37055         Use grep's -E option.  Change the failing diagnostic to mention
37056         the variable, $(news-date-regexp).
37057
37058 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37059
37060         maintainer-makefile: allow customization of NEWS entry format
37061         * top/maint.mk (news-date-regexp): New overridable variable.
37062         (news-date-check): Use it.
37063
37064 2009-12-04  Eric Blake  <ebb9@byu.net>
37065
37066         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37067         * lib/mgetgroups.h (xgetgroups): New prototype.
37068         * lib/mgetgroups.c (xgetgroups): New wrapper.
37069         (mgetgroups): Handle ENOSYS.
37070         * modules/mgetgroups (Depends-on): Add realloc.
37071         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37072
37073         mgetgroups: avoid argument promotion issues with -1
37074         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37075         for invalid gid_t.
37076         * tests/test-chown.h (getegid, test_chown): Likewise.
37077         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37078
37079 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37080
37081         exclude: Fix header file problems.
37082         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37083
37084 2009-12-01  Jim Meyering  <meyering@redhat.com>
37085
37086         fts: fts_open: do not let an empty string cause immediate failure
37087         This is required in support of GNU rm, for which the command
37088         "rm A '' B" must process and remove both A and B, in spite of
37089         the empty string argument.
37090         * lib/fts.c (fts_open): Do not let the presence of an empty string
37091         cause fts_open to fail immediately.  Most fts-using tools must be
37092         able to process all arguments, in order, and can be expected to
37093         diagnose such arguments themselves.
37094
37095 2009-11-30  Eric Blake  <ebb9@byu.net>
37096
37097         utimens: fix compilation error
37098         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37099         Declare variable at right scope.
37100
37101 2009-11-29  Jim Meyering  <meyering@redhat.com>
37102
37103         bootstrap: handle perl-5.11's changed --version output
37104         * build-aux/bootstrap (get_version): Handle perl separately,
37105         since perl-5.11's --version output is different.
37106
37107 2009-11-28  Jim Meyering  <meyering@redhat.com>
37108
37109         userspec: depend on the inttostr module, too
37110         * modules/userspec (Depends-on): Add inttostr.
37111
37112         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37113         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37114         number of MAXUID when it evaluates to (uid_t) -1.
37115         Likewise for group ID.  Reported by Matt McCutchen in
37116         <http://savannah.gnu.org/bugs/?28113>
37117
37118         userspec: reformat to use spaces, not TABs
37119         * lib/userspec.c: Expand TABs to spaces.
37120         Add Emacs' "indent-tabs-mode: nil" hint.
37121
37122 2009-11-27  Eric Blake  <ebb9@byu.net>
37123
37124         getopt-gnu: flush out another BSD bug
37125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37126         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37127         flush out BSD bug.
37128         * tests/test-getopt.h (test_getopt): End lists with NULL.
37129         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37130         (test_getopt_long_posix): Enhance test.
37131         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37132         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37133         getopt-gnu.
37134         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37135         Likewise.
37136
37137 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37138
37139         * modules/idpriv-droptemp-tests (Notice): Fix text.
37140
37141 2009-11-27  Jim Meyering  <meyering@redhat.com>
37142
37143         test-xalloc-die: avoid spurious failure due to libtool argv difference
37144         In a libtool-enabled project, this test would fail due to a difference
37145         in the emitted program name, e.g.,
37146         -test-xalloc-die: memory exhausted
37147         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37148         Use program to avoid that.
37149         * modules/xalloc-die-tests (Depends-on): Add progname.
37150         * tests/test-xalloc-die.c: Include progname.h".
37151         (program_name): Remove decl.
37152         (main): Call set_program_name.
37153         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37154
37155 2009-11-26  Richard Jones  <rjones@redhat.com>
37156
37157         w32sock: leave win32 error in place.
37158         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37159
37160 2009-11-26  Eric Blake  <ebb9@byu.net>
37161
37162         init.sh: suggest to use skip_ and fail_ functions in comments
37163         * tests/init.sh: Add a sentence.
37164
37165 2009-11-25  Bruno Haible  <bruno@clisp.org>
37166
37167         init.sh: add documentation in comments
37168         * tests/init.sh: Add some developer and user documentation.
37169
37170 2009-11-26  Jim Meyering  <meyering@redhat.com>
37171
37172         init.sh: accommodate even those who specify bogus srcdir manually
37173         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37174         configure-time tests to be sanitized, so that there is no need to
37175         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37176         (with no double quotes) suffices.  However, since tests may be
37177         invoked manually, and since you may explicitly set srcdir to the
37178         name of a directory containing spaces, do quote its uses here.
37179         * tests/test-pread.sh: Likewise.
37180         Suggested by Bruno Haible.
37181
37182         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37183         * tests/test-pread.sh: Write no data into the pipe, because
37184         test-pread actually reads none.  This avoids a diagnostic,
37185         "bash: echo: write error: Broken pipe", that arises in the unusual
37186         event something is ignoring SIGPIPE, and might be interpreted
37187         as some sort of failure.  Reported by Bruno Haible.
37188
37189 2009-11-25  Jim Meyering  <meyering@redhat.com>
37190
37191         test-pread: cover failure with ESPIPE and EINVAL
37192         * tests/test-pread.c (main): Test for failure, too.
37193         * tests/test-pread.sh: Invoke with stdin on a pipe.
37194         Suggested by Eric Blake.
37195
37196         pread: improvement and fix
37197         * modules/pread (Depends-on): Depend on lseek, for portability to
37198         e.g., mingw.  Suggested by Eric Blake.
37199         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37200
37201         unistd.in.h: correct declaration of pread
37202         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37203         Reported by Richard W.M. Jones.
37204
37205         test-pread.sh: distribute the test script
37206         * modules/pread-tests (Files): Include test-pread.sh.
37207
37208         test-pread.sh: clean up
37209         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37210         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37211         That is unnecessary, since it's always ".".
37212         Suggestion from Eric Blake.
37213
37214         test-pread.sh: make executable
37215         * tests/test-pread.sh: Set executable bit.
37216         Reported by Eric Blake.
37217
37218         correct typo in test-pread.sh
37219         * tests/test-pread.sh: Add #! line.
37220
37221         test pread
37222         * tests/test-pread.c: New file.
37223         * tests/test-pread.sh: Likewise.
37224         * modules/pread-tests: Likewise.
37225
37226         pread: new module
37227         * modules/pread: New file.
37228         * lib/unistd.in.h (pread): Define/declare.
37229         * lib/pread.c (pread): New file.
37230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37231         * modules/unistd (Makefile.am): Substitute witnesses.
37232         * doc/posix-functions/pread.texi (pread): Update.
37233         * MODULES.html.sh: Add pread.
37234
37235 2009-11-25  Jim Meyering  <meyering@redhat.com>
37236
37237         tests/init.sh: new file to be used via most *.sh tests
37238         * tests/init.sh: New file.
37239
37240 2009-11-25  Eric Blake  <ebb9@byu.net>
37241
37242         utimens: work around older Linux failure with symlinks
37243         * lib/utimens.c (lutimensat_works_really): New variable.
37244         (fdutimens, lutimens): Use it to manage kernels that support
37245         nanosecond times on files, but not on symlinks.
37246         Reported by Ondřej Vašík.
37247
37248         utimes: fix configure grammar
37249         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37250
37251 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37252
37253         regex: Fix fastmap for multibyte character ranges.
37254         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37255         characters when a multibyte character range is included.
37256
37257 2009-11-22  Andy Wingo  <wingo@pobox.com>
37258
37259         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37260         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37261
37262 2009-11-24  Bruno Haible  <bruno@clisp.org>
37263
37264         doc: Most *_l functions exist in MacOS X 10.5.
37265         * doc/posix-functions/duplocale.texi: Update platforms list.
37266         * doc/posix-functions/freelocale.texi: Likewise.
37267         * doc/posix-functions/newlocale.texi: Likewise.
37268         * doc/posix-functions/uselocale.texi: Likewise.
37269         * doc/posix-functions/isalnum_l.texi: Likewise.
37270         * doc/posix-functions/isalpha_l.texi: Likewise.
37271         * doc/posix-functions/isblank_l.texi: Likewise.
37272         * doc/posix-functions/iscntrl_l.texi: Likewise.
37273         * doc/posix-functions/isdigit_l.texi: Likewise.
37274         * doc/posix-functions/isgraph_l.texi: Likewise.
37275         * doc/posix-functions/islower_l.texi: Likewise.
37276         * doc/posix-functions/isprint_l.texi: Likewise.
37277         * doc/posix-functions/ispunct_l.texi: Likewise.
37278         * doc/posix-functions/isspace_l.texi: Likewise.
37279         * doc/posix-functions/isupper_l.texi: Likewise.
37280         * doc/posix-functions/iswalnum_l.texi: Likewise.
37281         * doc/posix-functions/iswalpha_l.texi: Likewise.
37282         * doc/posix-functions/iswblank_l.texi: Likewise.
37283         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37284         * doc/posix-functions/iswctype_l.texi: Likewise.
37285         * doc/posix-functions/iswdigit_l.texi: Likewise.
37286         * doc/posix-functions/iswgraph_l.texi: Likewise.
37287         * doc/posix-functions/iswlower_l.texi: Likewise.
37288         * doc/posix-functions/iswprint_l.texi: Likewise.
37289         * doc/posix-functions/iswpunct_l.texi: Likewise.
37290         * doc/posix-functions/iswspace_l.texi: Likewise.
37291         * doc/posix-functions/iswupper_l.texi: Likewise.
37292         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37293         * doc/posix-functions/isxdigit_l.texi: Likewise.
37294         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37295         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37296         * doc/posix-functions/strcoll_l.texi: Likewise.
37297         * doc/posix-functions/strfmon_l.texi: Likewise.
37298         * doc/posix-functions/strftime_l.texi: Likewise.
37299         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37300         * doc/posix-functions/strxfrm_l.texi: Likewise.
37301         * doc/posix-functions/tolower_l.texi: Likewise.
37302         * doc/posix-functions/toupper_l.texi: Likewise.
37303         * doc/posix-functions/towctrans_l.texi: Likewise.
37304         * doc/posix-functions/towlower_l.texi: Likewise.
37305         * doc/posix-functions/towupper_l.texi: Likewise.
37306         * doc/posix-functions/wcscoll_l.texi: Likewise.
37307         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37308         * doc/posix-functions/wctrans_l.texi: Likewise.
37309         * doc/posix-functions/wctype_l.texi: Likewise.
37310         * doc/glibc-functions/strptime_l.texi: Likewise.
37311         * doc/glibc-functions/strtod_l.texi: Likewise.
37312         * doc/glibc-functions/strtof_l.texi: Likewise.
37313         * doc/glibc-functions/strtol_l.texi: Likewise.
37314         * doc/glibc-functions/strtold_l.texi: Likewise.
37315         * doc/glibc-functions/strtoll_l.texi: Likewise.
37316         * doc/glibc-functions/strtoul_l.texi: Likewise.
37317         * doc/glibc-functions/strtoull_l.texi: Likewise.
37318         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37319         * doc/glibc-functions/wcstod_l.texi: Likewise.
37320         * doc/glibc-functions/wcstof_l.texi: Likewise.
37321         * doc/glibc-functions/wcstol_l.texi: Likewise.
37322         * doc/glibc-functions/wcstold_l.texi: Likewise.
37323         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37324         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37325         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37326
37327 2009-11-24  Bruno Haible  <bruno@clisp.org>
37328
37329         duplocale: Fix logic bug.
37330         * lib/duplocale.c: Don't include <langinfo.h>.
37331         (_NL_LOCALE_NAME): Remove macro.
37332         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37333         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37334
37335 2009-11-23  Jim Meyering  <meyering@redhat.com>
37336
37337         test-update-copyright: don't hard-code /usr/bin/perl
37338         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37339         perl to print the current year.  Gilles Espinasse reported that
37340         the replaced use of perl was hard-coded as /usr/bin/perl.
37341
37342 2009-11-23  Bruno Haible  <bruno@clisp.org>
37343
37344         duplocale: Add support for glibc 2.3.x.
37345         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37346
37347 2009-11-22  Bruno Haible  <bruno@clisp.org>
37348
37349         vasnprintf: Tiny optimization.
37350         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37351         MacOS X.
37352
37353 2009-11-22  Bruno Haible  <bruno@clisp.org>
37354
37355         Tests for module 'duplocale'.
37356         * modules/duplocale-tests: New file.
37357         * tests/test-duplocale.c: New file.
37358
37359         New module 'duplocale'.
37360         * m4/duplocale.m4: New file.
37361         * lib/locale.in.h (duplocale): New declaration.
37362         * lib/duplocale.c: New file.
37363         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37364         gl_LOCALE_H_DEFAULTS): New macros.
37365         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37366         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37367         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37368         REPLACE_DUPLOCALE.
37369         * modules/duplocale: New file.
37370         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37371
37372 2009-11-22  Bruno Haible  <bruno@clisp.org>
37373
37374         * modules/locale-tests (configure.ac): Test for newlocale function.
37375         * tests/test-locale.c: When the system has extended locale functions,
37376         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37377
37378         locale: Make locale_t available when possible.
37379         * lib/locale.in.h: Include <xlocale.h> when it exists.
37380         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37381         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37382         * modules/locale (Depends-on): Add extensions.
37383         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37384         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37385
37386 2009-11-22  Bruno Haible  <bruno@clisp.org>
37387
37388         Add comments.
37389         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37390         invocation.
37391         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37392         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37393         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37394
37395 2009-11-22  Bruno Haible  <bruno@clisp.org>
37396
37397         error: account for the possibility of freopen (stdout).
37398         * lib/error.c: Include <unistd.h>.
37399         (flush_stdout): New function, extracted from error and error_at_line.
37400         Determine stdout's fd dynamically.
37401         (error, error_at_line): Invoke flush_stdout.
37402         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37403         * modules/error (Depends-on): Add unistd.
37404
37405 2009-11-22  Bruno Haible  <bruno@clisp.org>
37406
37407         diffseq: Add comment.
37408         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37409
37410 2009-11-22  Jim Meyering  <meyering@redhat.com>
37411
37412         c-stack: avoid defining an unused static function
37413         * lib/c-stack.c (find_stack_direction): Do not define this function
37414         when it will not be used.
37415
37416         diffseq: avoid spurious gcc warnings
37417         * lib/diffseq.h (IF_LINT2): Define.
37418         (compareseq): Use it to initialize two members of "part".
37419         This avoids two used-uninitialized warnings.
37420
37421 2009-11-21  Jim Meyering  <meyering@redhat.com>
37422
37423         c-stack: avoid "ignoring return value of `write'" warning
37424         * lib/c-stack.c: Include "ignore-value.h".
37425         (die): Explicitly ignore each write return value.
37426         * modules/c-stack (Depends-on): Add ignore-value.
37427
37428 2009-11-21  Bruno Haible  <bruno@clisp.org>
37429
37430         diffseq: reduce scope of variable 'best'.
37431         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37432         variable, earlier used for two different purposes.
37433
37434 2009-11-21  Jim Meyering  <meyering@redhat.com>
37435
37436         diffseq: remove useless assignment to "best"
37437         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37438         assignment.  At that point "best" is already guaranteed to be zero.
37439
37440 2009-11-20  Eric Blake  <ebb9@byu.net>
37441
37442         build: mention ftp redirector in release announcements
37443         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37444         values that used to come from cfg.mk; mention FTP redirect URL.
37445         * build-aux/announce-gen: Mention the mirror list.
37446         Suggested by Karl Berry.
37447
37448         nanosleep: improve port to mingw
37449         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37451         LIB_NANOSLEEP, but only when needed.
37452         * modules/select (Link): Document LIBSOCKET.
37453         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37454         enough.
37455
37456         nanosleep: work around cygwin bug
37457         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37458         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37459         bug.
37460         (getnow): Delete, not needed.
37461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37462         LIB_CLOCK_GETTIME.
37463         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37464         clock-time, gettime.
37465         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37466         bug.
37467         * modules/nanosleep-tests: New test.
37468         * tests/test-nanosleep.c: New file.
37469
37470         sleep: work around cygwin bug
37471         * lib/sleep.c (rpl_sleep): Work around the bug.
37472         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37473         (gl_PREREQ_SLEEP): Delete unused macro.
37474         * modules/sleep (Depends-on): Add verify.
37475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37476         * modules/unistd (Makefile.am): Substitute witness.
37477         * lib/unistd.in.h (sleep): Update prototype.
37478         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37479         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37480         * modules/sleep-tests (Depends-on): Check for alarm.
37481
37482 2009-11-20  Jim Meyering  <meyering@redhat.com>
37483
37484         maint.mk: improve sc_prohibit_magic_number_exit
37485         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37486         so it does not match uses like System.exit(1).
37487         Add comments showing how to correct all offenders.
37488
37489 2009-11-19  Eric Blake  <ebb9@byu.net>
37490
37491         xalloc-die-tests: add missing library
37492         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37493
37494         test-xvasprintf: silence compiler warnings
37495         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37496         empty string from gcc.
37497
37498 2009-11-19  Jim Meyering  <meyering@redhat.com>
37499
37500         xfreopen: new module, from coreutils
37501         * modules/xfreopen: New module.
37502         * lib/xfreopen.c: New file.
37503         * lib/xfreopen.h: New file.
37504         * MODULES.html.sh (File stream based Input/Output"): Add it.
37505
37506 2009-11-19  Eric Blake  <ebb9@byu.net>
37507
37508         manywarnings: depend on warnings
37509         * modules/manywarnings (Depends-on): Add warnings.
37510
37511         build: avoid compiler warnings
37512         * lib/select.c (rpl_select): Delete unused variable.
37513         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37514
37515 2009-11-18  Eric Blake  <ebb9@byu.net>
37516
37517         tests: avoid false negative with --with-packager
37518         * tests/test-version-etc.sh: Discard packager information.
37519         * tests/test-argp-version-etc-1.sh: Likewise.
37520         Reported by Mike Frysinger.
37521
37522         utimens: fix regression on Solaris
37523         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37524         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37525         can only change fd timestamps via futimesat.  Instead, use an
37526         additional witness macro to avoid BSD bug.
37527         Reported by Jim Meyering.
37528
37529 2009-11-17  Eric Blake  <ebb9@byu.net>
37530
37531         usleep: use it to simplify tests
37532         * modules/stat-time-tests (Depends-on): Add usleep.
37533         (configure.ac): Drop usleep check.
37534         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37535         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37536         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37537         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37538         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37539         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37540         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37541         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37542         Likewise.
37543         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37544         * tests/test-lchown.h (nap): Likewise.
37545         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37546         * tests/test-stat-time.c (nap): Likewise.
37547         * tests/test-utimens-common.h (nap): Update comments.
37548
37549         usleep: new module
37550         * modules/usleep: New file.
37551         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37552         * lib/usleep.c (usleep): Likewise.
37553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37554         * modules/unistd (Makefile.am): Substitute witnesses.
37555         * lib/unistd.in.h (usleep): Add declaration.
37556         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37557         * MODULES.html.sh (Date and time): Likewise.
37558         * modules/usleep-tests (Depends-on): New test.
37559         * tests/test-usleep.c: New file.
37560
37561         chown: work around OpenBSD bug
37562         * lib/chown.c (rpl_chown): Work around the bug.
37563         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37564         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37565         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37566         * modules/chown (Depends-on): Add stdbool.
37567         * modules/lchown (Depends-on): Likewise.
37568         * doc/posix-functions/chown.texi (chown): Document the bug.
37569         * doc/posix-functions/lchown.texi (lchown): Likewise.
37570         * tests/test-lchown.h (test_chown): Relax test.
37571
37572         mkstemp: avoid conflict with C++ keyword template
37573         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37574         * lib/mkostemp.c (mkostemp): Likewise.
37575         * lib/mkostemps.c (mkostemps): Likewise.
37576         * lib/mkstemp.c (mkstemp): Likewise.
37577         * lib/mkstemps.c (mkstemps): Likewise.
37578
37579         xalloc-die-tests: optimize
37580         * tests/test-xalloc-die.sh: Reduce number of processes.
37581
37582 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37583
37584         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37585         patch from ludo@gnu.org (Ludovic Courtès).
37586
37587 2009-11-17  Jim Meyering  <meyering@redhat.com>
37588
37589         version-etc: use proper license string
37590         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37591         * modules/version-etc-fsf: Likewise.
37592
37593 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37594
37595         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37596         printed to stdout.  Deal with EOL differences.
37597
37598 2009-11-17  Eric Blake  <ebb9@byu.net>
37599
37600         unsetenv: work around Solaris bug
37601         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37602         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37603         Reported by Jim Meyering.
37604
37605         vasnprintf: avoid compiler warnings
37606         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37607         variables.
37608         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37609
37610 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37611
37612         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37613         settings since xalloc-die is no longer the self test,
37614         xalloc-die.sh is.
37615
37616 2009-11-17  Jim Meyering  <meyering@redhat.com>
37617
37618         test-xalloc-die.sh: make the code agree with the commit log
37619         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37620         at the end, just in case you happen to have a test-xalloc-die
37621         program in some other PATH directory.
37622
37623         test-xalloc-die.sh: fix a portability bug
37624         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37625         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37626         Otherwise, argv[0] (as often seen in diagnostics) would be too
37627         system-dependent, sometimes with, and sometimes without the leading "./".
37628
37629         version-etc-fsf: relax license to LGPLv3+
37630         * modules/version-etc-fsf (License): Relax license.
37631
37632 2009-11-16  Eric Blake  <ebb9@byu.net>
37633
37634         xalloc-die-tests: avoid printing null pointer
37635         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37636         shell script.
37637         * tests/test-xalloc-die.c (program_name): Declare.
37638         * tests/test-xalloc-die.sh (tmpfiles): New file.
37639
37640         setenv, unsetenv: work around various bugs
37641         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37642         (setenv) [HAVE_SETENV]: Work around bugs.
37643         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37644         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37645         for bugs.
37646         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37647         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37649         * modules/stdlib (Makefile.am): Update substitutions.
37650         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37651         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37652         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37653         * modules/setenv-tests: New test.
37654         * modules/unsetenv-tests: Likewise.
37655         * tests/test-setenv.c: New file.
37656         * tests/test-unsetenv.c: Likewise.
37657
37658 2009-11-16  Jim Meyering  <meyering@redhat.com>
37659
37660         version-etc: relax license to LGPLv3+
37661         * modules/version-etc (License): Relax license.
37662
37663         better AC_REQUIRE expanded-before-required-warning avoidance
37664         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37665         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37666         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37667         which is no longer needed.
37668
37669 2009-11-16  Eric Blake  <ebb9@byu.net>
37670
37671         test-freading: clean up temporary file
37672         * tests/test-freading.c (main): Remove file on success, and use
37673         ASSERT more liberally.
37674         Reported by Jim Meyering.
37675
37676 2009-11-16  Jim Meyering  <meyering@redhat.com>
37677
37678         avoid new AC_REQUIRE expanded-before-required warnings
37679         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37680         merely using it.
37681         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37682         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37683
37684 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37685
37686         * tests/test-xalloc-die.c: New file.
37687         * modules/xalloc-die-tests: New file.
37688         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37689         XFAIL_TESTS so it can be appended by modules.
37690
37691 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37692
37693         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37694         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37695
37696 2009-11-14  Eric Blake  <ebb9@byu.net>
37697
37698         fnmatch: avoid compiler warning
37699         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37700         to silence compiler warning about mismatch signedness in ?:.
37701         Reported by Robert Millan.
37702
37703         intprops: add double-inclusion guard
37704         * lib/intprops.h: Allow idempotent includes.
37705         Suggested by Bruce Korb.
37706
37707         openat: detect Solaris fchownat bug
37708         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37709         penalizing glibc chownat when only lchownat is broken.
37710         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37711         trailing slash bugs.
37712         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37713         * modules/openat-tests (Files): Include more files.
37714         (Depends-on): Add mgetgroups, sleep, stat-time.
37715         (configure.ac): Add additional checks.
37716         (Makefile.am): Build new test.
37717         * tests/test-fchownat.c: New file.
37718
37719         lchown: detect Solaris and FreeBSD bug
37720         * lib/lchown.c (rpl_lchown): Work around bug.
37721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37723         * modules/unistd (Makefile.am): Populate it.
37724         * lib/unistd.in.h (lchown): Update declaration.
37725         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37726         * modules/lchown-tests: New file.
37727         * tests/test-lchown.h (test_lchown): Likewise.
37728         * tests/test-lchown.c (main): Likewise.
37729
37730         chown: detect Solaris and FreeBSD bug
37731         * lib/chown.c (rpl_chown): Work around bug.
37732         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37733         (gl_PREREQ_CHOWN): Delete.
37734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37735         * modules/unistd (Makefile.am): Populate it.
37736         * lib/unistd.in.h (chown): Update declaration.
37737         * lib/lchown.c (chown): Update client.
37738         * modules/lchown (Depends-on): Add lstat.
37739         * doc/posix-functions/chown.texi (chown): Document the bug.
37740         * doc/posix-functions/getgroups.texi (getgroups): Document
37741         getgroups pitfall.
37742         * modules/chown-tests: New file.
37743         * tests/test-chown.h (test_chown): Likewise.
37744         * tests/test-chown.c (main): Likewise.
37745
37746 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37747
37748         gnulib-tool: correctly detect absence of m4 directories
37749         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37750
37751 2009-11-14  Jim Meyering  <meyering@redhat.com>
37752
37753         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37754         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37755
37756 2009-11-14  John W. Eaton  <jwe@gnu.org>
37757
37758         strftime.h: wrap funtion declaration in extern "C" block
37759         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37760
37761 2009-11-13  Eric Blake  <ebb9@byu.net>
37762
37763         getgroups: avoid compiler warning
37764         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37765
37766         getgroups: work around FreeBSD bug
37767         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37768         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37769         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37770         * tests/test-getgroups.c (main): Fix buffer overrun.
37771
37772         getgroups: avoid compilation failure
37773         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37774         * modules/getgroups (Depends-on): Add stdint.
37775
37776 2009-11-13  Jim Meyering  <meyering@redhat.com>
37777
37778         test-getgroups: avoid compilation failure
37779         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37780
37781 2009-11-13  Eric Blake  <ebb9@byu.net>
37782
37783         mgetgroups: new module, taken from coreutils
37784         * modules/mgetgroups: New file.
37785         * lib/mgetgroups.h: Likewise.
37786         * lib/mgetgroups.c (mgetgroups): Likewise.
37787         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37788         * MODULES.html.sh (Users and groups): Mention it.
37789
37790         getgroups: don't expose GETGROUPS_T to user
37791         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37792         an element at a time if GETGROUPS_T is wrong size.
37793         * lib/getugroups.h (getugroups): Change signature.
37794         * lib/unistd.in.h (getgroups): Likewise.
37795         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37796         signature needs fixing.
37797         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37798         AC_TYPE_GETGROUPS.
37799         * modules/group-member (Depends-on): Add getgroups.
37800         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37801         (group_member): Rely on getgroups replacement.
37802         * lib/getugroups.c (getugroups): Use gid_t.
37803         * tests/test-getgroups.c (main): Likewise.
37804         * NEWS: Mention the signature change.
37805         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37806         problem with signature.
37807         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37808         GETGROUPS_T is still useful for setgroups.
37809
37810         getgroups, getugroups: provide stubs for mingw
37811         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37812         * lib/getugroups.c (getugroups): Likewise.
37813         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37814         function.  Modernize replacement scheme.
37815         (gl_PREREQ_GETGROUPS): Delete.
37816         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37817         * modules/getgroups (configure.ac): Declare witness.
37818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37819         * modules/unistd (Depends-on): Substitute witness.
37820         * lib/unistd.in.h (getgroups): Declare replacement.
37821
37822         getgroups: avoid calling exit
37823         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37824         drop xalloc.
37825         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37826         dependencies.
37827         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37828         exiting, in the rare case of malloc failure.
37829
37830         getgroups: fix logic error
37831         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37832         has more than 20 groups.
37833         * modules/getgroups-tests: New test.
37834         * tests/test-getgroups.c: New file.
37835
37836 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37837
37838         * tests/test-base64.c: Improve.
37839
37840 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37841
37842         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37843         Blake <ebb9@byu.net>.
37844
37845 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37846
37847         * tests/test-xvasprintf.c: Add %s%s related checks.
37848
37849 2009-11-12  Eric Blake  <ebb9@byu.net>
37850
37851         version-etc: match standards.texi style
37852         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37853         and use <> only for URLs.
37854
37855 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37856
37857         fts: do not fail on a submount during traversal
37858         * lib/fts.c (fts_build): Read the stat info again after opening
37859         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37860         Original report at http://bugzilla.redhat.com/501848.
37861
37862 2009-11-12  Jim Meyering  <meyering@redhat.com>
37863
37864         bootstrap: sync from coreutils
37865         * build-aux/bootstrap (bootstrap_epilogue): New function.
37866         Use git_modules_config in one more place.  This make bootstrap's
37867         --gnulib-srcdir option more useful for testing.
37868
37869         bootstrap: generalize autoheader check
37870         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37871         AC_CONFIG_HEADERS.
37872
37873 2009-11-11  Eric Blake  <ebb9@byu.net>
37874
37875         mkfifoat: use new modules for Solaris and BSD bugs
37876         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37877         * lib/mkfifoat.c (mknodat): Split...
37878         * lib/mknodat.c (mknodat): ...into new file.
37879         * modules/mkfifoat (Files): Ship new file.
37880         (Depends-on): Add mkfifo, mknod.
37881         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37882         (Depends-on): Add symlink.
37883         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37884         redundant with test_mkfifo.h.
37885         (do_mkfifoat, do_mknodat): New helpers.
37886
37887         mknod: new module
37888         * modules/mknod: New file.
37889         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37890         * lib/mknod.c (mknod): Likewise.
37891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37892         defaults.
37893         * modules/sys_stat (Makefile.am): Substitute them.
37894         * lib/sys_stat.in.h (mknod): Declare replacement.
37895         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37896         Document it.
37897         * doc/posix-functions/mknod.texi (mknod): Likewise.
37898         * modules/mknod-tests: New test.
37899         * tests/test-mknod.c: Likewise.
37900
37901         mkfifo: new module
37902         * modules/mkfifo: New file.
37903         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37904         * lib/mkfifo.c (mkfifo): Likewise.
37905         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37906         defaults.
37907         * modules/sys_stat (Makefile.am): Substitute them.
37908         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37909         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37910         Document it.
37911         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37912         * modules/mkfifo-tests: New test.
37913         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37914         from test-mkfifoat.c.
37915         * tests/test-mkfifo.c: New file.
37916
37917         readlink: detect FreeBSD bug
37918         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37919         slash on symlink.
37920         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37921         * tests/test-readlink.h (test_readlink): Enhance test.
37922
37923         symlink: detect FreeBSD bug
37924         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37925         slash on symlink.
37926         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37927         * tests/test-symlink.h (test_symlink): Enhance test.
37928
37929 2009-11-10  Eric Blake  <ebb9@byu.net>
37930
37931         link: detect FreeBSD bug
37932         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37933         symlink.
37934         * doc/posix-functions/link.texi (link): Document the bug.
37935         * tests/test-link.h (test_link): Enhance test.
37936         * tests/test-linkat.c (main): Update caller.
37937
37938         unlink, remove: detect FreeBSD bug
37939         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37940         slash on symlink.
37941         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37942         * doc/posix-functions/remove.texi (remove): Likewise.
37943         * tests/test-unlink.h (test_unlink): Enhance test.
37944         * tests/test-remove.c (main): Likewise.
37945
37946 2009-11-09  Eric Blake  <ebb9@byu.net>
37947
37948         rename: detect FreeBSD bug
37949         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37950         slash on symlink.
37951         * modules/renameat-tests (Depends-on): Add filenamecat.
37952         * tests/test-rename.h (test_rename): Allow one more errno.
37953         * tests/test-renameat.c (main): Likewise.
37954         * doc/posix-functions/rename.texi (rename): Document the bug.
37955
37956         open: detect FreeBSD bug
37957         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37958         symlink.
37959         * doc/posix-functions/open.texi (open): Document the bug.
37960         * doc/posix-functions/utimes.texi (utimes): Likewise.
37961         * tests/test-open.h (test_open): Add parameters, and test symlink
37962         handling.
37963         * tests/test-open.c (main): Adjust caller.
37964         * tests/test-fcntl-safer.c (main): Likewise.
37965         * modules/open-tests (Depends-on): Add stdbool, symlink.
37966         * modules/fcntl-safer-tests (Depends-on): Likewise.
37967         * tests/test-openat.c (main): Add test-open tests.
37968
37969         stat: detect FreeBSD bug
37970         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37971         symlink.
37972         * doc/posix-functions/stat.texi (stat): Document the bug.
37973         * tests/test-stat.h (test_stat_func): Add argument.
37974         * tests/test-stat.c (main): Adjust caller.
37975         * tests/test-fstatat.c (main): Likewise.
37976         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37977         Reported by Jim Meyering.
37978
37979 2009-11-09  James Youngman  <jay@gnu.org>
37980
37981         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37982         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37983
37984 2009-11-08  Jim Meyering  <meyering@redhat.com>
37985
37986         utimens: remove invalid futimesat call
37987         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37988         It used the file descriptor of the target file as the DIR_FD
37989         parameter and NULL as the file name.  That caused failure with
37990         errno == EFAULT on FreeBSD-8.0-rc2
37991
37992 2009-11-07  Eric Blake  <ebb9@byu.net>
37993
37994         fflush, freadseek: use fseeko, not fseek
37995         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37996         (clear_ungetc_buffer): Avoid potential problems on large files.
37997         * lib/freadseek.c (freadseek): Likewise.
37998         * modules/freadseek (Depends-on): Add fseeko.
37999         * modules/fseek (configure.ac): Set a witness.
38000         * tests/test-fflush.c (main): Use fseeko.
38001         * tests/test-fpurge.c (fseek): Disable link warning.
38002         * tests/test-freadable.c (fseek): Likewise.
38003         * tests/test-freading.c (fseek): Likewise.
38004         * tests/test-fseeko.c (fseek): Likewise.
38005         * tests/test-ftell.c (fseek): Likewise.
38006         * tests/test-ftello.c (fseek): Likewise.
38007         * tests/test-fwritable.c (fseek): Likewise.
38008         * tests/test-fwriting.c (fseek): Likewise.
38009
38010 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38011
38012         * modules/memchr (Depends-on): Drop getpagesize dependency.
38013
38014 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38015
38016         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38017         Reported by Ludovic Courtès.
38018         * build-aux/pmccabe2html: Improve example usage.
38019         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38020
38021 2009-11-06  Jim Meyering  <meyering@redhat.com>
38022
38023         do-release-commit-and-tag: New module.
38024         Automate the release-commit and tag process.
38025         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38026         * modules/do-release-commit-and-tag: New file.
38027         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38028
38029 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38030
38031         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38032         because test-select.c uses inet_pton.
38033
38034 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38035
38036         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38037         GETADDRINFO_LIB.  Bump serial number.
38038         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38039         Suggested by Eric Blake <ebb9@byu.net>.
38040
38041 2009-11-05  Eric Blake  <ebb9@byu.net>
38042
38043         strtod: detect darwin bug
38044         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38045         Reported by Leo Davis.
38046
38047         freopen-safer: new module
38048         * modules/freopen-safer: New module.
38049         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38050         * lib/freopen-safer.c (freopen_safer): New file.
38051         * lib/stdio-safer.h (freopen_safer): New declaration.
38052         * lib/stdio--.h (freopen): New override.
38053         * MODULES.html.sh (File stream based Input/Output): Mention it.
38054         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38055         freopen-safer module.
38056         * doc/posix-functions/stderr.texi (stderr): Likewise.
38057         * doc/posix-functions/stdin.texi (stdin): Likewise.
38058         * doc/posix-functions/stdout.texi (stdout): Likewise.
38059         * modules/freopen-safer-tests: New test.
38060         * tests/test-reopen-safer.c: New file.
38061
38062 2009-11-05  Jim Meyering  <meyering@redhat.com>
38063
38064         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38065         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38066
38067 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38068
38069         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38070
38071 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38072
38073         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38074
38075 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38076
38077         Fix link error.
38078         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38079         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38080
38081 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38082
38083         * tests/test-func.c: Also test value of __func__.
38084
38085 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38086
38087         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38088         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38089
38090 2009-11-05  Bruno Haible  <bruno@clisp.org>
38091
38092         Fix link error.
38093         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38094         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38095         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38096
38097 2009-11-05  Bruno Haible  <bruno@clisp.org>
38098
38099         Tests for module 'inet_pton'.
38100         * modules/inet_pton-tests: New file.
38101         * tests/test-inet_pton.c: New file.
38102
38103 2009-11-05  Bruno Haible  <bruno@clisp.org>
38104
38105         Tests for module 'inet_ntop'.
38106         * modules/inet_ntop-tests: New file.
38107         * tests/test-inet_ntop.c: New file.
38108
38109 2009-11-04  Eric Blake  <ebb9@byu.net>
38110
38111         stdlib-safer: wrap all mkstemp variants
38112         * modules/mkostemp (configure.ac): Set witness.
38113         * modules/mkostemps (configure.ac): Likewise.
38114         * modules/mkstemps (configure.ac): Likewise.
38115         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38116         (mkstemps_safer): Wrap more functions.
38117         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38118         wrapping.
38119         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38120         (mkstemps_safer): Implement the wrappers.
38121
38122         mkstemps, mkostemps: new modules
38123         * modules/mkostemps: New module.
38124         * modules/mkstemps: Likewise.
38125         * lib/mkostemps.c (mkostemps): New file.
38126         * lib/mkstemps.c (mkstemps): Likewise.
38127         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38128         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38129         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38130         * modules/stdlib (Makefile.am): Substitute them.
38131         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38132         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38133         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38134         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38135         * MODULES.html.sh (File system functions): Mention them.
38136
38137         tempname: resync from glibc
38138         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38139         same values for __GT_FILE as glibc.  Abort even when assertions
38140         are disabled.
38141         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38142         match its value otherwise.  Allow idempotent inclusion.
38143         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38144         * lib/mkostemp.c (mkostemp): Likewise.
38145         * lib/mkstemp.c (mkstemp): Likewise.
38146         * lib/tmpfile.c (tmpfile): Likewise.
38147         * NEWS: Document this.
38148
38149         utimens: fix use of futimens on older Linux
38150         * lib/utimens.c (fdutimens): Use updated, rather than original,
38151         timespec to avoid bug in older Linux kernel.
38152         Reported by Simon Josefsson.
38153
38154 2009-11-04  Bruno Haible  <bruno@clisp.org>
38155
38156         Make num_processors more flexible and consistent.
38157         * lib/nproc.h (enum nproc_query): New type.
38158         (num_processors): Add a 'query' argument.
38159         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38160         (num_processors): Add a 'query' argument. Test the value of the
38161         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38162         mingw, count the number of CPUs available for the current process.
38163         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38164         Check for sched_getaffinity and sched_getaffinity_np.
38165         * modules/nproc (Depends-on): Add c-ctype, extensions.
38166         * NEWS: Mention the change.
38167
38168 2009-11-03  Bruno Haible  <bruno@clisp.org>
38169
38170         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38171
38172 2009-11-03  Jim Meyering  <meyering@redhat.com>
38173
38174         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38175         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38176         if it is defined.
38177
38178 2009-11-02  Eric Blake  <ebb9@byu.net>
38179
38180         mktime, timegm: share common declaration
38181         * lib/mktime-internal.h: New file.
38182         * lib/mktime.c: Use it rather than open-coding a declaration.
38183         * lib/timegm.c: Likewise.
38184         * modules/mktime (Files): Ship it.
38185         * modules/timegm (Files): Likewise.
38186         Suggested by Bruno Haible.
38187
38188         test-update-copyright: update test to match script changes
38189         * tests/test-update-copyright.sh: Avoid hard-coding perl
38190         location.  Don't update *.bak created by earlier runs.
38191
38192 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38193             Simon Josefsson  <simon@josefsson.org>
38194             Bruno Haible  <bruno@clisp.org>
38195
38196         Fix link error on Solaris 8.
38197         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38198         also in libnsl. Define also INET_PTON_LIB.
38199         * modules/inet_pton (Link): New section.
38200
38201 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38202             Bruno Haible  <bruno@clisp.org>
38203
38204         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38205         * modules/inet_ntop (Link): New section.
38206         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38207
38208 2009-11-02  Eric Blake  <ebb9@byu.net>
38209
38210         maint: avoid compiler warnings in m4 macros
38211         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38212         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38213
38214 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38215
38216         * m4/pmccabe2html.m4: Remove file.
38217         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38218         function.  Change maintainer.
38219         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38220         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38221         Courtès).
38222
38223 2009-10-31  Eric Blake  <ebb9@byu.net>
38224
38225         fseeko: fix m4 regression
38226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38227         regression from 2009-10-27.
38228         Reported by Ralf Wildenhues.
38229
38230 2009-10-31  Jim Meyering  <meyering@redhat.com>
38231
38232         inttostr: aesthetics and improved (compile-time) safety
38233         Define inttype_is_signed rather than inttype_is_unsigned,
38234         since the sole use is via "#if inttype_is_signed".
38235         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38236         inttype_is_unsigned.
38237         * lib/offtostr.c (inttype_is_signed): Likewise.
38238         * lib/uinttostr.c (inttype_is_signed): Likewise.
38239         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38240         * lib/inttostr.c (inttostr): Use verify to cross-check the
38241         inttype_is_signed value and the signedness of the actual type.
38242         * modules/inttostr (Depends-on): Add verify.
38243
38244 2009-10-30  Eric Blake  <ebb9@byu.net>
38245
38246         build: avoid compiler warnings
38247         * lib/fchmodat.c (lchmod): Mark unused variables.
38248         * lib/getopt.c (_getopt_initialize): Likewise.
38249         * lib/mktime.c (__mktime_internal): Provide prototype.
38250         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38251         older gcc that do not understand #pragma GCC diagnostic.
38252         * lib/uinttostr.c (inttype_is_unsigned): Define.
38253         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38254
38255 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38256
38257         stat: fix compilation on AIX
38258         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38259         only see struct stat64.
38260
38261 2009-10-30  Eric Blake  <ebb9@byu.net>
38262
38263         exclude: make more robust
38264         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38265         rather than masking a coding bug.
38266         Suggested by Bruno Haible.
38267
38268 2009-10-30  Jim Meyering  <meyering@redhat.com>
38269
38270         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38271         Rather than putting #!/usr/bin/perl on the first line,
38272         start with a variant of what's recommended by "man perlrun" that
38273         invokes the first "perl" program from your shell's search path.
38274         * build-aux/gitlog-to-changelog: Replace #!... as above.
38275         Add a "Local Variables" perl mode setting.
38276         Prompted by a patch from Ludovic Courtès.
38277         Improved by Eric Blake.
38278         * build-aux/useless-if-before-free: Likewise.
38279         * build-aux/announce-gen: Likewise.
38280         * build-aux/update-copyright: Likewise.
38281
38282 2009-10-29  Eric Blake  <ebb9@byu.net>
38283
38284         filenamecat-lgpl: adjust clients
38285         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38286         filenamecat.
38287         * modules/renameat (Depends-on): Likewise.
38288
38289         filenamecat: split into filenamecat-lgpl
38290         * modules/filenamecat-lgpl: New module.
38291         * modules/filenamecat (Files): Move library-safe files into
38292         filenamecat-lgpl.
38293         (Depends-on): Add filenamecat-lgpl.
38294         (configure.ac): Declare witness.
38295         * lib/filenamecat.h (file_name_concat): Only declare when using
38296         GPL module.
38297         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38298         Move...
38299         * lib/filenamecat-lgpl.c: ...into new file.
38300         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38301         (gl_FILE_NAME_CONCAT): Use it.
38302         * MODULES.html.sh (File system functions): Mention new module.
38303
38304         argp: avoid memory leak
38305         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38306         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38307         base_name, since the latter malloc()s and can call exit().
38308         Leak introduced 2006-07-03.
38309
38310         dirname-lgpl: adjust clients that don't need full dirname
38311         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38312         * modules/filenamecat (Depends-on): Likewise.
38313         * modules/linkat (Depends-on): Likewise.
38314         * modules/mkancesdirs (Depends-on): Likewise.
38315         * modules/mkdir (Depends-on): Likewise.
38316         * modules/openat (Depends-on): Likewise.
38317         * modules/savewd (Depends-on): Likewise.
38318         * modules/rename (Depends-on): Likewise.
38319         (License): Relax license.
38320         * modules/mkdir-tests (Depends-on): Drop progname.
38321         (Makefile.am): Delete unneeded LDADD.
38322         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38323
38324         dirname: split into dirname-lgpl
38325         * modules/dirname-lgpl: New module.
38326         * modules/dirname (Files): Move library-safe files into
38327         dirname-lgpl.
38328         (Depends-on): Add dirname-lgpl.
38329         (configure.ac): Declare witness.
38330         * modules/double-slash-root (License): Relax license.
38331         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38332         module.
38333         * lib/dirname.c (dir_len, mdir_name): Move...
38334         * lib/dirname-lgpl.c: ...into new file.
38335         * lib/basename.c (last_component, base_len): Move...
38336         * lib/basename-lgpl.c: ...into new file.
38337         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38338         (gl_DIRNAME): Use it.
38339         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38340         Mention new module.
38341         * modules/dirname-tests (Depends-on): Add progname.
38342         * tests/test-dirname.c (program_name): Delete.
38343
38344         mkdir: make safe for libraries
38345         * modules/mkdir (Depends-on): Drop xalloc.
38346         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38347         exit.
38348
38349         tests: avoid some compiler warnings
38350         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38351         literals.
38352         * tests/test-memchr.c (main): Avoid type mismatch.
38353         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38354         * tests/test-base64.c (main): Likewise.
38355         * tests/test-getdelim.c (main): Likewise.
38356         * tests/test-gethostname.c (main): Likewise.
38357         * tests/test-getline.c (main): Likewise.
38358         * tests/test-netinet_in.c (main): Likewise.
38359         * tests/test-select.c (open_server_socket, main): Likewise.
38360         * tests/test-select-stdin.c (main): Likewise.
38361         * tests/test-sockets.c (main): Likewise.
38362         * tests/test-strsignal.c (main): Likewise.
38363         * tests/test-sys_select.c (main): Likewise.
38364         * tests/test-sys_socket.c (main): Likewise.
38365         * tests/test-u64.c (main): Likewise.
38366         * tests/test-xfprintf-posix.c (main): Likewise.
38367         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38368
38369         sockets: avoid compiler warning
38370         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38371
38372         maint: detect usage(1) and other suspicious exits
38373         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38374
38375 2009-10-29  Jim Meyering  <meyering@redhat.com>
38376
38377         timespec: long-to-int truncation could make timespec_cmp malfunction
38378         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38379         a multiple of 2^32 nanoseconds as no difference.
38380
38381 2009-10-28  Jim Meyering  <meyering@redhat.com>
38382
38383         fprintftime: wrap macro code argument in "do {...} while(0)"
38384         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38385         cpy macro must be a statement that can be followed by a semicolon.
38386         Now that the else clause contains a comment and is hence longer
38387         than one line, I require curly braces.  That in turn requires
38388         that we wrap this code block in the standard do...while(0).
38389
38390         fprintftime: remove stray semicolon from previous change
38391         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38392
38393         fprintftime: avoid a warning about ignored fwrite return value
38394         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38395         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38396         that is unsafe.
38397         * modules/fprintftime (Depends-on): Add ignore-value.
38398
38399         exclude: avoid an unwarranted warning
38400         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38401
38402 2009-10-27  Eric Blake  <ebb9@byu.net>
38403
38404         fseek: avoid compilation failure when fflush is replaced
38405         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38406         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38407         module is in use.
38408         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38409         module is not in use; since REPLACE_FSEEK worked otherwise.
38410         (GNULIB_FTELLO): Likewise for ftell.
38411         Reported by Ian Beckwith and others.
38412
38413 2009-10-27  Bruno Haible  <bruno@clisp.org>
38414
38415         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38416         Reported by Jim Meyering.
38417
38418 2009-10-27  Jim Meyering  <jim@meyering.net>
38419             Bruno Haible  <bruno@clisp.org>
38420
38421         Avoid warning despite dropping the return value of fwrite.
38422         * lib/unicodeio.c: Include ignore-value.h.
38423         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38424         * modules/unicodeio (Depends-on): Add ignore-value.
38425
38426 2009-10-26  Eric Blake  <ebb9@byu.net>
38427
38428         areadlinkat: fix fallback path
38429         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38430         pointer and zero.
38431
38432 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38433
38434         Use a better IO block size for modern systems
38435         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38436         * lib/md2.c: Likewise.
38437         * lib/md4.c: Likewise.
38438         * lib/md5.c: Likewise.
38439         * lib/sha1.c: Likewise.
38440         * lib/sha256.c: Likewise.
38441         * lib/sha512.c: Likewise.
38442
38443 2009-10-22  Eric Blake  <ebb9@byu.net>
38444
38445         tests: avoid several compiler warnings
38446         * tests/test-getcwd.c (main): Avoid buffer underflow.
38447         * tests/test-getdate.c (main): String literals are not safe with
38448         putenv, so use setenv.  Declare unused argument.
38449         * modules/getdate-tests (Depends-on): Add setenv.
38450         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38451         problems with string literals in char *.
38452         * tests/test-hash.c (main): Avoid shadowing declaration.
38453         (insert_new): Treat string literals as char const *.
38454         * tests/test-getopt.h (test_getopt): Likewise.
38455         (getopt_loop): Alter types to minimize casting elsewhere.
38456         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38457         (test_getopt_long_posix): Likewise.
38458         (do_getopt_long): Add wrapper to minimize casting.
38459         * tests/test-atexit.c (clear_temp_file): Use void.
38460         * tests/test-areadlink-with-size.c (main): Declare unused
38461         arguments.
38462         * tests/test-areadlink.c (main): Likewise.
38463         * tests/test-areadlinkat-with-size.c (main): Likewise.
38464         * tests/test-areadlinkat.c (main): Likewise.
38465         * tests/test-canonicalize-lgpl.c (main): Likewise.
38466         * tests/test-canonicalize.c (main): Likewise.
38467         * tests/test-dirent-safer.c (main): Likewise.
38468         * tests/test-dirname.c (main): Likewise.
38469         * tests/test-dup2.c (main): Likewise.
38470         * tests/test-fchdir.c (main): Likewise.
38471         * tests/test-fcntl-h.c (main): Likewise.
38472         * tests/test-fcntl-safer.c (main): Likewise.
38473         * tests/test-fdopendir.c (main): Likewise.
38474         * tests/test-fdutimensat.c (main): Likewise.
38475         * tests/test-fflush.c (main): Likewise.
38476         * tests/test-filenamecat.c (main): Likewise.
38477         * tests/test-filevercmp.c (main): Likewise.
38478         * tests/test-fopen-safer.c (main): Likewise.
38479         * tests/test-fopen.c (main): Likewise.
38480         * tests/test-fpending.c (main): Likewise.
38481         * tests/test-fpurge.c (main): Likewise.
38482         * tests/test-freading.c (main): Likewise.
38483         * tests/test-fstatat.c (main): Likewise.
38484         * tests/test-fsync.c (main): Likewise.
38485         * tests/test-futimens.c (main): Likewise.
38486         * tests/test-getndelim2.c (main): Likewise.
38487         * tests/test-gettimeofday.c (main): Likewise.
38488         * tests/test-getopt.c (main): Likewise.
38489         * tests/test-i-ring.c (main): Likewise.
38490         * tests/test-inttypes.c (main): Likewise.
38491         * tests/test-link.c (main): Likewise.
38492         * tests/test-lstat.c (main): Likewise.
38493         * tests/test-math.c (main): Likewise.
38494         * tests/test-md5.c (main): Likewise.
38495         * tests/test-memchr2.c (main): Likewise.
38496         * tests/test-memrchr.c (main): Likewise.
38497         * tests/test-mkdir.c (main): Likewise.
38498         * tests/test-mkdirat.c (main): Likewise.
38499         * tests/test-mkfifoat.c (main): Likewise.
38500         * tests/test-open.c (main): Likewise.
38501         * tests/test-openat-safer.c (main): Likewise.
38502         * tests/test-openat.c (main): Likewise.
38503         * tests/test-quotearg.c (main): Likewise.
38504         * tests/test-rawmemchr.c (main): Likewise.
38505         * tests/test-readlink.c (main): Likewise.
38506         * tests/test-remove.c (main): Likewise.
38507         * tests/test-rename.c (main): Likewise.
38508         * tests/test-renameat.c (main): Likewise.
38509         * tests/test-rmdir.c (main): Likewise.
38510         * tests/test-sha1.c (main): Likewise.
38511         * tests/test-signal.c (main): Likewise.
38512         * tests/test-sigaction.c (main): Likewise.
38513         * tests/test-stat.c (main): Likewise.
38514         * tests/test-stat-time.c (main): Likewise.
38515         * tests/test-stddef.c (main): Likewise.
38516         * tests/test-stdint.c (main): Likewise.
38517         * tests/test-stdio.c (main): Likewise.
38518         * tests/test-stdlib.c (main): Likewise.
38519         * tests/test-strchrnul.c (main): Likewise.
38520         * tests/test-strerror.c (main): Likewise.
38521         * tests/test-string.c (main): Likewise.
38522         * tests/test-strtod.c (main): Likewise.
38523         * tests/test-strverscmp.c (main): Likewise.
38524         * tests/test-symlink.c (main): Likewise.
38525         * tests/test-symlinkat.c (main): Likewise.
38526         * tests/test-sys_stat.c (main): Likewise.
38527         * tests/test-sys_time.c (main): Likewise.
38528         * tests/test-time.c (main): Likewise.
38529         * tests/test-unistd.c (main): Likewise.
38530         * tests/test-unlink.c (main): Likewise.
38531         * tests/test-unlinkat.c (main): Likewise.
38532         * tests/test-utimens.c (main): Likewise.
38533         * tests/test-utimensat.c (main): Likewise.
38534         * tests/test-version-etc.c (main): Likewise.
38535         * tests/test-wchar.c (main): Likewise.
38536         * tests/test-wctype.c (main): Likewise.
38537         * tests/test-xprintf-posix.c (main): Likewise.
38538         * tests/test-posixtm.c (main): Likewise.
38539         (STREQ): Delete unused macro.
38540         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38541         shadowed variables.
38542         * tests/test-memchr.c (main): Likewise.
38543
38544 2009-10-21  Eric Blake  <ebb9@byu.net>
38545
38546         areadlinkat: avoid failure on older glibc
38547         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38548         rather than mis-comparing 0 against FUNC_RESULT of char*.
38549
38550 2009-10-21  Bruno Haible  <bruno@clisp.org>
38551
38552         * modules/stpncpy (License): Relicense under LGPLv2+.
38553         Reported by David Lutterkort <lutter@redhat.com>.
38554
38555 2009-10-20  Eric Blake  <ebb9@byu.net>
38556
38557         utimensat: work around Solaris 9 bug
38558         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38559         has trailing slash bugs.
38560         * tests/test-lutimens.h (test_lutimens): Enhance test.
38561         * tests/test-utimens.h (test_utimens): Likewise.
38562         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38563         * doc/posix-functions/utimes.texi (utimes): Likewise.
38564         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38565         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38566         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38567         * doc/posix-functions/futimens.texi (futimens): Likewise.
38568
38569         fdutimensat: new module
38570         * modules/fdutimensat: New file.
38571         * lib/fdutimensat.c (fdutimensat): Likewise.
38572         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38573         * MODULES.html.sh (File system functions): Mention module.
38574         * modules/fdutimensat-tests: New test.
38575         * tests/test-fdutimensat.c: Likewise.
38576
38577         doc: regenerate INSTALL
38578         * doc/INSTALL: Reflect recent autoconf update.
38579         * doc/INSTALL.ISO: Likewise.
38580         * doc/INSTALL.UTF-8: Likewise.
38581
38582 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38583
38584         acl: warn if ACL support is not detected
38585         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38586
38587 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38588
38589         * lib/nproc.h: Add extern "C" block for C++.
38590
38591 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38592             Bruno Haible  <bruno@clisp.org>
38593
38594         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38595         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38596         * doc/posix-functions/isalpha.texi: Likewise.
38597         * doc/posix-functions/isblank.texi: Likewise.
38598         * doc/posix-functions/iscntrl.texi: Likewise.
38599         * doc/posix-functions/isdigit.texi: Likewise.
38600         * doc/posix-functions/isgraph.texi: Likewise.
38601         * doc/posix-functions/islower.texi: Likewise.
38602         * doc/posix-functions/isprint.texi: Likewise.
38603         * doc/posix-functions/ispunct.texi: Likewise.
38604         * doc/posix-functions/isspace.texi: Likewise.
38605         * doc/posix-functions/isupper.texi: Likewise.
38606         * doc/posix-functions/isxdigit.texi: Likewise.
38607
38608 2009-10-18  Bruno Haible  <bruno@clisp.org>
38609
38610         Tests for module 'isblank'.
38611         * modules/isblank-tests: New file.
38612         * tests/test-isblank.c: New file.
38613
38614         New module 'isblank'.
38615         * lib/isblank.c: New file.
38616         * m4/isblank.m4: New file.
38617         * modules/isblank: New file.
38618         * doc/posix-functions/isblank.texi: Mention the new module.
38619
38620 2009-10-18  Bruno Haible  <bruno@clisp.org>
38621
38622         New module 'ctype'.
38623         * lib/ctype.in.h: New file.
38624         * m4/ctype.m4: New file.
38625         * modules/ctype: New file.
38626         * doc/posix-headers/ctype.texi: Mention the new module.
38627
38628 2009-10-18  Jim Meyering  <meyering@redhat.com>
38629
38630         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38631         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38632         right after its initialization, rather than farther down.
38633         Keeping these in close proximity makes it easier to ensure
38634         that each such variable is initialized.  E.g.,
38635
38636             LIB_CLOCK_GETTIME=
38637             AC_SUBST([LIB_CLOCK_GETTIME])
38638
38639         This change also increments these serial numbers.
38640         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38643
38644 2009-10-18  Bruno Haible  <bruno@clisp.org>
38645
38646         Don't let environment variables perturb build.
38647         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38648         (gl_PREREQ_GETHRXTIME): ... not here.
38649
38650 2009-10-18  Bruno Haible  <bruno@clisp.org>
38651
38652         Avoid symlink attack in localcharset module.
38653         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38654         (O_NOFOLLOW): Define fallback.
38655         (get_charset_aliases): Don't open the file if it is a symbolic link.
38656         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38657         gl_FCNTL_H.
38658         (gl_FCNTL_H): Require it.
38659         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38660         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38661         Reported by Fergal Glynn <fglynn@veracode.com>.
38662
38663 2009-10-18  Bruno Haible  <bruno@clisp.org>
38664
38665         Implement nproc for mingw.
38666         * lib/nproc.c: Include <windows.h>
38667         (num_processors): On native Windows platforms, try GetSystemInfo.
38668
38669 2009-10-18  Bruno Haible  <bruno@clisp.org>
38670
38671         Implement nproc for IRIX.
38672         * lib/nproc.c: Include <sys/sysmp.h>.
38673         (num_processors): On IRIX systems, try sysmp.
38674         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38675
38676 2009-10-18  Bruno Haible  <bruno@clisp.org>
38677
38678         Implement nproc for HP-UX.
38679         * lib/nproc.c: Include <sys/pstat.h>
38680         (num_processors): On HP-UX systems, try pstat_getdynamic.
38681         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38682         pstat_getdynamic.
38683
38684 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38685             Bruno Haible  <bruno@clisp.org>
38686
38687         Implement nproc for NetBSD, OpenBSD.
38688         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38689         (ARRAY_SIZE): New macro.
38690         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38691         * m4/nproc.m4: New file.
38692         * modules/nproc (Files): Add m4/nproc.m4.
38693         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38694         (Makefile.am): Instead, augment lib_SOURCES.
38695
38696 2009-10-18  Bruno Haible  <bruno@clisp.org>
38697
38698         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38699         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38700         sys/param.h.
38701
38702 2009-10-16  Eric Blake  <ebb9@byu.net>
38703
38704         utimensat: new module
38705         * modules/utimensat: New file.
38706         * lib/utimensat.c (utimensat): Likewise.
38707         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38708         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38709         so we can work around Linux bugs.
38710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38711         * modules/sys_stat (Makefile.am): Substitute them.
38712         * lib/sys_stat.in.h (utimensat): Declare it.
38713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38714         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38715         * modules/utimensat-tests: New test.
38716         * tests/test-utimensat.c: Likewise.
38717
38718         utimens: let lutimens work on non-symlinks
38719         * lib/utimens.c (lutimens): Fall back to utimens rather than
38720         failing with ENOSYS, when file is not a symlink.
38721         (utimens): Reduce redirection.
38722         * tests/test-lutimens.h (test_lutimens): Update test to cover
38723         non-symlinks.
38724         * tests/test-utimens.h (test_utimens): Update test to cover
38725         symlinks.
38726         * tests/test-utimens.c (main): Update caller.
38727
38728         utimens: cache whether utimensat syscall works
38729         * lib/utimens.c (utimensat_works_really): New cache variable.
38730         (fdutimens, lutimens): Use it to avoid failing syscall.
38731
38732         test-stat-time, test-utimens: improve portability
38733         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38734         ext4 on alpha, and for cygwin.
38735         * tests/test-utimens-common.h: New file.
38736         (nap): Factor delays into single function.
38737         * tests/test-lutimens.h (test_lutimens): Use new header.
38738         * tests/test-futimens.h (test_futimens): Likewise.
38739         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38740         timestamps to occur from same machine, as was done previously for
38741         test_utimens.
38742         * modules/utimens-tests (Files): Ship new file.
38743         * modules/futimens-tests (Files): Likewise.
38744         Reported in part by Jim Meyering.
38745
38746         sys_stat: sort replacement declarations
38747         * lib/sys_stat.in.h: Sort declarations.
38748         * lib/futimens.c (futimens): Fix typo.
38749
38750 2009-10-15  Jim Meyering  <meyering@redhat.com>
38751
38752         don't let environment settings perturb build
38753         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38754         could cause a configure-time and/or build-time malfunction.
38755         Typically, a configure-time function-in-library test is performed
38756         via code like this:
38757
38758           LIB_VAR=
38759           AC_SUBST([LIB_VAR])
38760           prefix_saved_LIBS=$LIBS
38761             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38762                        [test "$ac_cv_search_FUNC" = "none required" ||
38763                         LIB_VAR=$ac_cv_search_FUNC])
38764           LIBS=$prefix_saved_LIBS
38765
38766         However, in each of the files affected by this change, the LIB_VAR=
38767         initialization was omitted.  Thus, when set in the environment, its
38768         value would propagate into generated Makefiles when FUNC is not found
38769         in LIB_NAME.
38770         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38771         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38772         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38773
38774 2009-10-14  Eric Blake  <ebb9@byu.net>
38775
38776         fchdir: avoid infinite recursion in mingw
38777         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38778         recursing.
38779
38780         test-stat-time: port to mingw
38781         * tests/test-stat-time.c (force_unlink): Return a value.
38782         (test_ctime) [W32]: Fix compilation error.
38783         (nap): Don't call usleep with too large an argument.  Use
38784         force_unlink.
38785         * doc/pastposix-functions/usleep.texi (usleep): Document the
38786         portability issue.
38787
38788 2009-10-13  Jim Meyering  <meyering@redhat.com>
38789
38790         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38791         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38792         * modules/pipe-filter-ii: Likewise.
38793         * modules/sys_socket-tests: Likewise.
38794         * modules/tsearch-tests: Likewise.
38795         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38796         (check): Depend on it.
38797
38798 2009-10-12  Eric Blake  <ebb9@byu.net>
38799
38800         utimens-tests: port to NFS file systems
38801         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38802         comparisons to avoid spurious failures from timestamp drift
38803         between NFS machines.
38804
38805 2009-10-12  Eric Blake  <ebb9@byu.net>
38806
38807         stat-time-tests: minor cleanups
38808         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38809         * tests/test-stat-time.c (nap): Separate assignment from call.
38810         Suggested by Paolo Bonzini and Bruno Haible.
38811
38812         sys_stat: guarantee struct timespec
38813         * lib/sys_stat.in.h (includes): Always include <time.h>
38814         * modules/sys_stat (Depends-on): Add time.
38815         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38816         mode_t permission values.
38817         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38818         get at subsecond timestamps.
38819
38820 2009-10-10  Eric Blake  <ebb9@byu.net>
38821
38822         futimens: new module
38823         * modules/futimens: New file.
38824         * lib/futimens.c (futimens): Likewise.
38825         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38826         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38827         we can work around Linux bugs.
38828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38829         * modules/sys_stat (Makefile.am): Substitute them.
38830         * lib/sys_stat.in.h (futimens): Declare it.
38831         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38832         * doc/posix-functions/futimens.texi (futimens): Likewise.
38833         * modules/futimens-tests: New test.
38834         * tests/test-futimens.c: Likewise.
38835
38836         utimens: introduce fdutimens
38837         * lib/utimens.h (fdutimens): New prototype.
38838         * lib/utimens.c (gl_futimens): Move guts...
38839         (fdutimens): ...to new interface.
38840         * tests/test-utimens.c (do_fdutimens): Use it.
38841
38842         utimens: add UTIME_NOW and UTIME_OMIT support
38843         * lib/utimens.c (validate_timespec, update_timespec): New helper
38844         functions.
38845         (gl_futimens, lutimens): Use them.
38846         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38847         stdbool, sys_stat.
38848         (Link): Mention resulting library dependency.
38849         * modules/utimecmp (Link): Likewise.
38850         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38851         (Makefile.am): Pick up library dependency.
38852         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38853         definition.
38854         * tests/test-sys_stat.c: Test the definitions.
38855         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38856         * NEWS: Document library dependency.
38857
38858         utimecmp: support symlink timestamps
38859         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38860         hashing when possible.  Use pathconf when available.
38861         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38862         * modules/utimecmp (Depends-on): Add lstat.
38863
38864         utimens: add lutimens interface
38865         * lib/utimens.c (lutimens): New function.
38866         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38867         * lib/utimens.h (lutimens): Declare new interface.
38868         * tests/test-utimens.c (main): Enhance test.
38869         * tests/test-lutimens.h (test_lutimens): New file.
38870         * modules/utimens-tests (Files): Distribute it.
38871         (Depends-on): Add symlink.
38872         (configure.ac): Check for usleep.
38873
38874         utimens: validate futimens usage
38875         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38876         fewer syscalls on failure later on.  Avoid compiler warning on
38877         mingw.
38878         * modules/utimens (Depends-on): Add dup2.
38879
38880         utimens: add test
38881         * modules/utimens-tests: New test.
38882         * tests/test-utimens.h: New file.
38883         * tests/test-futimens.h: Likewise.
38884         * tests/test-utimens.c: Likewise.
38885
38886         doc: mention timestamp portability issues
38887         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38888         instead.
38889         * doc/posix-functions/utime.texi (utime): Likewise.
38890         * doc/posix-functions/utimes.texi (utimes): Likewise.
38891         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38892         instead.
38893         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38894         module.
38895         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38896         Mention weakness with symlink timestamps.
38897         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38898         to utimensat/futimens instead.
38899         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38900
38901         test-dup2: enhance test
38902         * tests/test-dup2.c (main): Also check AT_FDCWD.
38903
38904         test-stat-time: avoid more spurious failures
38905         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38906         xfs; and avoid race if the two timestamps cross quantization edge.
38907
38908         relocatable: prefer 'file system' over 'filesystem'
38909         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38910         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38911         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38912         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38913         * lib/relocatable.c (compute_curr_prefix): Likewise.
38914
38915 2009-10-10  Jim Meyering  <meyering@redhat.com>
38916
38917         stat-time-tests: check for the usleep function
38918         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38919
38920 2009-10-10  Bruno Haible  <bruno@clisp.org>
38921
38922         * modules/xnanosleep: Put the Link section after the Include section.
38923
38924 2009-10-09  Eric Blake  <ebb9@byu.net>
38925
38926         dup2: work around FreeBSD 6.1 bug
38927         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38928         * doc/posix-functions/dup2.texi (dup2): Document it.
38929         Reported by Nelson H. F. Beebe and Jim Meyering.
38930
38931         test-stat-time: port to buggy NFS clients
38932         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38933         (test_ctime): Also skip test if mtime and ctime are skewed.
38934
38935         maint: prefer 'file system' over 'filesystem'
38936         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38937         * doc/posix-functions/lstat.texi (lstat): Likewise.
38938         * lib/file-has-acl.c (file_has_acl): Likewise.
38939         * lib/fwriteerror.c [TEST]: Likewise.
38940         * tests/test-areadlink.h (test_areadlink): Likewise.
38941         * tests/test-areadlinkat-with-size.c (main): Likewise.
38942         * tests/test-areadlinkat.c (main): Likewise.
38943         * tests/test-canonicalize-lgpl.c (main): Likewise.
38944         * tests/test-canonicalize.c (main): Likewise.
38945         * tests/test-fstatat.c (main): Likewise.
38946         * tests/test-linkat.c (main): Likewise.
38947         * tests/test-lstat.h (test_lstat_func): Likewise.
38948         * tests/test-mkdir.h (test_mkdir): Likewise.
38949         * tests/test-readlink.h (test_readlink): Likewise.
38950         * tests/test-remove.c (main): Likewise.
38951         * tests/test-rename.h (test_rename): Likewise.
38952         * tests/test-renameat.c (main): Likewise.
38953         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38954         * tests/test-symlink.h (test_symlink): Likewise.
38955         * tests/test-symlinkat.c (main): Likewise.
38956         * tests/test-unlink.h (test_unlink_func): Likewise.
38957         * tests/test-unlinkat.c (main): Likewise.
38958
38959         maint: make realtime library usage explicit
38960         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38961         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38962         * modules/settime (Link): Likewise.
38963         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38964
38965         test-stat-time: speed up execution
38966         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38967         warning on mingw.
38968         (nap): New helper function.
38969         (prepare_test): Use it to reduce sleep time.
38970         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38971         execution.
38972         * modules/stat-time-tests (configure.ac): Check for usleep.
38973
38974 2009-10-09  Jim Meyering  <meyering@redhat.com>
38975
38976         selinux-h: always use getfilecon wrappers
38977         * lib/getfilecon.c: New file.
38978         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38979         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38980         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38981         (fgetfilecon): Provide a stub.
38982         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38983         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38984         file unconditionally.
38985         When <selinux/selinux.h> is found, arrange to use wrappers.
38986         * modules/selinux-h (Files): Add getfilecon.c.
38987         (Makefile.am): Substitute include-next-related bits
38988         into the now-always-generated selinux/selinux.h file.
38989         * doc/glibc-functions/lgetfilecon.texi: New file.
38990         * doc/glibc-functions/fgetfilecon.texi: New file.
38991         * doc/glibc-functions/getfilecon.texi: New file.
38992         * doc/glibc-functions/getfilecon-desc.texi: New file.
38993         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38994         which to pull in the new files.
38995         * MODULES.html.sh (Misc): Add selinux-h.
38996
38997 2009-10-08  Jim Meyering  <meyering@redhat.com>
38998
38999         unistd: fix comment typo
39000         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39001
39002 2009-10-08  Eric Blake  <ebb9@byu.net>
39003
39004         areadlink: use SIZE_MAX consistently
39005         * modules/areadlink (Depends-on): Add stdint.
39006         * modules/areadlink-with-size (Depends-on): Likewise.
39007         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39008         gives NULL; drop sys/types, since unistd gives size_t; and add
39009         stdint for SIZE_MAX.
39010         (SIZE_MAX): Rely on headers.
39011         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39012         and add stdint.
39013         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39014         (SIZE_MAX): Likewise.
39015         (INITIAL_BUF_SIZE): Turn into enum.
39016         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39017
39018 2009-10-08  Jim Meyering  <meyering@redhat.com>
39019
39020         areadlinkat: avoid compilation failure
39021         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39022         Fix typo in comment.
39023
39024 2009-10-07  Eric Blake  <ebb9@byu.net>
39025
39026         areadlinkat-with-size: new module
39027         * modules/areadlinkat-with-size: New module.
39028         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39029         * lib/areadlink.h (areadlinkat): Declare it.
39030         * MODULES.html.sh (File system functions): Mention it.
39031         * modules/areadlinkat-with-size-tests: New test.
39032         * tests/test-areadlinkat-with-size.c: New file.
39033
39034         xreadlinkat: new module
39035         * modules/xreadlinkat: New module.
39036         * lib/xreadlinkat.c (xreadlinkat): New file.
39037         * lib/xreadlink.h (xreadlinkat): Declare it.
39038         * MODULES.html.sh (File system functions): Mention it.
39039
39040         areadlinkat: new module
39041         * lib/at-func.c (FUNC_FAIL): New define.
39042         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39043         * modules/areadlinkat: New module.
39044         * lib/linkat.c (areadlinkat): Move...
39045         * lib/areadlinkat.c (areadlinkat): ...to new file.
39046         * lib/areadlink.h (areadlinkat): Declare it.
39047         * modules/linkat (Depends-on): Add areadlinkat.
39048         * MODULES.html.sh (File system functions): Mention it.
39049         * modules/areadlinkat-tests: New test.
39050         * tests/test-areadlinkat.c: New file.
39051
39052         areadlink, areadlink-with-size: add tests
39053         * modules/areadlink-tests: New test.
39054         * modules/areadlink-with-size-tests: Likewise.
39055         * tests/test-areadlink.h: New file.
39056         * tests/test-areadlink.c: Likewise.
39057         * tests/test-areadlink-with-size.c: Likewise.
39058
39059         maint: minor cleanups
39060         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39061         _UNUSED_PARAMETER_ instead.
39062         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39063         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39064         * modules/linkat-tests (Files): Distribute test-link.h.
39065
39066         openat, utimens: whitespace cleanup
39067         * lib/openat.c: Prefer space throughout, rather than mix of 8
39068         spaces vs. tabs.
39069         * lib/at-func.c: Likewise.
39070         * lib/utimens.c: Likewise.
39071
39072         openat: avoid using wrong fd
39073         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39074         working directory chooses same fd.
39075         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39076
39077         mkdir, mkdirat: fix cygwin 1.5.x bug
39078         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39079         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39080         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39081         bug.
39082         (gl_PREREQ_MKDIR): Delete unused macro.
39083         * modules/mkdir (Files): Track file rename.
39084         (configure.ac): Update macro name.
39085         * modules/openat (Depends-on): Add mkdir.
39086         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39087
39088         mkdir, mkdirat: add tests
39089         * modules/mkdir-tests: New test.
39090         * tests/test-mkdir.h: New file.
39091         * tests/test-mkdir.c: Likewise.
39092         * tests/test-mkdirat.c: Likewise.
39093         * modules/openat-tests (Files): Add new files.
39094         (Makefile.am): Run new test.
39095
39096 2009-10-06  Eric Blake  <ebb9@byu.net>
39097
39098         doc: tweak *at function documentation
39099         * doc/posix-functions/faccessat.texi (faccessat): Mention
39100         known issue with replacement.
39101         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39102         * doc/posix-functions/linkat.texi (linkat): Likewise.
39103         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39104         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39105         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39106         * doc/posix-functions/renameat.texi (renameat): Likewise.
39107         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39108
39109         openat: fix GNU/Hurd bug in unlinkat
39110         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39111         broken.
39112         * doc/posix-functions/unlink.texi (unlink): Document this.
39113         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39114
39115         fdopendir: fix GNU/Hurd bug
39116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39117         allowing non-directory fds.
39118         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39120         * modules/dirent (Makefile.am): Substitute it.
39121         * lib/dirent.in.h (fdopendir): Declare replacement.
39122         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39123         * tests/test-fdopendir.c (main): Test something other than
39124         /dev/null, since on Hurd that behaves like a directory.
39125
39126         test-symlink: port to GNU/Hurd
39127         * tests/test-symlink.h (test_symlink): Relax expected errno.
39128
39129         doc: tweak more cygwin information
39130         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39131         now compatible with glibc.
39132         * doc/posix-functions/getopt.texi (getopt): Likewise.
39133
39134         getopt-gnu: add another test
39135         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39136         guarantee behavior relied on by m4.
39137         * tests/test-getopt.c (main): Use it.
39138         * modules/getopt-posix-tests (Depends-on): Add setenv.
39139         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39140
39141         getopt: fix compilation on darwin
39142         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39143         include.
39144         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39145         Reported by Ludovic Courtès.
39146
39147 2009-10-06  Bruno Haible  <bruno@clisp.org>
39148
39149         * modules/size_max (Description): Discourage its use.
39150         Reported by Simon Josefsson.
39151
39152 2009-10-06  Jim Meyering  <meyering@redhat.com>
39153
39154         linkat: avoid compilation failure
39155         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39156
39157 2009-10-05  Eric Blake  <ebb9@byu.net>
39158
39159         linkat: support Linux 2.6.17
39160         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39161         linkat on Linux, but allow cache variable override.
39162         * lib/linkat.c (rpl_linkat): Define override.
39163         * modules/linkat (Depends-on): Add symlinkat.
39164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39165         * modules/unistd (Makefile.am): Substitute it.
39166         * lib/unistd.in.h (linkat): Declare replacement.
39167         Reported by Pádraig Brady.
39168
39169         quotearg: port test to systems with C.UTF-8 locale
39170         * tests/test-quotearg.c (struct result_strings): Add another
39171         member, differentiating between C.ASCII and C.UTF-8 handling.
39172         (compare_strings): Add parameter.
39173         (main): Adjust all callers.
39174
39175         getopt: avoid clash with FreeBSD _getopt_internal
39176         * lib/getopt.in.h (_getopt_internal): Override the name.
39177         * lib/getopt_int.h (includes): Pick up any overrides.
39178         Reported by Reuben Thomas.
39179
39180         hash: allow C89 compilation
39181         * lib/hash.c (check_tuning): Move declaration before statement.
39182         Reported by Reuben Thomas.
39183
39184 2009-10-05  Karl Berry  <karl@gnu.org>
39185
39186         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39187
39188 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39189             Bruno Haible  <bruno@clisp.org>
39190
39191         * lib/uname.c (uname): Use a table-driven algorithm to compute
39192         Windows NT versions.
39193
39194 2009-10-04  Bruno Haible  <bruno@clisp.org>
39195
39196         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39197         program_invocation_short_name.
39198         * modules/progname (configure.ac): Test for presence of
39199         program_invocation_short_name.
39200         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39201
39202 2009-10-04  Bruno Haible  <bruno@clisp.org>
39203
39204         * lib/progname.c (set_program_name): Fix comment.
39205         Reported by Jim Meyering.
39206
39207 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39208             Bruno Haible  <bruno@clisp.org>
39209
39210         * lib/uname.c: Include <string.h>.
39211         (uname): Do only one call to GetVersionEx in the common case.
39212
39213 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39214             Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39217         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39218         (uname): Add support for Windows CE and various non-x86 CPU types.
39219
39220 2009-10-03  Bruno Haible  <bruno@clisp.org>
39221
39222         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39223         invocation to tests/configure.ac.
39224         Reported by Ian Beckwith <ianb@erislabs.net>.
39225
39226 2009-10-02  Eric Blake  <ebb9@byu.net>
39227
39228         fchdir: avoid compiler warning
39229         * lib/fchdir.c (canonicalize_file_name)
39230         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39231
39232         test-open: support mingw errno values
39233         * tests/test-open.h (test_open): Relax test.
39234         * tests/test-fopen.h (test_fopen): Likewise.
39235         * tests/test-openat-safer.c (main): Likewise.
39236
39237         open: fix opening directory on mingw
39238         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39239
39240         test-open: on GNU/Hurd, /dev/null is a directory
39241         * tests/test-fopen.h (main): Rename...
39242         (test_fopen): ...to this.  Use a guaranteed non-directory when
39243         confirming open behavior on trailing slash.
39244         * tests/test-openat-safer.c (main): Likewise.
39245         * tests/test-open.h (main): Likewise....
39246         (test_open): ...to this.
39247         * tests/test-fopen.c (main): Adjust caller.
39248         * tests/test-fopen-safer.c (main): Likewise.
39249         * tests/test-open.c (main): Likewise.
39250         * tests/test-fcntl-safer.c (main): Likewise.
39251         Reported by Samuel Thibault.
39252
39253         rename, fchdir: don't ignore chdir failure
39254         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39255         * lib/rename.c (rpl_rename) [W32]: Likewise.
39256         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39257         an empty destination directory if source cannot be renamed,
39258         although there is still possibility for failure.
39259         * doc/posix-functions/rename.texi (rename): Document the race.
39260         Reported by Jim Meyering.
39261
39262         maint: cleanup whitespace in recent commits
39263         * lib/rename.c (rpl_rename): Remove tabs.
39264         * tests/test-link.h (test_link): Likewise.
39265         * lib/fchdir.c (get_name): Likewise.
39266         Reported by Jim Meyering.
39267
39268 2009-10-02  Ben Pfaff  <blp@gnu.org>
39269
39270         relocatable-prog-wrapper: Add missing dependency on
39271         double-slash-root.
39272         * modules/relocatable-prog-wrapper: Add dependency.
39273         Reported by Ian Beckwith <ianb@erislabs.net>.
39274
39275 2009-10-02  Eric Blake  <ebb9@byu.net>
39276
39277         renameat: fix Solaris bugs
39278         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39279         needed fixing.
39280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39281         * modules/stdio (Makefile.am): Substitute it.
39282         * lib/stdio.in.h (renameat): Declare replacement.
39283         * lib/renameat.c (rpl_renameat): Implement fix.
39284
39285         renameat: new module
39286         * modules/renameat: New file.
39287         * lib/renameat.c (renameat): Likewise.
39288         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39290         * modules/stdio (Makefile.am): Substitute them.
39291         * lib/stdio.in.h (renameat): Declare it.
39292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39293         * doc/posix-functions/renameat.texi (renameat): Likewise.
39294         * modules/renameat-tests: New test.
39295         * tests/test-renameat.c: Likewise.
39296
39297         rename: fix mingw bugs
39298         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39299         directory overwrite bugs.
39300
39301         rename: fix another cygwin 1.5 bug
39302         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39303         checks.
39304         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39305         unnecessary cygwin workarounds.  Also work around bug with moving
39306         full directory onto an empty one.
39307         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39308
39309         rename-dest-slash: merge into rename module
39310         * modules/rename-dest-slash (Status): Mark obsolete.
39311         (Depends-on): Add rename.
39312         (Files): Let rename do it all.
39313         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39314         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39315         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39316         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39317         * lib/rename.c (rpl_rename): Update comments.
39318
39319         rename: fix cygwin 1.5.x bugs
39320         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39321         * lib/rename.c (rpl_rename): Work around them.
39322         * modules/rename (Depends-on): Add same-inode.
39323
39324         rename: fix Solaris 10 bug
39325         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39326         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39327         was the only bug.
39328
39329         rename: fix Solaris 9 bug
39330         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39331         on non-directory.  Avoid calling exit.
39332         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39333         strdup.
39334         * modules/rename-tests (Depends-on): Drop lstat.
39335         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39336         (gl_PREREQ_RENAME): Delete unused macro.
39337
39338         rename-dest-slash: fix NetBSD bug
39339         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39340         links.
39341         * modules/rename-dest-slash (Depends-on): Add same-inode.
39342
39343         rename-tests: new test, exposes several platform bugs
39344         * modules/rename-tests: New file.
39345         * tests/test-rename.h: Likewise.
39346         * tests/test-rename.c: Likewise.
39347         * doc/posix-functions/rename.texi (rename): Improve documentation,
39348         including bugs that will eventually be fixed in gnulib.
39349
39350 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39351
39352         * lib/uname.c: Include <stdlib.h>
39353         (uname): Assume version info is available.
39354
39355 2009-10-02  Jim Meyering  <meyering@redhat.com>
39356
39357         gnu-web-doc-update: correct --help output
39358         * build-aux/gnu-web-doc-update: Make --help output relevant.
39359
39360         gnu-web-doc-update: add standard options
39361         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39362
39363         gnu-web-doc-update: New module.
39364         Use this script to automatically update the on-line web documentation
39365         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39366         * modules/gnu-web-doc-update: New file, from coreutils.
39367         * build-aux/gnu-web-doc-update: New script.
39368
39369 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39370
39371         link: LoadLibrary is not needed.
39372         * lib/link.c: Use GetModuleHandle.
39373
39374 2009-10-01  Eric Blake  <ebb9@byu.net>
39375
39376         getopt: bump serial number
39377         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39378         change.
39379
39380         tests: tighten link, rmdir, and remove tests
39381         * tests/test-link.h (includes): No need to use <config.h> here.
39382         Clean up if directory hard link was created, otherwise test for
39383         trailing '.'.
39384         * tests/test-linkat.c (main): Simplify.
39385         * tests/test-remove.c (main): Enhance test for trailing '.'.
39386         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39387
39388 2009-10-01  Jim Meyering  <meyering@redhat.com>
39389
39390         maint.mk: requiring "make major" was annoying, for a "minor" release.
39391         What is intended is "stable", to contrast with alpha and beta,
39392         so require "make stable", not "make major".
39393         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39394         (get_tool_versions): Likewise.
39395         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39396
39397 2009-09-30  Ben Pfaff  <blp@gnu.org>
39398
39399         Fix broken build of replacement for Windows tmpfile().
39400         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39401         flags argument added along with the 'mkostemp' module.
39402
39403 2009-09-28  Bruno Haible  <bruno@clisp.org>
39404
39405         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39406         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39407         to 'remove_elt'.
39408         (gl_list_remove): Update.
39409         * lib/gl_list.c (gl_list_remove): Update.
39410         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39411         to 'remove_elt'.
39412         (gl_oset_remove): Update.
39413         * lib/gl_list.c (gl_oset_remove): Update.
39414         Reported by Eric Blake.
39415
39416 2009-09-28  Eric Blake  <ebb9@byu.net>
39417
39418         doc: mention yet more cygwin 1.7 status
39419         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39420         cygwin.
39421         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39422         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39423
39424         argp: fix test failure
39425         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39426         that are not upper-case.  Pass correct range to tolower.
39427
39428 2009-09-27  Jim Meyering  <meyering@redhat.com>
39429
39430         test-yesno: work around sparc-dash here-document infelicity
39431         Without this change, the literal \177 byte in a here document
39432         would make dash 0.5.5.1-3 access uninitialized memory.
39433         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39434         Instead, use a marker, "@", and filter through tr to create the desired
39435         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39436
39437 2009-09-27  Bruno Haible  <bruno@clisp.org>
39438
39439         Disable untested support for new flavours of ACLs on AIX.
39440         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39441         progress.
39442         * lib/set-mode-acl.c (qset_acl): Likewise.
39443
39444 2008-12-07  Bruno Haible  <bruno@clisp.org>
39445
39446         Add support for new flavours of ACLs on AIX. (Untested.)
39447         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39448         (file_has_acl): Add support for newer AIX.
39449         * lib/set-mode-acl.c (qset_acl): Likewise.
39450         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39451         Rainer Tammer <tammer@tammer.net>.
39452
39453 2009-09-26  Eric Blake  <ebb9@byu.net>
39454
39455         argp: fix compilation of getopt
39456         * lib/getopt.in.h (includes): Use different guard than glibc.
39457         Reported by Sergey Poznyakoff.
39458
39459         doc: mention more cygwin 1.7 status
39460         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39461         bug.
39462         * doc/posix-functions/execl.texi (execl): Likewise.
39463         * doc/posix-functions/execle.texi (execle): Likewise.
39464         * doc/posix-functions/execlp.texi (execlp): Likewise.
39465         * doc/posix-functions/execv.texi (execv): Likewise.
39466         * doc/posix-functions/execve.texi (execve): Likewise.
39467         * doc/posix-functions/execvp.texi (execvp): Likewise.
39468         * doc/glibc-functions/canonicalize_file_name.texi
39469         (canonicalize_file_name): Cygwin 1.7 now provides this.
39470         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39471         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39472         on AT_SYMLINK_NOFOLLOW.
39473
39474 2009-09-24  Eric Blake  <ebb9@byu.net>
39475
39476         test-linkat: make test more robust
39477         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39478
39479         getopt: fix inclusion guards for cygwin
39480         * modules/getopt-posix (Depends-on): Add include-next.
39481         (Makefile.am): Substitute more items in replacement header.
39482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39483         <getopt.h>.
39484         * lib/getopt.in.h (includes): Use split inclusion guard, and
39485         prefer <getopt.h> over include <unistd.h> when one is present.
39486         (option): Also override name of 'struct option'.
39487
39488         same-inode: revert prior change; it is not yet ready
39489         * NEWS: Undo mention of this change.
39490         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39491         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39492         * lib/cycle-check.c (cycle_check): Likewise.
39493         * lib/same.c (same_name): Likewise.
39494         * lib/at-func2.c (at_func2): Likewise.
39495
39496 2009-09-23  Eric Blake  <ebb9@byu.net>
39497
39498         linkat: new module
39499         * modules/linkat: New file.
39500         * lib/at-func2.c (at_func2): Likewise.
39501         * lib/linkat.c (linkat): Likewise.
39502         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39503         * lib/openat-priv.h (at_func2): Add declaration.
39504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39505         * modules/unistd (Makefile.am): Substitute them.
39506         * lib/unistd.in.h (linkat): Declare it.
39507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39508         * doc/posix-functions/linkat.texi (linkat): Likewise.
39509         * doc/posix-functions/link.texi (link): Tweak wording.
39510         * tests/test-link.c (main): Move guts...
39511         * tests/test-link.h (test_link): ...into new file.
39512         * modules/linkat-tests: New test.
39513         * tests/test-linkat.c: Likewise.
39514         * modules/link-tests (Files): Ship new file.
39515         (Depends-on): Add stdbool.
39516
39517         dirname: add library-safe mdir_name
39518         * lib/dirname.h (mdir_name): New prototype.
39519         * lib/dirname.c (dir_name): Move guts...
39520         (mdir_name): ...to new function that avoids xalloc_die.
39521
39522         fchdir: another mingw fix
39523         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39524         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39525         on mingw (where it has not yet been ported), and make it optional
39526         elsewhere.
39527         (_gl_register_fd): Use it.
39528
39529         same-inode: make SAME_INODE tri-state, to port to mingw
39530         * NEWS: Mention this change.
39531         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39532         st_ino always being 0.
39533         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39534         * lib/cycle-check.c (cycle_check): Likewise.
39535         * lib/same.c (same_name): Likewise.
39536
39537         lstat: avoid mingw compilation error
39538         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39539         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39540         lstat ourselves.
39541         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39542         was adequate.
39543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39544         the checks for lstat.
39545         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39546
39547         link: fix test failure on Solaris 9
39548         * lib/link.c (rpl_link): Don't assume link will catch bogus
39549         trailing slash on source.
39550
39551         test-symlinkat: enhance test
39552         * tests/test-readlink.c (main): Move guts...
39553         * tests/test-readlink.h (test_readlink): ...into new file.
39554         * tests/test-symlink.c (main): Move guts...
39555         * tests/test-symlink.h (test_symlink): ...into new file.
39556         * tests/test-symlinkat.c (main): Use new files for further
39557         coverage.
39558         (do_symlink, do_readlink): New helper functions.
39559         * modules/symlink-tests (Files): Ship new file.
39560         (Depends-on): Add stdbool.
39561         * modules/readlink-tests (Files): Ship new file.
39562         (Depends-on): Add stdbool.
39563         * modules/symlinkat-tests (Files): Use new files.
39564
39565 2009-09-23  Eric Blake  <ebb9@byu.net>
39566
39567         readlink: document portability issue with symlink length
39568         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39569         systems have bogus st_size on symlinks, and mention the
39570         areadlink-with-size module.
39571         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39572         * doc/posix-functions/readlink.texi (readlink): Mention the
39573         areadlink module, and ERANGE failure.
39574         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39575         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39576
39577         readlink: fix Solaris 9 bug with trailing slash
39578         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39579         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39580         * doc/posix-functions/readlink.texi (readlink): Document this.
39581         * modules/readlink-tests: New test.
39582         * tests/test-readlink.c: Likewise.
39583
39584         readlink: fix cygwin 1.5.x bug with return type
39585         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39586         * lib/unistd.in.h (readlink): Use ssize_t.
39587         * lib/readlink.c (readlink): Likewise.
39588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39589         * modules/unistd (Makefile.am): Substitute it.
39590         * lib/unistd.in.h (readlink): Declare replacement.
39591         * doc/posix-functions/readlink.texi (readlink): Document this.
39592
39593         symlink: use throughout gnulib
39594         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39595         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39596         symlink is not used.
39597         * modules/symlinkat (Depends-on): Add symlink.
39598         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39599         * modules/canonicalize-tests (Depends-on): Likewise.
39600         * modules/lstat-tests (Depends-on): Likewise.
39601         * modules/openat-tests (Depends-on): Likewise.
39602         * modules/remove-tests (Depends-on): Likewise.
39603         * modules/rmdir-tests (Depends-on): Likewise.
39604         * modules/unlink-tests (Depends-on): Likewise.
39605         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39606         * tests/test-canonicalize.c (symlink): Likewise.
39607         * tests/test-fstatat.c (symlink): Likewise.
39608         * tests/test-lstat.c (symlink): Likewise.
39609         * tests/test-remove.c (symlink): Likewise.
39610         * tests/test-rmdir.c (symlink): Likewise.
39611         * tests/test-unlink.c (symlink): Likewise.
39612         * tests/test-unlinkat.c (symlink): Likewise.
39613
39614         symlink: new module, for Solaris 9 bug
39615         * modules/symlink: New file.
39616         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39617         * lib/symlink.c: Likewise.
39618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39619         * modules/unistd (Makefile.am): Substitute them.
39620         * lib/unistd.in.h (symlink): Declare replacement.
39621         * MODULES.html.sh (File system functions): Mention it.
39622         * doc/posix-functions/symlink.texi (symlink): Likewise.
39623         * modules/symlink-tests: New test.
39624         * tests/test-symlink.c: Likewise.
39625
39626 2009-09-23  Bruno Haible  <bruno@clisp.org>
39627
39628         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39629         when needed.
39630         Test case: gnulib-tool --import --with-tests atexit inttypes.
39631         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39632
39633 2009-09-23  Bruno Haible  <bruno@clisp.org>
39634
39635         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39636         subcommand, not in a subshell.
39637
39638 2009-09-22  Eric Blake  <ebb9@byu.net>
39639
39640         unistd: sort replacement declarations
39641         * lib/unistd.in.h: Sort declarations.
39642
39643         open, openat: minor optimization
39644         * lib/open.c (open): If open succeeded, len is non-zero.
39645         * lib/openat.c (rpl_openat): Likewise.
39646
39647         link-follow: ensure correct result
39648         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39649         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39650         distinguish between possible failures.
39651
39652 2009-09-21  Eric Blake  <ebb9@byu.net>
39653
39654         fts: avoid compiler warning
39655         * lib/fts.c (dirent_inode_sort_may_be_useful)
39656         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39657
39658 2009-09-19  Bruno Haible  <bruno@clisp.org>
39659
39660         * lib/progreloc.c (canonicalize_file_name): New declaration.
39661
39662 2009-09-19  Eric Blake  <ebb9@byu.net>
39663
39664         link: fix quoting
39665         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39666
39667         openat: fix openat bugs on Solaris 9
39668         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39669         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39670         * modules/openat (Depends-on): Add open.
39671         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39672         * modules/fcntl-h (Makefile.am): Substitute it.
39673         * lib/fcntl.in.h (openat): Declare replacement.
39674         * doc/posix-functions/openat.texi (openat): Document this.
39675
39676         openat: move fstatat and unlinkat into correct files
39677         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39678         compiled.
39679         * lib/openat.c (fstatat, unlinkat): Move...
39680         * lib/fstatat.c (fstatat): ...into correct files.
39681         * lib/unlinkat.c (unlinkat): Likewise.
39682
39683         openat: fix unlinkat bugs on Solaris 9
39684         * lib/unlinkat.c (unlinkat): New file.
39685         * modules/openat (Depends-on): Add unlink.
39686         (Files): Distribute it.
39687         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39688         trailing slash behavior is broken.
39689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39690         * modules/unistd (Makefile.am): Substitute it.
39691         * lib/unistd.in.h (unlinkat): Declare replacement.
39692         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39693
39694         openat: fix fstatat bugs on Solaris 9
39695         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39696         stat.
39697         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39698
39699         test-unlinkat: enhance test, to expose Solaris 9 bug
39700         * tests/test-unlink.c (main): Factor guts...
39701         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39702         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39703         * tests/test-rmdir.c (main): Adjust caller.
39704         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39705         (unlinker): New helper function.
39706         (rmdirat): Enhance check.
39707         * modules/rmdir-tests (Depends-on): Add stdbool.
39708         * modules/unlink-tests (Depends-on): Likewise.
39709         (Files): Add test-unlink.h.
39710         * modules/openat-tests (Files): Likewise.
39711         (Depends-on): Add unlinkdir.
39712
39713         test-fstatat: new test, to expose Solaris 9 bugs
39714         * tests/test-stat.c (main): Factor guts...
39715         * tests/test-stat.h (test_stat_func): ...into new file.
39716         * tests/test-lstat.c (main): Factor guts...
39717         * tests/test-lstat.h (test_lstat_func): ...into new file.
39718         * tests/test-fstatat.c: New file.
39719         * modules/stat-tests (Files): Add test-stat.h.
39720         * modules/lstat-tests (Files): Add test-lstat.h.
39721         (Depends-on): Add stdbool.
39722         * modules/openat-tests (Depends-on): Add pathmax.
39723         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39724         (Makefile.am): Run new test.
39725
39726         remove: new module, for mingw and Solaris 9 bugs
39727         * modules/remove: New file.
39728         * lib/remove.c: Likewise.
39729         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39731         * modules/stdio (Makefile.am): Use them.
39732         * lib/stdio.in.h (remove): Declare replacement.
39733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39734         * doc/posix-functions/remove.texi (remove): Likewise.
39735         * modules/remove-tests: New test.
39736         * tests/test-remove.c: Likewise.
39737
39738         unlink: new module, for Solaris 9 bug
39739         * modules/unlink: New file.
39740         * lib/unlink.c: Likewise.
39741         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39743         * modules/unistd (Makefile.am): Use them.
39744         * lib/unistd.in.h (stat): Declare replacement.
39745         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39746         * doc/posix-functions/unlink.texi (unlink): Likewise.
39747         * modules/unlink-tests: New test.
39748         * tests/test-unlink.c: Likewise.
39749
39750         lstat: fix Solaris 9 bug
39751         * lib/lstat.c (lstat): Also check for trailing slash on
39752         non-symlink, non-directories.  Use stat module to simplify logic.
39753         * doc/posix-functions/lstat.texi (lstat): Document it.
39754         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39755         (configure.ac): Check for symlink.
39756         * tests/test-lstat.c (main): Add more tests.
39757
39758         stat: add as dependency to other modules
39759         * modules/chown (Depends-on): Add stat.
39760         * modules/euidaccess (Depends-on): Likewise.
39761         * modules/fchdir (Depends-on): Likewise.
39762         * modules/isdir (Depends-on): Likewise.
39763         * modules/link (Depends-on): Likewise.
39764         * modules/lstat (Depends-on): Likewise.
39765         * modules/mkdir-p (Depends-on): Likewise.
39766         * modules/modechange (Depends-on): Likewise.
39767         * modules/open (Depends-on): Likewise.
39768         * modules/readlink (Depends-on): Likewise.
39769         * modules/same (Depends-on): Likewise.
39770
39771         stat: fix Solaris 9 bug
39772         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39773         slash.
39774         * lib/stat.c (rpl_stat): Work around it.
39775         * doc/posix-functions/stat.texi (stat): Update documentation.
39776
39777         stat: new module, for mingw bug
39778         * modules/stat: New file.
39779         * lib/stat.c: Likewise.
39780         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39782         * modules/sys_stat (Makefile.am): Use them.
39783         * lib/sys_stat.in.h (stat): Declare replacement.
39784         * lib/openat.c (fstatat): Deal with lstat and stat being function
39785         macros.
39786         * modules/openat (Depends-on): Add inline.
39787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39788         * doc/posix-functions/stat.texi (stat): Likewise.
39789         * modules/stat-tests: New test.
39790         * tests/test-stat.c: Likewise.
39791
39792 2009-09-19  Jim Meyering  <meyering@redhat.com>
39793
39794         syntax-check: detect unnecessary inclusion of canonicalize.h
39795         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39796
39797 2009-09-19  Eric Blake  <ebb9@byu.net>
39798
39799         canonicalize-lgpl: adjust clients to use correct header
39800         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39801         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39802         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39803         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39804         * lib/progreloc.c (includes): Likewise.
39805
39806 2009-09-19  Jim Meyering  <meyering@redhat.com>
39807
39808         test-posixtm.c: correct a comment
39809         * tests/test-posixtm.c: Correct first-line comment.
39810         Spotted by Eric Blake.
39811
39812 2009-09-16  Jim Meyering  <meyering@redhat.com>
39813
39814         posixtm-tests: make T const-correct; add a test case
39815         * tests/test-posixtm.c (T): Declare const.
39816         Add a test for -(2^31+1).
39817         Remove useless can-succeed-only-in-2002 test.
39818
39819         posixtm-tests: adjust the sole failing test
39820         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39821         expected output matches what mktime now produces.  Cross-checked via
39822         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39823
39824         posixtm: move #ifdef'd tests into a new module
39825         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39826         * tests/test-posixtm.c: ... this new file.
39827         * modules/posixtm-tests: New module.
39828
39829 2009-09-19  Eric Blake  <ebb9@byu.net>
39830
39831         openat: simplify use of at-func.c
39832         * lib/at-func.c (includes): Include prerequisites here, to
39833         simplify requirements on client files.
39834         * lib/openat-priv.h: Add double-inclusion guard.
39835         * lib/faccessat.c (includes): Simplify.
39836         * lib/fchmodat.c (includes): Likewise.
39837         * lib/fchownat.c (includes): Likewise.
39838         * lib/mkdirat.c (includes): Likewise.
39839         * lib/mkfifoat.c (includes): Likewise.
39840         * lib/symlinkat.c (includes): Likewise.
39841
39842         openat: allow return of fd 0
39843         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39844         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39845         unistd-safer.
39846         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39847         <fcntl.h>; this module does not leak fds.
39848         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39849         must be allowed to return 0, leaving openat_safer to add the
39850         safety.
39851         (openat_permissive): Avoid writing to just-opened fd 2 if
39852         restoring the current directory fails.
39853         * lib/openat-die.c (openat_restore_fail): Add comment.
39854         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39855         (save_cwd): Guarantee safe fd, but without use of open_safer.
39856         * tests/test-openat.c: New test.
39857         * modules/openat-tests (Files, Makefile.am): Distribute and build
39858         new file.
39859
39860         relocatable-prog-wrapper: fix build
39861         * modules/relocatable-prog-wrapper (Files): Update name of
39862         canonicalize m4 file, broken on 2009-09-17.
39863         Reported by emad hajjar <aleppos@hotmail.com>.
39864
39865 2009-09-19  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39868         * lib/safe-alloc.c: Likewise.
39869         Reported by Ian Beckwith <ianb@erislabs.net>.
39870
39871 2009-09-18  Bruno Haible  <bruno@clisp.org>
39872
39873         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39874         Reported by <erobles@sensacd.com.mx>.
39875
39876 2009-09-17  Eric Blake  <ebb9@byu.net>
39877
39878         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39879         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39880         slashes when checking if last component is missing.
39881         * tests/test-canonicalize.c (main): Test this.
39882
39883         canonicalize, canonicalize-lgpl: honor // if distinct from /
39884         * modules/canonicalize (Files): Add double-slash-root.m4.
39885         * modules/canonicalize-lgpl (Files): Likewise.
39886         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39887         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39888         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39889         fallback definition.
39890         (canonicalize_filename_mode): Use it to protect //.
39891         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39892         (__realpath): Likewise.
39893         * tests/test-canonicalize.c (main): Test this.
39894         * tests/test-canonicalize-lgpl.c (main): Likewise.
39895         * modules/canonicalize-tests (Depends-on): Add same-inode.
39896         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39897
39898         canonicalize-lgpl: fix glibc bug with trailing slash
39899         * m4/canonicalize-lgpl.m4: Move contents...
39900         * m4/canonicalize.m4: ...here.
39901         (gl_CANONICALIZE_LGPL): Factor realpath check...
39902         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39903         glibc 2.3.5 bug, fixed 2005-04-27.
39904         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39905         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39906         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39907         * modules/canonicalize-lgpl (Files): Manage file rename.
39908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39909         * modules/stdlib (Makefile.am): Substitute witness.
39910         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39911         is needed.
39912         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39913         replacement is required.
39914         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39915         * doc/glibc-functions/canonicalize_file_name.texi
39916         (canonicalize_file_name): Document this.
39917         * doc/posix-functions/realpath.texi (realpath): Likewise.
39918
39919         canonicalize-lgpl: reject non-directory with trailing slash
39920         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39921         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39922         catches failures in glibc 2.3.5.
39923         * tests/test-canonicalize.c (main): Likewise.
39924
39925         canonicalize-lgpl: use native realpath if it works
39926         * lib/canonicalize-lgpl.c (realpath): Guard with
39927         FUNC_REALPATH_WORKS.
39928         * lib/stdlib.in.h (realpath): Make declaration optional based on
39929         HAVE_REALPATH.
39930         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39931         native realpath works.
39932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39933         * modules/stdlib (Makefile.am): Substitute witness.
39934
39935         canonicalize, canonicalize-lgpl: use <stdlib.h>
39936         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39937         (Include): Mention <stdlib.h>.
39938         (configure.ac): Mention functions we provide.
39939         * modules/canonicalize (configure.ac): Likewise.
39940         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39941         realpath if canonicalize_file_name is missing.
39942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39943         * modules/stdlib (Makefile.am): Substitute witnesses.
39944         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39945         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39946         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39947         * NEWS: Document this.
39948         * doc/glibc-functions/canonicalize_file_name.texi
39949         (canonicalize_file_name): Likewise.
39950         * doc/posix-functions/realpath.texi (realpath): Likewise.
39951         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39952
39953         test-canonicalize: consolidate into single C program
39954         * tests/test-canonicalize.sh: Delete; move setup into...
39955         * tests/test-canonicalize.c (main): ...the program, making it
39956         easier to run in debugger.  Add some tests.
39957         * modules/canonicalize-tests (Files): Remove unused file.
39958         (Depends-on): Add progname.
39959         (configure.ac, Makefile.am): Simplify.
39960
39961         test-canonicalize-lgpl: consolidate into single C program
39962         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39963         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39964         easier to run in debugger.  Add some tests.
39965         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39966         (configure.ac, Makefile.am): Simplify.
39967
39968         canonicalize: avoid resolvepath
39969         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39970         unnecessary checks.
39971         * lib/canonicalize.c (includes): Simplify.
39972         (canonicalize_file_name): Drop resolvepath implementation.
39973         * modules/canonicalize (Depends-on): Drop filenamecat.
39974
39975         canonicalize: don't lose errno
39976         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39977         over calls to free.
39978
39979         canonicalize: simplify errno handling
39980         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39981         assignment.
39982
39983         canonicalize, canonicalize-lgpl: update module dependencies
39984         * modules/canonicalize (Depends-on): Add extensions, lstat,
39985         pathmax, stdlib.
39986         (Files): Drop pathmax.h.
39987         (configure.ac): Adjust macro name.
39988         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39989         lstat, stdlib, sys_stat.
39990         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39991         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39992         extensions.
39993         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39994         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39995         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39996         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39997         declaration, if available.
39998         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39999         we can rely on the readlink module.
40000         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40001         (includes): Use <unistd.h> unconditionally.
40002
40003 2009-09-17  Eric Blake  <ebb9@byu.net>
40004
40005         maint: make Include sections of modules consistent
40006         * modules/alloca: Use only header name; no need to list #include.
40007         * modules/alloca-opt: Likewise.
40008         * modules/arpa_inet: Likewise.
40009         * modules/canon-host: Likewise.
40010         * modules/configmake: Likewise.
40011         * modules/dirent: Likewise.
40012         * modules/eealloc: Likewise.
40013         * modules/environ: Likewise.
40014         * modules/fchdir: Likewise.
40015         * modules/fcntl: Likewise.
40016         * modules/fcntl-h: Likewise.
40017         * modules/gethrxtime: Likewise.
40018         * modules/gettime: Likewise.
40019         * modules/ignore-value: Likewise.
40020         * modules/inet_ntop: Likewise.
40021         * modules/inet_pton: Likewise.
40022         * modules/inttypes: Likewise.
40023         * modules/isnand-nolibm: Likewise.
40024         * modules/isnanf-nolibm: Likewise.
40025         * modules/mbchar: Likewise.
40026         * modules/mbfile: Likewise.
40027         * modules/mbiter: Likewise.
40028         * modules/mbuiter: Likewise.
40029         * modules/netdb: Likewise.
40030         * modules/netinet_in: Likewise.
40031         * modules/nproc: Likewise.
40032         * modules/pagealign_alloc: Likewise.
40033         * modules/poll: Likewise.
40034         * modules/printf-frexp: Likewise.
40035         * modules/pthread: Likewise.
40036         * modules/putenv: Likewise.
40037         * modules/random_r: Likewise.
40038         * modules/relocatable-prog: Likewise.
40039         * modules/search: Likewise.
40040         * modules/select: Likewise.
40041         * modules/selinux-h: Likewise.
40042         * modules/settime: Likewise.
40043         * modules/signal: Likewise.
40044         * modules/size_max: Likewise.
40045         * modules/socklen: Likewise.
40046         * modules/ssize_t: Likewise.
40047         * modules/stdarg: Likewise.
40048         * modules/stdbool: Likewise.
40049         * modules/stddef: Likewise.
40050         * modules/stdint: Likewise.
40051         * modules/stdio: Likewise.
40052         * modules/stdlib: Likewise.
40053         * modules/string: Likewise.
40054         * modules/strings: Likewise.
40055         * modules/sys_file: Likewise.
40056         * modules/sys_ioctl: Likewise.
40057         * modules/sys_select: Likewise.
40058         * modules/sys_socket: Likewise.
40059         * modules/sys_stat: Likewise.
40060         * modules/sys_time: Likewise.
40061         * modules/sys_times: Likewise.
40062         * modules/sys_utsname: Likewise.
40063         * modules/sys_wait: Likewise.
40064         * modules/sysexits: Likewise.
40065         * modules/time: Likewise.
40066         * modules/times: Likewise.
40067         * modules/tmpfile: Likewise.
40068         * modules/trim: Likewise.
40069         * modules/unistd: Likewise.
40070         * modules/wchar: Likewise.
40071         * modules/wctype: Likewise.
40072
40073 2009-09-17  Bruno Haible  <bruno@clisp.org>
40074
40075         Make getdate.y compile on QNX and NetBSD 5 / i386.
40076         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40077         TIME_T_FITS_IN_LONG_INT.
40078         * lib/getdate.y (long_time_t): New type.
40079         (relative_time): Change type of 'seconds' field to long_time_t.
40080         (get_date): Update types of local variables. Check against overflow
40081         during conversion from long_time_t to time_t.
40082         Reported by Matt Kraai <kraai@ftbfs.org>
40083         and Hasso Tepper <hasso@netbsd.org>.
40084
40085 2009-09-17  Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/COPYING: Update copyright years.
40088         * modules/README: Likeiwse.
40089         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40090         Reported by Ian Beckwith <ianb@erislabs.net>.
40091
40092 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40093
40094         * users.txt: Update references for gnuit package.
40095
40096 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40097
40098         * m4/getdelim.m4: Fix typo in copyright line.
40099
40100 2009-09-17  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/atoll.c: Use the standard header with GPL copyright.
40103         * lib/argz.in.h: Likewise.
40104         * lib/glob.c: Likewise.
40105         * lib/glob-libc.h: Likewise.
40106         * lib/random_r.c: Likewise.
40107         * lib/siglist.h: Likewise.
40108         * lib/strsignal.c: Likewise.
40109         Reported by Ian Beckwith <ianb@erislabs.net>.
40110
40111 2009-09-17  Eric Blake  <ebb9@byu.net>
40112
40113         rmdir: ensure correct dependency order
40114         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40115
40116 2009-09-17  Bruno Haible  <bruno@clisp.org>
40117
40118         Disable assertion that fails on NetBSD 5 / i386.
40119         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40120         Reported by Sam Steingold <sds@gnu.org>
40121         and Hasso Tepper <hasso@netbsd.org>.
40122
40123 2009-09-16  Eric Blake  <ebb9@byu.net>
40124
40125         unlinkdir: port to mingw
40126         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40127         on which no one can unlink a directory.
40128
40129         stdlib: sort witness names
40130         * modules/stdlib (Makefile.am): Sort replacements.
40131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40132         * lib/stdlib.in.h: Likewise.
40133
40134         parse-duration-tests: avoid link failure
40135         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40136         LIBINTL.
40137         Reported by Tom G. Christensen.
40138
40139         openat-tests: ensure unlinkat behaves like rmdir
40140         * tests/test-rmdir.c (main): Factor guts...
40141         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40142         * modules/rmdir-tests (Files): Ship new file.
40143         * modules/openat-tests: New test.
40144         * tests/test-unlinkat.c: Likewise.
40145
40146         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40147         * modules/rmdir-errno (Status, Notice): Now obsolete.
40148
40149         rmdir: work around cygwin 1.5.x and mingw bugs
40150         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40151         * lib/rmdir.c (rmdir): Work around it.
40152         * modules/rmdir (Status, Notice): No longer obsolete.
40153         (Files): Add dos.m4.
40154         (Depends-on): Add unistd.
40155         (configure.ac): Set witnesses.
40156         (License): Relax to LGPLv2+.
40157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40158         * modules/unistd (Makefile.am): Substitute witnesses.
40159         * lib/unistd.in.h (rmdir): Declare replacement.
40160         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40161         * modules/rmdir-tests: New tests.
40162         * tests/test-rmdir.c: Likewise.
40163
40164 2009-09-15  Eric Blake  <ebb9@byu.net>
40165
40166         fchdir: improve use of replacement functions
40167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40169         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40170         REPLACE_CLOSEDIR.
40171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40172         * modules/sys_stat (Makefile.am): Substitute correct witness.
40173         * modules/dirent (Makefile.am): Likewise.
40174         * modules/unistd (Makefile.am): Likewise.
40175         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40176         * lib/unistd.in.h (dup): Likewise.
40177         * lib/sys_stat.in.h (fstat): Likewise.
40178
40179         maint: ignore gnulib-tool temp files
40180         * .gitignore: Ignore files created during gnulib-tool --test.
40181
40182 2009-09-13  Jim Meyering  <meyering@redhat.com>
40183
40184         posixtm: don't reject a time that specify "60" as the number of seconds
40185         * lib/posixtm.c (posixtime): The code to reject invalid dates
40186         would also reject a time specified with the .60 suffix.
40187         But POSIX allows that, in order to accommodate leap seconds.
40188         So don't reject it.
40189         (main): Adjust tests accordingly.
40190         * modules/posixtm (Depends-on): Add stpcpy.
40191
40192 2009-09-11  Jim Meyering  <meyering@redhat.com>
40193
40194         announce-gen: include [$release_type] in emitted Subject:
40195         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40196         e.g., [stable] in the emitted Subject: line.
40197
40198 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40199
40200         Remove obsolete macros from several modules.
40201         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40202         obsolete Autoconf macros with their modern counterparts.
40203         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40204         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40206         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40207         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40210         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40211         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40212         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40213         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40214         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40215         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40216         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40217         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40218         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40219         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40220         * m4/time_r.m4 (gl_TIME_R): Likewise.
40221         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40222         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40223         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40224
40225         Fix copyright header in build-aux scripts.
40226         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40227         recommendation.
40228         * build-aux/ncftpput-ftp: Likewise.
40229         * build-aux/update-copyright: Likewise.
40230
40231 2009-09-09  Eric Blake  <ebb9@byu.net>
40232
40233         test-link: allow Linux choice of errno
40234         * tests/test-link.c (main): Relax test for alternate error.
40235
40236         strndup: fix improper m4 caching
40237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40238         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40239         (gl_PREREQ_STRNDUP): Delete.
40240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40241         * modules/string (Makefile.am): Substitute it.
40242         * lib/string.in.h (strndup): Modernize prototype.
40243
40244         getcwd: port to mingw
40245         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40246         different from the POSIX assumptions made throughout the getcwd
40247         module; fortunately, the mingw getcwd does not need replacement.
40248         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40249         * modules/getcwd-tests: New test.
40250         * tests/test-getcwd.c: Likewise.
40251
40252         link: fix platform bugs
40253         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40254         * lib/link.c (link): Work around them.  Fix related mingw bug.
40255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40256         * modules/unistd (Makefile.am): Substitute it.
40257         * lib/unistd.in.h (link): Declare replacement.
40258         * doc/posix-functions/link.texi (link): Document this.
40259         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40260
40261         test-link: consolidate into single C program, test more cases
40262         * tests/test-link.sh: Delete.
40263         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40264         at least Cygwin and Solaris.
40265         * modules/link-tests (Files): Remove unused file.
40266         (Depends-on): Add errno, sys_stat.
40267         (Makefile.am): Simplify.
40268
40269 2009-09-08  Bruno Haible  <bruno@clisp.org>
40270
40271         Work around towlower, towupper bug on mingw.
40272         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40273         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40274         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40275         * doc/posix-functions/towupper.texi: Likewise.
40276         Reported by Eric Blake.
40277
40278 2009-09-08  Jim Meyering  <meyering@redhat.com>
40279
40280         build: don't try to run autoheader if we don't use it
40281         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40282         is not used in configure.ac.
40283
40284 2009-09-08  Eric Blake  <ebb9@byu.net>
40285
40286         euidaccess: fix compilation error
40287         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40288
40289         rawmemchr: relax license
40290         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40291         okay.
40292         Reported by Jim Meyering.
40293
40294         mkfifoat: new module
40295         * modules/mkfifoat: New file.
40296         * lib/mkfifoat.c: Likewise.
40297         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40299         * modules/sys_stat (Makefile.am): Use them.
40300         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40301         * MODULES.html.sh (File system functions): Mention module.
40302         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40303         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40304         * modules/mkfifoat-tests: New test.
40305         * tests/test-mkfifoat.c: Likewise.
40306
40307         strchrnul: relax license
40308         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40309         okay.
40310         Reported by Jim Meyering.
40311
40312 2009-09-08  Eric Blake  <ebb9@byu.net>
40313
40314         fstatat: fix compilation on Solaris
40315         * lib/fstatat.c (includes): Add fcntl.h.
40316         Reported by Pádraig Brady.
40317
40318 2009-09-07  Eric Blake  <ebb9@byu.net>
40319
40320         rename: modernize replacement
40321         * modules/rename (Depends-on): Add stdio.
40322         (configure.ac): Declare witness.
40323         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40324         stdio take care of replacement.
40325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40326         * modules/stdio (Makefile.am): Substitute them.
40327         * lib/stdio.in.h (rename): Declare replacement.
40328         * lib/rename.c (includes): Allow cross-compilation to non-windows
40329         machines.
40330         * doc/posix-functions/rename.texi (rename): Improve
40331         documentation.
40332
40333         stdio: sort witness names
40334         * modules/stdio (Makefile.am): Sort replacements.
40335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40336         * lib/stdio.in.h: Likewise.
40337
40338         getcwd: minor cleanups
40339         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40340         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40341
40342         openat: provide more convenience names
40343         * modules/faccessat (configure.ac): Add C witness.
40344         * lib/unistd.in.h (readlinkat): Fix typo.
40345         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40346         convenience wrappers.
40347         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40348         wrappers in syntax checks.
40349
40350 2009-09-06  Eric Blake  <ebb9@byu.net>
40351
40352         doc: fix comments in recent patches
40353         * lib/faccessat.c: Mention correct function.
40354         * lib/fchmodat.c: Likewise.
40355         * lib/fchownat.c: Likewise.
40356         * lib/symlinkat.c: Likewise.
40357         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40358         constants.
40359
40360         faccessat, symlinkat: continue cleanup of previous patch
40361         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40362         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40363         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40365         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40366         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40367         set.
40368
40369 2009-09-06  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40372         (fstatat): Declare if GNULIB_FSTATAT is set.
40373         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40374         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40375         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40376         * modules/fcntl-h (Files): Remove m4/openat.m4.
40377         * modules/sys_stat (Files): Remove m4/openat.m4.
40378         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40379         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40380         * modules/unistd (Files): Remove m4/openat.m4.
40381         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40382         GNULIB_OPENAT.
40383         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40384         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40386         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40387         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40388         gl_OPENAT_DEFAULTS.
40389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40390         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40391         Don't require gl_OPENAT_DEFAULTS.
40392         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40393         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40394         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40395         (gl_OPENAT_DEFAULTS): Remove macro.
40396
40397 2009-09-06  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/openat (configure.ac): Remove unneeded witness.
40400
40401 2009-09-06  Bruno Haible  <bruno@clisp.org>
40402
40403         Set errno to ENOSYS when a function is entirely unsupported.
40404         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40405         EOPNOTSUPP.
40406         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40407         * modules/chown (Depends-on): Remove errno.
40408
40409 2009-09-06  Bruno Haible  <bruno@clisp.org>
40410
40411         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40412
40413 2009-09-06  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40416
40417 2009-09-06  Ben Pfaff  <blp@gnu.org>
40418             Bruno Haible  <bruno@clisp.org>
40419
40420         Work around a glibc bug in strtok_r.
40421         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40422         Undefine if UNDEFINE_STRTOK_R is set.
40423         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40425         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40426         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40427         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40428         UNDEFINE_STRTOK_R.
40429         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40430
40431 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40432
40433         exclude: minor fix
40434         * lib/exclude.c: Include wctype.h
40435
40436 2009-09-06  Akim Demaille  <demaille@gostai.com>
40437
40438         bootstrap: improve error message
40439         * build-aux/bootstrap (find_tool): Upon failure, report the list
40440         of candidates.
40441         Honor the initial value of the envvar.
40442
40443 2009-09-05  Eric Blake  <ebb9@byu.net>
40444
40445         symlinkat: new module
40446         * modules/symlinkat: New file.
40447         * lib/symlinkat.c: Likewise.
40448         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40450         * modules/unistd (Makefile.am): Use them.
40451         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40452         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40453         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40454         * MODULES.html.sh (File system functions): Mention module.
40455         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40456         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40457         * modules/symlinkat-tests: New test.
40458         * tests/test-symlinkat.c: Likewise.
40459
40460         test-openat-safer: add more checks
40461         * tests/test-openat-safer.c (main): Check more code paths.
40462
40463 2009-09-05  Jim Meyering  <meyering@redhat.com>
40464
40465         syntax-check: detect unnecessary inclusion of openat.h
40466         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40467
40468 2009-09-05  Bruno Haible  <bruno@clisp.org>
40469
40470         Support towlower, towupper.
40471         * doc/posix-functions/towlower.texi: Mention module wctype.
40472         * doc/posix-functions/towupper.texi: Likewise.
40473         * lib/wctype.in.h (towlower, towupper): New functions.
40474         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40475         (ASSERT): New macro.
40476         (e): New variable.
40477         (main): Test also towlower, towupper. Test WEOF argument.
40478         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40479
40480 2009-09-05  Bruno Haible  <bruno@clisp.org>
40481
40482         Fix conversion behaviour when the input is invalid.
40483         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40484         mark occurring in first pass of indirect conversion.
40485         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40486         input.
40487         Found by clang's static analyzer.
40488
40489 2009-09-05  Bruno Haible  <bruno@clisp.org>
40490
40491         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40492         where direct conversion is possible.
40493
40494 2009-09-04  Eric Blake  <ebb9@byu.net>
40495
40496         openat: fail with ENOENT on empty name
40497         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40498         buffer.
40499
40500         link-follow: fix logic bug in prior patch
40501         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40502         reversed sense of yes and no in prior patch.  Avoid confusing
40503         compilation failure with desired semantics.
40504
40505         link-follow: accomodate mingw and cross-compilation
40506         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40507         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40508         cross-compilation results to -1, to make linkat easier to
40509         implement when cross-compiling.  Trivially support mingw.
40510         * modules/link-follow (configure.ac): Call new name.
40511         * NEWS: Mention this.
40512
40513 2009-09-03  Eric Blake  <ebb9@byu.net>
40514
40515         faccessat: compile replacement
40516         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40517         needed.
40518
40519         fts: fix compilation error
40520         * lib/fts.c (includes): Re-add "openat.h", for
40521         openat_needs_fchdir.
40522
40523         faccessat: new module
40524         * modules/faccessat: New file.
40525         * lib/faccessat.c: Likewise.
40526         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40528         * modules/unistd (Makefile.am): Use it.
40529         * lib/unistd.in.h (faccessat): Declare it.
40530         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40531         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40532         * MODULES.html.sh (File system functions): Mention it.
40533         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40534         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40535
40536         euidaccess: prefer POSIX over non-standard implementation
40537         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40538         * lib/euidaccess.c (euidaccess): Use it if available.
40539
40540         openat: make template easier to use
40541         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40542         AT_FUNC_F2 to be undefined.
40543         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40544         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40545         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40546         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40547         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40548         Likewise.
40549         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40550         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40551         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40552         Likewise.
40553
40554         openat: declare in POSIX headers
40555         * NEWS: Mention this.
40556         * modules/openat (configure.ac): Declare witnesses.
40557         (Depends-on): Add fcntl-h, sys_stat, unistd.
40558         (Include): Mention correct headers.
40559         * modules/fcntl-h (Depends-on): Add link-warning.
40560         (Files): Add openat.m4.
40561         (Makefile.am): Substitute witnesses.
40562         * modules/sys_stat (Files, Makefile.am): Likewise.
40563         * modules/unistd (Files, Makefile.am): Likewise.
40564         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40565         (gl_OPENAT_DEFAULTS): New macro.
40566         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40569         (SYS_STAT_H): Remove unused variable.
40570         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40571         * lib/fcntl--.h (includes): Remove unneeded header.
40572         * lib/openat-safer.c (includes): Likewise.
40573         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40574         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40575         appropriate headers.
40576         (__OPENAT_PREFIX): Delete.
40577         * lib/fcntl.in.h (openat): Provide declaration.
40578         (AT_FDCWD): Fix Solaris bug.
40579         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40580         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40581         * lib/fchmodat.c (includes):  Adjust to find declaration.
40582         * lib/fchownat.c (includes): Likewise.
40583         * lib/mkdirat.c (includes): Likewise.
40584         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40585         still visible.
40586
40587 2009-09-02  Eric Blake  <ebb9@byu.net>
40588
40589         errno: use consistently
40590         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40591         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40592         * lib/canonicalize.c (ELOOP): Likewise.
40593         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40594         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40595         * lib/lchown.c (EOPNOTSUPP): Likewise.
40596         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40597         * lib/savewd.c (ESTALE): Likewise.
40598         * lib/settime.c (ENOSYS): Likewise.
40599         * lib/utimens.c (ENOSYS): Likewise.
40600         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40601         * lib/chdir-safer.c (ELOOP): Likewise.
40602         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40603         * modules/c-stack (Depends-on): Add errno.
40604         * modules/canonicalize (Depends-on): Likewise.
40605         * modules/chdir-safer (Depends-on): Likewise.
40606         * modules/fdopendir (Depends-on): Likewise.
40607         * modules/inet_ntop (Depends-on): Likewise.
40608         * modules/inet_pton (Depends-on): Likewise.
40609         * modules/lchown (Depends-on): Likewise.
40610         * modules/openat (Depends-on): Likewise.
40611         * modules/savewd (Depends-on): Likewise.
40612         * modules/settime (Depends-on): Likewise.
40613         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40614
40615         fts: avoid leaking fds
40616         * modules/fts (Depends-on): Add cloexec.
40617         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40618         flag.
40619
40620         fts: make directory fds more robust
40621         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40622         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40623
40624         backupfile, chdir-long, fts, savedir: make safer
40625         * lib/backupfile.c (includes): Use "dirent--.h", since
40626         numbered_backup can write to stderr during readdir.
40627         * lib/savedir.c (includes): Likewise.
40628         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40629         emulation can write to stderr on failure.
40630         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40631         * lib/getcwd.c: Document why opendir_safer is unused.
40632         * lib/glob.c: Likewise.
40633         * lib/scandir.c: Likewise.
40634         * lib/openat-proc.c: Likewise, for open_safer.
40635         * modules/backupfile (Depends-on): Add dirent-safer.
40636         * modules/savedir (Depends-on): Likewise.
40637         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40638         * modules/chdir-long (Depends-on): Add openat-safer.
40639
40640         openat-safer: new module
40641         * modules/openat-safer: New file.
40642         * lib/openat-safer.c: Likewise.
40643         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40644         * lib/fcntl-safer.h (openat_safer): Declare.
40645         * lib/fcntl--.h (openat): Override.
40646         * MODULES.html.sh (File descriptor based I/O): Mention it.
40647         * lib/openat.h: Add double-inclusion guards.
40648         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40649         "fcntl--.h", so we can implement openat.
40650         * modules/openat-safer-tests: New test.
40651         * tests/test-openat-safer.c: New file.
40652
40653         dirent-safer: new module
40654         * modules/dirent-safer: New file.
40655         * lib/dirent--.h: Likewise.
40656         * lib/dirent-safer.h: Likewise.
40657         * lib/opendir-safer.c: Likewise.
40658         * m4/dirent-safer.m4: Likewise.
40659         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40660         * modules/dirent-safer-tests: New test.
40661         * tests/test-dirent-safer.c: New file.
40662         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40663
40664         fdopendir: optimize on mingw
40665         * lib/unistd.in.h (_gl_directory_name): New prototype.
40666         * lib/fchdir.c (_gl_directory_name): Implement it.
40667         (fchdir): Use it to simplify implementation.
40668         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40669         fchdir, when available, to avoid calling [f]chdir().
40670
40671         fdopendir: split into its own module
40672         * lib/openat.c (fdopendir): Move...
40673         * lib/fdopendir.c: ...into new file.
40674         * modules/fdopendir: New module.
40675         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40676         * modules/openat (Depends-on): Add fdopendir.
40677         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40678         fdopendir here.
40679         * modules/savedir (Depends-on): Only need fdopendir, not full
40680         openat.
40681         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40682         * lib/openat.h (fdopendir): Drop prototype.
40683         * lib/dirent.in.h (fdopendir): Provide prototype.
40684         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40685         * modules/dirent (Makefile.am): Substitute them.
40686         * MODULES.html.sh (File system functions): Mention it.
40687         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40688         * modules/fdopendir-tests: New file.
40689         * tests/test-fdopendir.c: Likewise.
40690
40691         fchdir: use more consistent macro convention
40692         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40693         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40694         REPLACE_FCHDIR, rather than relying on config.h macros.
40695         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40696         inside a single make-time REPLACE_FCHDIR block, rather than using
40697         the config.h FCHDIR_REPLACEMENT.
40698         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40699         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40700         Manage fstat replacement.
40701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40702         REPLACE_FCHDIR.
40703         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40704         (Makefile.am): Substitute REPLACE_FCHDIR.
40705         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40706         FCHDIR_REPLACEMENT.
40707         * lib/dup-safer.c (dup_safer): Likewise.
40708         * lib/dup2.c (rpl_dup2): Likewise.
40709         * lib/dup3.c (rpl_dup3): Likewise.
40710         * lib/open.c (rpl_open): Likewise.
40711
40712         fchdir: simplify error handling, and support dup3
40713         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40714         stdbool, malloc-posix, realloc-posix.
40715         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40716         (ensure_dirs_slot): Return false on allocation failure.
40717         (rpl_dup2): Delete.
40718         (_gl_register_dup): New function.
40719         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40720         (_gl_register_fd): Close fd on allocation failure.
40721         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40722         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40723         prototype.
40724         (rpl_dup2_fchdir): Delete prototype.
40725         * lib/open.c (open): Update caller.
40726         * lib/dup2.c (dup2): Track fchdir metadata.
40727         * lib/dup3.c (dup3): Likewise.
40728         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40730
40731 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40732
40733         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40734         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40735         don't pass arguments to AC_OUTPUT.
40736
40737 2009-09-02  Bruno Haible  <bruno@clisp.org>
40738
40739         * modules/mkdtemp (License): Relicense under LGPLv2+.
40740         Reported by Paolo Bonzini.
40741
40742 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40743
40744         Replace uses of obsolete autoconf macros in Jim's modules.
40745         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40746         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40747         can evoke a warning from autoconf when run with -Wobsolete
40748         enabled.  They were declared obsolete for good reasons (see
40749         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40750         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40751         should not continue using the deprecated macros.
40752         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40753         obsolete Autoconf macros with modern counterparts.
40754         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40755         * m4/dos.m4 (gl_AC_DOS): Likewise.
40756         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40757         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40758         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40759         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40760         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40762         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40763         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40764         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40765         Likewise.
40766         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40767         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40768         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40769         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40770         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40771         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40772
40773 2009-09-01  Eric Blake  <ebb9@byu.net>
40774
40775         fchdir: fix off-by-one bug in previous patch
40776         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40777         (_gl_unregister_fd): Delete useless if.
40778
40779 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40780
40781         maint.mk: sort the list of syntax-check rules
40782         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40783         easier to get a sense of progress when the rules are run sequentially
40784         and take a long time.
40785
40786 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40787
40788         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40789         * modules/netinet_in: Likewise.
40790         * modules/sys_file: Likewise.
40791         * modules/sys_ioctl: Likewise.
40792         * modules/sys_select: Likewise.
40793         * modules/sys_socket: Likewise.
40794         * modules/sys_stat: Likewise.
40795         * modules/sys_time: Likewise.
40796         * modules/sys_times: Likewise.
40797         * modules/sys_utsname: Likewise.
40798         * modules/sys_wait: Likewise.
40799
40800 2009-09-01  Jim Meyering  <meyering@redhat.com>
40801
40802         fts: help ensure that return values are not ignored
40803         * lib/fts_.h (__GNUC_PREREQ): Define.
40804         (__attribute_warn_unused_result__): Define.
40805         (fts_children, fts_close, fts_open, fts_read): Declare with
40806         __attribute_warn_unused_result__.
40807
40808         fts: fts_close now fails also when closing a dir file descriptor fails
40809         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40810         and propagate to caller, along with errno.
40811
40812         announce-gen: correct formatting in --help output
40813         * build-aux/announce-gen (usage): Move the one-line description in
40814         --help output "up", to where it belongs, just after Usage:.
40815
40816 2009-08-31  Eric Blake  <ebb9@byu.net>
40817
40818         fchdir: port to mingw
40819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40820         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40821         opened, then use a substitute.
40822         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40823         replacement.
40824         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40825         (_gl_register_fd): No need to check stat if open already filters
40826         all directories.
40827         (fchdir): Fix error condition to match POSIX.
40828         * modules/fchdir (Depends-on): Add sys_stat.
40829         * doc/posix-functions/open.texi (open): Document the limitation.
40830         * modules/fchdir-tests: New file.
40831         * tests/test-fchdir.c: Likewise.
40832
40833         canonicalize: allow cross-testing from cygwin to mingw
40834         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40835         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40836         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40837         Likewise.
40838         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40839         target does not support symlinks.
40840         * tests/test-canonicalize-lgpl.sh: Likewise.
40841
40842         chown: avoid compilation warning on mingw
40843         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40844         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40845         mingw.
40846         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40847         * modules/chown (Depends-on): Add errno.
40848
40849 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40850
40851         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40852         command.
40853
40854 2009-08-31  Jim Meyering  <meyering@redhat.com>
40855
40856         canonicalize: remove useless initialization
40857         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40858         initialization of local, "end".
40859
40860 2009-08-30  Bruno Haible  <bruno@clisp.org>
40861
40862         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40863         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40864         ENOSYS.
40865
40866 2009-08-30  Bruno Haible  <bruno@clisp.org>
40867
40868         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40869         /usr/xpg4/bin/tr when it exists.
40870         * tests/test-pipe-filter-gi1.sh: Likewise.
40871
40872 2009-08-30  Bruno Haible  <bruno@clisp.org>
40873
40874         Work around deficient /usr/bin/id program on Solaris.
40875         * tests/test-file-has-acl.sh (ID): New variable.
40876         * tests/test-set-mode-acl.sh (ID): Likewise.
40877         * tests/test-copy-acl.sh (ID): Likewise.
40878         * tests/test-copy-file.sh (ID): Likewise.
40879
40880 2009-08-30  Bruno Haible  <bruno@clisp.org>
40881
40882         New module 'xstriconveh'.
40883         * lib/xstriconveh.h: New file.
40884         * lib/xstriconveh.c: New file.
40885         * modules/xstriconveh: New file.
40886
40887 2009-08-30  Bruno Haible  <bruno@clisp.org>
40888
40889         Make it easier to use mem_cd_iconveh.
40890         * lib/striconveh.h (iconveh_t): New type.
40891         (iconveh_open, iconveh_close): New declarations.
40892         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40893         with a single 'const iconveh_t *' argument.
40894         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40895         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40896         with a single 'const iconveh_t *' argument.
40897         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40898         * tests/test-striconveh.c (main): Update.
40899         * NEWS: Mention the change.
40900
40901 2009-08-30  Bruno Haible  <bruno@clisp.org>
40902
40903         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40904         problem.
40905
40906 2009-08-30  Bruno Haible  <bruno@clisp.org>
40907
40908         Work around iconv_open problem on Solaris.
40909         * lib/iconv_open-solaris.gperf: New file.
40910         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40911         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40912         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40913         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40914         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40915         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40916
40917 2009-08-29  Jim Meyering  <meyering@redhat.com>
40918
40919         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40920         * top/maint.mk (cvs-check): Remove target; it was just an alias
40921         to the better-named vc-diff-check.
40922         (maintainer-distcheck): Remove rule.  It was used only from
40923         the (alpha/beta/major) target, and all of its commands but one
40924         were coreutils-specific.
40925         (vc-dist): Remove rule.
40926         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40927         Run vc-diff-check, not vc-dist.
40928         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40929
40930 2009-08-27  Bruno Haible  <bruno@clisp.org>
40931
40932         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40933         of 0.
40934
40935 2009-08-27  Bruno Haible  <bruno@clisp.org>
40936
40937         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40938         compilers.
40939         * doc/func.texi: Document the SunPRO C bug.
40940
40941 2009-08-27  Bruno Haible  <bruno@clisp.org>
40942
40943         Fix link error on Solaris.
40944         * tests/test-parse-duration.c (xstrdup): Remove function.
40945
40946 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40947
40948         ignore-value: handle pointer types, too
40949         * lib/ignore-value.h (__attribute__): Remove definition.
40950         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40951         of a more concise and more-often effective "(void) i" statement.
40952         (ignore_ptr): New function to suppress warnings from functions that
40953         return pointers, and to make it explicit that one function doesn't
40954         handle all cases.
40955
40956 2009-08-25  Bruno Haible  <bruno@clisp.org>
40957
40958         dup2: work around a Linux bug.
40959         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40960         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40961         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40962         Reported by Simon Josefsson.
40963
40964 2009-08-25  Jim Meyering  <meyering@redhat.com>
40965
40966         libguestfs uses gnulib
40967         * users.txt: Add libguestfs.
40968
40969 2009-08-24  Eric Blake  <ebb9@byu.net>
40970
40971         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40972         * lib/pipe2.c (includes): Add binary-io.h.
40973         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40974
40975 2009-08-24  Bruno Haible  <bruno@clisp.org>
40976
40977         Tolerate declared but missing accept4 syscall.
40978         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40979         available.
40980         * lib/sys_socket.in.h (accept4): If the function is already present,
40981         override it.
40982         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40983         * modules/accept4 (Makefile.am): Compile accept4.c always.
40984         Reported by Paolo Bonzini and Eric Blake.
40985
40986 2009-08-23  Bruno Haible  <bruno@clisp.org>
40987
40988         New module 'accept4'.
40989         * lib/sys_socket.in.h (accept4): New declaration.
40990         * lib/accept4.c: New file.
40991         * m4/accept4.m4: New file.
40992         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40993         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40994         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40995         HAVE_ACCEPT4.
40996         * modules/accept4: New file.
40997         * doc/glibc-functions/accept4.texi: Mention the new module.
40998
40999 2009-08-24  Jim Meyering  <meyering@redhat.com>
41000
41001         progname: also set global program_invocation_name, when possible
41002         Before this change, a libtool-enabled program that calls glibc's
41003         error function would report the program name as
41004         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41005         * modules/progname (configure.ac): Check for a declaration of
41006         program_invocation_name.
41007         * lib/progname.c:  Include <errno.h>.
41008         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41009         Set program_invocation_name.
41010
41011 2009-08-23  Bruno Haible  <bruno@clisp.org>
41012
41013         * lib/dup3.c: Include <string.h>.
41014
41015 2009-08-23  Bruno Haible  <bruno@clisp.org>
41016
41017         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41018         * lib/pipe2.c (pipe2): Likewise.
41019         Suggested by Eric Blake.
41020
41021 2009-08-23  Bruno Haible  <bruno@clisp.org>
41022
41023         Tolerate declared but missing dup3 syscall.
41024         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41025         * lib/unistd.in.h (dup3): If the function is already present,
41026         override it.
41027         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41028         * modules/dup3 (Makefile.am): Compile dup3.c always.
41029         Reported by Paolo Bonzini.
41030
41031 2009-08-23  Bruno Haible  <bruno@clisp.org>
41032
41033         Tolerate declared but missing pipe2 syscall.
41034         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41035         available.
41036         * lib/unistd.in.h (pipe2): If the function is already present,
41037         override it.
41038         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41039         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41040         Reported by Paolo Bonzini.
41041
41042 2009-08-23  Bruno Haible  <bruno@clisp.org>
41043
41044         * lib/pipe2.c (pipe2): Move #ifs inside function.
41045
41046 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41047
41048         quotearg: document limitations of quote_these_too
41049         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41050         those limitations are created.
41051         * lib/quotearg.h (set_char_quoting): Document that digits and
41052         letters that are special after backslash are not permitted.
41053         (quotearg_char): Cross-reference set_char_quoting documentation.
41054
41055 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41056
41057         quotearg: implement custom_quoting_style
41058         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41059         right_quote fields.
41060         (set_custom_quoting): New public function.
41061         (quotearg_buffer_restyled): Add left_quote and right_quote
41062         arguments, handle them very much like locale quoting, and update
41063         all uses.
41064         (quotearg_n_custom): New public function.
41065         (quotearg_n_custom_mem): New public function.
41066         (quotearg_custom): New public function.
41067         (quotearg_custom_mem): New public function.
41068         * lib/quotearg.h: Prototype and document new public functions.
41069         (enum quoting_style): For escape_quoting_style and
41070         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41071         ignored even though they're otherwise like c_quoting_style.
41072         Add custom_quoting_style member and document with comparison to
41073         clocale_quoting_style.
41074         * tests/test-quotearg.c (custom_quotes): New array.
41075         (custom_results): New array.
41076         (main): Extend to test custom quoting.
41077
41078 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41079
41080         quotearg: fix right quote escaping when it's in quote_these_too
41081         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41082         quote, be sure to prepend only one backslash.
41083         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41084         (main): Test it.
41085
41086 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41087
41088         quotearg-tests: test escaping of embedded locale quotes
41089         * tests/test-quotearg.c (struct result_strings): Add member for
41090         new input.
41091         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41092         (inputs): Add new input.
41093         (results_g): Add expected results.
41094         (flag_results): Likewise.
41095         (locale_results): Likewise.
41096         (compare_strings): Check those.
41097
41098 2009-08-23  Bruno Haible  <bruno@clisp.org>
41099
41100         Tests for module 'dup3'.
41101         * modules/dup3-tests: New file.
41102         * tests/test-dup3.c: New file.
41103
41104         New module 'dup3'.
41105         * lib/unistd.in.h (dup3): New declaration.
41106         * lib/dup3.c: New file.
41107         * m4/dup3.m4: New file.
41108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41109         HAVE_DUP3.
41110         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41111         * modules/dup3: New file.
41112         * doc/glibc-functions/dup3.texi: Mention the new module.
41113
41114 2009-08-23  Bruno Haible  <bruno@clisp.org>
41115
41116         Tweak the dup2 test.
41117         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41118         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41119         the test file is still empty. Fix argument order of lseek.
41120
41121 2009-08-23  Bruno Haible  <bruno@clisp.org>
41122
41123         Avoid test link errors when the modules getopt-gnu, gettext are used.
41124         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41126
41127 2009-08-23  Bruno Haible  <bruno@clisp.org>
41128
41129         Fix getdtablesize() on mingw.
41130         * lib/getdtablesize.c (getdtablesize): Implement differently.
41131         * lib/unistd.in.h (getdtablesize): Improve comment.
41132
41133 2009-08-23  Bruno Haible  <bruno@clisp.org>
41134
41135         New module 'mkostemp'.
41136         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41137         * lib/stdlib.in.h (mksotemp): New declaration.
41138         * lib/mkostemp.c: New file, from glibc with modifications.
41139         * lib/tempname.h (GT_FILE): Remove outdated comment.
41140         (gen_tempname): Add flags argument.
41141         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41142         (__GT_FILE): Map to 1.
41143         (small_open, large_open): Remove macros.
41144         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41145         * lib/mkstemp.c (mkstemp): Update.
41146         * lib/mkdtemp.c (mkdtemp): Likewise.
41147         * m4/mkostemp.m4: New file.
41148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41149         HAVE_MKOSTEMP.
41150         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41151         HAVE_MKOSTEMP.
41152         * modules/mkostemp: New file, based on modules/mkstemp.
41153         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41154         * NEWS: Mention the change.
41155
41156 2009-08-23  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41159         Reported by Eric Blake.
41160
41161 2009-08-23  Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41164         Reported by Eric Blake.
41165
41166 2009-08-23  Bruno Haible  <bruno@clisp.org>
41167
41168         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41169         * modules/pipe2 (Depends-on): Likewise.
41170
41171 2009-08-23  Eric Blake  <ebb9@byu.net>
41172
41173         fcntl-h: add O_TTY_INIT support
41174         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41175         * tests/test-fcntl-h.c (o): Test it.
41176         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41177
41178         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41179         * modules/fcntl: Move <fcntl.h> header replacement...
41180         * modules/fcntl-h: ...to new name, so as not to collide with
41181         like-named function.
41182         * tests/test-fcntl.c: Rename...
41183         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41184         * modules/fcntl-tests: Rename...
41185         * modules/fcntl-h-tests: ...to this.  Update test file name.
41186         * modules/chdir-long (Depends-on): Update clients.
41187         * modules/chdir-safer (Depends-on): Likewise.
41188         * modules/fcntl-safer (Depends-on): Likewise.
41189         * modules/fts (Depends-on): Likewise.
41190         * modules/mkancesdirs (Depends-on): Likewise.
41191         * modules/mkdir-p (Depends-on): Likewise.
41192         * modules/open (Depends-on): Likewise.
41193         * modules/savewd (Depends-on): Likewise.
41194         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41195         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41196
41197 2009-08-22  Bruno Haible  <bruno@clisp.org>
41198
41199         * modules/binary-io (License): Relicense under LGPL.
41200         * modules/pipe2 (License): Likewise.
41201
41202 2009-08-22  Bruno Haible  <bruno@clisp.org>
41203
41204         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41205         return value.
41206         * lib/pipe-filter-gi.c (filter_init): Likewise.
41207         Reported by Eric Blake.
41208
41209 2009-08-22  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41212         * modules/pipe (Depends-on): Add pipe2.
41213
41214 2009-08-22  Bruno Haible  <bruno@clisp.org>
41215
41216         Tests for module 'pipe2'.
41217         * modules/pipe2-tests: New file.
41218         * tests/test-pipe2.c: New file.
41219
41220         New module 'pipe2'.
41221         * lib/unistd.in.h (pipe2): New declaration.
41222         * lib/pipe2.c: New file.
41223         * m4/pipe2.m4: New file.
41224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41225         HAVE_PIPE2.
41226         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41227         * modules/pipe2: New file.
41228         * doc/glibc-functions/pipe2.texi: Mention the new module.
41229
41230 2009-08-22  Bruno Haible  <bruno@clisp.org>
41231
41232         Reference some new glibc functions.
41233         * doc/glibc-functions/accept4.texi: New file.
41234         * doc/glibc-functions/dup3.texi: New file.
41235         * doc/glibc-functions/mkostemp.texi: New file.
41236         * doc/glibc-functions/pipe2.texi: New file.
41237         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41238         (Glibc sys/socket.h): Refer to accept4.
41239         (Glibc unistd.h): Refer to dup3, pipe2.
41240         Reported by Eric Blake.
41241
41242 2009-08-22  Jim Meyering  <meyering@redhat.com>
41243             Bruno Haible  <bruno@clisp.org>
41244
41245         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41246         This makes it so packages using automake-1.11's silent-rules option
41247         can print e.g., a single "GEN    configmake.h" line, rather than
41248         the 30+ statements that perform the job.  If you want to see the
41249         actual commands, you can still run "make V=1".
41250         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41251         so that make output is abbreviated when those variables are defined
41252         appropriately.
41253         * modules/argz: Likewise.
41254         * modules/arpa_inet: Likewise.
41255         * modules/byteswap: Likewise.
41256         * modules/configmake: Likewise.
41257         * modules/dirent: Likewise.
41258         * modules/errno: Likewise.
41259         * modules/fcntl: Likewise.
41260         * modules/float: Likewise.
41261         * modules/fnmatch: Likewise.
41262         * modules/getopt-posix: Likewise.
41263         * modules/glob: Likewise.
41264         * modules/iconv_open: Likewise.
41265         * modules/inttypes: Likewise.
41266         * modules/localcharset: Likewise.
41267         * modules/locale: Likewise.
41268         * modules/math: Likewise.
41269         * modules/netdb: Likewise.
41270         * modules/netinet_in: Likewise.
41271         * modules/poll: Likewise.
41272         * modules/posix_spawnp-tests: Likewise.
41273         * modules/sched: Likewise.
41274         * modules/search: Likewise.
41275         * modules/selinux-h: Likewise.
41276         * modules/signal: Likewise.
41277         * modules/spawn: Likewise.
41278         * modules/stdarg: Likewise.
41279         * modules/stdbool: Likewise.
41280         * modules/stddef: Likewise.
41281         * modules/stdint: Likewise.
41282         * modules/stdio: Likewise.
41283         * modules/stdlib: Likewise.
41284         * modules/string: Likewise.
41285         * modules/strings: Likewise.
41286         * modules/sys_file: Likewise.
41287         * modules/sys_ioctl: Likewise.
41288         * modules/sys_select: Likewise.
41289         * modules/sys_socket: Likewise.
41290         * modules/sys_stat: Likewise.
41291         * modules/sys_time: Likewise.
41292         * modules/sys_times: Likewise.
41293         * modules/sys_utsname: Likewise.
41294         * modules/sys_wait: Likewise.
41295         * modules/sysexits: Likewise.
41296         * modules/time: Likewise.
41297         * modules/unistd: Likewise.
41298         * modules/wchar: Likewise.
41299         * modules/wctype: Likewise.
41300
41301 2009-08-22  Jim Meyering  <meyering@redhat.com>
41302
41303         announce-gen: detect write failure
41304         * build-aux/announce-gen: Add Coda at end.
41305         Remove equivalent-but-more-verbose block at top.
41306
41307 2009-08-19  Akim Demaille  <demaille@gostai.com>
41308
41309         bootstrap: --help to stdout.
41310         * bootstrap (usage): Don't send --help to stderr.
41311         Use a here doc instead of a long string.
41312
41313 2009-08-21  Eric Blake  <ebb9@byu.net>
41314
41315         test-popen-safer: split from test-popen
41316         * tests/test-popen.c (main): Move...
41317         * tests/test-popen.h: ...into new file.
41318         * tests/test-popen-safer2.c: New file.
41319         * modules/popen-tests (Files): Add test-popen.h.
41320         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41321         Suggested by Bruno Haible.
41322
41323         test-fcntl-safer: split from test-open
41324         * tests/test-open.c (main): Move...
41325         * tests/test-open.h: ...into new file.
41326         * tests/test-fcntl-safer.c: New file.
41327         * modules/open-tests (Files): Add test-open.h.
41328         * modules/fcntl-safer-tests: New file.
41329         Suggested by Bruno Haible.
41330
41331         test-fopen-safer: split from test-fopen
41332         * tests/test-fopen.c (main): Move...
41333         * tests/test-fopen.h: ...into new file.
41334         * tests/test-fopen-safer.c: New file.
41335         * modules/fopen-tests (Files): Add test-fopen.h.
41336         * modules/fopen-safer-tests: New file.
41337         Suggested by Bruno Haible.
41338
41339 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41340
41341         popen-safer: test O_CLOEXEC at run-time.
41342         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41343
41344 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41345
41346         fcntl: move more flags to the header
41347         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41348         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41349         * lib/fcntl.in.h: Do both things here.
41350
41351 2009-08-21  Jim Meyering  <meyering@redhat.com>
41352
41353         consistently remove $@-t before redirecting to it
41354         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41355         * modules/alloca-opt: Likewise.
41356         * modules/byteswap: Likewise.
41357         * modules/fnmatch: Likewise.
41358         * modules/getopt-posix: Likewise.
41359         * modules/glob: Likewise.
41360         * modules/poll: Likewise.
41361         * modules/posix_spawnp-tests: Likewise.
41362         * modules/sys_socket: Likewise.
41363         * modules/sysexits: Likewise.
41364
41365 2009-08-21  Eric Blake  <ebb9@byu.net>
41366
41367         popen: simplify access to original popen
41368         * lib/popen.c (rpl_popen): No need to worry about popen being a
41369         macro.
41370         Reported by Bruno Haible.
41371
41372 2009-08-20  Eric Blake  <ebb9@byu.net>
41373
41374         build: avoid some compiler warnings
41375         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41376         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41377         type.
41378         (new_exclude_segment, excluded_file_pattern_p)
41379         (excluded_file_name_p): Reduce scope.
41380         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41381         old-style declaration.
41382
41383 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41384
41385         * tests/test-exclude1.sh: Handle Windows EOL.
41386         * tests/test-exclude2.sh: Likewise.
41387         * tests/test-exclude3.sh: Likewise.
41388         * tests/test-exclude4.sh: Likewise.
41389         * tests/test-exclude5.sh: Likewise.
41390         * tests/test-exclude6.sh: Likewise.
41391         * tests/test-exclude7.sh: Likewise.
41392
41393 2009-08-19  Akim Demaille  <demaille@gostai.com>
41394
41395         bootstrap: find sha1sum when named gsha1sum.
41396         * bootstrap (find_tool): New.
41397         ($SHA1SUM): New.
41398         Use it.
41399
41400 2009-08-20  Jim Meyering  <meyering@redhat.com>
41401
41402         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41403         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41404         expression that converts "." in a file name to "\." in the resulting
41405         regexp.  Start with a dummy statement, so that prior shell variable
41406         definitions are expanded portably.  Reported by Simon Josefsson.
41407
41408 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41409
41410         Fix polling for writeability of a screen buffer.
41411         * lib/poll.c: Distinguish input and screen buffers for the
41412         Win32 implementation.
41413         * lib/select.c: Likewise.
41414
41415 2009-08-19  Eric Blake  <ebb9@byu.net>
41416
41417         popen-safer: prevent popen from clobbering std descriptors
41418         * modules/popen-safer: New file.
41419         * lib/popen-safer.c: Likewise.
41420         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41421         * lib/stdio--.h (popen): Provide override.
41422         * lib/stdio-safer.h (popen_safer): Provide declaration.
41423         * tests/test-popen.c (includes): Partially test this.
41424         * modules/popen-safer-tests: New file, for more tests.
41425         * tests/test-popen-safer.c: Likewise.
41426         * MODULES.html.sh (file stream based Input/Output): Mention it.
41427
41428         tests: test some of the *-safer modules
41429         * modules/fopen-safer (Depends-on): Add fopen.
41430         * modules/fcntl-safer (Depends-on): Add fcntl.
41431         * modules/stdlib-safer (Depends-on): Add stdlib.
41432         (configure.ac): Set indicator.
41433         * modules/unistd-safer (configure.ac): Likewise.
41434         * modules/tmpfile-safer (configure.ac): Likewise.
41435         (Depends-on): Add tmpfile.
41436         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41437         active.
41438         * tests/test-fopen.c (includes): Test safer versions when they are
41439         in use.
41440         * tests/test-open.c (includes): Likewise.
41441
41442         popen: fix cygwin 1.5 bug when stdin closed
41443         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41444         * modules/popen: New file.
41445         * modules/popen-tests: Likewise.
41446         * tests/test-popen.c: Likewise.
41447         * m4/popen.m4: Likewise.
41448         * lib/popen.c: Likewise.
41449         * lib/stdio.in.h (popen): New declaration.
41450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41451         * modules/stdio (Makefile.am): Likewise.
41452         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41453
41454 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41455
41456         maint.mk: give full control over update-copyright exclusions
41457         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41458         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41459         (update-copyright): Don't force inclusion of top-level
41460         ChangeLog.  Don't force exclusion of all COPYING files, but make
41461         them the default exclusion instead.
41462
41463 2009-08-16  Bruno Haible  <bruno@clisp.org>
41464
41465         Fix test failures on Solaris 10.
41466         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41467         tests when Solaris iconv() is used.
41468         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41469         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41470         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41471         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41472         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41473
41474 2009-08-16  Bruno Haible  <bruno@clisp.org>
41475
41476         Fix test failures on Solaris 10.
41477         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41478         'tr' program and pass it as first argument.
41479         * tests/test-pipe-filter-gi1.sh: Likewise.
41480         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41481         program as first argument.
41482         * tests/test-pipe-filter-gi1.c (main): Likewise.
41483
41484 2009-08-16  Eric Blake  <ebb9@byu.net>
41485
41486         fpurge: fix previous commits
41487         * modules/fpurge (Makefile.am): Make replacement conditional,
41488         partially reverting 2007-04-29 change; missed in previous
41489         attempt.
41490         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41491         is missing.
41492
41493 2009-08-16  Bruno Haible  <bruno@clisp.org>
41494
41495         Clarify fpurge's effect on the file position.
41496         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41497         * tests/test-fpurge.c (main): Make a second pass for checking the file
41498         position.
41499
41500 2009-08-16  Bruno Haible  <bruno@clisp.org>
41501
41502         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41503         declaration of fpurge is missing.
41504         * tests/test-fpurge.c (main): Check that the file has not more contents
41505         than expected. Close the file before removing it.
41506
41507 2009-08-15  Eric Blake  <ebb9@byu.net>
41508
41509         fpurge: don't wrap working cygwin implementation
41510         * lib/fpurge.c (fpurge): Fix comment typo.
41511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41512         1.7 to avoid replacement.
41513         * tests/test-fpurge.c (main): Enhance test.
41514
41515 2009-08-15  Eric Blake  <ebb9@byu.net>
41516         and Jim Meyering  <meyering@redhat.com>
41517
41518         test-update-copyright: skip if perl is insufficient
41519         * tests/test-update-copyright.sh: Failure to run maintainer tool
41520         should not cause testsuite failure on cygwin 1.5.
41521
41522 2009-08-14  Eric Blake  <ebb9@byu.net>
41523
41524         doc: mention more functions added in cygwin 1.7.0
41525         * doc/posix-headers/limits.texi (limits.h): Update for recent
41526         cygwin additions.
41527         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41528         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41529         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41530         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41531         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41532
41533 2009-08-14  Eric Blake  <ebb9@byu.net>
41534
41535         maint.mk: simplify update-copyright rule
41536         * top/maint.mk (update-copyright-local): Delete, and document how
41537         to do it in cfg.mk instead.
41538         (update-copyright-exclude-regexp): Delete, and document how to do
41539         it in .x-update-copyright instead.
41540         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41541         exclude ChangeLog.
41542
41543 2009-08-14  Bruno Haible  <bruno@clisp.org>
41544
41545         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41546
41547 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41548
41549         maint.mk: support update-copyright-env
41550         * top/maint.mk (update-copyright-env): Define place-holder.
41551         (update-copyright): Expand $(update-copyright-env) before
41552         invoking update-copyright.
41553
41554 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41555
41556         update-copyright: implement forced reformatting
41557         * build-aux/update-copyright: Implement and document
41558         UPDATE_COPYRIGHT_FORCE.
41559         * tests/test-update-copyright.sh: Test it.
41560
41561 2009-08-14  Eric Blake  <ebb9@byu.net>
41562         and Bruno Haible  <bruno@clisp.org>
41563
41564         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41565         * tests/test-locale.c: Revert previous patch related to NULL.
41566         * tests/test-stdio.c: Likewise.
41567         * tests/test-stdlib.c: Likewise.
41568         * tests/test-string.c: Likewise.
41569         * tests/test-unistd.c: Likewise.
41570         * modules/time-tests (Depends-on): Add verify.
41571         * modules/wchar-tests (Depends-on): Likewise.
41572         * tests/test-time.c: Test for NULL compliance.
41573         * tests/test-wchar.c: Likewise.
41574         * modules/locale (Depends-on): Add stddef.
41575         * modules/stdio (Depends-on): Likewise.
41576         * modules/stdlib (Depends-on): Likewise.
41577         * modules/string (Depends-on): Likewise.
41578         * modules/time (Depends-on): Likewise.
41579         * modules/unistd (Depends-on): Likewise.
41580         * modules/wchar (Depends-on): Likewise.
41581         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41582         * lib/stdlib.in.h (includes): Likewise.
41583         * lib/string.in.h (includes): Likewise.
41584         * lib/time.in.h (includes): Likewise.
41585         * lib/unistd.in.h (includes): Likewise.
41586         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41587         replaced.
41588         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41589         * m4/stddef_h.m4: New file.
41590         * modules/stddef: Likewise.
41591         * lib/stddef.in.h: Likewise.
41592         * modules/stddef-tests: Likewise.
41593         * tests/test-stddef.c: Likewise.
41594         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41595         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41596         * doc/posix-headers/locale.texi (locale.h): Likewise.
41597         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41598         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41599         * doc/posix-headers/string.texi (string.h): Likewise.
41600         * doc/posix-headers/time.texi (time.h): Likewise.
41601         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41602         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41603
41604 2009-08-14  Eric Blake  <ebb9@byu.net>
41605
41606         doc: improve git diff of texinfo files
41607         * .gitattributes: Add rule for *.texi files, with hint on how to
41608         use it.
41609         Copied from m4, and based on a report by Bruno Haible.
41610
41611 2009-08-14  Bruno Haible  <bruno@clisp.org>
41612
41613         Disable multithread support by default on Cygwin 1.5.x for real.
41614         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41615
41616 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41617
41618         update-copyright: much ado about intervals
41619         * build-aux/update-copyright: Implement and document
41620         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41621         of copyright year intervals.
41622         Also, document UPDATE_COPYRIGHT_YEAR.
41623         * tests/test-update-copyright.sh: Test it.
41624
41625         update-copyright: convert 2-digit to 4-digit years
41626         * build-aux/update-copyright: Implement and document.
41627         * tests/test-update-copyright.sh: Update.
41628
41629 2009-08-14  Jim Meyering  <meyering@redhat.com>
41630
41631         test-exclude: avoid coreutils "make check" failure
41632         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41633         just as in test-argmatch.c.
41634
41635 2009-08-13  Eric Blake  <ebb9@byu.net>
41636
41637         test-dup2: fix bad assumption
41638         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41639         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41640
41641         test-version-etc: fix CRLF portability issue
41642         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41643         recognize \r.
41644         * tests/test-argp-version-etc-1.sh: Likewise.
41645
41646         getopt: update client modules
41647         * modules/argp (Depends-on): Use getopt-gnu.
41648         * modules/git-merge-changelog (Depends-on): Likewise.
41649         * modules/long-options (Depends-on): Likewise.
41650         * modules/xstrtol (Depends-on): Likewise.
41651
41652 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41653
41654         * tests/test-version-etc.sh: Don't fail on different
41655         project/version.  Don't fail on CRLF differences.  Rewrite to use
41656         multiple -e instead of multiple sed forks, suggested by Eric Blake
41657         <ebb9@byu.net>.
41658         * tests/test-argp-version-etc-1.sh: Likewise.
41659
41660 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41661
41662         * tests/test-version-etc.sh: Don't fail on different
41663         project/version.
41664
41665 2009-08-12  Bruno Haible  <bruno@clisp.org>
41666
41667         Tests for modules 'getopt-posix', 'getopt-gnu'.
41668         * modules/getopt-posix-tests: New file.
41669         * tests/test-getopt.c: New file.
41670         * tests/test-getopt.h: New file.
41671         * tests/test-getopt_long.h: New file.
41672
41673         New modules 'getopt-posix', 'getopt-gnu'.
41674         * modules/getopt-gnu: New file, renamed from modules/getopt.
41675         * modules/getopt-posix: New file.
41676         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41677         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41678         (gl_GETOPT): Remove macro.
41679         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41680         Disable the test against BSD systems that declare optreset. Test
41681         against mingw bug. Test against lack of support of optional arguments
41682         on many platforms.
41683         * doc/glibc-headers/getopt.texi: Update module name and list of
41684         relevant platforms.
41685         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41686         'getopt-gnu' and more portability problems.
41687         * NEWS: Mention the changes.
41688
41689 2009-08-12  Bruno Haible  <bruno@clisp.org>
41690
41691         Ensure that optarg etc. get declared by <unistd.h>.
41692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41693         AC_USE_SYSTEM_EXTENSIONS.
41694         * modules/getopt (Depends-on): Add 'extensions'.
41695
41696 2009-08-12  Bruno Haible  <bruno@clisp.org>
41697
41698         Avoid test link errors.
41699         * modules/pipe-filter-ii-tests (Makefile.am): Define
41700         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41701         * modules/pipe-filter-gi-tests (Makefile.am): Define
41702         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41704
41705 2009-08-12  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41708         gl_GETOPT_SUBSTITUTE before.
41709         (gl_GETOPT): Use it.
41710         * m4/argp.m4 (gl_ARGP): Update.
41711         Reported by Sergey Poznyakoff.
41712
41713         * m4/getopt.m4: Reorder macros.
41714         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41715         (gl_GETOPT_SUBSTITUTE): Remove macro.
41716
41717 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41718
41719         Minor improvement in gitlog-to-changelog
41720
41721         * build-aux/gitlog-to-changelog: New option `--format' makes
41722         output format string configurable.
41723
41724 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41725
41726         Optimize exclude: use hash tables for non-wildcard patterns.
41727
41728         * lib/exclude.c: Include hash.h and mbuiter.h
41729         (struct exclude_pattern, exclude_segment): New data types.
41730         (struct exclude): Rewrite.
41731         (fnmatch_pattern_has_wildcards): New function.
41732         (new_exclude_segment, free_exclude_segment): New functions.
41733         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41734         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41735         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41736         * modules/exclude: Depend on hash and mbuiter.
41737
41738         * modules/exclude-tests: New file.
41739         * tests/test-exclude.c: New file.
41740         * tests/test-exclude1.sh: New file.
41741         * tests/test-exclude2.sh: New file.
41742         * tests/test-exclude3.sh: New file.
41743         * tests/test-exclude4.sh: New file.
41744         * tests/test-exclude5.sh: New file.
41745         * tests/test-exclude6.sh: New file.
41746         * tests/test-exclude7.sh: New file.
41747
41748 2009-08-12  Bruno Haible  <bruno@clisp.org>
41749
41750         Ensure that getopt() gets declared by <unistd.h>.
41751         * lib/unistd.in.h: Conditionally include getopt.h.
41752         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41753         Set GNULIB_UNISTD_H_GETOPT.
41754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41755         GNULIB_UNISTD_H_GETOPT.
41756         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41757
41758 2009-08-12  Bruno Haible  <bruno@clisp.org>
41759
41760         Clarify logic.
41761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41762         gl_replace_getopt instead of GETOPT_H.
41763
41764 2009-08-12  Bruno Haible  <bruno@clisp.org>
41765
41766         * m4/getopt.m4: Add comments.
41767
41768 2009-08-12  Bruno Haible  <bruno@clisp.org>
41769
41770         Disable multithread support by default on Cygwin 1.5.x.
41771         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41772         set gl_use_threads=no if not specified otherwise.
41773
41774 2009-08-11  Bruno Haible  <bruno@clisp.org>
41775
41776         Avoid compilation error on NetBSD 5.0.
41777         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41778         * tests/test-stdio.c: Likewise.
41779         * tests/test-stdlib.c: Likewise.
41780         * tests/test-string.c: Likewise.
41781         * tests/test-unistd.c: Likewise.
41782         Reported by Greg Troxel <gdt@ir.bbn.com>
41783         at <https://savannah.gnu.org/support/?106973>.
41784
41785 2009-08-11  Bruno Haible  <bruno@clisp.org>
41786
41787         * modules/dup2-tests (Depends-on): Remove close.
41788
41789         Undo 2009-07-19 commit.
41790         * modules/acl-tests (Depends-on): Remove close.
41791         * modules/binary-io-tests (Depends-on): Likewise.
41792         * modules/closein-tests (Depends-on): Likewise.
41793         * modules/flock-tests (Depends-on): Likewise.
41794         * modules/fsync-tests (Depends-on): Likewise.
41795         * modules/lseek-tests (Depends-on): Likewise.
41796         * modules/pipe-tests (Depends-on): Likewise.
41797         * modules/posix_spawn-tests (Depends-on): Likewise.
41798         * modules/posix_spawnp-tests (Depends-on): Likewise.
41799         * modules/stat-time-tests (Depends-on): Likewise.
41800         * modules/yesno-tests (Depends-on): Likewise.
41801
41802 2009-08-10  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41805
41806 2009-08-10  Bruno Haible  <bruno@clisp.org>
41807
41808         Fix a gcc warning.
41809         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41810
41811 2009-08-10  Bruno Haible  <bruno@clisp.org>
41812
41813         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41814         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41815         not only the first time.
41816         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41817         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41818         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41819         is 1, not only the the first time.
41820
41821 2009-08-10  Bruno Haible  <bruno@clisp.org>
41822
41823         Make it possible to use module 'gethostname' without module 'close'.
41824         * lib/unistd.in.h (close): Evoke a link error only if
41825         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41827         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41828         * modules/unistd (Makefile.am): Substitute
41829         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41830         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41831         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41832         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41833         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41834         * modules/sys_ioctl (Makefile.am): Substitute
41835         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41836         * modules/socket (configure.ac): On native Windows, set
41837         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41838         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41839         Reported by Sam Steingold <sds@gnu.org>.
41840
41841 2009-08-10  Bruno Haible  <bruno@clisp.org>
41842
41843         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41844         * modules/ioctl (configure.ac): Likewise.
41845
41846 2009-08-10  Bruno Haible  <bruno@clisp.org>
41847
41848         Avoid collision between gnulib wrapper and libintl wrapper.
41849         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41850         already defined in intl/printf.c.
41851         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41852         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41853
41854 2009-08-09  Bruno Haible  <bruno@clisp.org>
41855
41856         Make <sys/select.h> really self-contained, also on Solaris 10.
41857         * lib/sys_select.in.h: Include <string.h>.
41858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41859         Solaris 10 problem.
41860         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41861         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41862         Reported by Jim Meyering.
41863
41864 2009-08-09  Bruno Haible  <bruno@clisp.org>
41865
41866         Avoid warnings from 'aclocal' that are due to a use of macro name
41867         AM_XGETTEXT_OPTION that is not defined in automake.
41868         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41869         automake.
41870         * modules/error (configure.ac): Likewise.
41871         * modules/propername (configure.ac): Likewise.
41872         * modules/vasprintf (configure.ac): Likewise.
41873         * modules/verror (configure.ac): Likewise.
41874         * modules/xprintf (configure.ac): Likewise.
41875         * modules/xvasprintf (configure.ac): Likewise.
41876
41877 2009-08-08  Bruno Haible  <bruno@clisp.org>
41878
41879         Avoid compilation error in C++ mode.
41880         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41881         Reported by Sam Steingold <sds@gnu.org>.
41882
41883 2009-08-08  Bruno Haible  <bruno@clisp.org>
41884
41885         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41886         for the various Unix platforms.
41887         * doc/posix-headers/limits.texi: Update platforms list regarding
41888         HOST_NAME_MAX.
41889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41890
41891 2009-08-07  Jim Meyering  <meyering@redhat.com>
41892
41893         selinux-at: fix typo in a comment
41894         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41895         Spotted by Paolo Bonzini.
41896
41897         selinux-at: remove redundant m4 code, add documentation
41898         * modules/selinux-at (configure.ac): Remove redundant code.
41899         LIB_SELINUX is already set via the dependent module, selinux-h.
41900         (Include): Add quotes around selinux-at.h.
41901         * lib/selinux-at.h: Add documentation.
41902         Reported by Bruno Haible in
41903         http://marc.info/?l=gnulib-bug&m=124958988300749
41904
41905 2009-08-07  Bruno Haible  <bruno@clisp.org>
41906
41907         Avoid link error on MacOS X 10.3 and 10.4.
41908         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41909         on non-ELF systems.
41910         * lib/argp-pv.c (argp_program_version): Likewise.
41911         Reported by Simon Josefsson.
41912
41913 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41914
41915         * tests/test-version-etc.sh: Use $EXEEXT.
41916
41917 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41918
41919         update-copyright: update documentation to point to maint.mk
41920         * build-aux/update-copyright: Here.
41921
41922 2009-08-06  Jim Meyering  <meyering@redhat.com>
41923
41924         maint.mk: support update-copyright-local
41925         * top/maint.mk (update-copyright-local): Define place-holder.
41926         (update-copyright): Depend on $(update-copyright-local).
41927
41928 2009-08-06  Jim Meyering  <meyering@redhat.com>
41929
41930         selinux-at: new module
41931         Initially written for coreutils, this module will soon be
41932         used by findutils, too.
41933         * MODULES.html.sh [Misc]: Add selinux-at.
41934         * lib/selinux-at.h: New file, from coreutils.
41935         * lib/selinux-at.c: Likewise.
41936         * modules/selinux-at: Likewise.
41937         (License): Change from LGPL to GPL, since it depends
41938         on the GPL'd openat module.
41939
41940         doc: update README
41941         * README: Remove references to cogito.
41942         Remove cvs-repo-updating instructions from 2007.
41943         Don't imply that CVS is better if you have limited disk space.
41944
41945 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41946
41947         update-copyright: support C-style comments
41948         * build-aux/update-copyright: Implement and document.
41949         * tests/test-update-copyright.sh: Test.
41950
41951 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41952
41953         update-copyright: support omitted "(C)"
41954         * build-aux/update-copyright: Implement and document.  Also,
41955         allow variable whitespace before "(C)".
41956         * tests/test-update-copyright.sh: Test.
41957
41958 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41959
41960         update-copyright: don't trip on non-FSF copyright statements
41961         * build-aux/update-copyright: Fix so that the first correctly
41962         formatted FSF copyright statement is recognized no matter what
41963         appears before it.  Update documentation.
41964         * tests/test-update-copyright.sh: Test that.
41965
41966 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41967
41968         update-copyright: clean up code a little
41969         * build-aux/update-copyright: Append "_re" to the name of any
41970         variable holding a regular expression.
41971         Replace "old" and "new" with "stmt" in variable names.
41972         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41973         handled correctly.
41974         Format code more consistently.
41975
41976 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41977
41978         update-copyright-tests: improve portability
41979         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41980         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41981
41982 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41983
41984         update-copyright: support @copyright{} and &copy;
41985         * build-aux/update-copyright: Implement and document.
41986         * tests/test-update-copyright.sh: Test.
41987
41988 2009-08-04  Jim Meyering  <meyering@redhat.com>
41989
41990         update-copyright-tests: correctly test EOL=\r\n handling
41991         * tests/test-update-copyright.sh: Put \r at the end of some lines
41992         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41993
41994         maint.mk: make update-copyright exclusion list more configurable
41995         * top/maint.mk (update-copyright): Default to excluding COPYING,
41996         but allow an override, in case someone does want to update that file.
41997
41998         maint.mk: don't update copyright date in COPYING
41999         * top/maint.mk (update-copyright): Exclude COPYING.
42000
42001         maint.mk: add a copyright-updating rule
42002         * top/maint.mk (update-copyright): New rule.
42003         Derived from coreutils/Makefile.am.
42004
42005         update-copyright: rename some variables
42006         * build-aux/update-copyright: Rename a few variables for clarity.
42007         Tweak syntax.  List Joel E. Denny as coauthor.
42008
42009 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42010
42011         update-copyright: fix bug for 2-digit last year and add tests
42012         * build-aux/update-copyright: Fix bug.
42013         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42014         specified.
42015         * modules/update-copyright-tests: New
42016         * tests/test-update-copyright.sh: New.
42017
42018 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42019
42020         update-copyright: handle leading tabs in line prefix
42021         * build-aux/update-copyright: Count leading tabs as 8 spaces
42022         when computing margin.  This helps with the formatting of
42023         ChangeLogs, for example.
42024         Fix documentation a little.
42025
42026 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42027
42028         update-copyright: support EOL=\r\n
42029         * build-aux/update-copyright: Implement that.
42030
42031 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42032
42033         update-copyright: automatically format copyright statements
42034         * build-aux/update-copyright: Implement that.
42035         Also, be a little more predictable and safer by always failing
42036         when the full copyright format is not perfectly recognized as an
42037         unbroken whole.  Discussed at
42038         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42039         Rewrite documentation.
42040
42041 2009-08-03  Bruno Haible  <bruno@clisp.org>
42042
42043         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42044
42045 2009-08-02  Bruno Haible  <bruno@clisp.org>
42046
42047         Tests for module 'uname'.
42048         * modules/uname-tests: New file.
42049         * tests/test-uname.c: New file.
42050
42051         New module 'uname'.
42052         * lib/uname.c: New file.
42053         * m4/uname.m4: New file.
42054         * modules/uname: New file.
42055         * doc/posix-functions/uname.texi: Mention the new module.
42056
42057 2009-08-02  Bruno Haible  <bruno@clisp.org>
42058
42059         Tests for module 'sys_utsname'.
42060         * modules/sys_utsname-tests: New file.
42061         * tests/test-sys_utsname.c: New file.
42062
42063         New module 'sys_utsname'.
42064         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42065         * m4/sys_utsname_h.m4: New file.
42066         * modules/sys_utsname: New file.
42067         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42068
42069 2009-08-02  Bruno Haible  <bruno@clisp.org>
42070
42071         Implicitly initialize the sockets library.
42072         * lib/gethostname.c: Include sockets.h.
42073         (rpl_gethostname): Invoke gl_sockets_startup.
42074         * lib/socket.c: Include sockets.h.
42075         (rpl_socket): Invoke gl_sockets_startup.
42076         * modules/gethostname (Depends-on): Add sockets.
42077         * modules/socket (Depends-on): Likewise.
42078         * tests/test-poll.c: Don't include sockets.h.
42079         (main): Don't invoke gl_sockets_startup.
42080         * tests/test-select.c: Don't include sockets.h.
42081         (main): Don't invoke gl_sockets_startup.
42082
42083 2009-08-02  Bruno Haible  <bruno@clisp.org>
42084
42085         Allow multiple calls to gl_sockets_startup.
42086         * lib/sockets.c (initialized_sockets_version): New variable.
42087         (gl_sockets_startup): Do nothing if already called for this or a higher
42088         version.
42089         (gl_sockets_cleanup): Reset initialized_sockets_version.
42090
42091 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42092
42093         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42094         different project/version.
42095
42096 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42097             Bruno Haible  <bruno@clisp.org>
42098
42099         Tests for module 'pipe-filter-gi'.
42100         * modules/pipe-filter-gi-tests: New file.
42101         * tests/test-pipe-filter-gi1.sh: New file.
42102         * tests/test-pipe-filter-gi1.c: New file.
42103         * tests/test-pipe-filter-gi2.sh: New file.
42104         * tests/test-pipe-filter-gi2-main.c: New file.
42105         * tests/test-pipe-filter-gi2-child.c: New file.
42106
42107         New module 'pipe-filter-gi'.
42108         * lib/pipe-filter-gi.c: New file.
42109         * modules/pipe-filter-gi: New file.
42110
42111 2009-08-02  Bruno Haible  <bruno@clisp.org>
42112             Paolo Bonzini  <bonzini@gnu.org>
42113
42114         Tests for module 'pipe-filter-ii'.
42115         * modules/pipe-filter-ii-tests: New file.
42116         * tests/test-pipe-filter-ii1.sh: New file.
42117         * tests/test-pipe-filter-ii1.c: New file.
42118         * tests/test-pipe-filter-ii2.sh: New file.
42119         * tests/test-pipe-filter-ii2-main.c: New file.
42120         * tests/test-pipe-filter-ii2-child.c: New file.
42121
42122         New module 'pipe-filter-ii'.
42123         * lib/pipe-filter.h: New file.
42124         * lib/pipe-filter-ii.c: New file.
42125         * lib/pipe-filter-aux.h: New file.
42126         * modules/pipe-filter-ii: New file.
42127
42128 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42129
42130         * lib/gc-libgcrypt.c: Change copyright to FSF.
42131         * lib/gc-gnulib.c: Likewise.
42132
42133 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42134
42135         * lib/gethostname.c: Include limits.h.
42136
42137 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42138             Bruno Haible  <bruno@clisp.org>
42139
42140         Ensure HOST_NAME_MAX as part of the gethostname module.
42141         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42142         define also HOST_NAME_MAX.
42143         * tests/test-gethostname.c: Include <limits.h>.
42144         (main): Check also HOST_NAME_MAX.
42145         * doc/posix-headers/limits.texi: Document the mingw problem.
42146
42147 2009-08-02  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42150         Add comments.
42151
42152 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42153
42154         * lib/gethostname.c: Add Windows wrapper.
42155         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42156         * modules/gethostname: Depend on sys_socket & errno, for also
42157         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42158         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42159
42160 2009-07-31  Jim Meyering  <meyering@redhat.com>
42161
42162         getloadavg: fix symbol name in comment
42163         * lib/getloadavg.c: Correct a typo I introduced when adding
42164         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42165         Matt Kraai spotted the problem.
42166
42167 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42168
42169         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42170         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42171         code also if ! defined N_NAME_POINTER.
42172         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42173         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42174         but the n_name member is a 12-byte array.
42175
42176 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42177
42178         update-copyright: generalize comment handling
42179         * build-aux/update-copyright: Handle copyright statements
42180         within more comment styles.
42181         Document usage.
42182         Report any file with an external copyright holder or parse failure.
42183
42184 2009-07-29  Jim Meyering  <meyering@redhat.com>
42185
42186         mktime: correct setting of REPLACE_MKTIME
42187         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42188
42189         update-copyright: new module
42190         * modules/update-copyright: New file.
42191         * build-aux/update-copyright: New file.
42192         * MODULES.html.sh (maint+release support): Add update-copyright.
42193
42194 2009-07-27  Bruno Haible  <bruno@clisp.org>
42195
42196         Fix compilation error when <ctime> is used and mktime is replaced.
42197         * lib/time.in.h (mktime): New declaration.
42198         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42199         REPLACE_MKTIME instead of defining mktime in config.h.
42200         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42201         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42202         Reported by Ross McFarland <rwmcfa1@neces.com>.
42203
42204 2009-07-27  Bruno Haible  <bruno@clisp.org>
42205
42206         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42207         Reported by Matt Kraai <mkraai@beckman.com>.
42208
42209 2009-07-25  Jim Meyering  <meyering@redhat.com>
42210
42211         maint.mk: avoid warnings about missing files
42212         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42213         diagnostic when .prev-version does not exist.
42214         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42215         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42216         nonexistent cfg.mk.
42217         Suggestions from Simon Josefsson.
42218
42219 2009-07-25  Bruno Haible  <bruno@clisp.org>
42220
42221         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42222         defined as macros. Needed on QNX 6.4.1.
42223         Reported by Matt Kraai <mkraai@beckman.com>.
42224
42225 2009-07-23  Jim Meyering  <meyering@redhat.com>
42226
42227         maint.mk: invoke "make dist" with a working value of XZ_OPT
42228         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42229
42230 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42231
42232         Make fseeko.c compile on QNX.
42233         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42234
42235 2009-07-22  Peter Simons  <simons@cryp.to>
42236
42237         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42238         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42239         * lib/md4.h: Likewise.
42240         * lib/md5.h: Likewise.
42241         * lib/sha1.h: Likewise.
42242         * lib/sha256.h: Likewise.
42243         * lib/sha512.h: Likewise.
42244
42245         tests-sha1: don't assign literal string to 'char *' variable
42246         * tests/test-sha1.c (main): Declare locals with "const" to match
42247         attributes of the right hand side.
42248
42249 2009-07-21  Eric Blake  <ebb9@byu.net>
42250
42251         dup2: fix more mingw problems
42252         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42253         fd to itself.
42254         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42255         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42256         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42257         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42258         care of mingw bugs.
42259
42260 2009-07-21  Jim Meyering  <meyering@redhat.com>
42261
42262         vc-list-files: avoid failure when /bin/sh is dash
42263         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42264         On some Debian based systems, /bin/sh is a symlink to dash, and running
42265         this command would omit the "/" following each 'tests' prefix:
42266           dash -x build-aux/vc-list-files -C . tests
42267         That is because bash and dash work differently:
42268           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42269           bash ok
42270           dash odd
42271
42272 2009-07-21  Eric Blake  <ebb9@byu.net>
42273
42274         dup2-tests: test previous patch
42275         * modules/dup2-tests: New file.
42276         * tests/test-dup2.c: Likewise.
42277         * tests/test-open.c (main): Avoid unspecified behavior.
42278         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42279         test.
42280
42281         dup2: work around mingw and cygwin 1.5 bug
42282         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42284         * modules/unistd (Makefile.am): Substitute it.
42285         * lib/unistd.in.h (dup2): Declare the replacement.
42286         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42287         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42288         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42289         * modules/execute (Depends-on): Add dup2.
42290         * modules/fseterr (Depends-on): Likewise.
42291         * modules/pipe (Depends-on): Likewise.
42292         * modules/posix_spawn-internal (Depends-on): Likewise.
42293
42294 2009-07-21  Bruno Haible  <bruno@clisp.org>
42295
42296         * modules/.gitattributes: New file.
42297
42298 2009-07-20  Bruno Haible  <bruno@clisp.org>
42299
42300         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42301         (main): Use it.
42302
42303 2009-07-20  Eric Blake  <ebb9@byu.net>
42304
42305         test-pipe: make a bit more robust.
42306         * tests/test-pipe.c (myerr): Allow error messages regardless of
42307         what we do to stderr.
42308         (test_pipe): Rearrange to avoid deadlock.
42309         (child_main): Try a larger read, to ensure we avoided deadlock.
42310         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42311         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42312         if misused.
42313
42314 2009-07-19  Jim Meyering  <meyering@redhat.com>
42315
42316         fts: avoid false-positive cycle-detection
42317         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42318         for each new command line argument.
42319
42320 2009-07-19  Bruno Haible  <bruno@clisp.org>
42321
42322         Fix build error on mingw with the modules sys_select and unistd.
42323         * modules/acl-tests (Depends-on): Add close.
42324         * modules/binary-io-tests (Depends-on): Likewise.
42325         * modules/closein-tests (Depends-on): Likewise.
42326         * modules/flock-tests (Depends-on): Likewise.
42327         * modules/fsync-tests (Depends-on): Likewise.
42328         * modules/lseek-tests (Depends-on): Likewise.
42329         * modules/pipe-tests (Depends-on): Likewise.
42330         * modules/posix_spawn-tests (Depends-on): Likewise.
42331         * modules/posix_spawnp-tests (Depends-on): Likewise.
42332         * modules/stat-time-tests (Depends-on): Likewise.
42333         * modules/yesno-tests (Depends-on): Likewise.
42334
42335 2009-07-19  Bruno Haible  <bruno@clisp.org>
42336
42337         Unify conditionals.
42338         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42339         macros, not at the compiler macros.
42340         * lib/pipe.c: Likewise.
42341         * lib/execute.c: Likewise.
42342         * lib/spawni.c: Likewise.
42343
42344 2009-07-19  Bruno Haible  <bruno@clisp.org>
42345
42346         Fix handling of closed stdin/stdout/stderr on mingw.
42347         * lib/w32spawn.h: Include unistd.h.
42348         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42349         file descriptor with O_NOINHERIT flag.
42350         (fd_safer_noinherit): New function, based on fd-safer.c.
42351         (dup_safer_noinherit): New function, based on dup-safer.c.
42352         (undup_safer_noinherit): New function.
42353         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42354         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42355         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42356         instead of fd_safer.
42357         * tests/test-pipe.c: Include <windows.h>.
42358         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42359         result.
42360
42361         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42362         from main.
42363         (test_pipe): Pass an extra argument for disambiguation.
42364         (main): Invoke parent_main or child_main.
42365
42366         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42367         consistently.
42368
42369 2009-07-18  Eric Blake  <ebb9@byu.net>
42370
42371         test-pipe: fix mingw build
42372         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42373
42374 2009-07-18  Bruno Haible  <bruno@clisp.org>
42375
42376         * modules/pipe-tests (Makefile.am): Fix typo.
42377
42378 2009-07-18  Eric Blake  <ebb9@byu.net>
42379
42380         error: fix mingw build
42381         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42382         Reported by Bruno Haible.
42383
42384         error: avoid undefined use of stdout
42385         * lib/error.c (error, error_at_line): Check that fd 1 is open
42386         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42387         is handling faults and the close_stdout module wants to report the
42388         detection of closed stdout as an error.
42389
42390 2009-07-17  Eric Blake  <ebb9@byu.net>
42391
42392         pipe: be robust in face of closed fds
42393         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42394         should cause child to misbehave.
42395         * modules/pipe-tests: New module.
42396         * tests/test-pipe.c: New file.
42397         * tests/test-pipe.sh: New file.
42398         Reported by Akim Demaille.
42399
42400 2009-07-14  Bruno Haible  <bruno@clisp.org>
42401
42402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42403         Reported by anonymous kc.
42404
42405 2009-07-07  Jim Meyering  <meyering@redhat.com>
42406
42407         maint.mk: don't look for translatable strings in *.m4 or *.mk
42408         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42409         when searching for translatable strings.
42410
42411 2009-07-05  Jim Meyering  <meyering@redhat.com>
42412
42413         remove superfluous parentheses in STREQ definition
42414         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42415         * lib/getugroups.c (STREQ): Likewise.
42416         * lib/fnmatch.c (STREQ): Likewise.
42417         Spotted by Bruno Haible.
42418
42419 2009-07-04  Jim Meyering  <meyering@redhat.com>
42420
42421         argv-iter: new module
42422         * MODULES.html.sh: Add argv-iter.
42423         * lib/argv-iter.c, lib/argv-iter.h: New files.
42424         * modules/argv-iter: New file.
42425         * modules/argv-iter-tests: New file.
42426         * tests/test-argv-iter.c: Test it.
42427
42428 2009-07-04  Bruno Haible  <bruno@clisp.org>
42429
42430         Fix assertion.
42431         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42432         contains more exact copies of a given entry than file2, leave the extra
42433         copies unpaired rather than aborting.
42434         Reported by Eric Blake.
42435
42436 2009-07-02  Bruno Haible  <bruno@clisp.org>
42437
42438         Speedup git-merge-changelog for git cherry-pick.
42439         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42440         (entries_mapping_get): New function, extracted from compute_mapping.
42441         (entries_mapping_reverse_get): New function.
42442         (compute_mapping): Add a 'full' argument. Return the result in a
42443         'struct entries_mapping'.
42444         (main): Update. Access the mappings through entries_mapping_get.
42445         Reported by Eric Blake.
42446
42447 2009-07-02  Bruno Haible  <bruno@clisp.org>
42448
42449         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42450         best_i.
42451
42452 2009-07-02  Bruno Haible  <bruno@clisp.org>
42453
42454         Speed up approximate search for matching ChangeLog entries.
42455         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42456         argument. Call fstrcmp_bounded instead of fstrcmp.
42457         (compute_mapping, try_split_merged_entry, main): Update callers.
42458
42459 2009-07-02  Bruno Haible  <bruno@clisp.org>
42460
42461         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42462
42463 2009-06-30  Bruno Haible  <bruno@clisp.org>
42464
42465         Reduce the number of uc_is_cased calls.
42466         * lib/unicase.h (casing_suffix_context_t): Add
42467         'first_char_except_ignorable' field.
42468         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42469         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42470         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42471         Update initializer.
42472         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42473         case-ignorable characters.
42474         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42475         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42476         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42477         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42478         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42479
42480 2009-06-30  Bruno Haible  <bruno@clisp.org>
42481
42482         Tests for module 'unicase/ignorable'.
42483         * modules/unicase/ignorable-tests: New file.
42484         * tests/unicase/test-ignorable.c: New file, generated by
42485         gen-uni-tables.
42486
42487         Tests for module 'unicase/cased'.
42488         * modules/unicase/cased-tests: New file.
42489         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42490         * tests/unicase/test-predicate-part1.h: New file, derived from
42491         tests/unictype/test-predicate-part1.h.
42492         * tests/unicase/test-predicate-part2.h: New file, same as
42493         tests/unictype/test-predicate-part2.h.
42494
42495         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42496         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42497         (output_casing_properties): New function.
42498         (main): Call it.
42499         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42500         * lib/unicase/cased.c: Include unictype/bitmap.h.
42501         (uc_is_cased): Define through a bitmap lookup.
42502         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42503         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42504         (uc_is_case_ignorable): Define through a bitmap lookup.
42505         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42506         lib/unictype/bitmap.h.
42507         (Depends-on): Add inline. Clean up.
42508         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42509         lib/unictype/bitmap.h.
42510         (Depends-on): Add inline. Clean up.
42511         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42512         recognition.
42513         * tests/unicase/test-u16-tolower.c (main): Likewise.
42514         * tests/unicase/test-u32-tolower.c (main): Likewise.
42515
42516 2009-06-30  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42519         * lib/unicase/u16-casemap.c: Likewise.
42520         * lib/unicase/u32-casemap.c: Likewise.
42521
42522 2009-06-29  Bruno Haible  <bruno@clisp.org>
42523
42524         Define u32_casefold as a wrapper around u32_ct_casefold.
42525         * lib/unicase/u32-casefold.c: Update.
42526         * modules/unicase/u32-casefold (Depends-on): Add
42527         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42528         unicase/empty-suffix-context. Clean up.
42529
42530         Define u16_casefold as a wrapper around u16_ct_casefold.
42531         * lib/unicase/u16-casefold.c: Update.
42532         * modules/unicase/u16-casefold (Depends-on): Add
42533         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42534         unicase/empty-suffix-context. Clean up.
42535
42536         Define u8_casefold as a wrapper around u8_ct_casefold.
42537         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42538         * lib/unicase/u8-casefold.c: Update.
42539         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42540         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42541
42542         Define u32_totitle as a wrapper around u32_ct_totitle.
42543         * lib/unicase/u32-totitle.c: Update.
42544         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42545         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42546
42547         Define u16_totitle as a wrapper around u16_ct_totitle.
42548         * lib/unicase/u16-totitle.c: Update.
42549         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42550         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42551
42552         Define u8_totitle as a wrapper around u8_ct_totitle.
42553         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42554         functions.
42555         (FUNC): Delegate to U_CT_TOTITLE.
42556         * lib/unicase/u8-totitle.c: Update.
42557         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42558         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42559
42560         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42561         invocation.
42562         * modules/unicase/u32-tolower (Depends-on): Add
42563         unicase/empty-prefix-context, unicase/empty-suffix-context.
42564
42565         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42566         invocation.
42567         * modules/unicase/u16-tolower (Depends-on): Add
42568         unicase/empty-prefix-context, unicase/empty-suffix-context.
42569
42570         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42571         * modules/unicase/u8-tolower (Depends-on): Add
42572         unicase/empty-prefix-context, unicase/empty-suffix-context.
42573
42574         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42575         invocation.
42576         * modules/unicase/u32-toupper (Depends-on): Add
42577         unicase/empty-prefix-context, unicase/empty-suffix-context.
42578
42579         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42580         invocation.
42581         * modules/unicase/u16-toupper (Depends-on): Add
42582         unicase/empty-prefix-context, unicase/empty-suffix-context.
42583
42584         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42585         * modules/unicase/u8-toupper (Depends-on): Add
42586         unicase/empty-prefix-context, unicase/empty-suffix-context.
42587
42588         New module 'unicase/u32-ct-casefold'.
42589         * lib/unicase/u32-ct-casefold.c: New file.
42590         * modules/unicase/u32-ct-casefold: New file.
42591
42592         New module 'unicase/u16-ct-casefold'.
42593         * lib/unicase/u16-ct-casefold.c: New file.
42594         * modules/unicase/u16-ct-casefold: New file.
42595
42596         New module 'unicase/u8-ct-casefold'.
42597         * lib/unicase/u8-ct-casefold.c: New file.
42598         * lib/unicase/u-ct-casefold.h: New file, derived from
42599         lib/unicase/u-casefold.h.
42600         * modules/unicase/u8-ct-casefold: New file.
42601
42602         New module 'unicase/u32-ct-totitle'.
42603         * lib/unicase/u32-ct-totitle.c: New file.
42604         * modules/unicase/u32-ct-totitle: New file.
42605
42606         New module 'unicase/u16-ct-totitle'.
42607         * lib/unicase/u16-ct-totitle.c: New file.
42608         * modules/unicase/u16-ct-totitle: New file.
42609
42610         New module 'unicase/u8-ct-totitle'.
42611         * lib/unicase/u8-ct-totitle.c: New file.
42612         * lib/unicase/u-ct-totitle.h: New file, derived from
42613         lib/unicase/u-totitle.h.
42614         * modules/unicase/u8-ct-totitle: New file.
42615
42616         New module 'unicase/u32-ct-tolower'.
42617         * lib/unicase/u32-ct-tolower.c: New file.
42618         * modules/unicase/u32-ct-tolower: New file.
42619
42620         New module 'unicase/u16-ct-tolower'.
42621         * lib/unicase/u16-ct-tolower.c: New file.
42622         * modules/unicase/u16-ct-tolower: New file.
42623
42624         New module 'unicase/u8-ct-tolower'.
42625         * lib/unicase/u8-ct-tolower.c: New file.
42626         * modules/unicase/u8-ct-tolower: New file.
42627
42628         New module 'unicase/u32-ct-toupper'.
42629         * lib/unicase/u32-ct-toupper.c: New file.
42630         * modules/unicase/u32-ct-toupper: New file.
42631
42632         New module 'unicase/u16-ct-toupper'.
42633         * lib/unicase/u16-ct-toupper.c: New file.
42634         * modules/unicase/u16-ct-toupper: New file.
42635
42636         New module 'unicase/u8-ct-toupper'.
42637         * lib/unicase/u8-ct-toupper.c: New file.
42638         * modules/unicase/u8-ct-toupper: New file.
42639
42640         Add context arguments to u*_casemap functions.
42641         * lib/unicase/unicasemap.h: Include unicase.h.
42642         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42643         suffix_context arguments.
42644         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42645         functions.
42646         (FUNC): Add prefix_context and suffix_context arguments. Use
42647         uc_is_cased and uc_is_case_ignorable.
42648         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42649         * lib/unicase/u16-casemap.c: Likewise.
42650         * lib/unicase/u32-casemap.c: Likewise.
42651         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42652         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42653         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42654         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42655         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42656         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42657
42658         New module 'unicase/u32-suffix-context'.
42659         * lib/unicase/u32-suffix-context.c: New file.
42660         * modules/unicase/u32-suffix-context: New file.
42661
42662         New module 'unicase/u16-suffix-context'.
42663         * lib/unicase/u16-suffix-context.c: New file.
42664         * modules/unicase/u16-suffix-context: New file.
42665
42666         New module 'unicase/u8-suffix-context'.
42667         * lib/unicase/u8-suffix-context.c: New file.
42668         * lib/unicase/u-suffix-context.h: New file.
42669         * modules/unicase/u8-suffix-context: New file.
42670
42671         New module 'unicase/empty-suffix-context'.
42672         * lib/unicase/empty-suffix-context.c: New file.
42673         * modules/unicase/empty-suffix-context: New file.
42674
42675         New module 'unicase/u32-prefix-context'.
42676         * lib/unicase/u32-prefix-context.c: New file.
42677         * modules/unicase/u32-prefix-context: New file.
42678
42679         New module 'unicase/u16-prefix-context'.
42680         * lib/unicase/u16-prefix-context.c: New file.
42681         * modules/unicase/u16-prefix-context: New file.
42682
42683         New module 'unicase/u8-prefix-context'.
42684         * lib/unicase/u8-prefix-context.c: New file.
42685         * lib/unicase/u-prefix-context.h: New file.
42686         * lib/unicase/context.h: New file.
42687         * modules/unicase/u8-prefix-context: New file.
42688
42689         New module 'unicase/empty-prefix-context'.
42690         * lib/unicase/empty-prefix-context.c: New file.
42691         * modules/unicase/empty-prefix-context: New file.
42692
42693         New module 'unicase/ignorable'.
42694         * lib/unicase/ignorable.c: New file.
42695         * modules/unicase/ignorable: New file.
42696
42697         New module 'unicase/cased'.
42698         * lib/unicase/caseprop.h: New file.
42699         * lib/unicase/cased.c: New file.
42700         * modules/unicase/cased: New file.
42701
42702         New functions for case mapping of substrings.
42703         * lib/unicase.h (casing_prefix_context_t): New type.
42704         (unicase_empty_prefix_context): New variable.
42705         (u8_casing_prefix_context, u16_casing_prefix_context,
42706         u32_casing_prefix_context, u8_casing_prefixes_context,
42707         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42708         declarations.
42709         (casing_suffix_context_t): New type.
42710         (unicase_empty_suffix_context): New variable.
42711         (u8_casing_suffix_context, u16_casing_suffix_context,
42712         u32_casing_suffix_context, u8_casing_suffixes_context,
42713         u16_casing_suffixes_context, u32_casing_suffixes_context,
42714         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42715         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42716         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42717         declarations.
42718
42719 2009-06-28  Jim Meyering  <meyering@redhat.com>
42720
42721         boostrap: indent only with spaces
42722         * build-aux/bootstrap: Indent only with spaces, never TABs.
42723
42724         bootstrap: split long lines
42725         * build-aux/bootstrap: Keep line length < 80.
42726
42727         bootstrap: sync from coreutils
42728         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42729         just as autoreconf does.  Verify a list of prerequisite
42730         package-name,version-number pairs if defined in bootstrap.conf.
42731         Refer to README-prereq, if prerequisites are not satisfied.
42732
42733 2009-06-27  Eric Blake  <ebb9@byu.net>
42734
42735         tests: add test for bogus NULL definition
42736         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42737         * tests/test-stdlib.c: Likewise.
42738         * tests/test-string.c: Likewise.
42739         * tests/test-locale.c: Likewise.
42740         * tests/test-unistd.c: Likewise.
42741         * modules/stdio-tests (Depends-on): Add verify.
42742         * modules/stdlib-tests (Depends-on): Likewise.
42743         * modules/string-tests (Depends-on): Likewise.
42744         * modules/locale-tests (Depends-on): Likewise.
42745         * modules/unistd-tests (Depends-on): Likewise.
42746
42747 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42748
42749         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42750         self-explaining comment.
42751         * m4/selinux-selinux-h: Update serial.
42752         (gl_LIBSELINUX): New macro, adding a warning for missing development
42753         packages to code extracted from...
42754         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42755         Add warning for missing development packages here, too.
42756
42757 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42758
42759         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42760
42761 2009-06-25  Eric Blake  <ebb9@byu.net>
42762
42763         version-etc: fix regression
42764         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42765         gcc.
42766         (version_etc): Use it, to catch bugs with trailing NULL.
42767         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42768         (version_etc_va): Fix logic bug.
42769         * modules/version-etc-tests: Add test.
42770         * tests/test-version-etc.c: New file.
42771         * tests/test-version-etc.sh: Likewise.
42772
42773 2009-06-25  Sam Steingold  <sds@gnu.org>
42774
42775         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42776         mbtowc declaration.
42777
42778 2009-06-25  Eric Blake  <ebb9@byu.net>
42779
42780         fpurge: migrate into <stdio.h>
42781         * lib/fpurge.h: Delete...
42782         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42783         * lib/fpurge.c (fpurge): Change declaring header.
42784         * modules/fpurge (Files): Drop deleted file.
42785         (Depends-on): Add stdio.
42786         (configure.ac): Set witness.
42787         * modules/stdio (Makefile.am): Support fpurge macros.
42788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42789         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42790         * lib/fflush.c: Update client.
42791         * tests/test-fpurge.c: Likewise.
42792         * NEWS: Mention the change.
42793
42794 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42795
42796         * lib/argp-version-etc.c (program_authors): Add const
42797         qualifier.
42798         * lib/version-etc.c: Fix typos in the comments.
42799         * modules/argp-version-etc: Depends on version-etc.
42800
42801 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42802
42803         argp-version-etc: new module.
42804
42805         * lib/argp-version-etc.c: New file.
42806         * lib/argp-version-etc.h: New file.
42807         * modules/argp-version-etc: New file.
42808         * modules/argp-version-etc-tests: New file.
42809         * tests/test-argp-version-etc.c: New test.
42810         * tests/test-argp-version-etc-1.sh: New test.
42811
42812 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42813
42814         Provide additional interfaces and documentation for version-etc
42815         module.
42816
42817         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42818         interfaces.
42819         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42820         prototypes.
42821
42822 2009-06-24  Bruno Haible  <bruno@clisp.org>
42823
42824         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42825         HAVE_LIB${NAME} macro.
42826         Reported by Sam Steingold <sds@gnu.org>.
42827
42828 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42829
42830         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42831         needed.
42832
42833 2009-06-21  Bruno Haible  <bruno@clisp.org>
42834
42835         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42836         work.
42837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42838         together with LIB${NAME}, LTLIB${NAME}.
42839         Reported by Sam Steingold <sds@gnu.org>.
42840
42841 2009-06-20  Jim Meyering  <meyering@redhat.com>
42842
42843         tests: make sc_require_test_exit_idiom more generic
42844         * top/maint.mk (Exit_witness_file): New overridable variable.
42845         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42846         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42847
42848 2009-06-19  Jim Meyering  <meyering@redhat.com>
42849
42850         hash: reverse order of src/dst parameters in an internal interface
42851         * lib/hash.c (transfer_entries): Reverse order of parameters to
42852         put DST before SRC.  Adjust callers.
42853
42854         tests: test-hash: avoid wholesale duplication
42855         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42856         Instead, use a loop and add a single conditional.
42857
42858         tests: test-hash: allow seed selection via a command line argument
42859         * tests/test-hash.c (get_seed): New function.
42860         (main): Use it.
42861
42862 2009-06-19  Eric Blake  <ebb9@byu.net>
42863
42864         hash: avoid memory leak on allocation failure
42865         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42866         failure.  Factor repeated algorithm...
42867         (transfer_entries): ...into new helper routine.
42868         (hash_delete): React to hash_rehash return value.
42869
42870         hash: reduce memory pressure in hash_rehash no-op case
42871         * lib/hash.c (next_prime): Avoid overflow.
42872         (hash_initialize): Factor bucket size computation...
42873         (compute_bucket_size): ...into new helper function.
42874         (hash_rehash): Use new function and open coding to reduce memory
42875         pressure, and avoid a memory leak in USE_OBSTACK code.
42876         Reported by Jim Meyering.
42877
42878 2009-06-18  Eric Blake  <ebb9@byu.net>
42879
42880         hash: make rotation more obvious
42881         * modules/hash (Depends-on): Add bitrotate and stdint.
42882         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42883         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42884         (SIZE_MAX): Rely on headers for definition.
42885         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42886         (raw_hasher): Use rotr_sz.
42887         Suggested by Jim Meyering.
42888
42889         hash: fix memory leak in last patch
42890         * lib/hash.c (hash_rehash): Avoid memory leak.
42891
42892         hash: avoid no-op rehashing
42893         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42894
42895         hash: provide default callback functions
42896         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42897         (hash_initialize): Use them as defaults.
42898         * tests/test-hash.c (main): Test this.
42899
42900         hash: minor optimization
42901         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42902         when possible.
42903         (hash_initialize): Document this promise.
42904         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42905         * tests/test-hash.c (hash_compare_strings): Test this.
42906
42907 2009-06-18  Bruno Haible  <bruno@clisp.org>
42908
42909         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42910         going to be replaced anyway.
42911
42912 2009-06-18  Bruno Haible  <bruno@clisp.org>
42913
42914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42915         in one place.
42916         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42917         be replaced anyway.
42918
42919 2009-06-18  Eric Blake  <ebb9@byu.net>
42920
42921         hash: check for resize before insertion
42922         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42923         threshold before insertion, so that a pathological hash_rehash
42924         that fills every bucket can still trigger another rehash.
42925
42926 2009-06-18  Jim Meyering  <meyering@redhat.com>
42927
42928         hash-tests: add a loop around the small tests
42929         * tests/test-hash.c (main): Repeat small tests with selected
42930         small initial table sizes.
42931
42932 2009-06-17  Eric Blake  <ebb9@byu.net>
42933
42934         hash: minor cleanups
42935         * lib/hash.h (hash_entry): Make opaque, by moving...
42936         * lib/hash.c (hash_entry): ...here.
42937         (hash_insert): Clarify restrictions on what can be inserted.
42938         (hash_get_next): Clarify when it is safe to remove an element
42939         during traversal.
42940         (check_tuning): Skip verification when tuning is known safe.
42941         (hash_initialize): Clarify restrictions on tuning.
42942
42943 2009-06-17  Jim Meyering  <jim@meyering.net>
42944         and Eric Blake  <ebb9@byu.net>
42945
42946         hash-tests: new module
42947         * modules/hash-tests: New file.
42948         * tests/test-hash.c: New file.
42949
42950 2009-06-17  Eric Blake  <ebb9@byu.net>
42951
42952         strstr-simple: document new module
42953         * MODULES.html.sh: Document new module.
42954
42955         strstr, strcasestr: replace on platforms with broken memchr
42956         * modules/strstr: Split into...
42957         * modules/strstr-simple: ...new module that does not care about
42958         performance, but does care about glibc bug.
42959         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42960         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42961         if platform memchr is broken, per Debian bug 521737.
42962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42963         memchr.
42964         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42965         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42966         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42967         * modules/mountlist (Depends-on): Add strstr-simple.
42968         * modules/gen-uni-tables (Depends-on): Likewise.
42969         * modules/argz (Depends-on): Add strstr.
42970
42971 2009-06-17  Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/posix_spawn-internal (Depends-on): Add errno.
42974
42975 2009-06-17  Bruno Haible  <bruno@clisp.org>
42976
42977         Define missing ESTALE on Interix 3.5.
42978         * lib/errno.in.h (ESTALE): Assign a value if missing.
42979         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42980         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42981         missing.
42982         * doc/posix-headers/errno.texi: Mention the Interix bug.
42983         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42984
42985 2009-06-15  Eric Blake  <ebb9@byu.net>
42986
42987         memchr, memchr2: add valgrind exception
42988         * lib/memchr.valgrind: New file.
42989         * lib/memchr2.valgrind: New file.
42990         * modules/memchr (Files): Distribute valgrind file.
42991         * modules/memchr2 (Files): Likewise.
42992
42993         docs: memchr is no longer obsolete
42994         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42995         * lib/string.in.h (memchr): Simplify logic.
42996
42997 2009-06-14  Jim Meyering  <meyering@redhat.com>
42998
42999         link-follow: fix the "checking..." message to not mention trailing slash
43000         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43001         never considered trailing slashes.
43002
43003 2009-06-14  Bruno Haible  <bruno@clisp.org>
43004
43005         * m4/memchr.m4: Mention also the bug on IA-64.
43006         * doc/posix-functions/memchr.texi: Likewise.
43007
43008 2009-06-12  Eric Blake  <ebb9@byu.net>
43009
43010         memchr: detect broken x86_64 and alpha implementations
43011         * modules/memchr-tests (Depends-on): Move mmap detection...
43012         * modules/memchr (Depends-on): ...here.
43013         (configure.ac): Set indicator.
43014         * lib/string.in.h (memchr): Declare replacement.
43015         * modules/string (Makefile.am): Trigger replacement.
43016         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43017         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43018         bugs.
43019         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43020         * modules/getpagesize (License): Relax license.
43021
43022 2009-06-11  Bruno Haible  <bruno@clisp.org>
43023
43024         * lib/idpriv.h: Add more references.
43025
43026 2009-06-08  Bruno Haible  <bruno@clisp.org>
43027
43028         Tests for module 'idpriv-droptemp'.
43029         * modules/idpriv-droptemp-tests: New file.
43030         * tests/test-idpriv-droptemp.sh: New file.
43031         * tests/test-idpriv-droptemp.su.sh: New file.
43032         * tests/test-idpriv-droptemp.c: New file.
43033
43034         New module 'idpriv-droptemp'.
43035         * lib/idpriv-droptemp.c: New file.
43036         * modules/idpriv-droptemp: New file.
43037
43038 2009-06-08  Bruno Haible  <bruno@clisp.org>
43039
43040         Tests for module 'idpriv-drop'.
43041         * modules/idpriv-drop-tests: New file.
43042         * tests/test-idpriv-drop.sh: New file.
43043         * tests/test-idpriv-drop.su.sh: New file.
43044         * tests/test-idpriv-drop.c: New file.
43045
43046         New module 'idpriv-drop'.
43047         * lib/idpriv.h: New file.
43048         * lib-idpriv-drop.c: New file.
43049         * m4/idpriv.m4: New file.
43050         * modules/idpriv-drop: New file.
43051
43052 2009-06-08  Bruno Haible  <bruno@clisp.org>
43053
43054         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43055         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43056         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43057         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43058         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43059         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43060         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43061
43062 2009-06-08  Eric Blake  <ebb9@byu.net>
43063
43064         test-strstr: use memory fence, when possible
43065         * tests/test-strstr.c (main): Use memory fence, in order to be
43066         more likely to trigger Debian bug 521737.
43067         * modules/strstr-tests (Files): Pull in additional files.
43068
43069         memchr: no longer obsolete, for wider field testing
43070         * modules/memchr (Status, Notice): Delete, this module is no
43071         longer obsolete.
43072         * modules/vasnprintf (Depends-on): Add memchr.
43073
43074 2009-06-07  Jim Meyering  <meyering@redhat.com>
43075
43076         hash: declare some functions with the warn_unused_result attribute
43077         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43078
43079 2009-06-07  Bruno Haible  <bruno@clisp.org>
43080
43081         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43082         Reported by Eric Blake.
43083
43084 2009-06-06  Eric Blake  <ebb9@byu.net>
43085
43086         test-alignof: fix typo with long double
43087         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43088         compiler error.
43089
43090 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43091
43092         Escape non-texinfo { and }s.
43093         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43094         markup error.
43095
43096 2009-06-04  Jim Meyering  <meyering@redhat.com>
43097
43098         gitlog-to-changelog: don't infloop on an empty commit log
43099         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43100         Reported by Boris Petersen <transacid@centerim.org>.
43101
43102 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43103
43104         version-etc: extend for packagers
43105         Add three new configure options, intended for packagers:
43106           --with-packager="packager name"
43107           --with-packager-version="packager-specific version"
43108           --with-packager-bug-reports="packager bug reporting"
43109         An example with coreutils:
43110           $ ./configure \
43111             --with-packager=Gentoo \
43112             --with-packager-bug-report=http://bugs.gentoo.org/ \
43113             --with-packager-version="patchset 1.6"
43114           $ ./src/ls --version | head -n2
43115           ls (GNU coreutils) 7.1-dirty
43116           Packaged by Gentoo (patchset 1.6)
43117         Note that the bug reporting info via --help doesn't show up because
43118         coreutils uses its own custom emit_bug_reporting_address() implementation
43119         in src/system.h.  If it didn't, it'd look like:
43120           $ ./src/ls --help | tail -n4
43121           Report bugs to <bug-coreutils@gnu.org>.
43122           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43123           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43124           General help using GNU software: <http://www.gnu.org/gethelp/>.
43125         * lib/version-etc.c: Print new information, if provided.
43126         * m4/version-etc.m4: New file.
43127         * modules/version-etc (Files): Add m4/version-etc.m4.
43128         (configure.ac): Add gl_VERSION_ETC.
43129
43130 2009-05-31  Bruno Haible  <bruno@clisp.org>
43131
43132         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43133         and 'int64_t'.
43134         * modules/alignof-tests (Dependencies): Add stdint.
43135         Reported by Eric Blake.
43136
43137 2009-05-31  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43140         restriction due to compiler bugs.
43141         Reported by Eric Blake.
43142
43143 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43144             Bruno Haible  <bruno@clisp.org>
43145
43146         Fix test-alignof failure.
43147         * lib/alignof.h (alignof_slot): New macro.
43148         (alignof_type): New macro, with the same semantics as the previous
43149         'alignof'.
43150         (alignof): Alias to alignof_slot.
43151         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43152         check that the results are usable as constant expressions.
43153
43154 2009-05-31  Bruno Haible  <bruno@clisp.org>
43155
43156         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43157         * tests/test-memchr.c (main): Check that memchr does not read past the
43158         first occurrence of the byte.
43159         * tests/test-strstr.c (main): Update comment.
43160         Suggested by Eric Blake.
43161
43162 2009-05-30  Bruno Haible  <bruno@clisp.org>
43163
43164         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43165         detail how to use dumpbin.
43166         Reported by David Byron <dbyron@dbyron.com>.
43167
43168 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43169
43170         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43171
43172 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43173
43174         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43175
43176 2009-05-28  Bruno Haible  <bruno@clisp.org>
43177
43178         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43179         build-aux/ files.
43180
43181 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43182
43183         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43184
43185 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43186
43187         * gnulib-tool (sed_transform_main_lib_file)
43188         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43189         regexps.
43190
43191 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43192
43193         * tests/test-strstr.c: Add another self-test.
43194         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43195         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43196
43197 2009-05-23  Bruno Haible  <bruno@clisp.org>
43198
43199         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43200         change.
43201
43202 2009-05-21  Bruno Haible  <bruno@clisp.org>
43203
43204         Simplify use of mode_t varargs.
43205         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43206         uses 'mode_t' or 'int'.
43207         * lib/openat.c (openat): Likewise.
43208         * lib/open-safer.c (open_safer): Likewise.
43209         * m4/mode_t.m4: New file.
43210         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43211         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43212         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43213         * modules/open (Files): Add m4/mode_t.m4.
43214         * modules/openat (Files): Likewise.
43215         * modules/fcntl-safer (Files): Likewise.
43216         Suggested by Eric Blake.
43217
43218 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43219
43220         * doc/glibc-functions/fallocate.texi: New file.
43221         * doc/gnulib.texi: Include it.
43222
43223 2009-05-21  Eric Blake  <ebb9@byu.net>
43224             Bruno Haible  <bruno@clisp.org>
43225
43226         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43227         invocations.
43228         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43229
43230 2009-05-21  Eric Blake  <ebb9@byu.net>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43234         include_next. Fix of 2008-11-20 commit.
43235         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43236         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43237         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43238         NEXT_MATH_H.
43239         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43240         instead of NEXT_MATH_H.
43241
43242 2009-05-21  Bruno Haible  <bruno@clisp.org>
43243
43244         Avoid redefinition warnings for SIZE_MAX.
43245         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43246         Reported by Simon Josefsson.
43247
43248 2009-05-21  Bruno Haible  <bruno@clisp.org>
43249
43250         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43251         AC_CACHE_VAL.
43252
43253 2009-05-20  Bruno Haible  <bruno@clisp.org>
43254
43255         Make zeroptr.h work on mingw.
43256         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43257         mprotect.
43258         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43259         * modules/memchr2-tests (configure.ac): Likewise.
43260         * modules/memcmp-tests (configure.ac): Likewise.
43261         * modules/memmem-tests (configure.ac): Likewise.
43262         * modules/memrchr-tests (configure.ac): Likewise.
43263         Reported by Simon Josefsson.
43264
43265 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43266
43267         * tests/test-glob.c: Include string.h for strcmp prototype.
43268
43269 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43270
43271         * modules/getdelim (Depends-on): Add explicit stdint, although it
43272         was implicitly already pulled in via realloc-posix.
43273         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43274
43275 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43276
43277         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43278         G. Christensen" <tgc@jupiterrise.com>.
43279         * m4/sys_socket_h.m4: Check for sa_family_t.
43280         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43281         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43282         * tests/test-sys_socket.c: Check that sa_family_t works.
43283
43284 2009-05-18  Eric Blake  <ebb9@byu.net>
43285
43286         maint.mk: allow gnulib_dir in VPATH build
43287         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43288
43289 2009-05-15  Jim Meyering  <meyering@redhat.com>
43290
43291         maint.mk: Give gnulib_dir a default definition.
43292         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43293         Thus, most packages no longer need to specify this variable in cfg.mk
43294
43295 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43296
43297         rename.m4: fix typos that would make non-mingw cross-configure fail
43298         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43299
43300 2009-05-13  Eric Blake  <ebb9@byu.net>
43301
43302         mmap-anon: avoid out-of-order autoconf expansion
43303         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43304         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43305         * modules/memchr-tests (Depends-on): Add extensions.
43306         * modules/memchr2-tests (Depends-on): Add extensions.
43307         * modules/memcmp-tests (Depends-on): Add extensions.
43308         * modules/memmem-tests (Depends-on): Add extensions.
43309         * modules/memrchr-tests (Depends-on): Add extensions.
43310
43311 2009-05-13  Bruno Haible  <bruno@clisp.org>
43312
43313         Make some tests ISO C 99 compliant.
43314         * tests/zerosize-ptr.h: New file.
43315         * tests/test-memchr.c: Include zerosize-ptr.h.
43316         (main): Use a zero-size object pointer instead of NULL.
43317         * tests/test-memchr2.c: Include zerosize-ptr.h.
43318         (main): Use a zero-size object pointer instead of NULL.
43319         * tests/test-memcmp.c: Include zerosize-ptr.h.
43320         (main): Use a zero-size object pointer instead of NULL.
43321         * tests/test-memmem.c: Include zerosize-ptr.h.
43322         (main): Use a zero-size object pointer instead of NULL.
43323         * tests/test-memrchr.c: Include zerosize-ptr.h.
43324         (main): Use a zero-size object pointer instead of NULL.
43325         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43326         m4/mmap-anon.m4.
43327         (Depends-on): Add getpagesize.
43328         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43329         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43330         m4/mmap-anon.m4.
43331         (Depends-on): Add getpagesize.
43332         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43333         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43334         m4/mmap-anon.m4.
43335         (Depends-on): Add getpagesize.
43336         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43337         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43338         m4/mmap-anon.m4.
43339         (Depends-on): Add getpagesize.
43340         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43341         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43342         m4/mmap-anon.m4.
43343         (Depends-on): Add getpagesize.
43344         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43345
43346 2009-05-12  Bruno Haible  <bruno@clisp.org>
43347
43348         Tests for module 'alignof'.
43349         * modules/alignof-tests: New file.
43350         * tests/test-alignof.c: New file.
43351
43352 2009-05-12  Bruno Haible  <bruno@clisp.org>
43353
43354         Fix alignof macro.
43355         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43356         vendor compilers that are always correct.
43357
43358 2009-05-12  Bruno Haible  <bruno@clisp.org>
43359
43360         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43361         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43362         not whether its fully works.
43363
43364 2009-05-12  Bruno Haible  <bruno@clisp.org>
43365
43366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43367
43368 2009-05-12  Jim Meyering  <meyering@redhat.com>
43369
43370         * top/maint.mk: Adjust backslash alignment.
43371
43372 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43373
43374         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43375
43376 2009-05-11  Eric Blake  <ebb9@byu.net>
43377
43378         argp: avoid undefined behavior
43379         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43380         macros.
43381
43382 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43383
43384         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43385         user.name to prevent git commit from complaining.
43386
43387 2009-05-10  Bruno Haible  <bruno@clisp.org>
43388
43389         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43390         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43391         it rewrites every file name only once.
43392         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43393
43394 2009-05-08  Bruno Haible  <bruno@clisp.org>
43395
43396         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43397         instead of 'max'.
43398
43399 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43400
43401         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43402         sockaddr_storage test.
43403
43404 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43405
43406         * modules/sys_socket (Makefile.am): Substitute
43407         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43408         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43409         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43410         * tests/test-sys_socket.c: Check sockaddr_storage.
43411
43412 2009-05-08  Bruno Haible  <bruno@clisp.org>
43413
43414         New module 'alignof'.
43415         * lib/alignof.h: New file.
43416         * modules/alignof: New file.
43417
43418 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43419             Bruno Haible  <bruno@clisp.org>
43420
43421         Fix test-file-has-acl on FreeBSD.
43422         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43423         mask is implicitly added.
43424         * tests/test-file-has-acl.c: Include <signal.h>.
43425         (main): Terminate the test after 5 seconds.
43426         * modules/acl-tests (configure.ac): Check for alarm function.
43427
43428 2009-05-04  Bruno Haible  <bruno@clisp.org>
43429
43430         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43431         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43432         * modules/errno (configure.ac): Drop AC_REQUIRE.
43433         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43434         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43435
43436 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43437
43438         * modules/glob-tests: New module.
43439         * tests/test-glob.c: Add.
43440
43441 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43442
43443         * modules/fnmatch-tests: New module.
43444         * tests/test-fnmatch.c: Add.
43445
43446 2009-05-04  Eric Blake  <ebb9@byu.net>
43447
43448         maint: make the new no-submodule-changes rule VPATH-safe
43449         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43450
43451 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43452             Bruno Haible  <bruno@clisp.org>
43453
43454         acl: Fix infinite loop on FreeBSD.
43455         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43456         of return value from acl_get_entry.
43457         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43458         Likewise.
43459
43460 2009-05-03  Bruno Haible  <bruno@clisp.org>
43461
43462         * lib/acl-internal.h (acl_entries): Clarify return value.
43463         * lib/acl_entries.c (acl_entries): Likewise.
43464
43465 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43466
43467         Bug fix in acl module.
43468         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43469
43470 2009-05-03  Bruno Haible  <bruno@clisp.org>
43471
43472         Create gperf-generated file in the source dir, not in the build dir.
43473         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43474         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43475         * modules/unicase/locale-language (unicase/locale-languages.h):
43476         Likewise.
43477         * modules/unicase/special-casing (unicase/special-casing-table.h):
43478         Likewise.
43479         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43480         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43481         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43482         Reported by Ralf Wildenhues.
43483
43484 2009-05-03  Bruno Haible  <bruno@clisp.org>
43485
43486         * modules/fnmatch (Description, configure.ac): Taken from
43487         fnmatch-posix.
43488         * modules/fnmatch-posix: Turn into a symbolic reference to the
43489         'fnmatch' module, and deprecate.
43490         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43491
43492 2009-05-03  Bruno Haible  <bruno@clisp.org>
43493
43494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43495         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43496         Reported by Ralf Wildenhues.
43497
43498 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43499
43500         * m4/fnmatch.m4: Fix fnmatch re-define.
43501
43502 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43503
43504         priv-set: new module and tests; adapt write-any-file
43505         * lib/priv-set.c: New file.
43506         * lib/priv-set.h: New file.
43507         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43508         * lib/write-any-file.c: Simplify by using priv-set module.
43509         * m4/priv-set.m4: New file.
43510         * modules/priv-set: New file.
43511         * modules/unlinkdir: Add dependency on priv-set module.
43512         * modules/write-any-file: Likewise.
43513
43514         Tests for module 'priv-set'.
43515         * modules/priv-set-tests: New file.
43516         * tests/test-priv-set.c: New file.
43517
43518 2009-05-03  Jim Meyering  <meyering@redhat.com>
43519             Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43522         use the converted UTF-8 variant of the name instead.
43523
43524 2009-05-03  Jim Meyering  <meyering@redhat.com>
43525
43526         tests: tighten some getdate tests
43527         * tests/test-getdate.c (main): Tighten tests: require equality,
43528         not just greater than.  Set TZ envvar to UTC0.
43529
43530 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43531
43532         getdate: correctly interpret "next monday" when run on a Monday
43533         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43534         that e.g., "next tues" (when run on a tuesday) results in a date
43535         that is one week in the future, and not today's date.
43536         I.e., add a week when the wday is the same as the current one.
43537         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43538         and earlier by Martin Bernreuther and Jan Minář.
43539         * tests/test-getdate.c (main): Check that "next DAY" is always in
43540         the future and that "last DAY" is always in the past.
43541
43542 2009-05-02  Jim Meyering  <meyering@redhat.com>
43543
43544         build: ensure that a release build fails when a submodule is unclean
43545         * top/maint.mk (no-submodule-changes): New rule.
43546         (alpha beta major): Depend on it.
43547
43548 2009-05-02  Bruno Haible  <bruno@clisp.org>
43549
43550         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43552         shell variable gl_fnmatch_required to detect which variant is
43553         requested.
43554         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43555         gl_FUNC_FNMATCH_POSIX.
43556         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43557         exclude fnmatch-posix.
43558
43559 2009-05-02  Bruno Haible  <bruno@clisp.org>
43560
43561         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43562         * modules/mbsrtowcs (License): Change to LGPLv2+.
43563         * modules/strnlen1 (License): Likewise.
43564         Reported by Simon Josefsson.
43565
43566 2009-05-02  Bruno Haible  <bruno@clisp.org>
43567
43568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43569         "cross".
43570         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43571         gnulib-tool was called with option --source-base=lib.
43572
43573 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43574
43575         Use automake *-local hooks without commands, for extensibility.
43576         * modules/localcharset (Makefile.am): Rename install-exec-local
43577         rule to install-exec-localcharset, and make it a prerequisite of
43578         install-exec-local.  Likewise, rename the uninstall-local rule to
43579         uninstall-localcharset, and make it a prerequisite of the former.
43580
43581 2009-05-01  Bruno Haible  <bruno@clisp.org>
43582
43583         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43584         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43585         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43587         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43588         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43589         m4/locale-zh.m4, m4/codeset.m4.
43590
43591         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43592         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43593         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43594         m4/locale-zh.m4.
43595
43596         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43597         REPLACE_WCRTOMB if mbstate_t must be replaced.
43598         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43599         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43600
43601 2009-05-01  Bruno Haible  <bruno@clisp.org>
43602
43603         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43604         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43605         dngettext, dcngettext, textdomain, bindtextdomain,
43606         bind_textdomain_codeset): Undefine before redefining.
43607
43608 2009-04-30  Bruno Haible  <bruno@clisp.org>
43609
43610         Fix bug introduced on 2009-04-25.
43611         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43612         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43613         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43614         is defined.
43615         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43616         is defined.
43617         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43618         is defined.
43619         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43620
43621 2009-04-28  Bruno Haible  <bruno@clisp.org>
43622
43623         Comment tweaks.
43624         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43625         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43626         * lib/unicase.h (u*_casexfrm): Likewise.
43627         Reported by Paolo Bonzini.
43628
43629 2009-04-28  Bruno Haible  <bruno@clisp.org>
43630
43631         Fix a compilation error.
43632         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43633         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43634         Reported by Jim Meyering.
43635
43636 2009-04-27  Bruno Haible  <bruno@clisp.org>
43637
43638         New module 'libunistring'.
43639         * modules/libunistring: New file.
43640         * m4/libunistring.m4: New file.
43641         * MODULES.html.sh (Unicode string functions): Add it.
43642
43643 2009-04-27  Eric Blake  <ebb9@byu.net>
43644
43645         maint.mk: allow package-specific header to provide <config.h>
43646         * top/maint.mk (sc_require_config_h): New variable.
43647         (sc_require_config_h, sc_require_config_h_first): Use it.
43648
43649 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43650
43651         * top/maint.mk (sc_avoid_if_before_free): Except
43652         useless-if-before-free script.
43653
43654 2009-04-27  Eric Blake  <ebb9@byu.net>
43655
43656         maintainer-makefile: depend on all required helper scripts
43657         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43658         useless-if-before-free.
43659         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43660         version, rather than assuming gnulib checkout is available.
43661         Reported by Simen Josefsson.
43662
43663 2009-04-26  Bruno Haible  <bruno@clisp.org>
43664
43665         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43666         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43667         "../" or "..".
43668
43669 2009-04-26  Bruno Haible  <bruno@clisp.org>
43670
43671         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43672         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43673         AC_LIB_HAVE_LINKFLAGS.
43674
43675 2009-04-26  Bruno Haible  <bruno@clisp.org>
43676
43677         Simplify calling convention of u*_conv_from_encoding.
43678         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43679         u32_conv_from_encoding): Expect a resultbuf argument and return the
43680         result directly as a pointer.
43681         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43682         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43683         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43684         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43685         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43686         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43687         Update.
43688         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43689         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43690         * lib/vasnprintf.c (VASNPRINTF): Update.
43691         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43692         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43693         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43694         * NEWS: Mention the change.
43695
43696 2009-04-26  Bruno Haible  <bruno@clisp.org>
43697
43698         Simplify calling convention of u*_conv_to_encoding.
43699         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43700         u32_conv_to_encoding): Expect a resultbuf argument and return the
43701         result directly as a pointer.
43702         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43703         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43704         freeing scaled_offsets if mem_iconveha failed.
43705         * lib/unicase/u-casexfrm.h (FUNC): Update.
43706         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43707         * lib/vasnprintf.c (VASNPRINTF): Update.
43708         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43709         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43710         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43711         * NEWS: Mention the change.
43712
43713 2009-04-26  Bruno Haible  <bruno@clisp.org>
43714
43715         Avoid test failures on AIX and OSF/1.
43716         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43717         malloc(0).
43718         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43719         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43720         Likewise.
43721         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43722         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43723         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43724         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43725         * doc/posix-functions/malloc.texi: Document the portability problem
43726         related to malloc(0).
43727
43728 2009-04-26  Bruno Haible  <bruno@clisp.org>
43729
43730         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43731         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43732         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43733
43734 2009-04-25  Bruno Haible  <bruno@clisp.org>
43735
43736         Avoid link error when creating a namespace clean library.
43737         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43738         as macro with arguments if already defined as an alias.
43739         * lib/signbitf.c (gl_signbitf): Don't undefine.
43740         * lib/signbitd.c (gl_signbitd): Don't undefine.
43741         * lib/signbitl.c (gl_signbitl): Don't undefine.
43742
43743 2009-04-25  Jim Meyering  <meyering@redhat.com>
43744
43745         vc-list-files: fix another quoting bug
43746         * build-aux/vc-list-files: Avoid sed backslash expansion
43747         of pathological directory names.
43748
43749 2009-04-25  Eric Blake  <ebb9@byu.net>
43750
43751         vc-list-files: fix shell quoting error
43752         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43753         timestamp.
43754
43755 2009-04-25  Jim Meyering  <meyering@redhat.com>
43756
43757         vc-list-files: restore lost functionality with subdir argument
43758         * build-aux/vc-list-files: When given a non-"." sub-directory
43759         argument, substitute the $dir/ prefix back onto each resulting name.
43760         Otherwise, coreutils' root_tests check would fail.
43761
43762 2009-04-24  Eric Blake  <ebb9@byu.net>
43763
43764         vc-list-files: ignore git symlinks
43765         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43766         than ls-files, to ignore git symlinks.
43767
43768         maint.mk: import improvements from m4
43769         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43770         (move_if_change): Delete unused macro.
43771         (news-date-check, vc-diff-check): Support VPATH builds.
43772         (announcement): Likewise.  Split --bootstrap-tools list...
43773         (boostrap-tools): ...into separate list, which can be overridden
43774         in cfg.mk.
43775         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43776         requiring dependency on useless-if-before-free module.
43777         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43778         Support VPATH builds.
43779
43780 2009-04-24  Jim Meyering  <meyering@redhat.com>
43781
43782         maint.mk: remove coreutils-specific rules and variables
43783         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43784         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43785         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43786
43787         maint.mk: remove obsolete rule
43788         * top/maint.mk (rel-check): Remove rule.
43789         (WGET, WGETFLAGS): Remove now-unused variables.
43790
43791 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43792
43793         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43794         consistency.
43795
43796         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43797         '$(PATH_SEPARATOR)' instead of ':'.
43798
43799 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43800
43801         * lib/getopt1.c (main): Use 'const' for static array.
43802
43803 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43804
43805         * top/maint.mk: Sync with coreutils.
43806         * NEWS: Explain incompatibilities.
43807
43808 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43809             Bruno Haible  <bruno@clisp.org>
43810
43811         Fix cross-compilation results.
43812         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43813         statement, as third argument of AC_TRY_RUN.
43814         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43815         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43816         Likewise.
43817         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43818         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43819         Likewise.
43820         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43821         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43822         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43823
43824 2009-04-20  Bruno Haible  <bruno@clisp.org>
43825
43826         Avoid test failure on mingw.
43827         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43828
43829 2009-04-20  Bruno Haible  <bruno@clisp.org>
43830
43831         Avoid compilation error on mingw.
43832         * modules/localename-tests (Depends-on): Add locale.
43833
43834 2009-04-19  Bruno Haible  <bruno@clisp.org>
43835
43836         Support for building a shared library on Windows platforms.
43837         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43838         (main): Test the presence of UNINORM_NFC here.
43839         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43840         (main): Test the presence of UNINORM_NFD here.
43841         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43842         (main): Test the presence of UNINORM_NFKC here.
43843         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43844         (main): Test the presence of UNINORM_NFKD here.
43845
43846 2009-04-19  Bruno Haible  <bruno@clisp.org>
43847
43848         Avoid a compiler warning.
43849         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43850         Change type of variable 'sequence'.
43851
43852 2009-04-19  Bruno Haible  <bruno@clisp.org>
43853
43854         * modules/configmake (Makefile.am): When the contents of configmake.h
43855         does not change, arrange to preserve its modification time.
43856
43857 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43858
43859         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43860         gettext domain.
43861
43862 2009-04-16  Jim Meyering  <meyering@redhat.com>
43863
43864         useless-if-before-free: improve conversion code
43865         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43866         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43867
43868 2009-04-14  Bruno Haible  <bruno@clisp.org>
43869
43870         * modules/fcntl (Depends-on): Add extensions.
43871         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43872
43873 2009-04-12  Ben Pfaff  <blp@gnu.org>
43874
43875         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43876         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43877
43878 2009-03-20  Ben Pfaff  <blp@gnu.org>
43879
43880         Make rename replace existing destinations on Windows.
43881         * m4/rename.m4: Add test for Mingw.
43882         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43883         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43884         * doc/posix-functions/rename.texi: Document.
43885
43886 2009-04-10  Bruno Haible  <bruno@clisp.org>
43887
43888         New include file "iconveh.h".
43889         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43890         * lib/striconveh.h: Include it.
43891         (enum iconv_ilseq_handler): Remove definition.
43892         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43893         striconveh.h.
43894         * lib/striconveha.c: Include striconveh.h.
43895         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43896         * modules/striconveh (Files): Add lib/iconveh.h.
43897         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43898         lib/striconveh.h.
43899
43900 2009-04-10  Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/uniconv.h: Update comment.
43903
43904 2009-04-10  Bruno Haible  <bruno@clisp.org>
43905
43906         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43907         always.
43908         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43909         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43910         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43911         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43912         "unistring-notinline.h", so that the function gets defined always.
43913         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43914         * lib/unistr/u8-uctomb.c: Likewise.
43915         * lib/unistr/u16-mbtouc.c: Likewise.
43916         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43917         * lib/unistr/u16-uctomb.c: Likewise.
43918         * lib/unistr/u32-mbtouc.c: Likewise.
43919         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43920         * lib/unistr/u32-uctomb.c: Likewise.
43921
43922 2009-04-10  Bruno Haible  <bruno@clisp.org>
43923
43924         Mark 'utime' obsolete.
43925         * modules/utime (Status, Notice): New sections.
43926         Suggested by Jim Meyering.
43927
43928         Fix cross-compile guess for utime test.
43929         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43930         autoconf.
43931         * doc/posix-functions/utime.texi: Give more precisions.
43932         Reported by Jan <ipif@ymail.com>.
43933
43934 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43935
43936         filevercmp: correct today's change
43937         * lib/filevercmp.c: Also handle coreutils' test inputs.
43938         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43939
43940         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43941         for reporting it.
43942         * lib/filevercmp.c: Special handle for "", "." and "..".
43943         * tests/test-filevercmp.c: Enlarge the set suite.
43944
43945 2009-04-07  Jim Meyering  <meyering@redhat.com>
43946
43947         useless-if-before-free: show how to remove braced useless free, too
43948         * build-aux/useless-if-before-free: still only in a comment, though.
43949
43950 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43951
43952         maint.mk: import changes to syntax-check macros from coreutils
43953         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43954         Use them in the relevant macros.
43955
43956 2009-04-06  Bruno Haible  <bruno@clisp.org>
43957
43958         Fix unportable use of bit-fields.
43959         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43960         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43961         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43962
43963 2009-04-06  Bruno Haible  <bruno@clisp.org>
43964
43965         Avoid test failures on AIX and OSF/1.
43966         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43967         that malloc(0) = NULL.
43968         * tests/unicase/test-u8-tolower.c (check): Likewise.
43969         * tests/unicase/test-u8-totitle.c (check): Likewise.
43970         * tests/unicase/test-u8-toupper.c (check): Likewise.
43971         * tests/unicase/test-u16-casefold.c (check): Likewise.
43972         * tests/unicase/test-u16-tolower.c (check): Likewise.
43973         * tests/unicase/test-u16-totitle.c (check): Likewise.
43974         * tests/unicase/test-u16-toupper.c (check): Likewise.
43975         * tests/unicase/test-u32-casefold.c (check): Likewise.
43976         * tests/unicase/test-u32-tolower.c (check): Likewise.
43977         * tests/unicase/test-u32-totitle.c (check): Likewise.
43978         * tests/unicase/test-u32-toupper.c (check): Likewise.
43979         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43980         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43981         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43982         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43983         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43984         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43985         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43986         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43987         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43988         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43989         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43990         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43991
43992 2009-04-05  Bruno Haible  <bruno@clisp.org>
43993
43994         Work around an autoconf limitation.
43995         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43996         comment line if it would be longer than 3 KB.
43997
43998 2009-04-05  Bruno Haible  <bruno@clisp.org>
43999
44000         Avoid test failure with libiconv-1.13.
44001         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44002         of the expected test results.
44003
44004 2009-04-05  Bruno Haible  <bruno@clisp.org>
44005
44006         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44007         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44008         that it should be installed.
44009
44010 2009-04-05  Bruno Haible  <bruno@clisp.org>
44011
44012         * gnulib-tool: New option --copy-file.
44013         (func_usage): Document it.
44014         (func_dest_tmpfilename): Moved out of func_import.
44015         (func_add_file, func_update_file): New functions, extracted from
44016         func_import.
44017         (func_import): Update.
44018
44019 2009-04-05  Karl Berry  <karl@gnu.org>
44020
44021         * README: prominently mention gnulib-tool.
44022         Rearrange sections so getting the code is near the top.
44023
44024 2009-04-05  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/unicase.h: Mention u*_cmp2.
44027         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44028         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44029         * lib/unicase/ulc-casecmp.c: Likewise.
44030         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44031         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44032         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44033         unistr/u8-cmp.
44034         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44035         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44036         unistr/u16-cmp.
44037         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44038         unistr/u32-cmp.
44039
44040         * lib/uninorm.h: Mention u*_cmp2.
44041         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44042         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44043         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44044         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44045         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44046         unistr/u8-cmp.
44047         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44048         unistr/u16-cmp.
44049         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44050         unistr/u32-cmp.
44051
44052         New module 'unistr/u32-cmp2'.
44053         * lib/unistr/u32-cmp2.c: New file.
44054         * modules/unistr/u32-cmp2: New file.
44055
44056         New module 'unistr/u16-cmp2'.
44057         * lib/unistr/u16-cmp2.c: New file.
44058         * modules/unistr/u16-cmp2: New file.
44059
44060         New module 'unistr/u8-cmp2'.
44061         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44062         * lib/unistr/u8-cmp2.c: New file.
44063         * lib/unistr/u-cmp2.h: New file.
44064         * modules/unistr/u8-cmp2: New file.
44065
44066 2009-04-05  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/unictype.h (uc_property_is_valid): New macro.
44069         * tests/unictype/test-pr_byname.c (main): Use it.
44070
44071         * lib/unistr.h: Doc fixes.
44072         * lib/uniconv.h: Doc fixes.
44073         * lib/unictype.h: Doc fixes.
44074
44075 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44076
44077         Port coreutils 7.2 to Solaris 8.
44078
44079         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44080         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44081         for Solaris 8.  This is a bit of a hack, as it means it's the
44082         caller's responsibility to add -lnsl if needed, but most likely it
44083         won't be needed since only getaddrinfo uses this and getaddrinfo
44084         isn't needed on Solaris 8.
44085
44086         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44087         problem to Solaris 8 encountered with coreutils 7.2, which
44088         resulted in a message "fnmatch.c:292: warning: passing argument 4
44089         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44090         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44091
44092 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44093
44094         * m4/ld-version-script.m4: Add FIXME comment.
44095
44096 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44097
44098         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44099         SOVERSION variable.
44100
44101 2009-04-02  Bruno Haible  <bruno@clisp.org>
44102
44103         * Makefile (info, html, dvi, pdf): Combine the rules.
44104         Suggested by Jim Meyering.
44105
44106 2009-04-01  Bruno Haible  <bruno@clisp.org>
44107
44108         * Makefile (info, html, dvi, pdf): New targets.
44109         Reported by Reuben Thomas <rrt@sc3d.org>.
44110
44111 2009-04-01  Bruno Haible  <bruno@clisp.org>
44112
44113         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44114         can be put into PATH.
44115         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44116
44117 2009-04-01  Bruno Haible  <bruno@clisp.org>
44118
44119         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44120
44121 2009-04-01  Bruno Haible  <bruno@clisp.org>
44122
44123         Rename module 'visibility'.
44124         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44125         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44126         * doc/gnulib.texi: Update.
44127         * MODULES.html.sh (Misc): Update.
44128         * NEWS: Mention the change.
44129
44130 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44131
44132         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44133         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44134         Eric Blake <ebb9@byu.net> for review.
44135         * MODULES.html.sh: Add lib-msvc-compat.
44136         * doc/gnulib.texi: Link to new section.
44137         * m4/ld-output-def.m4: New file.
44138         * doc/ld-output-def.texi: New file.
44139
44140 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44141
44142         Rename ld-version-script to lib-symbol-versions.  Suggested by
44143         Bruno Haible <bruno@clisp.org>.
44144         * modules/ld-version-script: Renamed to lib-symbol-versions.
44145         * doc/ld-version-script.texi: Fix module name.
44146         * MODULES.html.sh: Add lib-symbol-versions.
44147
44148 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44149
44150         * modules/u64-tests: New file.
44151         * tests/test-u64.c: New file.
44152
44153 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44154
44155         * MODULES.html.sh: Mention u64.
44156         * modules/u64: New module.
44157         * modules/crypto/sha512: Depend on u64 module instead of providing
44158         u64.h.
44159
44160 2009-03-27  Eric Blake  <ebb9@byu.net>
44161
44162         test-strerror: make debugging EAI_SYSTEM easier
44163         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44164         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44165         failure was EAI_SYSTEM.
44166
44167 2009-03-25  Bruno Haible  <bruno@clisp.org>
44168
44169         Fix a problem with --enable-relocatable on Solaris 7.
44170         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44171         since 2008-02-24.
44172
44173 2009-03-25  Eric Blake  <ebb9@byu.net>
44174
44175         test-sockets: avoid gcc warning
44176         * tests/test-sockets.c (main): Silence compiler warning.
44177
44178 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44179
44180         New modules nproc, pthread, contributed by Glen Lenker.
44181
44182         * MODULES.html.sh: Add pthread, nproc.
44183         * lib/nproc.c: New file.
44184         * lib/nproc.h: New file.
44185         * lib/pthread.in.h: New file.
44186         * m4/pthread.m4: New file.
44187         * modules/nproc: New file.
44188         * modules/pthread: New file.
44189
44190 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44191
44192         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44193         New variable.
44194
44195 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44196
44197         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44198         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44199         * tests/test-filevercmp.c: Add tests for backup suffixes.
44200
44201 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44202
44203         * modules/stdlib (Depends-on): Add stdint, needed when defining
44204         struct random_data on, for example, HP-UX 10.20.  Reported by
44205         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44206
44207 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44208
44209         * lib/readline.c (readline): Call fflush on stdout after printing
44210         prompt.
44211
44212 2009-03-20  Bruno Haible  <bruno@clisp.org>
44213
44214         Remove dependency from 'close' module to -lws2_32 on native Windows.
44215         * lib/close-hook.h: New file.
44216         * lib/close-hook.c: New file.
44217         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44218         w32sock.h.
44219         (_gl_close_fd_maybe_socket): Remove function.
44220         (rpl_close): Invoke execute_all_close_hooks instead of
44221         _gl_close_fd_maybe_socket.
44222         * lib/sockets.c: Include close-hook.h, w32sock.h.
44223         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44224         (close_sockets_hook): New variable.
44225         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44226         (gl_sockets_cleanup): Unregister it.
44227         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44228         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44229         * modules/close-hook: New file.
44230         * modules/close (Files): Remove lib/w32sock.h.
44231         (Depends-on): Add close-hook.
44232         (Link): Remove section.
44233         * modules/sockets (Files): Add lib/w32sock.h.
44234         (Depends-on): Add close-hook.
44235         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44236         invocation.
44237         * NEWS: Mention that LIB_CLOSE is gone.
44238
44239 2009-03-23  Eric Blake  <ebb9@byu.net>
44240
44241         signal-tests: test previous patch
44242         * tests/test-signal.c: New file.
44243         * modules/signal-tests: Likewise.
44244
44245         signal.h: always support 'volatile sig_atomic_t'
44246         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44247         (gl_SIGNAL_H_DEFAULTS): Add a default.
44248         * modules/signal (Makefile.am): Substitute if needed.
44249         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44250         users can blindly add volatile.
44251         * doc/posix-headers/signal.texi (signal.h): Document it.
44252         Reported by Matthew Woehlke.
44253
44254 2009-03-23  Jim Meyering  <meyering@redhat.com>
44255
44256         pathmax: PATH_MAX: use pathconf only when available
44257         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44258         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44259         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44260         This avoids a link failure in a PSP cross-compilation environment
44261         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44262
44263         * lib/vasnprintf.c (divide): Fix typo in comment.
44264
44265 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44266
44267         * gnulib-tool (func_filter_filelist): Fix comment.
44268
44269 2009-03-20  Bruno Haible  <bruno@clisp.org>
44270
44271         Make sockets.h self-contained.
44272         * lib/sockets.c: Include sockets.h first.
44273         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44274
44275 2009-03-19  Eric Blake  <ebb9@byu.net>
44276
44277         doc: mention more functions added in cygwin 1.7.0
44278         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44279         addition.
44280         * doc/posix-functions/log2f.texi: Likewise.
44281
44282 2009-03-19  Jim Meyering  <meyering@redhat.com>
44283
44284         fsusage: avoid syntax error due to statement-before-declaration
44285         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44286         after all declarations.  Reported by Matthew Woehlke in
44287         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44288
44289 2009-03-18  Eric Blake  <ebb9@byu.net>
44290
44291         build-aux/compile: sync from automake
44292         * build-aux/compile: New file, from automake.
44293         * config/srclist.txt: Mention build-aux/compile.
44294
44295 2009-03-17  Bruno Haible  <bruno@clisp.org>
44296
44297         * lib/git-merge-changelog.c: Fix typo in comment.
44298         Reported by Reuben Thomas <rrt@sc3d.org>.
44299
44300 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44301
44302         * m4/regex.m4: update and improve help for
44303         --without-included-regex.
44304
44305 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44306
44307         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44308         failure on missing include files.
44309
44310 2009-03-17  Eric Blake  <ebb9@byu.net>
44311
44312         doc: mention more functions added in cygwin 1.7.0
44313         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44314         addition.
44315         * doc/posix-functions/fwscanf.texi: Likewise.
44316         * doc/posix-functions/swprintf.texi: Likewise.
44317         * doc/posix-functions/swscanf.texi: Likewise.
44318         * doc/posix-functions/vfwprintf.texi: Likewise.
44319         * doc/posix-functions/vfwscanf.texi: Likewise.
44320         * doc/posix-functions/vswprintf.texi: Likewise.
44321         * doc/posix-functions/vswscanf.texi: Likewise.
44322         * doc/posix-functions/vwprintf.texi: Likewise.
44323         * doc/posix-functions/vwscanf.texi: Likewise.
44324         * doc/posix-functions/wcscasecmp.texi: Likewise.
44325         * doc/posix-functions/wcsdup.texi: Likewise.
44326         * doc/posix-functions/wcsftime.texi: Likewise.
44327         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44328         * doc/posix-functions/wprintf.texi: Likewise.
44329         * doc/posix-functions/wscanf.texi: Likewise.
44330         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44331
44332 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44333
44334         maint.mk: really add $(AM_MAKEFLAGS)
44335         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44336         was inadvertently omitted in the last commit.
44337         Spotted by Bruno Haible.
44338
44339         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44340         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44341         $(AM_MAKEFLAGS)' rather than plain `make'.
44342
44343         gnulib-tool: execute $MAKE not make
44344         * gnulib-tool: Default $MAKE to 'make'.
44345         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44346         than make.  Initialize $MAKE in the do-autobuild script.
44347
44348         gnulib-tool: use $MAKE not make in generated files
44349         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44350         make, in generated files.  Initialize $MAKE in the do-autobuild
44351         script.
44352
44353         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44354
44355         GNUmakefile: disable parallelism only for multiple, recursive targets
44356         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44357         additions in the Makefile.
44358         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44359         by Automake.
44360         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44361         are listed on the command line and at least one of them is
44362         listed in $(ALL_RECURSIVE_TARGETS).
44363
44364 2009-03-14  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44367         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44368         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44369         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44370         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44371         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44372         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44373         unistr/u8-uctomb.
44374         * modules/unistr/u8-strchr (Depends-on): Likewise.
44375         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44376         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44377         unistr/u16-uctomb.
44378         * modules/unistr/u16-strchr (Depends-on): Likewise.
44379         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44380
44381 2009-03-12  Bruno Haible  <bruno@clisp.org>
44382
44383         Work around select() bug on Interix 3.5.
44384         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44385         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44386         * m4/select.m4: New file.
44387         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44388         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44389         * modules/select (Files): Add m4/select.m4.
44390         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44391         * modules/nanosleep (Depends-on): Add select.
44392         * modules/poll (Depends-on): Likewise.
44393         * doc/posix-functions/select.texi: Mention the Interix bug.
44394         Reported by Markus Duft <mduft@gentoo.org>.
44395
44396         * lib/select.c: Renamed from lib/winsock-select.c.
44397         * modules/select (Files): Add lib/select.c, remove
44398         lib/winsock-select.c.
44399         (configure.ac): Update.
44400
44401 2009-03-12  Jim Meyering  <meyering@redhat.com>
44402
44403         avoid gcc warnings about unused macro definitions
44404         * lib/readtokens.c (STREQ): Remove unused definition.
44405         * lib/xmalloc.c (SIZE_MAX): Likewise.
44406         * lib/openat-die.c (N_): Likewise.
44407         * lib/mountlist.c (SIZE_MAX): Remove definition.
44408         Instead, include <stdint.h>.
44409         * lib/readutmp.c: Likewise.
44410         * modules/readutmp (Depends-on): Add stdint.
44411         * modules/mountlist (Depends-on): Add stdint.
44412         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44413
44414 2009-03-10  Bruno Haible  <bruno@clisp.org>
44415
44416         Tests for module 'mbmemcasecoll'.
44417         * modules/mbmemcasecoll-tests: New file.
44418         * tests/test-mbmemcasecoll1.sh: New file.
44419         * tests/test-mbmemcasecoll2.sh: New file.
44420         * tests/test-mbmemcasecoll3.sh: New file.
44421         * tests/test-mbmemcasecoll.c: New file.
44422
44423         New module 'mbmemcasecoll'.
44424         * lib/mbmemcasecoll.h: New file.
44425         * lib/mbmemcasecoll.c: New file.
44426         * modules/mbmemcasecoll: New file.
44427
44428         * tests/test-mbmemcasecmp.h: New file, extracted from
44429         tests/test-mbmemcasecmp.c.
44430         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44431         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44432         (main): Update.
44433         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44434
44435 2009-03-09  Bruno Haible  <bruno@clisp.org>
44436
44437         Tests for module 'mbmemcasecmp'.
44438         * modules/mbmemcasecmp-tests: New file.
44439         * tests/test-mbmemcasecmp1.sh: New file.
44440         * tests/test-mbmemcasecmp2.sh: New file.
44441         * tests/test-mbmemcasecmp3.sh: New file.
44442         * tests/test-mbmemcasecmp.c: New file.
44443
44444         New module 'mbmemcasecmp'.
44445         * lib/mbmemcasecmp.h: New file.
44446         * lib/mbmemcasecmp.c: New file.
44447         * modules/mbmemcasecmp: New file.
44448
44449 2009-03-09  Bruno Haible  <bruno@clisp.org>
44450
44451         Tests for module 'unicase/ulc-casecoll'.
44452         * modules/unicase/ulc-casecoll-tests: New file.
44453         * tests/unicase/test-ulc-casecoll1.sh: New file.
44454         * tests/unicase/test-ulc-casecoll2.sh: New file.
44455         * tests/unicase/test-ulc-casecoll.c: New file.
44456
44457         New module 'unicase/ulc-casecoll'.
44458         * lib/unicase.h (ulc_casecoll): New declaration.
44459         * lib/unicase/ulc-casecoll.c: New file.
44460         * modules/unicase/ulc-casecoll: New file.
44461
44462         New module 'unicase/ulc-casexfrm'.
44463         * lib/unicase.h (ulc_casexfrm): New declaration.
44464         * lib/unicase/ulc-casexfrm.c: New file.
44465         * modules/unicase/ulc-casexfrm: New file.
44466
44467 2009-03-09  Bruno Haible  <bruno@clisp.org>
44468
44469         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44470         invocations.
44471
44472         * m4/mbscasecmp.m4: Remove file.
44473         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44474         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44475
44476         * m4/mbscasestr.m4: Remove file.
44477         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44478         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44479
44480         * m4/mbschr.m4: Remove file.
44481         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44482         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44483
44484         * m4/mbscspn.m4: Remove file.
44485         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44486         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44487
44488         * m4/mbslen.m4: Remove file.
44489         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44490         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44491
44492         * m4/mbsncasecmp.m4: Remove file.
44493         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44494         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44495
44496         * m4/mbsnlen.m4: Remove file.
44497         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44498         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44499
44500         * m4/mbspbrk.m4: Remove file.
44501         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44502         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44503
44504         * m4/mbspcasecmp.m4: Remove file.
44505         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44506         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44507
44508         * m4/mbsrchr.m4: Remove file.
44509         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44510         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44511
44512         * m4/mbssep.m4: Remove file.
44513         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44514         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44515
44516         * m4/mbsspn.m4: Remove file.
44517         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44518         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44519
44520         * m4/mbsstr.m4: Remove file.
44521         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44522         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44523
44524         * m4/mbstok_r.m4: Remove file.
44525         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44526         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44527
44528         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44529
44530         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44531         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44532
44533         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44534
44535 2009-03-08  Bruno Haible  <bruno@clisp.org>
44536
44537         Tests for module 'unicase/ulc-casecmp'.
44538         * modules/unicase/ulc-casecmp-tests: New file.
44539         * tests/unicase/test-ulc-casecmp1.sh: New file.
44540         * tests/unicase/test-ulc-casecmp2.sh: New file.
44541         * tests/unicase/test-ulc-casecmp.c: New file.
44542
44543         New module 'unicase/ulc-casecmp'.
44544         * lib/unicase.h (ulc_casecmp): New declaration.
44545         * lib/unicase/ulc-casecmp.c: New file.
44546         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44547         'const SRC_UNIT *'.
44548         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44549         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44550         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44551         * modules/unicase/ulc-casecmp: New file.
44552
44553         Tests for module 'unicase/u32-is-cased'.
44554         * modules/unicase/u32-is-cased-tests: New file.
44555         * tests/unicase/test-u32-is-cased.c: New file.
44556
44557         Tests for module 'unicase/u16-is-cased'.
44558         * modules/unicase/u16-is-cased-tests: New file.
44559         * tests/unicase/test-u16-is-cased.c: New file.
44560
44561         Tests for module 'unicase/u8-is-cased'.
44562         * modules/unicase/u8-is-cased-tests: New file.
44563         * tests/unicase/test-u8-is-cased.c: New file.
44564         * tests/unicase/test-is-cased.h: New file.
44565
44566         New module 'unicase/u32-is-cased'.
44567         * lib/unicase/u32-is-cased.c: New file.
44568         * modules/unicase/u32-is-cased: New file.
44569
44570         New module 'unicase/u16-is-cased'.
44571         * lib/unicase/u16-is-cased.c: New file.
44572         * modules/unicase/u16-is-cased: New file.
44573
44574         New module 'unicase/u8-is-cased'.
44575         * lib/unicase/u8-is-cased.c: New file.
44576         * lib/unicase/u-is-cased.h: New file.
44577         * modules/unicase/u8-is-cased: New file.
44578
44579         Tests for module 'unicase/u32-is-casefolded'.
44580         * modules/unicase/u32-is-casefolded-tests: New file.
44581         * tests/unicase/test-u32-is-casefolded.c: New file.
44582
44583         Tests for module 'unicase/u16-is-casefolded'.
44584         * modules/unicase/u16-is-casefolded-tests: New file.
44585         * tests/unicase/test-u16-is-casefolded.c: New file.
44586
44587         Tests for module 'unicase/u8-is-casefolded'.
44588         * modules/unicase/u8-is-casefolded-tests: New file.
44589         * tests/unicase/test-u8-is-casefolded.c: New file.
44590         * tests/unicase/test-is-casefolded.h: New file.
44591
44592         New module 'unicase/u32-is-casefolded'.
44593         * lib/unicase/u32-is-casefolded.c: New file.
44594         * modules/unicase/u32-is-casefolded: New file.
44595
44596         New module 'unicase/u16-is-casefolded'.
44597         * lib/unicase/u16-is-casefolded.c: New file.
44598         * modules/unicase/u16-is-casefolded: New file.
44599
44600         New module 'unicase/u8-is-casefolded'.
44601         * lib/unicase/u8-is-casefolded.c: New file.
44602         * modules/unicase/u8-is-casefolded: New file.
44603
44604         Tests for module 'unicase/u32-is-titlecase'.
44605         * modules/unicase/u32-is-titlecase-tests: New file.
44606         * tests/unicase/test-u32-is-titlecase.c: New file.
44607
44608         Tests for module 'unicase/u16-is-titlecase'.
44609         * modules/unicase/u16-is-titlecase-tests: New file.
44610         * tests/unicase/test-u16-is-titlecase.c: New file.
44611
44612         Tests for module 'unicase/u8-is-titlecase'.
44613         * modules/unicase/u8-is-titlecase-tests: New file.
44614         * tests/unicase/test-u8-is-titlecase.c: New file.
44615         * tests/unicase/test-is-titlecase.h: New file.
44616
44617         New module 'unicase/u32-is-titlecase'.
44618         * lib/unicase/u32-is-titlecase.c: New file.
44619         * modules/unicase/u32-is-titlecase: New file.
44620
44621         New module 'unicase/u16-is-titlecase'.
44622         * lib/unicase/u16-is-titlecase.c: New file.
44623         * modules/unicase/u16-is-titlecase: New file.
44624
44625         New module 'unicase/u8-is-titlecase'.
44626         * lib/unicase/u8-is-titlecase.c: New file.
44627         * modules/unicase/u8-is-titlecase: New file.
44628
44629         Tests for module 'unicase/u32-is-lowercase'.
44630         * modules/unicase/u32-is-lowercase-tests: New file.
44631         * tests/unicase/test-u32-is-lowercase.c: New file.
44632
44633         Tests for module 'unicase/u16-is-lowercase'.
44634         * modules/unicase/u16-is-lowercase-tests: New file.
44635         * tests/unicase/test-u16-is-lowercase.c: New file.
44636
44637         Tests for module 'unicase/u8-is-lowercase'.
44638         * modules/unicase/u8-is-lowercase-tests: New file.
44639         * tests/unicase/test-u8-is-lowercase.c: New file.
44640         * tests/unicase/test-is-lowercase.h: New file.
44641
44642         New module 'unicase/u32-is-lowercase'.
44643         * lib/unicase/u32-is-lowercase.c: New file.
44644         * modules/unicase/u32-is-lowercase: New file.
44645
44646         New module 'unicase/u16-is-lowercase'.
44647         * lib/unicase/u16-is-lowercase.c: New file.
44648         * modules/unicase/u16-is-lowercase: New file.
44649
44650         New module 'unicase/u8-is-lowercase'.
44651         * lib/unicase/u8-is-lowercase.c: New file.
44652         * modules/unicase/u8-is-lowercase: New file.
44653
44654         Tests for module 'unicase/u32-is-uppercase'.
44655         * modules/unicase/u32-is-uppercase-tests: New file.
44656         * tests/unicase/test-u32-is-uppercase.c: New file.
44657
44658         Tests for module 'unicase/u16-is-uppercase'.
44659         * modules/unicase/u16-is-uppercase-tests: New file.
44660         * tests/unicase/test-u16-is-uppercase.c: New file.
44661
44662         Tests for module 'unicase/u8-is-uppercase'.
44663         * modules/unicase/u8-is-uppercase-tests: New file.
44664         * tests/unicase/test-u8-is-uppercase.c: New file.
44665         * tests/unicase/test-is-uppercase.h: New file.
44666
44667         New module 'unicase/u32-is-uppercase'.
44668         * lib/unicase/u32-is-uppercase.c: New file.
44669         * modules/unicase/u32-is-uppercase: New file.
44670
44671         New module 'unicase/u16-is-uppercase'.
44672         * lib/unicase/u16-is-uppercase.c: New file.
44673         * modules/unicase/u16-is-uppercase: New file.
44674
44675         New module 'unicase/u8-is-uppercase'.
44676         * lib/unicase/u8-is-uppercase.c: New file.
44677         * modules/unicase/u8-is-uppercase: New file.
44678
44679         New module 'unicase/u32-is-invariant'.
44680         * lib/unicase/u32-is-invariant.c: New file.
44681         * modules/unicase/u32-is-invariant: New file.
44682
44683         New module 'unicase/u16-is-invariant'.
44684         * lib/unicase/u16-is-invariant.c: New file.
44685         * modules/unicase/u16-is-invariant: New file.
44686
44687         New module 'unicase/u8-is-invariant'.
44688         * lib/unicase/u8-is-invariant.c: New file.
44689         * lib/unicase/invariant.h: New file.
44690         * lib/unicase/u-is-invariant.h: New file.
44691         * modules/unicase/u8-is-invariant: New file.
44692
44693         Tests for module 'unicase/u32-casecoll'.
44694         * modules/unicase/u32-casecoll-tests: New file.
44695         * tests/unicase/test-u32-casecoll.c: New file.
44696
44697         Tests for module 'unicase/u16-casecoll'.
44698         * modules/unicase/u16-casecoll-tests: New file.
44699         * tests/unicase/test-u16-casecoll.c: New file.
44700
44701         Tests for module 'unicase/u8-casecoll'.
44702         * modules/unicase/u8-casecoll-tests: New file.
44703         * tests/unicase/test-u8-casecoll.c: New file.
44704
44705         New module 'unicase/u32-casecoll'.
44706         * lib/unicase/u32-casecoll.c: New file.
44707         * modules/unicase/u32-casecoll: New file.
44708
44709         New module 'unicase/u16-casecoll'.
44710         * lib/unicase/u16-casecoll.c: New file.
44711         * modules/unicase/u16-casecoll: New file.
44712
44713         New module 'unicase/u8-casecoll'.
44714         * lib/unicase/u8-casecoll.c: New file.
44715         * lib/unicase/u-casecoll.h: New file.
44716         * modules/unicase/u8-casecoll: New file.
44717
44718         New module 'unicase/u32-casexfrm'.
44719         * lib/unicase/u32-casexfrm.c: New file.
44720         * modules/unicase/u32-casexfrm: New file.
44721
44722         New module 'unicase/u16-casexfrm'.
44723         * lib/unicase/u16-casexfrm.c: New file.
44724         * modules/unicase/u16-casexfrm: New file.
44725
44726         New module 'unicase/u8-casexfrm'.
44727         * lib/unicase/u8-casexfrm.c: New file.
44728         * lib/unicase/u-casexfrm.h: New file.
44729         * modules/unicase/u8-casexfrm: New file.
44730
44731         Tests for module 'unicase/u32-casecmp'.
44732         * modules/unicase/u32-casecmp-tests: New file.
44733         * tests/unicase/test-u32-casecmp.c: New file.
44734
44735         Tests for module 'unicase/u16-casecmp'.
44736         * modules/unicase/u16-casecmp-tests: New file.
44737         * tests/unicase/test-u16-casecmp.c: New file.
44738
44739         Tests for module 'unicase/u8-casecmp'.
44740         * modules/unicase/u8-casecmp-tests: New file.
44741         * tests/unicase/test-u8-casecmp.c: New file.
44742         * tests/unicase/test-casecmp.h: New file.
44743
44744         New module 'unicase/u32-casecmp'.
44745         * lib/unicase/u32-casecmp.c: New file.
44746         * modules/unicase/u32-casecmp: New file.
44747
44748         New module 'unicase/u16-casecmp'.
44749         * lib/unicase/u16-casecmp.c: New file.
44750         * modules/unicase/u16-casecmp: New file.
44751
44752         New module 'unicase/u8-casecmp'.
44753         * lib/unicase/u8-casecmp.c: New file.
44754         * lib/unicase/u-casecmp.h: New file.
44755         * modules/unicase/u8-casecmp: New file.
44756
44757         Tests for module 'unicase/u32-casefold'.
44758         * modules/unicase/u32-casefold-tests: New file.
44759         * tests/unicase/test-u32-casefold.c: New file.
44760
44761         Tests for module 'unicase/u16-casefold'.
44762         * modules/unicase/u16-casefold-tests: New file.
44763         * tests/unicase/test-u16-casefold.c: New file.
44764
44765         Tests for module 'unicase/u8-casefold'.
44766         * modules/unicase/u8-casefold-tests: New file.
44767         * tests/unicase/test-u8-casefold.c: New file.
44768
44769         New module 'unicase/u32-casefold'.
44770         * lib/unicase/u32-casefold.c: New file.
44771         * modules/unicase/u32-casefold: New file.
44772
44773         New module 'unicase/u16-casefold'.
44774         * lib/unicase/u16-casefold.c: New file.
44775         * modules/unicase/u16-casefold: New file.
44776
44777         New module 'unicase/u8-casefold'.
44778         * lib/unicase/u8-casefold.c: New file.
44779         * lib/unicase/u-casefold.h: New file.
44780         * modules/unicase/u8-casefold: New file.
44781
44782         New module 'unicase/tocasefold'.
44783         * lib/unicase/casefold.h: New file.
44784         * lib/unicase/tocasefold.c: New file.
44785         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44786         * modules/unicase/tocasefold: New file.
44787
44788         Tests for module 'unicase/u32-totitle'.
44789         * modules/unicase/u32-totitle-tests: New file.
44790         * tests/unicase/test-u32-totitle.c: New file.
44791
44792         Tests for module 'unicase/u16-totitle'.
44793         * modules/unicase/u16-totitle-tests: New file.
44794         * tests/unicase/test-u16-totitle.c: New file.
44795
44796         Tests for module 'unicase/u8-totitle'.
44797         * modules/unicase/u8-totitle-tests: New file.
44798         * tests/unicase/test-u8-totitle.c: New file.
44799
44800         New module 'unicase/u32-totitle'.
44801         * lib/unicase/u32-totitle.c: New file.
44802         * modules/unicase/u32-totitle: New file.
44803
44804         New module 'unicase/u16-totitle'.
44805         * lib/unicase/u16-totitle.c: New file.
44806         * modules/unicase/u16-totitle: New file.
44807
44808         New module 'unicase/u8-totitle'.
44809         * lib/unicase/u8-totitle.c: New file.
44810         * lib/unicase/u-totitle.h: New file.
44811         * modules/unicase/u8-totitle: New file.
44812
44813         Tests for module 'unicase/u32-tolower'.
44814         * modules/unicase/u32-tolower-tests: New file.
44815         * tests/unicase/test-u32-tolower.c: New file.
44816
44817         Tests for module 'unicase/u16-tolower'.
44818         * modules/unicase/u16-tolower-tests: New file.
44819         * tests/unicase/test-u16-tolower.c: New file.
44820
44821         Tests for module 'unicase/u8-tolower'.
44822         * modules/unicase/u8-tolower-tests: New file.
44823         * tests/unicase/test-u8-tolower.c: New file.
44824
44825         New module 'unicase/u32-tolower'.
44826         * lib/unicase/u32-tolower.c: New file.
44827         * modules/unicase/u32-tolower: New file.
44828
44829         New module 'unicase/u16-tolower'.
44830         * lib/unicase/u16-tolower.c: New file.
44831         * modules/unicase/u16-tolower: New file.
44832
44833         New module 'unicase/u8-tolower'.
44834         * lib/unicase/u8-tolower.c: New file.
44835         * modules/unicase/u8-tolower: New file.
44836
44837         Tests for module 'unicase/u32-toupper'.
44838         * modules/unicase/u32-toupper-tests: New file.
44839         * tests/unicase/test-u32-toupper.c: New file.
44840
44841         Tests for module 'unicase/u16-toupper'.
44842         * modules/unicase/u16-toupper-tests: New file.
44843         * tests/unicase/test-u16-toupper.c: New file.
44844
44845         Tests for module 'unicase/u8-toupper'.
44846         * modules/unicase/u8-toupper-tests: New file.
44847         * tests/unicase/test-u8-toupper.c: New file.
44848
44849         New module 'unicase/u32-toupper'.
44850         * lib/unicase/u32-toupper.c: New file.
44851         * modules/unicase/u32-toupper: New file.
44852
44853         New module 'unicase/u16-toupper'.
44854         * lib/unicase/u16-toupper.c: New file.
44855         * modules/unicase/u16-toupper: New file.
44856
44857         New module 'unicase/u8-toupper'.
44858         * lib/unicase/u8-toupper.c: New file.
44859         * modules/unicase/u8-toupper: New file.
44860
44861         New module 'unicase/u32-casemap'.
44862         * lib/unicase/u32-casemap.c: New file.
44863         * modules/unicase/u32-casemap: New file.
44864
44865         New module 'unicase/u16-casemap'.
44866         * lib/unicase/u16-casemap.c: New file.
44867         * modules/unicase/u16-casemap: New file.
44868
44869         New module 'unicase/u8-casemap'.
44870         * lib/unicase/unicasemap.h: New file.
44871         * lib/unicase/u8-casemap.c: New file.
44872         * lib/unicase/u-casemap.h: New file.
44873         * modules/unicase/u8-casemap: New file.
44874
44875         New module 'unicase/special-casing'.
44876         * lib/unicase/special-casing.h: New file.
44877         * lib/unicase/special-casing.c: New file.
44878         * lib/unicase/special-casing-table.gperf: New file, generated by
44879         gen-uni-tables.c.
44880         * modules/unicase/special-casing: New file.
44881
44882         Tests for module 'unicase/locale-language'.
44883         * modules/unicase/locale-language-tests: New file.
44884         * tests/unicase/test-locale-language.sh: New file.
44885         * tests/unicase/test-locale-language.c: New file.
44886
44887         New module 'unicase/locale-language'.
44888         * lib/unicase/locale-language.c: New file.
44889         * lib/unicase/locale-languages.gperf: New file.
44890         * modules/unicase/locale-language: New file.
44891
44892         Generate more tables for case conversion and case folding.
44893         * lib/gen-uni-tables.c (SCC_*): New enum items.
44894         (struct special_casing_rule): New type.
44895         (casing_rules, num_casing_rules, allocated_casing_rules): New
44896         variables.
44897         (add_casing_rule, fill_casing_rules): New functions.
44898         (struct casefold_rule): New type.
44899         (casefolding_rules, num_casefolding_rules,
44900         allocated_casefolding_rules): New variables.
44901         (fill_casefolding_rules): New function.
44902         (unicode_casefold): New variable.
44903         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44904         sort_casing_rules, output_casing_rules): New functions.
44905         (main): Accept to more arguments: SpecialCasing.txt and
44906         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44907         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44908         Output mapping for casefolding.
44909
44910         * lib/unicase.h: Include stdbool.h, uninorm.h.
44911         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44912         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44913         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44914         arguments.
44915         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44916         resultp arguments.
44917         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44918         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44919         resultp arguments.
44920         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44921         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44922         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44923         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44924         declarations.
44925         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44926
44927 2009-03-08  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44930         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44931         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44932         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44933
44934 2009-03-07  Bruno Haible  <bruno@clisp.org>
44935
44936         Adjust u*_normcmp, u*_normcoll API.
44937         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44938         u16_normcoll, u32_normcoll): Change failure conventions.
44939         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44940         errno and return -1.
44941         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44942
44943 2009-03-07  Bruno Haible  <bruno@clisp.org>
44944
44945         Tests for module 'uninorm/u32-normcoll'.
44946         * modules/uninorm/u32-normcoll-tests: New file.
44947         * tests/uninorm/test-u32-normcoll.c: New file.
44948
44949         Tests for module 'uninorm/u16-normcoll'.
44950         * modules/uninorm/u16-normcoll-tests: New file.
44951         * tests/uninorm/test-u16-normcoll.c: New file.
44952
44953         Tests for module 'uninorm/u8-normcoll'.
44954         * modules/uninorm/u8-normcoll-tests: New file.
44955         * tests/uninorm/test-u8-normcoll.c: New file.
44956
44957 2009-03-07  Bruno Haible  <bruno@clisp.org>
44958
44959         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44960         tests/uninorm/test-u32-normcmp.c.
44961         * tests/uninorm/test-u32-normcmp.c: Include it.
44962         (test_nonascii): New function, extracted from main. Add some more
44963         tests.
44964         (main): Invoke test_ascii and test_nonascii.
44965         * modules/uninorm/u32-normcmp-tests (Files): Add
44966         tests/uninorm/test-u32-normcmp.h.
44967         (Depends-on): Remove uninorm/u32-normcmp.
44968
44969         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44970         tests/uninorm/test-u16-normcmp.c.
44971         * tests/uninorm/test-u16-normcmp.c: Include it.
44972         (test_nonascii): New function, extracted from main. Add some more
44973         tests.
44974         (main): Invoke test_ascii and test_nonascii.
44975         * modules/uninorm/u16-normcmp-tests (Files): Add
44976         tests/uninorm/test-u16-normcmp.h.
44977         (Depends-on): Remove uninorm/u16-normcmp.
44978
44979         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44980         tests/uninorm/test-u8-normcmp.c.
44981         * tests/uninorm/test-u8-normcmp.c: Include it.
44982         (test_nonascii): New function, extracted from main. Add some more
44983         tests.
44984         (main): Invoke test_ascii and test_nonascii.
44985         * modules/uninorm/u8-normcmp-tests (Files): Add
44986         tests/uninorm/test-u8-normcmp.h.
44987         (Depends-on): Remove uninorm/u8-normcmp.
44988
44989 2009-03-07  Bruno Haible  <bruno@clisp.org>
44990
44991         New module 'uninorm/u32-normcoll'.
44992         * lib/uninorm/u32-normcoll.c: New file.
44993         * modules/uninorm/u32-normcoll: New file.
44994
44995         New module 'uninorm/u16-normcoll'.
44996         * lib/uninorm/u16-normcoll.c: New file.
44997         * modules/uninorm/u16-normcoll: New file.
44998
44999         New module 'uninorm/u8-normcoll'.
45000         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45001         declarations.
45002         * lib/uninorm/u8-normcoll.c: New file.
45003         * lib/uninorm/u-normcoll.h: New file.
45004         * modules/uninorm/u8-normcoll: New file.
45005
45006         New module 'uninorm/u32-normxfrm'.
45007         * lib/uninorm/u32-normxfrm.c: New file.
45008         * modules/uninorm/u32-normxfrm: New file.
45009
45010         New module 'uninorm/u16-normxfrm'.
45011         * lib/uninorm/u16-normxfrm.c: New file.
45012         * modules/uninorm/u16-normxfrm: New file.
45013
45014         New module 'uninorm/u8-normxfrm'.
45015         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45016         declarations.
45017         * lib/uninorm/u8-normxfrm.c: New file.
45018         * lib/uninorm/u-normxfrm.h: New file.
45019         * modules/uninorm/u8-normxfrm: New file.
45020
45021 2009-03-07  Bruno Haible  <bruno@clisp.org>
45022
45023         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45024         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45025         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45026
45027 2009-03-07  Bruno Haible  <bruno@clisp.org>
45028
45029         New module 'memxfrm'.
45030         * lib/memxfrm.h: New file.
45031         * lib/memxfrm.c: New file.
45032         * modules/memxfrm: New file.
45033
45034 2009-03-07  Bruno Haible  <bruno@clisp.org>
45035
45036         New module 'memcmp2'.
45037         * lib/memcmp2.h: New file.
45038         * lib/memcmp2.c: New file.
45039         * modules/memcmp2: New file.
45040
45041 2009-03-07  Bruno Haible  <bruno@clisp.org>
45042
45043         Tests for module 'uninorm/decomposing-form'.
45044         * modules/uninorm/decomposing-form-tests: New file.
45045         * tests/uninorm/test-decomposing-form.c: New file.
45046
45047         New module 'uninorm/decomposing-form'.
45048         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45049         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45050         Add 'decomposing_variant' field.
45051         * lib/uninorm/decomposing-form.c: New file.
45052         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45053         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45054         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45055         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45056         * modules/uninorm/decomposing-form: New file.
45057         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45058         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45059
45060 2009-03-07  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45063         strings.
45064
45065 2009-03-06  Bruno Haible  <bruno@clisp.org>
45066
45067         Tests for module 'uninorm/u32-normcmp'.
45068         * tests/uninorm/test-u32-normcmp.c: New file.
45069         * modules/uninorm/u32-normcmp-tests: New file.
45070
45071         Tests for module 'uninorm/u16-normcmp'.
45072         * tests/uninorm/test-u16-normcmp.c: New file.
45073         * modules/uninorm/u16-normcmp-tests: New file.
45074
45075         Tests for module 'uninorm/u8-normcmp'.
45076         * tests/uninorm/test-u8-normcmp.c: New file.
45077         * modules/uninorm/u8-normcmp-tests: New file.
45078
45079         New module 'uninorm/u32-normcmp'.
45080         * lib/uninorm/u32-normcmp.c: New file.
45081         * modules/uninorm/u32-normcmp: New file.
45082
45083         New module 'uninorm/u16-normcmp'.
45084         * lib/uninorm/u16-normcmp.c: New file.
45085         * modules/uninorm/u16-normcmp: New file.
45086
45087         New module 'uninorm/u8-normcmp'.
45088         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45089         declarations.
45090         * lib/uninorm/u8-normcmp.c: New file.
45091         * lib/uninorm/u-normcmp.h: New file.
45092         * modules/uninorm/u8-normcmp: New file.
45093
45094 2009-03-06  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45097         Reported by Eric Blake.
45098
45099 2009-03-06  Eric Blake  <ebb9@byu.net>
45100             Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45103         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45104         condition.
45105         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45106         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45107         condition.
45108         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45109
45110 2009-03-06  Eric Blake  <ebb9@byu.net>
45111
45112         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45113         to avoid compiler warnings.
45114         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45115
45116 2009-03-05  Bruno Haible  <bruno@clisp.org>
45117
45118         * tests/test-ftell.c (main): Disable test beyond end of file on
45119         FreeMiNT.
45120         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45121
45122 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45123
45124         * lib/filevercmp.c: Move hidden files up in ordering.
45125         * tests/test-filevercmp.c: Add tests for hidden files.
45126
45127 2009-03-04  Bruno Haible  <bruno@clisp.org>
45128
45129         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45130         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45131         AM_CFLAGS.
45132         Reported by Simon Josefsson.
45133
45134 2009-03-03  Bruno Haible  <bruno@clisp.org>
45135
45136         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45137         Reported by Simon Josefsson.
45138
45139         * doc/ld-version-script.texi: Update node reference.
45140
45141 2009-03-03  Bruno Haible  <bruno@clisp.org>
45142
45143         * modules/visibility (License): Change to 'unlimited'.
45144         Suggested by Simon Josefsson.
45145
45146 2009-03-03  Jim Meyering  <meyering@redhat.com>
45147
45148         unlinkdir: cannot_unlink_dir may modify process state
45149         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45150         it's neither thread-safe nor appropriate for use in a library.
45151
45152 2009-03-03  Eric Blake  <ebb9@byu.net>
45153
45154         test-closein: silence test under Darwin
45155         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45156         care if it dies from EPIPE or EBADF.
45157
45158 2009-03-03  Bruno Haible  <bruno@clisp.org>
45159
45160         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45161         earlier.
45162         * doc/visibility.texi: Fix @node and @section.
45163
45164 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45165
45166         * doc/gnulib.texi: Link to sections for ld version script and
45167         visibility.
45168         * doc/visibility.texi: Add @node and @section.
45169         * modules/ld-version-script: New module.
45170         * m4/ld-version-script.m4: New file.
45171         * doc/ld-version-script.texi: New file.
45172
45173 2009-03-02  David Lutterkort  <lutter@redhat.com>
45174
45175         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45177
45178 2009-03-02  Bruno Haible  <bruno@clisp.org>
45179
45180         * doc/visibility.texi: Mention libtool's -export-symbols option.
45181
45182 2009-03-02  Jim Meyering  <meyering@redhat.com>
45183
45184         announce-gen: new option: --no-print-checksums
45185         * build-aux/announce-gen (usage): Describe it.
45186         (print_checksums): Print a newline here, not in the [*] footnote.
45187         (main): Honor it.
45188
45189 2009-03-01  Bruno Haible  <bruno@clisp.org>
45190
45191         Use socklen_t in the native Windows replacements prototypes.
45192         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45193         instead of 'int'.
45194         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45195         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45196         * modules/getsockopt (Depends-on): Add socklen.
45197         * modules/setsockopt (Depends-on): Add socklen.
45198
45199 2009-03-01  Bruno Haible  <bruno@clisp.org>
45200
45201         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45202         least 4.2.
45203
45204 2009-03-01  Eric Blake  <ebb9@byu.net>
45205             Bruno Haible  <bruno@clisp.org>
45206
45207         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45208         error messages.
45209         * lib/wait-process.c (wait_subprocess): Omit error message about
45210         deadly signal sent to the child of termsigp != NULL.
45211
45212 2009-03-01  Eric Blake  <ebb9@byu.net>
45213
45214         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45215
45216 2009-03-01  Bruno Haible  <bruno@clisp.org>
45217
45218         Avoid a gcc warning.
45219         * tests/test-sched.c (b): Make global.
45220         Reported by Eric Blake.
45221
45222 2009-01-19  Martin Lambers  <marlam@marlam.de>
45223
45224         Provide POSIX semantics for socket timeout options on W32.
45225         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45226         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45227         * modules/setsockopt: Depend on sys_time module for struct timeval.
45228         * modules/getsockopt: Depend on sys_time module for struct timeval.
45229
45230 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45231
45232         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45233         __USE_GNU, for consistency with netdb.in.h.
45234         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45235
45236 2009-03-01  Bruno Haible  <bruno@clisp.org>
45237
45238         More support for FreeMiNT.
45239         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45240         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45241
45242 2009-03-01  Bruno Haible  <bruno@clisp.org>
45243
45244         More support for FreeMiNT.
45245         * lib/fpurge.c (fpurge): Correct last commit.
45246         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45247
45248 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45249
45250         Fix unportable awk script in vc-list-files.
45251         * build-aux/vc-list-files: In the replacement awk script, use
45252         substr with a second argument of 1, not zero.
45253         Report by Simon Josefsson.
45254
45255 2009-02-28  Bruno Haible  <bruno@clisp.org>
45256
45257         More support for FreeMiNT.
45258         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45259         to FreeMiNT today.
45260         * lib/fwriting.c (fwriting): Likewise.
45261         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45262
45263 2009-02-28  Bruno Haible  <bruno@clisp.org>
45264
45265         * tests/test-freadseek.c (main): Disable test beyond end of file on
45266         FreeMiNT.
45267         * tests/test-ftello.c (main): Likewise.
45268         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45269
45270 2009-02-28  Bruno Haible  <bruno@clisp.org>
45271
45272         Add tentative support for FreeMiNT.
45273         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45274         * lib/fpurge.c (fpurge): Likewise.
45275         * lib/freadable.c (freadable): Likewise.
45276         * lib/freading.c (freading): Likewise.
45277         * lib/freadptr.c (freadptr): Likewise.
45278         * lib/freadseek.c (freadptrinc): Likewise.
45279         * lib/fseeko.c (rpl_fseeko): Likewise.
45280         * lib/fseterr.c (fseterr): Likewise.
45281         * lib/fwritable.c (fwritable): Likewise.
45282         * lib/fwriting.c (fwriting): Likewise.
45283         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45284         Hourihane.
45285         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45286
45287 2009-02-28  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45290         SIGCHLD.
45291         Reported by Jim Meyering.
45292
45293 2009-02-28  Bruno Haible  <bruno@clisp.org>
45294
45295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45296         Mention the results of these tests on various platforms.
45297         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45298         order.
45299         * doc/posix-functions/printf.texi: Likewise.
45300         * doc/posix-functions/snprintf.texi: Likewise.
45301         * doc/posix-functions/sprintf.texi: Likewise.
45302         * doc/posix-functions/vfprintf.texi: Likewise.
45303         * doc/posix-functions/vprintf.texi: Likewise.
45304         * doc/posix-functions/vsnprintf.texi: Likewise.
45305         * doc/posix-functions/vsprintf.texi: Likewise.
45306         * doc/glibc-functions/obstack_printf.texi: Likewise.
45307         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45308
45309 2009-02-28  Bruno Haible  <bruno@clisp.org>
45310
45311         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45312         Reported by Loïc Minier <lool@dooz.org>.
45313
45314 2009-02-27  Bruno Haible  <bruno@clisp.org>
45315
45316         * gnulib-tool (func_import): Make the sed expression used to create the
45317         sed script for updating the .gitignore file POSIX compliant.
45318         Reported by Eric Blake.
45319
45320 2009-02-27  Bruno Haible  <bruno@clisp.org>
45321
45322         * gnulib-tool (sed): Don't alias as "sed --posix".
45323         Reported by Eric Blake.
45324
45325 2009-02-27  Bruno Haible  <bruno@clisp.org>
45326
45327         Avoid test link errors.
45328         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45329         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45330         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45331         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45333
45334 2009-02-27  Bruno Haible  <bruno@clisp.org>
45335
45336         Avoid spurious "(cached)" in configure output.
45337         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45338         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45339         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45340         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45341         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45342         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45343         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45344         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45345         Reported by Eric Blake.
45346
45347 2009-02-27  Eric Blake  <ebb9@byu.net>
45348
45349         printf: fix regression in previous patch
45350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45351
45352 2009-02-27  Bruno Haible  <bruno@clisp.org>
45353
45354         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45355         value.
45356         * lib/stdint.in.h: Likewise.
45357         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45358
45359 2009-02-27  Eric Blake  <ebb9@byu.net>
45360
45361         doc: mention more functions added in cygwin 1.7.0
45362         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45363         addition.
45364         * doc/posix-functions/open_wmemstream.texi: Likewise.
45365         * doc/posix-functions/wcsnlen.texi: Likewise.
45366         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45367         * doc/posix-functions/wcstod.texi: Likewise.
45368         * doc/posix-functions/wcstof.texi: Likewise.
45369         * doc/posix-functions/wcstoimax.texi: Likewise.
45370         * doc/posix-functions/wcstok.texi: Likewise.
45371         * doc/posix-functions/wcstoumax.texi: Likewise.
45372
45373         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45375         * doc/posix-functions/fprintf.texi: Update.
45376         * doc/posix-functions/printf.texi: Update.
45377         * doc/posix-functions/snprintf.texi: Update.
45378         * doc/posix-functions/sprintf.texi: Update.
45379         * doc/posix-functions/vfprintf.texi: Update.
45380         * doc/posix-functions/vprintf.texi: Update.
45381         * doc/posix-functions/vsnprintf.texi: Update.
45382         * doc/posix-functions/vsprintf.texi: Update.
45383         * doc/glibc-functions/obstack_printf.texi: Update.
45384         * doc/glibc-functions/obstack_vprintf.texi: Update.
45385
45386 2009-02-26  Eric Blake  <ebb9@byu.net>
45387
45388         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45389         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45390         compilation bug by using runtime conversion.
45391         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45392         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45393         * modules/ceill-tests (Files): Use nan.h.
45394         * modules/floorl-tests (Files): Likewise.
45395         * modules/frexpl-tests (Files): Likewise.
45396         * modules/isnanl-tests (Files): Likewise.
45397         * modules/ldexpl-tests (Files): Likewise.
45398         * modules/roundl-tests (Files): Likewise.
45399         * modules/truncl-tests (Files): Likewise.
45400         * tests/test-ceill.c (main): Use a working NaN.
45401         * tests/test-floorl.c (main): Likewise.
45402         * tests/test-frexpl.c (main): Likewise.
45403         * tests/test-isnan.c (test_long_double): Likewise.
45404         * tests/test-isnanl.h (main): Likewise.
45405         * tests/test-ldexpl.h (main): Likewise.
45406         * tests/test-roundl.h (main): Likewise.
45407         * tests/test-truncl.h (main): Likewise.
45408         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45409
45410 2009-02-26  Eric Blake  <ebb9@byu.net>
45411             Bruno Haible  <bruno@clisp.org>
45412
45413         Work around a *printf bug with %ls on Solaris.
45414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45415         precision is specified, sprintf stops converting the wide string
45416         argument when the number of bytes that have been produced by this
45417         conversion equals or exceeds the precision.
45418         * doc/posix-functions/fprintf.texi: Update.
45419         * doc/posix-functions/printf.texi: Update.
45420         * doc/posix-functions/snprintf.texi: Update.
45421         * doc/posix-functions/sprintf.texi: Update.
45422         * doc/posix-functions/vfprintf.texi: Update.
45423         * doc/posix-functions/vprintf.texi: Update.
45424         * doc/posix-functions/vsnprintf.texi: Update.
45425         * doc/posix-functions/vsprintf.texi: Update.
45426         * doc/glibc-functions/obstack_printf.texi: Update.
45427         * doc/glibc-functions/obstack_vprintf.texi: Update.
45428
45429 2009-02-26  Eric Blake  <ebb9@byu.net>
45430
45431         stdlib: favor compiler check of random.h
45432         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45433         to avoid an ObjC random.h installed by Swarm.
45434
45435 2009-02-26  Bruno Haible  <bruno@clisp.org>
45436
45437         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45438         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45439         Reported by Gary V. Vaughan <gary@gnu.org>.
45440
45441 2009-02-26  Bruno Haible  <bruno@clisp.org>
45442
45443         Fix *printf behaviour regarding the %ls directive.
45444         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45445         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45446         NEED_PRINTF_DIRECTIVE_LS.
45447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45448         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45450         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45451         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45452         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45453         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45458         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45462         * doc/posix-functions/fprintf.texi: Update.
45463         * doc/posix-functions/printf.texi: Update.
45464         * doc/posix-functions/snprintf.texi: Update.
45465         * doc/posix-functions/sprintf.texi: Update.
45466         * doc/posix-functions/vfprintf.texi: Update.
45467         * doc/posix-functions/vprintf.texi: Update.
45468         * doc/posix-functions/vsnprintf.texi: Update.
45469         * doc/posix-functions/vsprintf.texi: Update.
45470         * doc/glibc-functions/obstack_printf.texi: Update.
45471         * doc/glibc-functions/obstack_vprintf.texi: Update.
45472         Reported by Eric Blake.
45473
45474 2009-02-25  Bruno Haible  <bruno@clisp.org>
45475
45476         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45477         with known value.
45478         Reported by Gary V. Vaughan <gary@gnu.org>.
45479
45480 2009-02-25  Bruno Haible  <bruno@clisp.org>
45481
45482         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45483         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45484         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45485         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45486         Reported by Gary V. Vaughan <gary@gnu.org>.
45487
45488 2009-02-25  Bruno Haible  <bruno@clisp.org>
45489
45490         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45491         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45492         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45493         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45494         Reported by Gary V. Vaughan <gary@gnu.org>.
45495
45496 2009-02-25  Eric Blake  <ebb9@byu.net>
45497
45498         tests: skip fseek/ftell tests if ungetc is broken
45499         * m4/ungetc.m4: New file.
45500         * modules/fseek-tests: Split test, so ungetc dependency is
45501         separate from rest of test.
45502         * modules/fseeko-tests: Likewise.
45503         * modules/ftell-tests: Likewise.
45504         * modules/ftello-tests: Likewise.
45505         * tests/test-fseek.c (main): Isolate ungetc dependency.
45506         * tests/test-fseeko.c (main): Likewise.
45507         * tests/test-ftell.c (main): Likewise.
45508         * tests/test-ftello.c (main): Likewise.
45509         * tests/test-fseek2.sh: New file.
45510         * tests/test-fseeko2.sh: Likewise.
45511         * tests/test-ftell2.sh: Likewise.
45512         * tests/test-ftello2.sh: Likewise.
45513
45514 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
45515
45516         test-getaddrinfo: fix usage of skip return code 77
45517         * tests/test-gettaddrinfo.c: Return skip code 77 only
45518         for first occurance of skip (4x77 is not 77)
45519
45520 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45521
45522         strtod: avoid C99 decl-after-statement
45523         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45524
45525 2009-02-24  Eric Blake  <ebb9@byu.net>
45526
45527         strtod: detect HP-UX 11.31 bug
45528         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45529         Reported by Gary V. Vaughan.
45530
45531 2009-02-23  Bruno Haible  <bruno@clisp.org>
45532
45533         Fix invalid read past end of memory block.
45534         * lib/vasnprintf.c (DCHAR_SET): Define.
45535         (local_wcslen): Define only when needed.
45536         (local_strnlen, local_wcsnlen): New functions.
45537         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45538         directives that involve a conversion ourselves.
45539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45540         wcsnlen, mbrtowc, wcrtomb.
45541         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45542         * tests/test-vasprintf-posix.c (test_function): Likewise.
45543         * tests/test-snprintf-posix.h (test_function): Likewise.
45544         * tests/test-sprintf-posix.h (test_function): Likewise.
45545         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45546
45547 2009-02-22  Bruno Haible  <bruno@clisp.org>
45548
45549         Implement new clarified decomposition of Hangul syllables.
45550         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45551         of type LTV, return only a pairwise decomposition.
45552         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45553         Likewise.
45554         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45555         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45556         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45557
45558 2009-02-22  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45561         zero-length results and shrink excess allocated memory.
45562         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45563         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45564         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45565         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45566         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45567         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45568         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45569         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45570         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45571         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45572         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45573         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45574
45575 2009-02-21  Bruno Haible  <bruno@clisp.org>
45576
45577         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45578         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45579         spaces after a period. Put a space between a macro name and its
45580         argument list. Trivial rewordings.
45581         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45582         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45583         (main): Return 0 explicitly.
45584
45585 2009-02-21  Bruno Haible  <bruno@clisp.org>
45586
45587         Tests for module 'uninorm/filter'.
45588         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45589         * modules/uninorm/filter-tests: New file.
45590
45591         New module 'uninorm/filter'.
45592         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45593         uninorm_filter_flush, uninorm_filter_free): New declarations.
45594         * lib/uninorm/uninorm-filter.c: New file.
45595         * modules/uninorm/filter: New file.
45596
45597 2009-02-21  Bruno Haible  <bruno@clisp.org>
45598
45599         Tests for module 'uninorm/nfkc'.
45600         * tests/uninorm/test-nfkc.c: New file.
45601         * tests/uninorm/test-u8-nfkc.c: New file.
45602         * tests/uninorm/test-u16-nfkc.c: New file.
45603         * tests/uninorm/test-u32-nfkc.c: New file.
45604         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45605         * tests/uninorm/test-u32-nfkc-big.c: New file.
45606         * modules/uninorm/nfkc-tests: New file.
45607
45608         New module 'uninorm/nfkc'.
45609         * lib/uninorm/nfkc.c: New file.
45610         * modules/uninorm/nfkc: New file.
45611
45612         Tests for module 'uninorm/nfkd'.
45613         * tests/uninorm/test-nfkd.c: New file.
45614         * tests/uninorm/test-u8-nfkd.c: New file.
45615         * tests/uninorm/test-u16-nfkd.c: New file.
45616         * tests/uninorm/test-u32-nfkd.c: New file.
45617         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45618         * tests/uninorm/test-u32-nfkd-big.c: New file.
45619         * modules/uninorm/nfkd-tests: New file.
45620
45621         New module 'uninorm/nfkd'.
45622         * lib/uninorm/nfkd.c: New file.
45623         * modules/uninorm/nfkd: New file.
45624
45625         Tests for module 'uninorm/nfc'.
45626         * tests/uninorm/test-nfc.c: New file.
45627         * tests/uninorm/test-u8-nfc.c: New file.
45628         * tests/uninorm/test-u16-nfc.c: New file.
45629         * tests/uninorm/test-u32-nfc.c: New file.
45630         * tests/uninorm/test-u32-nfc-big.sh: New file.
45631         * tests/uninorm/test-u32-nfc-big.c: New file.
45632         * modules/uninorm/nfc-tests: New file.
45633
45634         New module 'uninorm/nfc'.
45635         * lib/uninorm/nfc.c: New file.
45636         * modules/uninorm/nfc: New file.
45637
45638         Tests for module 'uninorm/nfd'.
45639         * tests/uninorm/test-nfd.c: New file.
45640         * tests/uninorm/test-u8-nfd.c: New file.
45641         * tests/uninorm/test-u16-nfd.c: New file.
45642         * tests/uninorm/test-u32-nfd.c: New file.
45643         * tests/uninorm/test-u32-nfd-big.sh: New file.
45644         * tests/uninorm/test-u32-nfd-big.c: New file.
45645         * tests/uninorm/test-u32-normalize-big.h: New file.
45646         * tests/uninorm/test-u32-normalize-big.c: New file.
45647         * tests/uninorm/NormalizationTest.txt: New file, created from
45648         Unicode 5.1.0 NormalizationTest.txt.
45649         * modules/uninorm/nfd-tests: New file.
45650
45651         New module 'uninorm/nfd'.
45652         * lib/uninorm/nfd.c: New file.
45653         * modules/uninorm/nfd: New file.
45654
45655         New module 'uninorm/u32-normalize'.
45656         * lib/uninorm/u32-normalize.c: New file.
45657         * modules/uninorm/u32-normalize: New file.
45658
45659         New module 'uninorm/u16-normalize'.
45660         * lib/uninorm/u16-normalize.c: New file.
45661         * modules/uninorm/u16-normalize: New file.
45662
45663         New module 'uninorm/u8-normalize'.
45664         * lib/uninorm/u8-normalize.c: New file.
45665         * lib/uninorm/normalize-internal.h: New file.
45666         * lib/uninorm/u-normalize-internal.h: New file.
45667         * modules/uninorm/u8-normalize: New file.
45668
45669         New module 'uninorm/decompose-internal'.
45670         * lib/uninorm/decompose-internal.c: New file.
45671         * modules/uninorm/decompose-internal: New file.
45672
45673         Tests for module 'uninorm/composition'.
45674         * tests/uninorm/test-composition.c: New file.
45675         * modules/uninorm/composition-tests: New file.
45676
45677         New module 'uninorm/composition'.
45678         * lib/uninorm/composition.c: New file.
45679         * lib/uninorm/composition-table.gperf: New file, generated by
45680         gen-uni-tables.
45681         * modules/uninorm/composition: New file.
45682
45683         Tests for module 'uninorm/compat-decomposition'.
45684         * tests/uninorm/test-compat-decomposition.c: New file.
45685         * modules/uninorm/compat-decomposition-tests: New file.
45686
45687         New module 'uninorm/compat-decomposition'.
45688         * lib/uninorm/decompose-internal.h: New file.
45689         * lib/uninorm/compat-decomposition.c: New file.
45690         * modules/uninorm/compat-decomposition: New file.
45691
45692         Tests for module 'uninorm/canonical-decomposition'.
45693         * tests/uninorm/test-canonical-decomposition.c: New file.
45694         * modules/uninorm/canonical-decomposition-tests: New file.
45695
45696         New module 'uninorm/canonical-decomposition'.
45697         * lib/uninorm/canonical-decomposition.c: New file.
45698         * modules/uninorm/canonical-decomposition: New file.
45699
45700         Tests for module 'uninorm/decomposition'.
45701         * tests/uninorm/test-decomposition.c: New file.
45702         * modules/uninorm/decomposition-tests: New file.
45703
45704         New module 'uninorm/decomposition'.
45705         * lib/uninorm/decomposition.c: New file.
45706         * modules/uninorm/decomposition: New file.
45707
45708         New module 'uninorm/decomposition-table'.
45709         * lib/uninorm/decomposition-table.h: New file.
45710         * lib/uninorm/decomposition-table.c: New file.
45711         * lib/uninorm/decomposition-table1.h: New file, generated by
45712         gen-uni-tables.
45713         * lib/uninorm/decomposition-table2.h: New file, generated by
45714         gen-uni-tables.
45715         * modules/uninorm/decomposition-table: New file.
45716
45717         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45718         (UC_DECOMP_*): New enumeration items.
45719         (get_decomposition): New function.
45720         (struct decomp_table): New type.
45721         (output_decomposition, output_decomposition_tables): New functions.
45722         (unicode_composition_exclusions): New variable.
45723         (fill_composition_exclusions, debug_output_composition_tables): New
45724         functions.
45725         (main): Accept one more argument. Invoke fill_composition_exclusions.
45726         Output decomposition and composition tables.
45727
45728         New module 'uninorm/base'.
45729         * lib/uninorm.h: New file.
45730         * lib/unictype.h: Update comment.
45731         * modules/uninorm/base: New file.
45732
45733 2009-02-21  David Lutterkort  <lutter@redhat.com>
45734
45735         Tests for module 'safe-alloc'.
45736         * tests/test-safe-alloc.c: New file.
45737         * modules/safe-alloc-tests: New file.
45738
45739         New module 'safe-alloc'.
45740         * lib/safe-alloc.h: New file.
45741         * lib/safe-alloc.c: New file.
45742         * m4/safe-alloc.m4: New file.
45743         * modules/safe-alloc: New file.
45744         * doc/safe-alloc.texi: New file.
45745         * doc/gnulib.texi: Include it.
45746         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45747         safe-alloc.
45748
45749 2009-02-18  Bruno Haible  <bruno@clisp.org>
45750
45751         Fix link error on non-glibc systems.
45752         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45753         variable.
45754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45755
45756 2009-02-18  Jim Meyering  <meyering@redhat.com>
45757
45758         fts: avoid used-uninitialized error due to recent change
45759         * lib/fts.c (fts_read): Guard uses of the new member,
45760         parent->fts_n_dirs_remaining, since it's not relevant for
45761         the parent of a directory specified on the command-line.
45762
45763 2009-02-17  James Youngman  <jay@gnu.org>
45764             Bruno Haible  <bruno@clisp.org>
45765
45766         * m4/include_next.m4: Reformulate comment.
45767
45768 2009-02-16  Jim Meyering  <meyering@redhat.com>
45769
45770         fts: add #if guards so that the fts_lgpl module still builds
45771         * lib/fts.c: Guard just-added hash-table-using parts with
45772         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45773         Reported by Simon Josefsson.
45774
45775 2009-02-15  Bruno Haible  <bruno@clisp.org>
45776
45777         * modules/array-mergesort-tests: New file.
45778         * tests/test-array-mergesort.c: New file.
45779
45780         New module 'array-mergesort'.
45781         * modules/array-mergesort: New file.
45782         * lib/array-mergesort.h: New file.
45783
45784 2009-02-15  Bruno Haible  <bruno@clisp.org>
45785
45786         Fix 2009-02-07 commit.
45787         * lib/gen-uni-tables.c (output_predicate, output_category,
45788         output_combclass, output_bidi_category, output_decimal_digit,
45789         output_digit, output_numeric, output_mirror, output_scripts,
45790         output_ident_category, output_simple_mapping): Fix format directives.
45791         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45792
45793 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45794
45795         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45796         fixes are available from IBM.
45797
45798 2009-02-13  Jim Meyering  <meyering@redhat.com>
45799
45800         fts: arrange not to stat non-directories in more cases
45801         This makes GNU find (when it doesn't need to stat each file)
45802         *much* more efficient at traversing reiserfs file systems.
45803         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45804         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45805         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45806         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45807         (leaf_optimization_applies): New function.
45808         (LCO_hash, LCO_compare): New helper functions.
45809         (link_count_optimize_ok): New function.
45810         (fts_stat): Initialize new member (if dir).
45811         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45812         we've just stat'ed a directory.  Skip the stat call when possible.
45813         ---
45814         Note this AFS-related exchange:
45815         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45816         and note find's pioctl call in find/fstype.c.
45817         But that is necessary only if you want to enable the
45818         optimization for AFS, and for now, I don't.
45819
45820         fts: move a function definition "up" (no semantic change)
45821         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45822         "up" to precede upcoming use of a related function.
45823
45824 2009-02-11  Jim Meyering  <meyering@redhat.com>
45825
45826         fts: correct internal computation of nlinks (optimization-related)
45827         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45828         whether the current entry is a directory, so don't test it.
45829
45830 2009-02-10  Bruno Haible  <bruno@clisp.org>
45831
45832         Tests for module 'uniwbrk/ulc-wordbreaks'.
45833         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45834         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45835         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45836
45837         Tests for module 'uniwbrk/u32-wordbreaks'.
45838         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45839         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45840
45841         Tests for module 'uniwbrk/u16-wordbreaks'.
45842         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45843         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45844
45845         Tests for module 'uniwbrk/u8-wordbreaks'.
45846         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45847         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45848
45849 2009-02-10  Bruno Haible  <bruno@clisp.org>
45850
45851         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45852         property.
45853         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45854         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45855         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45856
45857 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45858
45859         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45860         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45861
45862 2009-02-10  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45865         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45866         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45867         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45868         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45869         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45870
45871 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45872
45873         * lib/sockets.h (gl_fd_to_handle): New function.
45874
45875         * tests/test-sockets.c: Call gl_fd_to_handle.
45876
45877 2009-02-09  Bruno Haible  <bruno@clisp.org>
45878
45879         * doc/havelib.texi: Document the conventions on bi-arch systems.
45880
45881 2009-02-08  Bruno Haible  <bruno@clisp.org>
45882
45883         Document the AC_LIB_LINKFLAGS macro.
45884         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45885         * doc/gnulib.texi: Include it.
45886
45887 2009-02-08  Bruno Haible  <bruno@clisp.org>
45888
45889         Fix wrong order of sections, compared to TOC.
45890         * doc/gnulib.texi: Include relocatable-maint.texi after the
45891         "Regular expressions" node, not before.
45892
45893 2009-02-08  Bruno Haible  <bruno@clisp.org>
45894
45895         Tests for module 'unicase/totitle'.
45896         * modules/unicase/totitle-tests: New file.
45897
45898         Tests for module 'unicase/tolower'.
45899         * modules/unicase/tolower-tests: New file.
45900
45901         Tests for module 'unicase/toupper'.
45902         * modules/unicase/toupper-tests: New file.
45903         * tests/unicase/test-mapping-part1.h: New file.
45904         * tests/unicase/test-mapping-part2.h: New file.
45905
45906         New module 'unicase/totitle'.
45907         * modules/unicase/totitle: New file.
45908         * lib/unicase/totitle.c: New file.
45909
45910         New module 'unicase/tolower'.
45911         * modules/unicase/tolower: New file.
45912         * lib/unicase/tolower.c: New file.
45913
45914         New module 'unicase/toupper'.
45915         * modules/unicase/toupper: New file.
45916         * lib/unicase/toupper.c: New file.
45917         * lib/unicase/simple-mapping.h: New file.
45918
45919         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45920         (mapping_table): New structure.
45921         (output_simple_mapping): New function.
45922         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45923         * modules/gen-uni-tables (Description): Update.
45924         * lib/unicase/toupper.h: New file, automatically generated by
45925         gen-uni-tables.
45926         * lib/unicase/tolower.h: New file, automatically generated by
45927         gen-uni-tables.
45928         * lib/unicase/totitle.h: New file, automatically generated by
45929         gen-uni-tables.
45930         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45931         gen-uni-tables.
45932         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45933         gen-uni-tables.
45934         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45935         gen-uni-tables.
45936
45937         New module 'unicase/base'.
45938         * modules/unicase/base: New file.
45939         * lib/unicase.h: New file.
45940
45941 2009-02-08  Bruno Haible  <bruno@clisp.org>
45942
45943         New module 'uniwbrk/ulc-wordbreaks'.
45944         * modules/uniwbrk/ulc-wordbreaks: New file.
45945         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45946
45947         New module 'uniwbrk/u32-wordbreaks'.
45948         * modules/uniwbrk/u32-wordbreaks: New file.
45949         * lib/uniwbrk/u32-wordbreaks.c: New file.
45950
45951         New module 'uniwbrk/u16-wordbreaks'.
45952         * modules/uniwbrk/u16-wordbreaks: New file.
45953         * lib/uniwbrk/u16-wordbreaks.c: New file.
45954
45955         New module 'uniwbrk/u8-wordbreaks'.
45956         * modules/uniwbrk/u8-wordbreaks: New file.
45957         * lib/uniwbrk/u8-wordbreaks.c: New file.
45958         * lib/uniwbrk/u-wordbreaks.h: New file.
45959
45960         New module 'uniwbrk/table'.
45961         * modules/uniwbrk/table: New file.
45962         * lib/uniwbrk/wbrktable.h: New file.
45963         * lib/uniwbrk/wbrktable.c: New file.
45964
45965         New module 'uniwbrk/wordbreak-property'.
45966         * modules/uniwbrk/wordbreak-property: New file.
45967         * lib/uniwbrk/wordbreak-property.c: New file.
45968
45969         * lib/gen-uni-tables.c (WBP_*): New enum items.
45970         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45971         (unicode_org_wbp): New variable.
45972         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45973         New functions.
45974         (wbp_table): New structure.
45975         (output_wbp, output_wbrk_tables): New functions.
45976         (main): Accept additional argument. Invoke fill_org_wbp,
45977         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45978         output_wbrk_tables.
45979         * modules/gen-uni-tables (Description): Update.
45980         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45981         gen-uni-tables.
45982
45983         New module 'uniwbrk/base'.
45984         * modules/uniwbrk/base: New file.
45985         * lib/uniwbrk.h: New file.
45986
45987 2009-02-08  Bruno Haible  <bruno@clisp.org>
45988
45989         Update to Unicode 5.1.0.
45990         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45991         U+2185..U+2188.
45992         (is_property_default_ignorable_code_point): Don't include characters
45993         of category Cc or Cs and not-a-characters.
45994         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45995         U+0D79, U+109E, U+109F, U+A60C.
45996         * lib/unictype/bidi_of.h: Regenerated.
45997         * lib/unictype/blocks.h: Regenerated.
45998         * lib/unictype/categ_C.h: Regenerated.
45999         * lib/unictype/categ_Cf.h: Regenerated.
46000         * lib/unictype/categ_Cn.h: Regenerated.
46001         * lib/unictype/categ_L.h: Regenerated.
46002         * lib/unictype/categ_Ll.h: Regenerated.
46003         * lib/unictype/categ_Lm.h: Regenerated.
46004         * lib/unictype/categ_Lo.h: Regenerated.
46005         * lib/unictype/categ_Lu.h: Regenerated.
46006         * lib/unictype/categ_M.h: Regenerated.
46007         * lib/unictype/categ_Mc.h: Regenerated.
46008         * lib/unictype/categ_Me.h: Regenerated.
46009         * lib/unictype/categ_Mn.h: Regenerated.
46010         * lib/unictype/categ_N.h: Regenerated.
46011         * lib/unictype/categ_Nd.h: Regenerated.
46012         * lib/unictype/categ_Nl.h: Regenerated.
46013         * lib/unictype/categ_No.h: Regenerated.
46014         * lib/unictype/categ_P.h: Regenerated.
46015         * lib/unictype/categ_Pd.h: Regenerated.
46016         * lib/unictype/categ_Pe.h: Regenerated.
46017         * lib/unictype/categ_Pf.h: Regenerated.
46018         * lib/unictype/categ_Pi.h: Regenerated.
46019         * lib/unictype/categ_Po.h: Regenerated.
46020         * lib/unictype/categ_Ps.h: Regenerated.
46021         * lib/unictype/categ_S.h: Regenerated.
46022         * lib/unictype/categ_Sk.h: Regenerated.
46023         * lib/unictype/categ_Sm.h: Regenerated.
46024         * lib/unictype/categ_So.h: Regenerated.
46025         * lib/unictype/categ_of.h: Regenerated.
46026         * lib/unictype/combining.h: Regenerated.
46027         * lib/unictype/ctype_alnum.h: Regenerated.
46028         * lib/unictype/ctype_alpha.h: Regenerated.
46029         * lib/unictype/ctype_graph.h: Regenerated.
46030         * lib/unictype/ctype_lower.h: Regenerated.
46031         * lib/unictype/ctype_print.h: Regenerated.
46032         * lib/unictype/ctype_punct.h: Regenerated.
46033         * lib/unictype/ctype_upper.h: Regenerated.
46034         * lib/unictype/decdigit.h: Regenerated.
46035         * lib/unictype/digit.h: Regenerated.
46036         * lib/unictype/mirror.h: Regenerated.
46037         * lib/unictype/numeric.h: Regenerated.
46038         * lib/unictype/pr_alphabetic.h: Regenerated.
46039         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46040         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46041         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46042         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46043         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46044         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46045         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46046         * lib/unictype/pr_combining.h: Regenerated.
46047         * lib/unictype/pr_dash.h: Regenerated.
46048         * lib/unictype/pr_decimal_digit.h: Regenerated.
46049         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46050         * lib/unictype/pr_deprecated.h: Regenerated.
46051         * lib/unictype/pr_diacritic.h: Regenerated.
46052         * lib/unictype/pr_extender.h: Regenerated.
46053         * lib/unictype/pr_format_control.h: Regenerated.
46054         * lib/unictype/pr_grapheme_base.h: Regenerated.
46055         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46056         * lib/unictype/pr_grapheme_link.h: Regenerated.
46057         * lib/unictype/pr_id_continue.h: Regenerated.
46058         * lib/unictype/pr_id_start.h: Regenerated.
46059         * lib/unictype/pr_ideographic.h: Regenerated.
46060         * lib/unictype/pr_ignorable_control.h: Regenerated.
46061         * lib/unictype/pr_lowercase.h: Regenerated.
46062         * lib/unictype/pr_math.h: Regenerated.
46063         * lib/unictype/pr_numeric.h: Regenerated.
46064         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46065         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46066         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46067         * lib/unictype/pr_other_id_continue.h: Regenerated.
46068         * lib/unictype/pr_other_lowercase.h: Regenerated.
46069         * lib/unictype/pr_other_math.h: Regenerated.
46070         * lib/unictype/pr_punctuation.h: Regenerated.
46071         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46072         * lib/unictype/pr_soft_dotted.h: Regenerated.
46073         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46074         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46075         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46076         * lib/unictype/pr_uppercase.h: Regenerated.
46077         * lib/unictype/pr_xid_continue.h: Regenerated.
46078         * lib/unictype/pr_xid_start.h: Regenerated.
46079         * lib/unictype/pr_zero_width.h: Regenerated.
46080         * lib/unictype/scripts.h: Regenerated.
46081         * lib/unictype/scripts_byname.gperf: Regenerated.
46082         * lib/unictype/sy_java_ident.h: Regenerated.
46083         * lib/unilbrk/lbrkprop1.h: Regenerated.
46084         * lib/unilbrk/lbrkprop2.h: Regenerated.
46085         * tests/unictype/test-categ_C.c: Regenerated.
46086         * tests/unictype/test-categ_Cf.c: Regenerated.
46087         * tests/unictype/test-categ_Cn.c: Regenerated.
46088         * tests/unictype/test-categ_L.c: Regenerated.
46089         * tests/unictype/test-categ_Ll.c: Regenerated.
46090         * tests/unictype/test-categ_Lm.c: Regenerated.
46091         * tests/unictype/test-categ_Lo.c: Regenerated.
46092         * tests/unictype/test-categ_Lu.c: Regenerated.
46093         * tests/unictype/test-categ_M.c: Regenerated.
46094         * tests/unictype/test-categ_Mc.c: Regenerated.
46095         * tests/unictype/test-categ_Me.c: Regenerated.
46096         * tests/unictype/test-categ_Mn.c: Regenerated.
46097         * tests/unictype/test-categ_N.c: Regenerated.
46098         * tests/unictype/test-categ_Nd.c: Regenerated.
46099         * tests/unictype/test-categ_Nl.c: Regenerated.
46100         * tests/unictype/test-categ_No.c: Regenerated.
46101         * tests/unictype/test-categ_P.c: Regenerated.
46102         * tests/unictype/test-categ_Pd.c: Regenerated.
46103         * tests/unictype/test-categ_Pe.c: Regenerated.
46104         * tests/unictype/test-categ_Pf.c: Regenerated.
46105         * tests/unictype/test-categ_Pi.c: Regenerated.
46106         * tests/unictype/test-categ_Po.c: Regenerated.
46107         * tests/unictype/test-categ_Ps.c: Regenerated.
46108         * tests/unictype/test-categ_S.c: Regenerated.
46109         * tests/unictype/test-categ_Sk.c: Regenerated.
46110         * tests/unictype/test-categ_Sm.c: Regenerated.
46111         * tests/unictype/test-categ_So.c: Regenerated.
46112         * tests/unictype/test-ctype_alnum.c: Regenerated.
46113         * tests/unictype/test-ctype_alpha.c: Regenerated.
46114         * tests/unictype/test-ctype_graph.c: Regenerated.
46115         * tests/unictype/test-ctype_lower.c: Regenerated.
46116         * tests/unictype/test-ctype_print.c: Regenerated.
46117         * tests/unictype/test-ctype_punct.c: Regenerated.
46118         * tests/unictype/test-ctype_upper.c: Regenerated.
46119         * tests/unictype/test-decdigit.h: Regenerated.
46120         * tests/unictype/test-digit.h: Regenerated.
46121         * tests/unictype/test-numeric.h: Regenerated.
46122         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46123         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46124         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46125         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46126         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46127         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46128         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46129         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46130         * tests/unictype/test-pr_combining.c: Regenerated.
46131         * tests/unictype/test-pr_dash.c: Regenerated.
46132         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46133         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46134         * tests/unictype/test-pr_deprecated.c: Regenerated.
46135         * tests/unictype/test-pr_diacritic.c: Regenerated.
46136         * tests/unictype/test-pr_extender.c: Regenerated.
46137         * tests/unictype/test-pr_format_control.c: Regenerated.
46138         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46139         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46140         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46141         * tests/unictype/test-pr_id_continue.c: Regenerated.
46142         * tests/unictype/test-pr_id_start.c: Regenerated.
46143         * tests/unictype/test-pr_ideographic.c: Regenerated.
46144         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46145         * tests/unictype/test-pr_lowercase.c: Regenerated.
46146         * tests/unictype/test-pr_math.c: Regenerated.
46147         * tests/unictype/test-pr_numeric.c: Regenerated.
46148         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46149         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46150         Regenerated.
46151         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46152         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46153         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46154         * tests/unictype/test-pr_other_math.c: Regenerated.
46155         * tests/unictype/test-pr_punctuation.c: Regenerated.
46156         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46157         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46158         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46159         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46160         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46161         * tests/unictype/test-pr_uppercase.c: Regenerated.
46162         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46163         * tests/unictype/test-pr_xid_start.c: Regenerated.
46164         * tests/unictype/test-pr_zero_width.c: Regenerated.
46165
46166         Update to Unicode 5.1.0.
46167         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46168         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46169         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46170         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46171         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46172         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46173         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46174         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46175         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46176         (nonspacing_table_ind): Update.
46177         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46178
46179         Update to Unicode 5.1.0.
46180         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46181         code transform.
46182         * lib/uniname/uniname.c (unicode_character_name,
46183         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46184         * lib/uniname/uninames.h: Regenerated.
46185         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46186
46187 2009-02-07  Bruno Haible  <bruno@clisp.org>
46188
46189         Merge gen-ctype and gen-lbrk into a single program.
46190         * lib/gen-uni-tables.c: New file, incorporating
46191         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46192         Add directory prefixes to the names of the generated files.
46193         * lib/unictype/gen-ctype.c: Remove file.
46194         * lib/unilbrk/gen-lbrk.c: Remove file.
46195         * modules/gen-uni-tables: New file.
46196         * modules/unictype/gen-ctype: Remove file.
46197         * modules/unilbrk/gen-lbrk: Remove file.
46198
46199 2009-02-07  Bruno Haible  <bruno@clisp.org>
46200
46201         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46202
46203         New module 'unistr/u32-strcoll'.
46204         * modules/unistr/u32-strcoll: New file.
46205         * lib/unistr/u32-strcoll.c: New file.
46206
46207         New module 'unistr/u16-strcoll'.
46208         * modules/unistr/u16-strcoll: New file.
46209         * lib/unistr/u16-strcoll.c: New file.
46210
46211         New module 'unistr/u8-strcoll'.
46212         * modules/unistr/u8-strcoll: New file.
46213         * lib/unistr/u8-strcoll.c: New file.
46214         * lib/unistr/u-strcoll.h: New file.
46215
46216 2009-02-07  Bruno Haible  <bruno@clisp.org>
46217
46218         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46219         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46220         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46221         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46222         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46223         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46224
46225 2009-02-07  Bruno Haible  <bruno@clisp.org>
46226
46227         Make 64-bit clean.
46228         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46229         output_combclass, output_bidi_category, output_decimal_digit,
46230         output_digit, output_numeric, output_mirror, output_scripts,
46231         output_ident_category): Use proper width specifier in format strings.
46232
46233 2009-02-07  Bruno Haible  <bruno@clisp.org>
46234
46235         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46236         failure behaviour.
46237
46238 2009-02-07  Jim Meyering  <meyering@redhat.com>
46239
46240         regex: avoid compilation failure with upcoming gcc-4.4
46241         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46242         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46243         "... error: integer overflow in preprocessor expression".
46244
46245 2009-02-05  Ben Pfaff  <blp@gnu.org>
46246
46247         Fix link errors on Windows when close module is used.
46248         * modules/close: Add $(LIB_CLOSE) to Link section.
46249         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46250         $(LIB_CLOSE) on Windows.
46251
46252 2009-02-05  Jim Meyering  <meyering@redhat.com>
46253
46254         still avoid unused-parameter warnings, but do it cleanly
46255         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46256         (get_fs_usage): Cast to void instead.
46257         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46258         (dev_from_mount_options, read_file_system_list): Cast to void.
46259         Prompted by Bruno Haible.
46260
46261 2009-02-04  Jim Meyering  <meyering@redhat.com>
46262
46263         fsusage.c: correct copyright year
46264         * lib/fsusage.c: Reflect year in which the change is pushed into
46265
46266         avoid misc. warnings
46267         * lib/fsusage.c (UNUSED_PARAM): Define.
46268         (get_fs_usage): Mark parameter "disk" as unused.
46269         * lib/getugroups.c (getgrent): Use "void" in prototype.
46270         * lib/mountlist.c: Mark unused parameters.
46271         (read_file_system_list): Declare a local with "const".
46272         * lib/nanosleep.c (getnow): Declare static.
46273         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46274
46275         dirfd: set errno upon failure
46276         * lib/dirfd.c: Include <errno.h>.
46277         Set errno to ENOTSUP when returning -1.
46278         * modules/dirfd (Depends-on): Add errno.
46279         Suggested by John Kodis <kodis@comcast.net>.
46280
46281 2009-02-01  Bruno Haible  <bruno@clisp.org>
46282
46283         Don't assume sizeof (long) >= sizeof (void *).
46284         * lib/memcmp.c: Include stdint.h.
46285         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46286         srcp2 to 'const byte *'.
46287         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46288         types to uintptr_t.
46289         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46290         * modules/memcmp (Depends-on): Add stdint.
46291         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46292
46293 2009-01-30  Eric Blake  <ebb9@byu.net>
46294
46295         fix more require-before-expand issues
46296         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46297         expand, AC_PROG_AWK.
46298         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46299
46300 2009-01-28  Eric Blake  <ebb9@byu.net>
46301
46302         version-etc: use consistent URL formatting
46303         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46304         Improve formatting.  Use fputs for string without %.
46305
46306 2009-01-28  Jim Meyering  <meyering@redhat.com>
46307
46308         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46309         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46310         "underquoted definition of NAME" from autoconf-2.59.
46311
46312 2009-01-28  Bruno Haible  <bruno@clisp.org>
46313
46314         * doc/gnulib.texi: Add "Obsolete modules" to index.
46315
46316 2009-01-28  Jim Meyering  <meyering@redhat.com>
46317
46318         useless-if-before-free: recognize more variants
46319         * build-aux/useless-if-before-free: Also recognize e.g.,
46320         if (NULL != p) free (p);
46321
46322 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46323
46324         test-getaddrinfo: skip (don't fail) this test when there's no network
46325         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46326         on the presumption that it means you lack network access.
46327
46328 2009-01-26  Jim Meyering  <meyering@redhat.com>
46329
46330         fflush: avoid warnings on modern systems
46331         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46332         pos and result, into scopes where they're used.
46333
46334 2009-01-26  Eric Blake  <ebb9@byu.net>
46335
46336         Silence warning reintroduced by recent extensions patch.
46337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46338         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46339         autoconf.
46340
46341         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46342         * m4/00gnulib.m4: New file.
46343         * gnulib-tool (func_get_filelist): Always use it.
46344         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46345         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46346
46347 2009-01-25  Bruno Haible  <bruno@clisp.org>
46348
46349         Make test-quotearg work on MacOS X and AIX.
46350         * tests/test-quotearg.sh: New file.
46351         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46352         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46353         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46354         include <libintl.h>.
46355         (fake_locale): Remove variable.
46356         (gettext, dgettext, dcgettext): Remove functions.
46357         (main): Instead of setting a fake locale, set a real locale. Call
46358         textdomain and bindtextdomain.
46359         * modules/quotearg-tests (Files): Add the new files.
46360         (Depends-on): Add gettext, setenv, unsetenv.
46361         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46362         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46363         Augment TESTS_ENVIRONMENT.
46364
46365 2009-01-25  Bruno Haible  <bruno@clisp.org>
46366
46367         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46368         fr_FR.ISO8859-1 locale on MacOS X.
46369         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46370         ja_JP.eucJP locale on MacOS X.
46371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46372         zh_CN.GB18030 locale on MacOS X.
46373
46374 2009-01-25  Bruno Haible  <bruno@clisp.org>
46375
46376         Avoid link errors on MacOS X 10.3.
46377         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46378         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46379
46380 2009-01-25  Bruno Haible  <bruno@clisp.org>
46381
46382         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46383         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46384         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46385         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46386         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46387         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46388         posix_spawnattr_init, posix_spawnattr_setsigmask,
46389         posix_spawnattr_setflags, posix_spawnattr_destroy.
46390
46391         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46392         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46393         * modules/execute (Files): Remove m4/posix_spawn.m4.
46394         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46395         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46396         posix_spawnattr_init, posix_spawnattr_setsigmask,
46397         posix_spawnattr_setflags, posix_spawnattr_destroy.
46398
46399 2009-01-25  Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/glthread/threadlib.c: Include <stdlib.h>.
46402
46403 2009-01-25  Bruno Haible  <bruno@clisp.org>
46404
46405         * lib/glthread/threadlib.c (dummy): New declaration.
46406
46407 2009-01-25  Bruno Haible  <bruno@clisp.org>
46408
46409         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46410         multibyte characters also for the GB18030 encoding. Don't crash when
46411         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46412
46413 2009-01-25  Bruno Haible  <bruno@clisp.org>
46414
46415         Avoid redefining 'struct random_data' on OSF/1 5.1.
46416         * lib/stdlib.in.h: Include <random.h> if it exists.
46417         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46418         HAVE_RANDOM_H. Include <random.h> when testing whether
46419         'struct random_data' exists.
46420         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46421
46422 2009-01-25  Bruno Haible  <bruno@clisp.org>
46423
46424         Don't install charset.alias on MacOS X >= 10.3.
46425         * lib/localcharset.c (DARWIN7): New macro.
46426         (get_charset_aliases): Hardcode the result for Darwin7.
46427         * modules/localcharset (install-exec-local): Don't install
46428         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46429
46430 2009-01-25  Bruno Haible  <bruno@clisp.org>
46431
46432         Don't install charset.alias on mingw and Cygwin.
46433         * modules/localcharset (install-exec-local): Don't install
46434         charset.alias on mingw and Cygwin, if the file does not yet exist.
46435         The result for these platforms is hardcoded in localcharset.c.
46436
46437 2009-01-25  Bruno Haible  <bruno@clisp.org>
46438
46439         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46441         before requiring AC_USE_SYSTEM_EXTENSIONS.
46442
46443 2009-01-25  Jim Meyering  <meyering@redhat.com>
46444
46445         c-strtod: avoid warnings
46446         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46447         "assignment discards qualifiers from pointer target type" warnings.
46448
46449 2009-01-24  Bruno Haible  <bruno@clisp.org>
46450
46451         Add support for non-UTF-8 locales on MacOS X.
46452         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46453         canonical encodings. For Darwin 7 and newer, don't map traditional
46454         encodings to UTF-8.
46455         Reported by Vincent Lefevre <vincent@vinc17.org>
46456         at <http://savannah.gnu.org/bugs/?25235>.
46457
46458 2009-01-24  Bruno Haible  <bruno@clisp.org>
46459
46460         * doc/gnulib.texi (Obsolete modules): New section.
46461         Reported by Mike Frysinger <vapier@gentoo.org>.
46462
46463 2009-01-24  Bruno Haible  <bruno@clisp.org>
46464
46465         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46466         (%.dvi): New rule.
46467
46468 2009-01-24  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46471         Reported by Eric Blake.
46472
46473 2009-01-24  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46476         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46477         Reported by Gary V. Vaughan <gary@gnu.org>.
46478
46479 2009-01-24  Bruno Haible  <bruno@clisp.org>
46480
46481         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46482
46483 2009-01-23  Bruno Haible  <bruno@clisp.org>
46484
46485         Make c-strtod, c-strtold usable in libraries.
46486         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46487         (C_STRTOD): Call strdup instead of xstrdup.
46488         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46489         * modules/c-strtold (Depends-on): Likewise.
46490         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46491         * NEWS: Mention the change.
46492         Reported by Michael Gold <mgold@ncf.ca>.
46493
46494 2009-01-23  Jim Meyering  <meyering@redhat.com>
46495
46496         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46497         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46498         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46499
46500 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46501
46502         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46503         GNU CoreUtils.
46504         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46505         * modules/version-etc (Description): Update.
46506
46507 2009-01-22  Bruno Haible  <bruno@clisp.org>
46508
46509         Cache the C locale object.
46510         * lib/c-strtod.c (c_locale_cache): New variable.
46511         (c_locale): New function.
46512         (C_STRTOD): Use it, and don't call freelocale.
46513         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46514         Suggested by Paolo Bonzini.
46515
46516 2009-01-21  Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46519         conditions other than overflow.
46520
46521 2009-01-21  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/c-strtod.c: Include errno.h.
46524         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46525         value from STRTOD_L and STRTOD.
46526
46527 2009-01-21  Bruno Haible  <bruno@clisp.org>
46528         and Jim Meyering  <meyering@redhat.com>
46529
46530         nanosleep: skip configure test (fail it) for apple universal builds
46531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46532         universal builds, assume that nanosleep does not work.
46533         * modules/nanosleep (Depends-on): Add multiarch.
46534
46535         mktime: skip configure test (fail it) for apple universal builds
46536         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46537         universal builds, assume that mktime does not work.
46538         * modules/mktime (Depends-on): Add multiarch.
46539
46540 2009-01-21  Eric Blake  <ebb9@byu.net>
46541
46542         multiarch: avoid expand-before-require warning
46543         * modules/multiarch (configure.ac): Require, rather than expand,
46544         gl_MULTIARCH.
46545         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46546         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46547         enforce that all clients require it.  Partial reversion of
46548         2008-12-29 patch.
46549
46550         error: avoid expand-before-require warning
46551         * modules/errno (configure.ac): Require, rather than expand,
46552         gl_HEADER_ERRNO_H.
46553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46554         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46555         enforce that all clients require it.
46556
46557         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46558         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46559         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46560         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46561
46562 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46563
46564         Revert:
46565         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46566
46567         regex: do not depend on obsolete modules.
46568         * modules/regex: Remove memcmp and memmove.
46569
46570 2009-01-20  Bruno Haible  <bruno@clisp.org>
46571
46572         Make the 'link' module link on Windows NT 4.
46573         * lib/link.c (_WIN32_WINNT): Don't define.
46574         (CreateHardLinkFuncType): New type.
46575         (CreateHardLinkFunc, initialized): New variables.
46576         (initialize): New function.
46577         (link): Invoke CreateHardLink indirectly through the function pointer.
46578
46579 2009-01-20  Bruno Haible  <bruno@clisp.org>
46580
46581         Fix compilation failure on mingw.
46582         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46583
46584 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46585
46586         * doc/c-strtod.texi: Mention a couple of restrictions.
46587
46588 2009-01-20  Jim Meyering  <meyering@redhat.com>
46589
46590         gettimeofday: move more declarations out of functions
46591         * lib/gettimeofday.c: Move extern declarations of tzset and
46592         gmtime out of containing functions.  Prompted by Bruno Haible.
46593
46594 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46595
46596         regex: do not depend on obsolete modules.
46597         * modules/regex: Remove memcmp and memmove.
46598
46599 2009-01-19  Bruno Haible  <bruno@clisp.org>
46600
46601         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46602         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46603         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46604         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46605         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46606
46607 2009-01-19  Bruno Haible  <bruno@clisp.org>
46608
46609         * tests/test-link.c: Include <errno.h>.
46610         (main): Exit with code 77 when a hard link cannot be created due to
46611         the file system.
46612         * tests/test-link.sh: Skip test when a hard link cannot be created due
46613         to the file system.
46614         Suggested by Eric Blake.
46615
46616 2009-01-19  Martin Lambers  <marlam@marlam.de>
46617
46618         * modules/link-tests: New file.
46619         * tests/test-link.sh: New file.
46620         * tests/test-link.c: New file.
46621
46622 2009-01-19  Eric Blake  <ebb9@byu.net>
46623
46624         doc: mention another function added in cygwin 1.7.0
46625         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46626         Another new function in cygwin 1.7.
46627
46628 2009-01-19  Bruno Haible  <bruno@clisp.org>
46629
46630         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46631         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46632         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46633         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46634         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46635         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46636         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46637         * m4/md4.m4 (gl_MD4): Likewise.
46638         * m4/md5.m4 (gl_MD5): Likewise.
46639         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46640         * m4/sha1.m4 (gl_SHA1): Likewise.
46641         * m4/sha256.m4 (gl_SHA256): Likewise.
46642         * m4/sha512.m4 (gl_SHA512): Likewise.
46643
46644 2009-01-19  Bruno Haible  <bruno@clisp.org>
46645
46646         * modules/uniname/uniname-tests (Depends-on): Add progname.
46647         * tests/uniname/test-uninames.c: Include progname.h.
46648         (main): Call set_program_name.
46649
46650         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46651         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46652         (main): Call set_program_name.
46653
46654         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46655         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46656         (main): Call set_program_name.
46657
46658         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46659         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46660         (main): Call set_program_name.
46661
46662         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46663         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46664         (main): Call set_program_name.
46665
46666         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46667         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46668         (main): Call set_program_name.
46669
46670         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46671         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46672         (main): Call set_program_name.
46673
46674         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46675         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46676         (main): Call set_program_name.
46677
46678         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46679         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46680         (main): Call set_program_name.
46681
46682 2009-01-19  Eric Blake  <ebb9@byu.net>
46683
46684         test-unistd: test previous patch
46685         * tests/test-unistd.c: Test *_FILENO macros.
46686
46687         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46688         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46689         Guarantee a definition.
46690         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46691         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46692         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46693         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46694         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46695         Likewise.
46696         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46697         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46698         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46699         Likewise.
46700         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46701         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46702         (STDERR_FILENO): Likewise.
46703         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46704         (STDERR_FILENO): Likewise.
46705         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46706         (STDERR_FILENO): Likewise.
46707         Reported by Elbert Pol.
46708
46709 2009-01-19  Eric Blake  <ebb9@byu.net>
46710
46711         doc: mention more functions added in cygwin 1.7.0
46712         * doc/posix-functions/abort.texi (abort): Update wording related
46713         to cygwin.
46714         * doc/posix-functions/daylight.texi (daylight): Likewise.
46715         * doc/posix-functions/optarg.texi (optarg): Likewise.
46716         * doc/posix-functions/optarg.texi (opterr): Likewise.
46717         * doc/posix-functions/optarg.texi (optind): Likewise.
46718         * doc/posix-functions/optarg.texi (optopt): Likewise.
46719         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46720         worked in 1.5.x, and was withdrawn in 1.7.
46721         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46722         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46723         cygwin versions.
46724         * doc/posix-functions/perror.texi (perror): Likewise.
46725         * doc/posix-functions/printf.texi (printf): Likewise.
46726         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46727         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46728         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46729         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46730         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46731         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46732         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46733         Likewise.
46734         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46735         Likewise.
46736         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46737         this function.
46738         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46739         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46740         Likewise.
46741         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46742         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46743         * doc/posix-functions/confstr.texi (confstr): Likewise.
46744         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46745         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46746         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46747         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46748         * doc/posix-functions/fputws.texi (fputws): Likewise.
46749         * doc/posix-functions/fwide.texi (fwide): Likewise.
46750         * doc/posix-functions/getwc.texi (getwc): Likewise.
46751         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46752         * doc/posix-functions/putwc.texi (putwc): Likewise.
46753         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46754         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46755         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46756         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46757         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46758         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46759         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46760         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46761         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46762         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46763         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46764
46765 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46766
46767         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46768         * lib/ioctl.c: Include <sys/ioctl.h>.
46769
46770 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46771
46772         * modules/getdate-tests (Depends-on): Add progname.
46773         * tests/test-getdate.c: Use progname module, to avoid link errors
46774         on non-glibc systems.
46775
46776 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46777
46778         * modules/filenamecat-tests (Depends-on): Add progname.
46779         * modules/fstrcmp-tests (Depends-on): Likewise.
46780
46781         * tests/test-filenamecat.c: Use progname module, to avoid link
46782         errors on non-glibc systems.
46783         * tests/test-fstrcmp.c: Likewise.
46784
46785 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46786
46787         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46788         * lib/gettimeofday.c: Move extern declaration out of function.
46789
46790 2009-01-18  Bruno Haible  <bruno@clisp.org>
46791
46792         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46793         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46794         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46795
46796 2009-01-18  Bruno Haible  <bruno@clisp.org>
46797
46798         * lib/strftime.c (MEMPCPY): Remove unused macro.
46799         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46800
46801 2009-01-18  Martin Lambers  <marlam@marlam.de>
46802
46803         New module 'link'.
46804         * lib/unistd.in.h (link): New declaration.
46805         * lib/link.c: New file.
46806         * m4/link.m4: New file.
46807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46808         HAVE_LINK.
46809         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46810         * modules/link: New file.
46811         * doc/posix-functions/link.texi: Mention the new module.
46812
46813 2009-01-18  Bruno Haible  <bruno@clisp.org>
46814
46815         * tests/test-avltree_list.c (main): Call set_program_name.
46816         * tests/test-avltree_oset.c (main): Likewise.
46817         * tests/test-obstack-printf.c: Include progname.h.
46818         (main): Call set_program_name.
46819         * tests/test-quotearg.c: Include progname.h.
46820         (main): Call set_program_name.
46821         * tests/test-xmemdup0.c: Include progname.h.
46822         (main): Call set_program_name.
46823
46824 2009-01-18  Bruno Haible  <bruno@clisp.org>
46825
46826         New module 'alphasort'.
46827         * lib/dirent.in.h (alphasort): New declaration.
46828         * lib/alphasort.c: New file, from glibc with modifications.
46829         * m4/alphasort.m4: New file.
46830         * modules/alphasort: New file.
46831         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46832         HAVE_ALPHASORT.
46833         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46834         HAVE_ALPHASORT.
46835         * doc/posix-functions/alphasort.texi: Mention the new module and the
46836         portability problems.
46837
46838 2009-01-18  Bruno Haible  <bruno@clisp.org>
46839
46840         New module 'scandir'.
46841         * lib/dirent.in.h (scandir): New declaration.
46842         * lib/scandir.c: New file, from glibc with modifications.
46843         * m4/scandir.m4: New file.
46844         * modules/scandir: New file.
46845         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46846         HAVE_SCANDIR.
46847         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46848         HAVE_SCANDIR.
46849         * doc/posix-functions/scandir.texi: Mention the new module and the
46850         portability problems.
46851
46852 2009-01-17  Bruno Haible  <bruno@clisp.org>
46853
46854         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46855         Update documentation.
46856         (func_remove_suffix): Escape all dots in the suffix. Update
46857         documentation.
46858         (func_filter_filelist): Update documentation.
46859         Reported by Ralf Wildenhues.
46860
46861 2009-01-17  Bruno Haible  <bruno@clisp.org>
46862
46863         * modules/dprintf-posix-tests: New file.
46864         * tests/test-dprintf-posix.sh: New file.
46865         * tests/test-dprintf-posix.c: New file.
46866
46867         New modules 'dprintf', 'dprintf-posix'.
46868         * lib/stdio.in.h (dprintf): New declaration.
46869         * lib/dprintf.c: New file.
46870         * m4/dprintf.m4: New file.
46871         * m4/dprintf-posix.m4: New file.
46872         * modules/dprintf: New file.
46873         * modules/dprintf-posix: New file.
46874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46875         HAVE_DPRINTF, REPLACE_DPRINTF.
46876         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46877         HAVE_DPRINTF, REPLACE_DPRINTF.
46878         * doc/posix-functions/dprintf.texi: Mention the new modules.
46879
46880 2009-01-17  Bruno Haible  <bruno@clisp.org>
46881
46882         * modules/vdprintf-posix-tests: New file.
46883         * tests/test-vdprintf-posix.sh: New file.
46884         * tests/test-vdprintf-posix.c: New file.
46885
46886         New modules 'vdprintf', 'vdprintf-posix'.
46887         * lib/stdio.in.h (vdprintf): New declaration.
46888         * lib/vdprintf.c: New file.
46889         * m4/vdprintf.m4: New file.
46890         * m4/vdprintf-posix.m4: New file.
46891         * modules/vdprintf: New file.
46892         * modules/vdprintf-posix: New file.
46893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46894         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46895         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46896         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46897         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46898
46899 2009-01-17  Bruno Haible  <bruno@clisp.org>
46900
46901         Fix replacement of fopen on mingw.
46902         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46903         mingw.
46904
46905 2009-01-17  Bruno Haible  <bruno@clisp.org>
46906
46907         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46908         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46909
46910 2009-01-17  Bruno Haible  <bruno@clisp.org>
46911
46912         Avoid test-fflush2.sh failure on mingw.
46913         * tests/test-fflush2.c: Include binary-io.h.
46914         (main): Put standard input into binary mode.
46915         * modules/fflush-tests (Depends-on): Add binary-io.
46916
46917 2009-01-17  Bruno Haible  <bruno@clisp.org>
46918
46919         * lib/wchar.in.h: In another particular situation, include only the
46920         system's <wchar.h> file.
46921         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46922         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46923         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46924
46925 2009-01-17  Bruno Haible  <bruno@clisp.org>
46926
46927         Support for stripping executables in --enable-relocatable.
46928         * build-aux/install-reloc: Expect one more argument, or an environment
46929         variable RELOC_STRIP_PROG. If set, strip the destination program and
46930         its wrapper.
46931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46932         RELOC_STRIP_PROG.
46933         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46934         to set RELOCATABLE_STRIP.
46935         * NEWS: Mention the new Makefile requirement.
46936
46937 2009-01-17  Bruno Haible  <bruno@clisp.org>
46938
46939         * build-aux/install-reloc: Remove debugging information left over by
46940         C compiler on MacOS X.
46941
46942 2009-01-17  Bruno Haible  <bruno@clisp.org>
46943
46944         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46945         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46946         _NSGetExecutablePath.
46947
46948 2009-01-16  Jim Meyering  <meyering@redhat.com>
46949
46950         strerror: avoid warnings about discarding "const"
46951         * lib/strerror.c (rpl_strerror): Instead of returning a const
46952         string from each and every "case", use a variable, and add a single
46953         cast after the switch.
46954
46955 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46956
46957         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46958
46959 2009-01-16  Bruno Haible  <bruno@clisp.org>
46960
46961         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46962         array initializer syntax that also works in C++ mode.
46963         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46964
46965 2009-01-16  Jim Meyering  <meyering@redhat.com>
46966
46967         poll: suppress a warning
46968         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46969         to ignore "...unsigned expression < 0 is always false" warnings.
46970
46971 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46972
46973         poll: remove declarations of unused variables
46974         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46975         sockbuf and optlen.
46976
46977 2009-01-15  Bruno Haible  <bruno@clisp.org>
46978
46979         Make fflush-after-ungetc POSIX compliant on BSD systems.
46980         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46981         (clear_ungetc_buffer): Implement also for other systems.
46982         (rpl_fflush): On glibc systems, invoke
46983         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46984         clear_ungetc_buffer after fetching the stream's position, not before.
46985
46986 2009-01-15  Bruno Haible  <bruno@clisp.org>
46987
46988         Make fflush-after-ungetc POSIX compliant on glibc systems.
46989         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46990         after ungetc.
46991         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46992         (rpl_fflush): On glibc systems, simply call the system's fflush
46993         function after clearing the ungetc buffer.
46994         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46995         Instead, lseek only to the end of file, then use the system's fseeko
46996         for the rest. On glibc systems, reset the EOF indicator bit.
46997
46998 2009-01-15  Jim Meyering  <meyering@redhat.com>
46999
47000         openmp.m4: revert quote-adding change, for portability to older autoconf
47001         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47002         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47003         Simon Josefsson noticed the problem when using autoconf-2.61.
47004
47005 2009-01-15  Bruno Haible  <bruno@clisp.org>
47006
47007         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47008         * tests/test-fflush2.c (ASSERT): Always fail.
47009         (main): Add two tests for fflush() after ungetc(), taking into account
47010         the Austin Group's clarification.
47011         Suggested by Eric Blake.
47012
47013 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47014
47015         mktime.m4: remove K&R-style function prototypes
47016         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47017         for the Sun C++ compiler.
47018
47019 2009-01-14  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47022         while including <wchar.h>.
47023         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47024         the system's <wchar.h> file.
47025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47026
47027 2009-01-14  Bruno Haible  <bruno@clisp.org>
47028
47029         * m4/csharp.m4: Don't mention gettext on the serial number line.
47030         * m4/csharpexec.m4: Likewise.
47031         * m4/eaccess.m4: Likewise.
47032         * m4/javaexec.m4: Likewise.
47033         * m4/sig_atomic_t.m4: Likewise.
47034         * m4/tmpdir.m4: Likewise.
47035         * m4/intldir.m4: Bump gettext version.
47036         * m4/lib-ld.m4: Likewise.
47037
47038 2009-01-14  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/progname.c (set_program_name): Add more comments.
47041         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47042
47043 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47044
47045         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47046         were sys/stat.h does not define it.
47047
47048 2009-01-14  Jim Meyering  <meyering@redhat.com>
47049
47050         many *.m4 files: improve m4 quoting
47051         99% of this change was performed by running the following commands:
47052         git ls-files | grep '\.m4$' | xargs perl -pi \
47053           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47054           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47055           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47056           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47057         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47058         The remainder were to add Copyright dates, increment serial numbers,
47059         undo some changes in comments, exclude m4/intl.m4, and add quotes
47060         around the "1" in ",1" where the unusual spacing prohibited the
47061         above regexps from doing the job.  For more details, see
47062         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47063         * m4/acl.m4: Modified.
47064         * m4/afs.m4: Likewise.
47065         * m4/alloca.m4: Likewise.
47066         * m4/argp.m4: Likewise.
47067         * m4/argz.m4: Likewise.
47068         * m4/atexit.m4: Likewise.
47069         * m4/bison-i18n.m4: Likewise.
47070         * m4/bison.m4: Likewise.
47071         * m4/byteswap.m4: Likewise.
47072         * m4/c-stack.m4: Likewise.
47073         * m4/c-strtod.m4: Likewise.
47074         * m4/calloc.m4: Likewise.
47075         * m4/canonicalize-lgpl.m4: Likewise.
47076         * m4/chown.m4: Likewise.
47077         * m4/clock_time.m4: Likewise.
47078         * m4/codeset.m4: Likewise.
47079         * m4/copy-file.m4: Likewise.
47080         * m4/csharp.m4: Likewise.
47081         * m4/csharpcomp.m4: Likewise.
47082         * m4/csharpexec.m4: Likewise.
47083         * m4/d-ino.m4: Likewise.
47084         * m4/d-type.m4: Likewise.
47085         * m4/dirfd.m4: Likewise.
47086         * m4/double-slash-root.m4: Likewise.
47087         * m4/eaccess.m4: Likewise.
47088         * m4/eealloc.m4: Likewise.
47089         * m4/environ.m4: Likewise.
47090         * m4/errno_h.m4: Likewise.
47091         * m4/euidaccess.m4: Likewise.
47092         * m4/execute.m4: Likewise.
47093         * m4/fatal-signal.m4: Likewise.
47094         * m4/fchdir.m4: Likewise.
47095         * m4/fcntl_h.m4: Likewise.
47096         * m4/fileblocks.m4: Likewise.
47097         * m4/filenamecat.m4: Likewise.
47098         * m4/findprog.m4: Likewise.
47099         * m4/flexmember.m4: Likewise.
47100         * m4/fnmatch.m4: Likewise.
47101         * m4/fopen.m4: Likewise.
47102         * m4/fpending.m4: Likewise.
47103         * m4/fprintf-posix.m4: Likewise.
47104         * m4/free.m4: Likewise.
47105         * m4/frexp.m4: Likewise.
47106         * m4/frexpl.m4: Likewise.
47107         * m4/fsusage.m4: Likewise.
47108         * m4/ftruncate.m4: Likewise.
47109         * m4/gc-camellia.m4: Likewise.
47110         * m4/gc-random.m4: Likewise.
47111         * m4/gc.m4: Likewise.
47112         * m4/getaddrinfo.m4: Likewise.
47113         * m4/getcwd-abort-bug.m4: Likewise.
47114         * m4/getcwd-path-max.m4: Likewise.
47115         * m4/getdate.m4: Likewise.
47116         * m4/getdomainname.m4: Likewise.
47117         * m4/getgroups.m4: Likewise.
47118         * m4/gethostname.m4: Likewise.
47119         * m4/gethrxtime.m4: Likewise.
47120         * m4/getline.m4: Likewise.
47121         * m4/getloadavg.m4: Likewise.
47122         * m4/getndelim2.m4: Likewise.
47123         * m4/getpass.m4: Likewise.
47124         * m4/gettext.m4: Likewise.
47125         * m4/gettime.m4: Likewise.
47126         * m4/gettimeofday.m4: Likewise.
47127         * m4/gnulib-common.m4: Likewise.
47128         * m4/group-member.m4: Likewise.
47129         * m4/host-os.m4: Likewise.
47130         * m4/iconv.m4: Likewise.
47131         * m4/iconv_open.m4: Likewise.
47132         * m4/inet_ntop.m4: Likewise.
47133         * m4/inet_pton.m4: Likewise.
47134         * m4/inline.m4: Likewise.
47135         * m4/intldir.m4: Likewise.
47136         * m4/intlmacosx.m4: Likewise.
47137         * m4/intmax.m4: Likewise.
47138         * m4/intmax_t.m4: Likewise.
47139         * m4/inttypes.m4: Likewise.
47140         * m4/inttypes_h.m4: Likewise.
47141         * m4/inttypes-pri.m4: Likewise.
47142         * m4/isapipe.m4: Likewise.
47143         * m4/isnand.m4: Likewise.
47144         * m4/isnanf.m4: Likewise.
47145         * m4/isnanl.m4: Likewise.
47146         * m4/javacomp.m4: Likewise.
47147         * m4/javaexec.m4: Likewise.
47148         * m4/jm-winsz1.m4: Likewise.
47149         * m4/jm-winsz2.m4: Likewise.
47150         * m4/lchown.m4: Likewise.
47151         * m4/lcmessage.m4: Likewise.
47152         * m4/ldexpl.m4: Likewise.
47153         * m4/lib-ld.m4: Likewise.
47154         * m4/lib-link.m4: Likewise.
47155         * m4/libsigsegv.m4: Likewise.
47156         * m4/link-follow.m4: Likewise.
47157         * m4/localcharset.m4: Likewise.
47158         * m4/locale-fr.m4: Likewise.
47159         * m4/locale-ja.m4: Likewise.
47160         * m4/locale-tr.m4: Likewise.
47161         * m4/locale-zh.m4: Likewise.
47162         * m4/lock.m4: Likewise.
47163         * m4/longlong.m4: Likewise.
47164         * m4/ls-mntd-fs.m4: Likewise.
47165         * m4/lstat.m4: Likewise.
47166         * m4/malloc.m4: Likewise.
47167         * m4/mathl.m4: Likewise.
47168         * m4/mbrtowc.m4: Likewise.
47169         * m4/mbstate_t.m4: Likewise.
47170         * m4/mbswidth.m4: Likewise.
47171         * m4/memchr.m4: Likewise.
47172         * m4/memcmp.m4: Likewise.
47173         * m4/memcpy.m4: Likewise.
47174         * m4/memmem.m4: Likewise.
47175         * m4/memmove.m4: Likewise.
47176         * m4/mempcpy.m4: Likewise.
47177         * m4/memrchr.m4: Likewise.
47178         * m4/memset.m4: Likewise.
47179         * m4/minmax.m4: Likewise.
47180         * m4/mkdir-slash.m4: Likewise.
47181         * m4/mkdtemp.m4: Likewise.
47182         * m4/mktime.m4: Likewise.
47183         * m4/mmap-anon.m4: Likewise.
47184         * m4/mountlist.m4: Likewise.
47185         * m4/nanosleep.m4: Likewise.
47186         * m4/nls.m4: Likewise.
47187         * m4/nocrash.m4: Likewise.
47188         * m4/open.m4: Likewise.
47189         * m4/openat.m4: Likewise.
47190         * m4/openmp.m4: Likewise.
47191         * m4/pathmax.m4: Likewise.
47192         * m4/perl.m4: Likewise.
47193         * m4/physmem.m4: Likewise.
47194         * m4/pipe.m4: Likewise.
47195         * m4/po.m4: Likewise.
47196         * m4/poll.m4: Likewise.
47197         * m4/posixtm.m4: Likewise.
47198         * m4/posixver.m4: Likewise.
47199         * m4/printf-frexp.m4: Likewise.
47200         * m4/printf-frexpl.m4: Likewise.
47201         * m4/printf-posix.m4: Likewise.
47202         * m4/printf-posix-rpl.m4: Likewise.
47203         * m4/printf.m4: Likewise.
47204         * m4/progtest.m4: Likewise.
47205         * m4/putenv.m4: Likewise.
47206         * m4/readline.m4: Likewise.
47207         * m4/readlink.m4: Likewise.
47208         * m4/readutmp.m4: Likewise.
47209         * m4/realloc.m4: Likewise.
47210         * m4/regex.m4: Likewise.
47211         * m4/relocatable.m4: Likewise.
47212         * m4/relocatable-lib.m4: Likewise.
47213         * m4/rename-dest-slash.m4: Likewise.
47214         * m4/rename.m4: Likewise.
47215         * m4/rmdir-errno.m4: Likewise.
47216         * m4/rmdir.m4: Likewise.
47217         * m4/roundf.m4: Likewise.
47218         * m4/roundl.m4: Likewise.
47219         * m4/rpmatch.m4: Likewise.
47220         * m4/save-cwd.m4: Likewise.
47221         * m4/selinux-selinux-h.m4: Likewise.
47222         * m4/setenv.m4: Likewise.
47223         * m4/settime.m4: Likewise.
47224         * m4/sig2str.m4: Likewise.
47225         * m4/sig_atomic_t.m4: Likewise.
47226         * m4/signalblocking.m4: Likewise.
47227         * m4/signbit.m4: Likewise.
47228         * m4/sigpipe.m4: Likewise.
47229         * m4/sockets.m4: Likewise.
47230         * m4/sockpfaf.m4: Likewise.
47231         * m4/st_dm_mode.m4: Likewise.
47232         * m4/stat-time.m4: Likewise.
47233         * m4/stdbool.m4: Likewise.
47234         * m4/stdint.m4: Likewise.
47235         * m4/stdint_h.m4: Likewise.
47236         * m4/stpcpy.m4: Likewise.
47237         * m4/stpncpy.m4: Likewise.
47238         * m4/strcase.m4: Likewise.
47239         * m4/strchrnul.m4: Likewise.
47240         * m4/strcspn.m4: Likewise.
47241         * m4/strdup.m4: Likewise.
47242         * m4/strftime.m4: Likewise.
47243         * m4/strndup.m4: Likewise.
47244         * m4/strnlen.m4: Likewise.
47245         * m4/strpbrk.m4: Likewise.
47246         * m4/strptime.m4: Likewise.
47247         * m4/strsep.m4: Likewise.
47248         * m4/strtod.m4: Likewise.
47249         * m4/strtoimax.m4: Likewise.
47250         * m4/strtok_r.m4: Likewise.
47251         * m4/strtol.m4: Likewise.
47252         * m4/strtoll.m4: Likewise.
47253         * m4/strtoul.m4: Likewise.
47254         * m4/strtoull.m4: Likewise.
47255         * m4/strtoumax.m4: Likewise.
47256         * m4/strverscmp.m4: Likewise.
47257         * m4/threadlib.m4: Likewise.
47258         * m4/timegm.m4: Likewise.
47259         * m4/tm_gmtoff.m4: Likewise.
47260         * m4/tmpdir.m4: Likewise.
47261         * m4/tmpfile.m4: Likewise.
47262         * m4/tzset.m4: Likewise.
47263         * m4/uintmax_t.m4: Likewise.
47264         * m4/unlinkdir.m4: Likewise.
47265         * m4/unlocked-io.m4: Likewise.
47266         * m4/uptime.m4: Likewise.
47267         * m4/userspec.m4: Likewise.
47268         * m4/utimbuf.m4: Likewise.
47269         * m4/utime.m4: Likewise.
47270         * m4/utimes-null.m4: Likewise.
47271         * m4/utimes.m4: Likewise.
47272         * m4/vararrays.m4: Likewise.
47273         * m4/vasnprintf.m4: Likewise.
47274         * m4/vfprintf-posix.m4: Likewise.
47275         * m4/vprintf-posix.m4: Likewise.
47276         * m4/wait-process.m4: Likewise.
47277         * m4/wchar_t.m4: Likewise.
47278         * m4/wint_t.m4: Likewise.
47279         * m4/write-any-file.m4: Likewise.
47280         * m4/yield.m4: Likewise.
47281
47282 2009-01-13  Bruno Haible  <bruno@clisp.org>
47283
47284         Avoid test-copy-file.sh failures when ACL support insufficient.
47285         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47286         TESTS_ENVIRONMENT.
47287         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47288         Reported by Jim Meyering.
47289
47290 2009-01-13  Bruno Haible  <bruno@clisp.org>
47291
47292         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47293         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47294         * modules/unistdio/u8-printf-parse (Files): Likewise.
47295         * modules/unistdio/u32-printf-parse (Files): Likewise.
47296         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47297
47298 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47299
47300         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47301         and m4/inttypes_h.m4 too.
47302
47303 2009-01-12  Eric Blake  <ebb9@byu.net>
47304
47305         tests: IRIX 6.2 cc can't compile -0.0 into .data
47306         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47307         rather than at compile-time.
47308         * tests/test-floorl.c (minus_zero): Likewise.
47309         * tests/test-frexpl.c (minus_zero): Likewise.
47310         * tests/test-isnan.c (minus_zerol): Likewise.
47311         * tests/test-isnanl.h (minus_zero): Likewise.
47312         * tests/test-ldexpl.c (minus_zero): Likewise.
47313         * tests/test-roundl.c (minus_zero): Likewise.
47314         * tests/test-signbit.c (minus_zerol): Likewise.
47315         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47316         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47317         * tests/test-truncl.c (minus_zero): Likewise.
47318         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47319         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47320         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47321
47322 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47323
47324         regex: fix glibc bug 9697
47325         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47326         handling.
47327
47328 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47329
47330         regex: fix glibc bug 697
47331         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47332         being NULL also if there are no backreferences.
47333
47334 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47335
47336         regex: merge glibc changes
47337         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47338         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47339         re_string_skip_chars, re_string_reconstruct): Likewise.
47340         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47341
47342 2009-01-07  Jim Meyering  <meyering@redhat.com>
47343
47344         poll: filter through cppi
47345         * lib/poll.c: Indent cpp directives to reflect nesting.
47346
47347 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47348
47349         poll: don't return uninitialized
47350         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47351
47352 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47353
47354         avoid compile failure on AIX 6.1
47355         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47356         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47357
47358 2009-01-04  Jim Meyering  <meyering@redhat.com>
47359
47360         remove duplicate inclusion of <stdio.h>
47361         * tests/test-fprintf-posix.c: Likewise.
47362         * tests/test-printf-posix.c: Likewise.
47363         * tests/test-snprintf-posix.c: Likewise.
47364         * tests/test-sprintf-posix.c: Likewise.
47365         * tests/test-vasprintf-posix.c: Likewise.
47366         * tests/test-vfprintf-posix.c: Likewise.
47367         * tests/test-vprintf-posix.c: Likewise.
47368         * tests/test-vsnprintf-posix.c: Likewise.
47369         * tests/test-vsprintf-posix.c: Likewise.
47370
47371 2009-01-03  Jim Meyering  <meyering@redhat.com>
47372
47373         gnulib-tool: fix sed-based filtering
47374         * gnulib-tool (func_filter_filelist): Remove extra backslash
47375         in sed_fff_filter definition.
47376
47377 2009-01-02  Jim Meyering  <meyering@redhat.com>
47378
47379         strftime: avoid compilation failure on Solaris 2.6
47380         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47381         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47382         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47383         be available.  Reported by Tom G. Christensen.  Details in
47384         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47385
47386 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47387             Bruno Haible  <bruno@clisp.org>
47388
47389         Speed up gnulib-tool by doing more string processing through shell
47390         built-ins.
47391         * gnulib-tool (fast_func_append): New variable.
47392         (func_remove_prefix, func_remove_suffix): New functions.
47393         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47394         (func_filter_filelist): New function.
47395         (func_get_dependencies): Use func_remove_suffix instead of sed.
47396         (func_get_automake_snippet): Use func_filter_filelist instead of a
47397         subshell and sed invocation.
47398
47399 2009-01-01  Bruno Haible  <bruno@clisp.org>
47400
47401         Fix a security bug.
47402         * gnulib-tool (func_import, import, update): Don't allow the characters
47403         '"', '$', '`', '\' in macro arguments that become part of commands that
47404         are evaluated.
47405
47406 2009-01-01  Bruno Haible  <bruno@clisp.org>
47407
47408         * gnulib-tool (func_reset_sigpipe): Add more comments.
47409
47410 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47411
47412         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47413         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47414         already know the answer.
47415
47416 2009-01-01  Jim Meyering  <meyering@redhat.com>
47417
47418         * lib/version-etc.c (version_etc_va): Update copyright year.
47419
47420 2008-12-30  Bruno Haible  <bruno@clisp.org>
47421
47422         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47423         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47424         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47425
47426 2008-12-29  Eric Blake  <ebb9@byu.net>
47427
47428         multiarch: avoid autoconf AC_REQUIRE bug
47429         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47430         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47431         2.63 and older.
47432         Reported by Bruno Haible, and analyzed in
47433         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47434
47435 2008-12-29  Bruno Haible  <bruno@clisp.org>
47436
47437         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47438         files in subdirectories correctly.
47439         Reported by Ralf Wildenhues.
47440
47441 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47442
47443         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47444         rather than 'join FILE -', for Solaris join.
47445
47446 2008-12-29  Bruno Haible  <bruno@clisp.org>
47447
47448         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47449         quoting.
47450         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47451         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47452         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47453         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47454         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47455         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47456         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47457         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47458         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47459         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47460         * m4/nls.m4 (AM_NLS): Likewise.
47461         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47462         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47463         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47464         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47465         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47466         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47467         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47468         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47469         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47470         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47471         * m4/xsize.m4 (gl_XSIZE): Likewise.
47472         Suggested by Jim Meyering.
47473
47474 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47475
47476         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47477         * lib/parse-duration.c: use a switch instead of cascading if's.
47478
47479 2008-12-29  Eric Blake  <ebb9@byu.net>
47480
47481         wchar.h: supply WEOF on Irix 5.3
47482         * lib/wchar.in.h (wint_t): Also supply WEOF.
47483         * lib/wctype.in.h (wint_t): Likewise.
47484         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47485         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47486         Reported by Tom G. Christensen.
47487
47488 2008-12-26  Bruno Haible  <bruno@clisp.org>
47489
47490         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47491         i486, i586, i686.
47492
47493 2008-12-26  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47496
47497 2008-12-26  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47500         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47501         not __STDC_CONSTANT_MACROS.
47502         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47503
47504 2008-12-25  Bruno Haible  <bruno@clisp.org>
47505
47506         Add support for universal builds to vasnprintf.
47507         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47508         universal builds, guess no.
47509         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47510         * modules/vasprintf-posix (Depends-on): Likewise.
47511         * modules/fprintf-posix (Depends-on): Likewise.
47512         * modules/vfprintf-posix (Depends-on): Likewise.
47513         * modules/snprintf-posix (Depends-on): Likewise.
47514         * modules/vsnprintf-posix (Depends-on): Likewise.
47515         * modules/sprintf-posix (Depends-on): Likewise.
47516         * modules/vsprintf-posix (Depends-on): Likewise.
47517         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47518         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47519         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47520         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47521         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47522         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47523         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47524
47525         Add support for universal builds to <inttypes.h>.
47526         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47527         _SCNu64_PREFIX): In Apple
47528         universal builds, define directly, using _LP64.
47529         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47530         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47531         * modules/inttypes (Depends-on): Add multiarch.
47532         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47533
47534         Add support for universal builds to <stdint.h>.
47535         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47536         universal builds, define directly, using _LP64.
47537         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47538         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47539         and size_t.
47540         * modules/stdint (Depends-on): Add multiarch.
47541         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47542
47543         New module 'multiarch'.
47544         * modules/multiarch: New file.
47545         * m4/multiarch.m4: New file.
47546
47547 2008-12-25  Bruno Haible  <bruno@clisp.org>
47548
47549         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47550
47551 2008-12-25  Bruno Haible  <bruno@clisp.org>
47552
47553         * modules/btowc (License): Relicense under LGPLv2+.
47554         * modules/mbsinit (License): Likewise.
47555         * modules/mbrtowc (License): Likewise.
47556         * modules/wcrtomb (License): Likewise.
47557         * modules/streq (License): Likewise.
47558         Reported by David Lutterkort <lutter@redhat.com>.
47559
47560 2008-12-23  Bruno Haible  <bruno@clisp.org>
47561
47562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47563
47564 2008-12-23  Bruno Haible  <bruno@clisp.org>
47565
47566         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47568         GETADDRINFO_LIB, not in LIBS.
47569         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47570         * modules/canon-host (Link): Likewise.
47571         * NEWS: Mention the change.
47572         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47573         GETADDRINFO_LIB.
47574
47575 2008-12-22  Bruno Haible  <bruno@clisp.org>
47576
47577         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47578         * doc/posix-functions/iswalpha_l.texi: Likewise.
47579         * doc/posix-functions/iswblank_l.texi: Likewise.
47580         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47581         * doc/posix-functions/iswctype_l.texi: Likewise.
47582         * doc/posix-functions/iswdigit_l.texi: Likewise.
47583         * doc/posix-functions/iswgraph_l.texi: Likewise.
47584         * doc/posix-functions/iswlower_l.texi: Likewise.
47585         * doc/posix-functions/iswprint_l.texi: Likewise.
47586         * doc/posix-functions/iswpunct_l.texi: Likewise.
47587         * doc/posix-functions/iswspace_l.texi: Likewise.
47588         * doc/posix-functions/iswupper_l.texi: Likewise.
47589         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47590         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47591         * doc/posix-functions/open_wmemstream.texi: Likewise.
47592         * doc/posix-functions/swscanf.texi: Likewise.
47593         * doc/posix-functions/towctrans_l.texi: Likewise.
47594         * doc/posix-functions/towlower.texi: Likewise.
47595         * doc/posix-functions/towlower_l.texi: Likewise.
47596         * doc/posix-functions/towupper.texi: Likewise.
47597         * doc/posix-functions/towupper_l.texi: Likewise.
47598         * doc/posix-functions/vfwprintf.texi: Likewise.
47599         * doc/posix-functions/vfwscanf.texi: Likewise.
47600         * doc/posix-functions/vswscanf.texi: Likewise.
47601         * doc/posix-functions/vwprintf.texi: Likewise.
47602         * doc/posix-functions/vwscanf.texi: Likewise.
47603         * doc/posix-functions/wcpcpy.texi: Likewise.
47604         * doc/posix-functions/wcpncpy.texi: Likewise.
47605         * doc/posix-functions/wcscasecmp.texi: Likewise.
47606         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47607         * doc/posix-functions/wcscoll_l.texi: Likewise.
47608         * doc/posix-functions/wcsdup.texi: Likewise.
47609         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47610         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47611         * doc/posix-functions/wcsnlen.texi: Likewise.
47612         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47613         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47614         * doc/posix-functions/wctrans_l.texi: Likewise.
47615         * doc/posix-functions/wctype_l.texi: Likewise.
47616         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47617         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47618         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47619         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47620         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47621         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47622         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47623         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47624         * doc/glibc-functions/wcschrnul.texi: Likewise.
47625         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47626         * doc/glibc-functions/wcstod_l.texi: Likewise.
47627         * doc/glibc-functions/wcstof_l.texi: Likewise.
47628         * doc/glibc-functions/wcstol_l.texi: Likewise.
47629         * doc/glibc-functions/wcstold_l.texi: Likewise.
47630         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47631         * doc/glibc-functions/wcstoq.texi: Likewise.
47632         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47633         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47634         * doc/glibc-functions/wcstouq.texi: Likewise.
47635         * doc/glibc-functions/wmempcpy.texi: Likewise.
47636
47637 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47638             Eric Blake  <ebb9@byu.net>
47639             Paolo Bonzini  <bonzini@gnu.org>
47640             Bruno Haible  <bruno@clisp.org>
47641
47642         Make c-stack work on Haiku.
47643         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47644         (c_stack_action): Use SA_ONSTACK flag.
47645
47646 2008-12-22  Bruno Haible  <bruno@clisp.org>
47647
47648         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47649
47650 2008-12-22  Bruno Haible  <bruno@clisp.org>
47651
47652         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47653         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47654         being overridden.
47655         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47656         New macros.
47657         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47659         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47660         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47661
47662 2008-12-22  Bruno Haible  <bruno@clisp.org>
47663
47664         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47665         from test code.
47666
47667 2008-12-22  Eric Blake  <ebb9@byu.net>
47668
47669         Avoid gcc warnings on cygwin.
47670         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47671         Avoid unused variable.
47672         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47673         Likewise.
47674
47675 2008-12-22  Bruno Haible  <bruno@clisp.org>
47676
47677         Remove HAVE_MBRTOWC conditionals.
47678         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47679         (mbscasecmp): Assume mbrtowc function.
47680         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47681         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47682         * lib/mbschr.c: Include mbuiter.h unconditionally.
47683         (mbschr): Assume mbrtowc function.
47684         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47685         (mbscspn): Assume mbrtowc function.
47686         * lib/mbslen.c: Include mbuiter.h unconditionally.
47687         (mbslen): Assume mbrtowc function.
47688         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47689         (mbsncasecmp): Assume mbrtowc function.
47690         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47691         (mbsnlen): Assume mbrtowc function.
47692         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47693         (mbspbrk): Assume mbrtowc function.
47694         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47695         (mbspcasecmp): Assume mbrtowc function.
47696         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47697         (mbsrchr): Assume mbrtowc function.
47698         * lib/mbssep.c: Include mbuiter.h unconditionally.
47699         (mbssep): Assume mbrtowc function.
47700         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47701         (mbsspn): Assume mbrtowc function.
47702         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47703         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47704         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47705         (mbstok_r): Assume mbrtowc function.
47706         * lib/propername.c: Include mbuiter.h unconditionally.
47707         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47708         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47709         (trim2): Assume mbrtowc function.
47710         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47711         (mbsnwidth): Assume mbrtowc function.
47712         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47713         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47714         fallback definitions.
47715         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47716
47717 2008-12-22  Bruno Haible  <bruno@clisp.org>
47718
47719         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47720
47721 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47722
47723         * modules/regex: Request emulations for the mb*/wc* functions we need.
47724         * m4/regex.m4: Don't look for those functions here.
47725         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47726
47727 2008-12-22  Bruno Haible  <bruno@clisp.org>
47728
47729         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47730
47731 2008-12-21  Bruno Haible  <bruno@clisp.org>
47732
47733         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47734         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47735         (Include): Remove conditionalization.
47736         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47737         (Include): Remove conditionalization.
47738         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47739         (Include): Remove conditionalization.
47740         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47741         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47742         * NEWS: Mention the change.
47743         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47744         via Sergey Poznyakoff <gray@gnu.org.ua>.
47745
47746 2008-12-21  Bruno Haible  <bruno@clisp.org>
47747
47748         * MODULES.html.sh (Extended multibyte and wide character utilities
47749         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47750         wcrtomb, wcsrtombs.
47751         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47752         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47753         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47754         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47755
47756 2008-12-21  Bruno Haible  <bruno@clisp.org>
47757
47758         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47759
47760 2008-12-21  Bruno Haible  <bruno@clisp.org>
47761
47762         * modules/wcsnrtombs-tests: New file.
47763         * tests/test-wcsnrtombs1.sh: New file.
47764         * tests/test-wcsnrtombs2.sh: New file.
47765         * tests/test-wcsnrtombs3.sh: New file.
47766         * tests/test-wcsnrtombs4.sh: New file.
47767         * tests/test-wcsnrtombs.c: New file.
47768
47769         New module 'wcsnrtombs'.
47770         * lib/wchar.in.h (wcsnrtombs): New declaration.
47771         * lib/wcsnrtombs.c: New file.
47772         * lib/wcsrtombs-state.c: New file.
47773         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47774         (internal_state): Remove variable.
47775         * m4/wcsnrtombs.m4: New file.
47776         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47777         compilation units.
47778         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47779         HAVE_WCSNRTOMBS.
47780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47781         HAVE_WCSNRTOMBS.
47782         * modules/wcsnrtombs: New file.
47783         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47784         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47785
47786 2008-12-21  Bruno Haible  <bruno@clisp.org>
47787
47788         * modules/wcsrtombs-tests: New file.
47789         * tests/test-wcsrtombs1.sh: New file.
47790         * tests/test-wcsrtombs2.sh: New file.
47791         * tests/test-wcsrtombs3.sh: New file.
47792         * tests/test-wcsrtombs4.sh: New file.
47793         * tests/test-wcsrtombs.c: New file.
47794
47795         New module 'wcsrtombs'.
47796         * lib/wchar.in.h (wcsrtombs): New declaration.
47797         * lib/wcsrtombs.c: New file.
47798         * m4/wcsrtombs.m4: New file.
47799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47800         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47802         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47803         * modules/wcsrtombs: New file.
47804         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47805         bugs.
47806
47807 2008-12-21  Bruno Haible  <bruno@clisp.org>
47808
47809         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47810         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47812         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47813         if not correct.
47814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47815         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47816         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47817         m4/locale-zh.m4, m4/codeset.m4.
47818         * doc/posix-functions/wcrtomb.texi: Document the bug.
47819
47820 2008-12-21  Bruno Haible  <bruno@clisp.org>
47821
47822         Work around a btowc() bug on IRIX 6.5.
47823         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47824         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47825         REPLACE_WTOBC if not.
47826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47827         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47828         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47829
47830 2008-12-21  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/wcrtomb-tests: New file.
47833         * tests/test-wcrtomb.sh: New file.
47834         * tests/test-wcrtomb.c: New file.
47835
47836         New module 'wcrtomb'.
47837         * lib/wchar.in.h (wcrtomb): New declaration.
47838         * lib/wcrtomb.c: New file.
47839         * m4/wcrtomb.m4: New file.
47840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47841         HAVE_WCRTOMB.
47842         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47843         HAVE_WCRTOMB.
47844         * modules/wcrtomb: New file.
47845         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47846
47847 2008-12-21  Bruno Haible  <bruno@clisp.org>
47848
47849         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47850         * modules/mbsrtowcs (Files): Likewise.
47851         * modules/wctob (Files): Likewise.
47852         * modules/c-strcase-tests (Files): Likewise.
47853         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47854         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47855         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47856         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47857         * modules/vasnprintf-posix-tests (Files): Likewise.
47858
47859 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47860
47861         gitlog-to-changelog: pass all command-line arguments to git-log
47862         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47863         it is sometimes convenient to filter the commits in various ways.
47864         gitlog-to-changelog only allows --since to specify a start date,
47865         but git-log itself supports many other filtering mechanisms.
47866         At the moment, I want to filter by branch name.  Rather than
47867         adding a --branch option to gitlog-to-changelog, it seems more
47868         flexible to simply pass all options directly to git-log and let
47869         git do the work.  Notice that this effectively makes --since a
47870         redundant option for gitlog-to-changelog, but removing it would
47871         require current usage to change since calls would then require
47872         an additional '--'.
47873
47874 2008-12-21  Bruno Haible  <bruno@clisp.org>
47875
47876         * modules/mbsnrtowcs-tests: New file.
47877         * tests/test-mbsnrtowcs1.sh: New file.
47878         * tests/test-mbsnrtowcs2.sh: New file.
47879         * tests/test-mbsnrtowcs3.sh: New file.
47880         * tests/test-mbsnrtowcs4.sh: New file.
47881         * tests/test-mbsnrtowcs.c: New file.
47882
47883         New module 'mbsnrtowcs'.
47884         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47885         * lib/mbsnrtowcs.c: New file.
47886         * lib/mbsrtowcs-state.c: New file.
47887         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47888         (internal_state): Remove variable.
47889         * m4/mbsnrtowcs.m4: New file.
47890         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47891         compilation units.
47892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47893         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47894         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47895         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47896         * modules/mbsnrtowcs: New file.
47897         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47898         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47899         portability problem.
47900
47901 2008-12-21  Bruno Haible  <bruno@clisp.org>
47902
47903         Work around mbsrtowcs bug.
47904         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47905         (gl_FUNC_MBSRTOWCS): Invoke it.
47906         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47907         m4/locale-zh.m4.
47908         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47909
47910 2008-12-21  Bruno Haible  <bruno@clisp.org>
47911
47912         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47913
47914 2008-12-21  Bruno Haible  <bruno@clisp.org>
47915
47916         Update doc for AIX.
47917         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47918         16-bit wchar_t type.
47919         * doc/posix-functions/btowc.texi: Likewise.
47920         * doc/posix-functions/fgetwc.texi: Likewise.
47921         * doc/posix-functions/fgetws.texi: Likewise.
47922         * doc/posix-functions/fputwc.texi: Likewise.
47923         * doc/posix-functions/fputws.texi: Likewise.
47924         * doc/posix-functions/fwide.texi: Likewise.
47925         * doc/posix-functions/fwprintf.texi: Likewise.
47926         * doc/posix-functions/fwscanf.texi: Likewise.
47927         * doc/posix-functions/getwchar.texi: Likewise.
47928         * doc/posix-functions/getwc.texi: Likewise.
47929         * doc/posix-functions/iswalnum.texi: Likewise.
47930         * doc/posix-functions/iswalpha.texi: Likewise.
47931         * doc/posix-functions/iswblank.texi: Likewise.
47932         * doc/posix-functions/iswcntrl.texi: Likewise.
47933         * doc/posix-functions/iswctype.texi: Likewise.
47934         * doc/posix-functions/iswdigit.texi: Likewise.
47935         * doc/posix-functions/iswgraph.texi: Likewise.
47936         * doc/posix-functions/iswlower.texi: Likewise.
47937         * doc/posix-functions/iswprint.texi: Likewise.
47938         * doc/posix-functions/iswpunct.texi: Likewise.
47939         * doc/posix-functions/iswspace.texi: Likewise.
47940         * doc/posix-functions/iswupper.texi: Likewise.
47941         * doc/posix-functions/iswxdigit.texi: Likewise.
47942         * doc/posix-functions/mbrtowc.texi: Likewise.
47943         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47944         * doc/posix-functions/mbstowcs.texi: Likewise.
47945         * doc/posix-functions/mbtowc.texi: Likewise.
47946         * doc/posix-functions/putwchar.texi: Likewise.
47947         * doc/posix-functions/putwc.texi: Likewise.
47948         * doc/posix-functions/swprintf.texi: Likewise.
47949         * doc/posix-functions/tolower.texi: Likewise.
47950         * doc/posix-functions/toupper.texi: Likewise.
47951         * doc/posix-functions/towctrans.texi: Likewise.
47952         * doc/posix-functions/ungetwc.texi: Likewise.
47953         * doc/posix-functions/vswprintf.texi: Likewise.
47954         * doc/posix-functions/wcrtomb.texi: Likewise.
47955         * doc/posix-functions/wcscat.texi: Likewise.
47956         * doc/posix-functions/wcschr.texi: Likewise.
47957         * doc/posix-functions/wcscmp.texi: Likewise.
47958         * doc/posix-functions/wcscoll.texi: Likewise.
47959         * doc/posix-functions/wcscpy.texi: Likewise.
47960         * doc/posix-functions/wcscspn.texi: Likewise.
47961         * doc/posix-functions/wcsftime.texi: Likewise.
47962         * doc/posix-functions/wcslen.texi: Likewise.
47963         * doc/posix-functions/wcsncat.texi: Likewise.
47964         * doc/posix-functions/wcsncmp.texi: Likewise.
47965         * doc/posix-functions/wcsncpy.texi: Likewise.
47966         * doc/posix-functions/wcspbrk.texi: Likewise.
47967         * doc/posix-functions/wcsrchr.texi: Likewise.
47968         * doc/posix-functions/wcsrtombs.texi: Likewise.
47969         * doc/posix-functions/wcsspn.texi: Likewise.
47970         * doc/posix-functions/wcsstr.texi: Likewise.
47971         * doc/posix-functions/wcstod.texi: Likewise.
47972         * doc/posix-functions/wcstof.texi: Likewise.
47973         * doc/posix-functions/wcstoimax.texi: Likewise.
47974         * doc/posix-functions/wcstok.texi: Likewise.
47975         * doc/posix-functions/wcstold.texi: Likewise.
47976         * doc/posix-functions/wcstoll.texi: Likewise.
47977         * doc/posix-functions/wcstol.texi: Likewise.
47978         * doc/posix-functions/wcstombs.texi: Likewise.
47979         * doc/posix-functions/wcstoull.texi: Likewise.
47980         * doc/posix-functions/wcstoul.texi: Likewise.
47981         * doc/posix-functions/wcstoumax.texi: Likewise.
47982         * doc/posix-functions/wcswidth.texi: Likewise.
47983         * doc/posix-functions/wcsxfrm.texi: Likewise.
47984         * doc/posix-functions/wctob.texi: Likewise.
47985         * doc/posix-functions/wctomb.texi: Likewise.
47986         * doc/posix-functions/wctrans.texi: Likewise.
47987         * doc/posix-functions/wctype.texi: Likewise.
47988         * doc/posix-functions/wcwidth.texi: Likewise.
47989         * doc/posix-functions/wmemchr.texi: Likewise.
47990         * doc/posix-functions/wmemcmp.texi: Likewise.
47991         * doc/posix-functions/wmemcpy.texi: Likewise.
47992         * doc/posix-functions/wmemmove.texi: Likewise.
47993         * doc/posix-functions/wmemset.texi: Likewise.
47994         * doc/posix-functions/wprintf.texi: Likewise.
47995         * doc/posix-functions/wscanf.texi: Likewise.
47996
47997 2008-12-21  Bruno Haible  <bruno@clisp.org>
47998
47999         Update doc for HP-UX 11.11.
48000         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48001         in HP-UX version 11.00, not in all versions of HP-UX 11.
48002         * doc/posix-functions/fwide.texi: Likewise.
48003         * doc/posix-functions/fwprintf.texi: Likewise.
48004         * doc/posix-functions/fwscanf.texi: Likewise.
48005         * doc/posix-functions/inet_ntop.texi: Likewise.
48006         * doc/posix-functions/inet_pton.texi: Likewise.
48007         * doc/posix-functions/mbrlen.texi: Likewise.
48008         * doc/posix-functions/mbrtowc.texi: Likewise.
48009         * doc/posix-functions/mbsinit.texi: Likewise.
48010         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48011         * doc/posix-functions/swprintf.texi: Likewise.
48012         * doc/posix-functions/swscanf.texi: Likewise.
48013         * doc/posix-functions/towctrans.texi: Likewise.
48014         * doc/posix-functions/vfwprintf.texi: Likewise.
48015         * doc/posix-functions/vswprintf.texi: Likewise.
48016         * doc/posix-functions/vwprintf.texi: Likewise.
48017         * doc/posix-functions/wcrtomb.texi: Likewise.
48018         * doc/posix-functions/wcsrtombs.texi: Likewise.
48019         * doc/posix-functions/wcsstr.texi: Likewise.
48020         * doc/posix-functions/wctob.texi: Likewise.
48021         * doc/posix-functions/wctrans.texi: Likewise.
48022         * doc/posix-functions/wmemchr.texi: Likewise.
48023         * doc/posix-functions/wmemcmp.texi: Likewise.
48024         * doc/posix-functions/wmemcpy.texi: Likewise.
48025         * doc/posix-functions/wmemmove.texi: Likewise.
48026         * doc/posix-functions/wmemset.texi: Likewise.
48027         * doc/posix-functions/wprintf.texi: Likewise.
48028         * doc/posix-functions/wscanf.texi: Likewise.
48029
48030 2008-12-21  Bruno Haible  <bruno@clisp.org>
48031
48032         Work around a portability problem.
48033         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48034         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48035
48036 2008-12-20  Bruno Haible  <bruno@clisp.org>
48037
48038         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48039         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48040         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48042         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48043
48044         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48045         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48046         set.
48047         (GNULIB_defined_mbstate_t): New macro.
48048         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48049         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48050         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48051         reuses the system's mbrtowc function but works around the bugs.
48052         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48053         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48054         macros.
48055         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48056         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48057         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48058         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48059         REPLACE_MBSINIT if mbsinit needs to be overridden.
48060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48061         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48062         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48063         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48064         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48065         m4/locale-zh.m4.
48066         (Depends): Add mbsinit.
48067         * modules/mbsinit (Depends): Add mbrtowc.
48068         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48069
48070 2008-12-20  Bruno Haible  <bruno@clisp.org>
48071
48072         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48073         so that there are no conversion errors on AIX.
48074         * tests/test-mbsrtowcs.c (main): LIkewise.
48075
48076 2008-12-20  Bruno Haible  <bruno@clisp.org>
48077
48078         Work around wctob bug on Solaris <= 9.
48079         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48080         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48082         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48083         * modules/wctob (Files): Add m4/locale-fr.m4.
48084         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48085
48086 2008-12-20  Bruno Haible  <bruno@clisp.org>
48087
48088         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48089         /dev/null.
48090         * tests/test-select-in.sh: Likewise.
48091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48092
48093 2008-12-20  Bruno Haible  <bruno@clisp.org>
48094
48095         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48096         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48097         Cygwin 1.5.x.
48098
48099 2008-12-20  Bruno Haible  <bruno@clisp.org>
48100
48101         Ensure mbstate_t is defined on HP-UX 11.11.
48102         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48103         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48104         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48105         AC_USE_SYSTEM_EXTENSIONS.
48106         * modules/fnmatch (Depends-on): Add extensions.
48107         * modules/mbrlen (Depends-on): Likewise.
48108         * modules/mbrtowc (Depends-on): Likewise.
48109         * modules/mbsinit (Depends-on): Likewise.
48110         * modules/mbsrtowcs (Depends-on): Likewise.
48111         * modules/mbswidth (Depends-on): Likewise.
48112         * modules/quotearg (Depends-on): Likewise.
48113         * modules/strftime (Depends-on): Likewise.
48114
48115 2008-12-20  Bruno Haible  <bruno@clisp.org>
48116
48117         Ensure wctob is declared on IRIX 6.5.
48118         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48119         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48120         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48122         of HAVE_WCTOB.
48123         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48124         HAVE_WCTOB.
48125         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48126
48127 2008-12-19  Bruno Haible  <bruno@clisp.org>
48128
48129         * modules/mbsrtowcs-tests: New file.
48130         * tests/test-mbsrtowcs1.sh: New file.
48131         * tests/test-mbsrtowcs2.sh: New file.
48132         * tests/test-mbsrtowcs3.sh: New file.
48133         * tests/test-mbsrtowcs4.sh: New file.
48134         * tests/test-mbsrtowcs.c: New file.
48135
48136         New module 'mbsrtowcs'.
48137         * lib/wchar.in.h (mbsrtowcs): New declaration.
48138         * lib/mbsrtowcs.c: New file.
48139         * m4/mbsrtowcs.m4: New file.
48140         * modules/mbsrtowcs: New file.
48141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48142         HAVE_MBSRTOWCS.
48143         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48144         HAVE_MBSRTOWCS.
48145         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48146
48147 2008-12-19  Bruno Haible  <bruno@clisp.org>
48148
48149         New module 'mbrlen'.
48150         * lib/wchar.in.h (mbrlen): New declaration.
48151         * lib/mbrlen.c: New file.
48152         * m4/mbrlen.m4: New file.
48153         * modules/mbrlen: New file.
48154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48155         HAVE_MBRLEN.
48156         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48157         HAVE_MBRLEN.
48158         * doc/posix-functions/mbrlen.texi: Document the new module.
48159
48160 2008-12-19  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48163         * modules/mbrtowc (Depends-on): Add verify.
48164         Suggested by Paul Eggert.
48165
48166 2008-12-18  Bruno Haible  <bruno@clisp.org>
48167
48168         * modules/mbsinit-tests: New file.
48169         * tests/test-mbsinit.sh: New file.
48170         * tests/test-mbsinit.c: New file.
48171
48172 2008-12-18  Bruno Haible  <bruno@clisp.org>
48173
48174         * modules/mbrtowc-tests: New file.
48175         * tests/test-mbrtowc1.sh: New file.
48176         * tests/test-mbrtowc2.sh: New file.
48177         * tests/test-mbrtowc3.sh: New file.
48178         * tests/test-mbrtowc4.sh: New file.
48179         * tests/test-mbrtowc.c: New file.
48180
48181         New module 'mbrtowc'.
48182         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48183         mbsinit and mbrtowc.
48184         (mbrtowc): New declaration.
48185         * lib/mbrtowc.c: New file.
48186         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48187         * modules/mbrtowc: New file.
48188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48189         HAVE_MBRTOWC.
48190         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48191         HAVE_MBRTOWC.
48192         * doc/posix-functions/mbrtowc.texi: Document the new module.
48193
48194 2008-12-18  Bruno Haible  <bruno@clisp.org>
48195
48196         New module 'wctob'.
48197         * lib/wchar.in.h (wctob): New declaration.
48198         * lib/wctob.c: New file.
48199         * m4/wctob.m4: New file.
48200         * modules/wctob: New file.
48201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48202         HAVE_WCTOB.
48203         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48204         * doc/posix-functions/wctob.texi: Document the new module.
48205
48206 2008-12-18  Bruno Haible  <bruno@clisp.org>
48207
48208         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48209         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48210
48211 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48212
48213         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48214         G. Christensen" <tgc@jupiterrise.com>.
48215
48216         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48217         G. Christensen" <tgc@jupiterrise.com>.
48218
48219         * lib/flock.c: Need to include string.h.  Reported by "Tom
48220         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48221         <ebb9@byu.net>.
48222
48223 2008-12-18  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/locale-ja.m4: New file, from GNU gettext.
48226
48227 2008-12-17  Bruno Haible  <bruno@clisp.org>
48228
48229         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48230         Suggested by Eric Blake.
48231
48232 2008-12-17  Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48235
48236 2008-12-17  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48239         * modules/mbsinit (Depends-on): Add verify.
48240         Suggested by Paul Eggert.
48241
48242 2008-12-17  Bruno Haible  <bruno@clisp.org>
48243
48244         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48245         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48246         gl_FUNC_MBRTOWC.
48247         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48248         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48249         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48250         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48251         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48252         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48253         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48254         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48255         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48256         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48257         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48258         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48259         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48260         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48261         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48262         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48263         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48264         * modules/trim (configure.ac): Likewise.
48265
48266 2008-12-17  Bruno Haible  <bruno@clisp.org>
48267
48268         * modules/btowc-tests: New file.
48269         * tests/test-btowc1.sh: New file.
48270         * tests/test-btowc2.sh: New file.
48271         * tests/test-btowc.c: New file.
48272
48273         New module 'btowc'.
48274         * lib/wchar.in.h (btowc): New declaration.
48275         * lib/btowc.c: New file.
48276         * m4/btowc.m4: New file.
48277         * modules/btowc: New file.
48278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48279         HAVE_BTOWC.
48280         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48281         * doc/posix-functions/btowc.texi: Document the new module.
48282
48283 2008-12-17  Bruno Haible  <bruno@clisp.org>
48284
48285         New module 'mbsinit'.
48286         * lib/wchar.in.h (mbsinit): New declaration.
48287         * lib/mbsinit.c: New file.
48288         * m4/mbsinit.m4: New file.
48289         * modules/mbsinit: New file.
48290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48291         HAVE_MBSINIT.
48292         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48293         HAVE_MBSINIT.
48294         * doc/posix-functions/mbsinit.texi: Document the new module.
48295
48296 2008-12-16  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/unistd.in.h: Add comment.
48299         * tests/test-environ.c: Don't include <stdlib.h>.
48300
48301 2008-12-16  Bruno Haible  <bruno@clisp.org>
48302
48303         * lib/parse-duration.h (parse_duration): Document return value
48304         convention.
48305         * lib/parse-duration.c: Include specification header first. Add
48306         comments.
48307         (_): Remove macro.
48308         (parse_year_month_day, parse_hour_minute_second): Move side effects
48309         outside of strchr call.
48310         (parse_non_iso8601): Move side effects outside of isspace call.
48311         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48312         call.
48313
48314 2008-12-16  Bruno Haible  <bruno@clisp.org>
48315
48316         * tests/test-parse-duration.sh: Produce no output when the test
48317         succeeds.
48318
48319 2008-12-16  Bruno Haible  <bruno@clisp.org>
48320
48321         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48322         expressions.
48323
48324 2008-12-15  Bruno Haible  <bruno@clisp.org>
48325
48326         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48327         * doc/glibc-functions/flistxattr.texi: Likewise.
48328         * doc/glibc-functions/fopencookie.texi: Likewise.
48329         * doc/glibc-functions/fremovexattr.texi: Likewise.
48330         * doc/glibc-functions/fsetxattr.texi: Likewise.
48331         * doc/glibc-functions/getxattr.texi: Likewise.
48332         * doc/glibc-functions/lgetxattr.texi: Likewise.
48333         * doc/glibc-functions/listxattr.texi: Likewise.
48334         * doc/glibc-functions/llistxattr.texi: Likewise.
48335         * doc/glibc-functions/lremovexattr.texi: Likewise.
48336         * doc/glibc-functions/lsetxattr.texi: Likewise.
48337         * doc/glibc-functions/removexattr.texi: Likewise.
48338         * doc/glibc-functions/setxattr.texi: Likewise.
48339         * doc/posix-functions/open_memstream.texi: Likewise.
48340
48341 2008-12-15  Eric Blake  <ebb9@byu.net>
48342
48343         Update doc for cygwin 1.7.
48344         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48345         functions.
48346         * doc/posix-functions/fchmodat.texi: Likewise.
48347         * doc/posix-functions/fchownat.texi: Likewise.
48348         * doc/posix-functions/fdopendir.texi: Likewise.
48349         * doc/posix-functions/fmemopen.texi: Likewise.
48350         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48351         * doc/posix-functions/fstatat.texi: Likewise.
48352         * doc/posix-functions/futimens.texi: Likewise.
48353         * doc/posix-functions/gai_strerror.texi: Likewise.
48354         * doc/posix-functions/getaddrinfo.texi: Likewise.
48355         * doc/posix-functions/getnameinfo.texi: Likewise.
48356         * doc/posix-functions/if_freenameindex.texi: Likewise.
48357         * doc/posix-functions/if_indextoname.texi: Likewise.
48358         * doc/posix-functions/if_nameindex.texi: Likewise.
48359         * doc/posix-functions/if_nametoindex.texi: Likewise.
48360         * doc/posix-functions/insque.texi: Likewise.
48361         * doc/posix-functions/linkat.texi: Likewise.
48362         * doc/posix-functions/llrint.texi: Likewise.
48363         * doc/posix-functions/llrintf.texi: Likewise.
48364         * doc/posix-functions/llrintl.texi: Likewise.
48365         * doc/posix-functions/lockf.texi: Likewise.
48366         * doc/posix-functions/lrintl.texi: Likewise.
48367         * doc/posix-functions/mkdirat.texi: Likewise.
48368         * doc/posix-functions/mkfifoat.texi: Likewise.
48369         * doc/posix-functions/mknodat.texi: Likewise.
48370         * doc/posix-functions/mq_close.texi: Likewise.
48371         * doc/posix-functions/mq_getattr.texi: Likewise.
48372         * doc/posix-functions/mq_notify.texi: Likewise.
48373         * doc/posix-functions/mq_open.texi: Likewise.
48374         * doc/posix-functions/mq_receive.texi: Likewise.
48375         * doc/posix-functions/mq_send.texi: Likewise.
48376         * doc/posix-functions/mq_setattr.texi: Likewise.
48377         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48378         * doc/posix-functions/mq_timedsend.texi: Likewise.
48379         * doc/posix-functions/mq_unlink.texi: Likewise.
48380         * doc/posix-functions/open_memstream.texi: Likewise.
48381         * doc/posix-functions/openat.texi: Likewise.
48382         * doc/posix-functions/posix_fadvise.texi: Likewise.
48383         * doc/posix-functions/posix_fallocate.texi: Likewise.
48384         * doc/posix-functions/posix_madvise.texi: Likewise.
48385         * doc/posix-functions/posix_memalign.texi: Likewise.
48386         * doc/posix-functions/posix_openpt.texi: Likewise.
48387         * doc/posix-functions/readlinkat.texi: Likewise.
48388         * doc/posix-functions/remque.texi: Likewise.
48389         * doc/posix-functions/renameat.texi: Likewise.
48390         * doc/posix-functions/rintl.texi: Likewise.
48391         * doc/posix-functions/sem_unlink.texi: Likewise.
48392         * doc/posix-functions/shm_open.texi: Likewise.
48393         * doc/posix-functions/shm_unlink.texi: Likewise.
48394         * doc/posix-functions/signgam.texi: Likewise.
48395         * doc/posix-functions/sigset.texi: Likewise.
48396         * doc/posix-functions/stpcpy.texi: Likewise.
48397         * doc/posix-functions/stpncpy.texi: Likewise.
48398         * doc/posix-functions/strerror.texi: Likewise.
48399         * doc/posix-functions/strtod.texi: Likewise.
48400         * doc/posix-functions/symlinkat.texi: Likewise.
48401         * doc/posix-functions/unlinkat.texi: Likewise.
48402         * doc/posix-functions/utimensat.texi: Likewise.
48403         * doc/glibc-functions/bindresvport.texi: Likewise.
48404         * doc/glibc-functions/dn_expand.texi: Likewise.
48405         * doc/glibc-functions/exp10.texi: Likewise.
48406         * doc/glibc-functions/exp10f.texi: Likewise.
48407         * doc/glibc-functions/fgetxattr.texi: Likewise.
48408         * doc/glibc-functions/flistxattr.texi: Likewise.
48409         * doc/glibc-functions/fopencookie.texi: Likewise.
48410         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48411         * doc/glibc-functions/fremovexattr.texi: Likewise.
48412         * doc/glibc-functions/fsetxattr.texi: Likewise.
48413         * doc/glibc-functions/getifaddrs.texi: Likewise.
48414         * doc/glibc-functions/getxattr.texi: Likewise.
48415         * doc/glibc-functions/lgetxattr.texi: Likewise.
48416         * doc/glibc-functions/listxattr.texi: Likewise.
48417         * doc/glibc-functions/llistxattr.texi: Likewise.
48418         * doc/glibc-functions/lremovexattr.texi: Likewise.
48419         * doc/glibc-functions/lsetxattr.texi: Likewise.
48420         * doc/glibc-functions/pow10.texi: Likewise.
48421         * doc/glibc-functions/pow10f.texi: Likewise.
48422         * doc/glibc-functions/rcmd_af.texi: Likewise.
48423         * doc/glibc-functions/removexattr.texi: Likewise.
48424         * doc/glibc-functions/res_init.texi: Likewise.
48425         * doc/glibc-functions/res_mkquery.texi: Likewise.
48426         * doc/glibc-functions/res_query.texi: Likewise.
48427         * doc/glibc-functions/res_querydomain.texi: Likewise.
48428         * doc/glibc-functions/res_send.texi: Likewise.
48429         * doc/glibc-functions/rresvport_af.texi: Likewise.
48430         * doc/glibc-functions/setxattr.texi: Likewise.
48431         * doc/glibc-functions/strcasestr.texi: Likewise.
48432
48433 2008-12-15  Bruno Haible  <bruno@clisp.org>
48434
48435         Fix compilation error on OSF/1 4.0.
48436         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48437         <sys/time.h>, simply delegate to the system header.
48438         Reported by Daniel Richard G. <oss@teragram.com>.
48439
48440 2008-12-15  Bruno Haible  <bruno@clisp.org>
48441
48442         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48443         * doc/posix-functions/fchmodat.texi: Likewise.
48444         * doc/posix-functions/fchownat.texi: Likewise.
48445         * doc/posix-functions/fdopendir.texi: Likewise.
48446         * doc/posix-functions/fstatat.texi: Likewise.
48447         * doc/posix-functions/mkdirat.texi: Likewise.
48448         * doc/posix-functions/unlinkat.texi: Likewise.
48449
48450 2008-12-14  Bruno Haible  <bruno@clisp.org>
48451
48452         Update doc for POSIX:2008.
48453         * doc/posix-functions/faccessat.texi: New file.
48454         * doc/posix-functions/fchmodat.texi: New file.
48455         * doc/posix-functions/fchownat.texi: New file.
48456         * doc/posix-functions/fdopendir.texi: New file.
48457         * doc/posix-functions/fstatat.texi: New file.
48458         * doc/posix-functions/futimens.texi: New file.
48459         * doc/posix-functions/linkat.texi: New file.
48460         * doc/posix-functions/mkdirat.texi: New file.
48461         * doc/posix-functions/mkfifoat.texi: New file.
48462         * doc/posix-functions/mknodat.texi: New file.
48463         * doc/posix-functions/open_wmemstream.texi: New file.
48464         * doc/posix-functions/openat.texi: New file.
48465         * doc/posix-functions/psiginfo.texi: New file.
48466         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48467         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48468         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48469         * doc/posix-functions/readlinkat.texi: New file.
48470         * doc/posix-functions/renameat.texi: New file.
48471         * doc/posix-functions/strerror_l.texi: New file.
48472         * doc/posix-functions/symlinkat.texi: New file.
48473         * doc/posix-functions/unlinkat.texi: New file.
48474         * doc/posix-functions/utimensat.texi: New file.
48475         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48476
48477 2008-12-14  Bruno Haible  <bruno@clisp.org>
48478
48479         Update doc for POSIX:2008.
48480         * doc/posix-functions/alphasort.texi: Renamed from
48481         doc/glibc-functions/alphasort.texi.
48482         * doc/posix-functions/dirfd.texi: Renamed from
48483         doc/glibc-functions/dirfd.texi.
48484         * doc/posix-functions/dprintf.texi: Renamed from
48485         doc/glibc-functions/dprintf.texi.
48486         * doc/posix-functions/duplocale.texi: Renamed from
48487         doc/glibc-functions/duplocale.texi.
48488         * doc/posix-functions/fexecve.texi: Renamed from
48489         doc/glibc-functions/fexecve.texi.
48490         * doc/posix-functions/fmemopen.texi: Renamed from
48491         doc/glibc-functions/fmemopen.texi.
48492         * doc/posix-functions/freelocale.texi: Renamed from
48493         doc/glibc-functions/freelocale.texi.
48494         * doc/posix-functions/getdate_err.texi: Renamed from
48495         doc/glibc-functions/getdate_err.texi.
48496         * doc/posix-functions/isalnum_l.texi: Renamed from
48497         doc/glibc-functions/isalnum_l.texi.
48498         * doc/posix-functions/isalpha_l.texi: Renamed from
48499         doc/glibc-functions/isalpha_l.texi.
48500         * doc/posix-functions/isblank_l.texi: Renamed from
48501         doc/glibc-functions/isblank_l.texi.
48502         * doc/posix-functions/iscntrl_l.texi: Renamed from
48503         doc/glibc-functions/iscntrl_l.texi.
48504         * doc/posix-functions/isdigit_l.texi: Renamed from
48505         doc/glibc-functions/isdigit_l.texi.
48506         * doc/posix-functions/isgraph_l.texi: Renamed from
48507         doc/glibc-functions/isgraph_l.texi.
48508         * doc/posix-functions/islower_l.texi: Renamed from
48509         doc/glibc-functions/islower_l.texi.
48510         * doc/posix-functions/isprint_l.texi: Renamed from
48511         doc/glibc-functions/isprint_l.texi.
48512         * doc/posix-functions/ispunct_l.texi: Renamed from
48513         doc/glibc-functions/ispunct_l.texi.
48514         * doc/posix-functions/isspace_l.texi: Renamed from
48515         doc/glibc-functions/isspace_l.texi.
48516         * doc/posix-functions/isupper_l.texi: Renamed from
48517         doc/glibc-functions/isupper_l.texi.
48518         * doc/posix-functions/iswalnum_l.texi: Renamed from
48519         doc/glibc-functions/iswalnum_l.texi.
48520         * doc/posix-functions/iswalpha_l.texi: Renamed from
48521         doc/glibc-functions/iswalpha_l.texi.
48522         * doc/posix-functions/iswblank_l.texi: Renamed from
48523         doc/glibc-functions/iswblank_l.texi.
48524         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48525         doc/glibc-functions/iswcntrl_l.texi.
48526         * doc/posix-functions/iswctype_l.texi: Renamed from
48527         doc/glibc-functions/iswctype_l.texi.
48528         * doc/posix-functions/iswdigit_l.texi: Renamed from
48529         doc/glibc-functions/iswdigit_l.texi.
48530         * doc/posix-functions/iswgraph_l.texi: Renamed from
48531         doc/glibc-functions/iswgraph_l.texi.
48532         * doc/posix-functions/iswlower_l.texi: Renamed from
48533         doc/glibc-functions/iswlower_l.texi.
48534         * doc/posix-functions/iswprint_l.texi: Renamed from
48535         doc/glibc-functions/iswprint_l.texi.
48536         * doc/posix-functions/iswpunct_l.texi: Renamed from
48537         doc/glibc-functions/iswpunct_l.texi.
48538         * doc/posix-functions/iswspace_l.texi: Renamed from
48539         doc/glibc-functions/iswspace_l.texi.
48540         * doc/posix-functions/iswupper_l.texi: Renamed from
48541         doc/glibc-functions/iswupper_l.texi.
48542         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48543         doc/glibc-functions/iswxdigit_l.texi.
48544         * doc/posix-functions/isxdigit_l.texi: Renamed from
48545         doc/glibc-functions/isxdigit_l.texi.
48546         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48547         doc/glibc-functions/mbsnrtowcs.texi.
48548         * doc/posix-functions/mkdtemp.texi: Renamed from
48549         doc/glibc-functions/mkdtemp.texi.
48550         * doc/posix-functions/newlocale.texi: Renamed from
48551         doc/glibc-functions/newlocale.texi.
48552         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48553         doc/glibc-functions/nl_langinfo_l.texi.
48554         * doc/posix-functions/open_memstream.texi: Renamed from
48555         doc/glibc-functions/open_memstream.texi.
48556         * doc/posix-functions/opterr.texi: Renamed from
48557         doc/glibc-functions/opterr.texi.
48558         * doc/posix-functions/optind.texi: Renamed from
48559         doc/glibc-functions/optind.texi.
48560         * doc/posix-functions/optopt.texi: Renamed from
48561         doc/glibc-functions/optopt.texi.
48562         * doc/posix-functions/psignal.texi: Renamed from
48563         doc/glibc-functions/psignal.texi.
48564         * doc/posix-functions/scandir.texi: Renamed from
48565         doc/glibc-functions/scandir.texi.
48566         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48567         doc/glibc-functions/sched_get_priority_min.texi.
48568         * doc/posix-functions/signgam.texi: Renamed from
48569         doc/glibc-functions/signgam.texi.
48570         * doc/posix-functions/stpcpy.texi: Renamed from
48571         doc/glibc-functions/stpcpy.texi.
48572         * doc/posix-functions/stpncpy.texi: Renamed from
48573         doc/glibc-functions/stpncpy.texi.
48574         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48575         doc/glibc-functions/strcasecmp_l.texi.
48576         * doc/posix-functions/strcoll_l.texi: Renamed from
48577         doc/glibc-functions/strcoll_l.texi.
48578         * doc/posix-functions/strfmon_l.texi: Renamed from
48579         doc/glibc-functions/strfmon_l.texi.
48580         * doc/posix-functions/strftime_l.texi: Renamed from
48581         doc/glibc-functions/strftime_l.texi.
48582         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48583         doc/glibc-functions/strncasecmp_l.texi.
48584         * doc/posix-functions/strndup.texi: Renamed from
48585         doc/glibc-functions/strndup.texi.
48586         * doc/posix-functions/strnlen.texi: Renamed from
48587         doc/glibc-functions/strnlen.texi.
48588         * doc/posix-functions/strsignal.texi: Renamed from
48589         doc/glibc-functions/strsignal.texi.
48590         * doc/posix-functions/strxfrm_l.texi: Renamed from
48591         doc/glibc-functions/strxfrm_l.texi.
48592         * doc/posix-functions/timer_gettime.texi: Renamed from
48593         doc/glibc-functions/timer_gettime.texi.
48594         * doc/posix-functions/tolower_l.texi: Renamed from
48595         doc/glibc-functions/tolower_l.texi.
48596         * doc/posix-functions/toupper_l.texi: Renamed from
48597         doc/glibc-functions/toupper_l.texi.
48598         * doc/posix-functions/towctrans_l.texi: Renamed from
48599         doc/glibc-functions/towctrans_l.texi.
48600         * doc/posix-functions/towlower_l.texi: Renamed from
48601         doc/glibc-functions/towlower_l.texi.
48602         * doc/posix-functions/towupper_l.texi: Renamed from
48603         doc/glibc-functions/towupper_l.texi.
48604         * doc/posix-functions/uselocale.texi: Renamed from
48605         doc/glibc-functions/uselocale.texi.
48606         * doc/posix-functions/vdprintf.texi: Renamed from
48607         doc/glibc-functions/vdprintf.texi.
48608         * doc/posix-functions/wcpcpy.texi:
48609         Renamed from doc/glibc-functions/wcpcpy.texi.
48610         * doc/posix-functions/wcpncpy.texi: Renamed from
48611         doc/glibc-functions/wcpncpy.texi.
48612         * doc/posix-functions/wcscasecmp.texi: Renamed from
48613         doc/glibc-functions/wcscasecmp.texi.
48614         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48615         doc/glibc-functions/wcscasecmp_l.texi.
48616         * doc/posix-functions/wcscoll_l.texi: Renamed from
48617         doc/glibc-functions/wcscoll_l.texi.
48618         * doc/posix-functions/wcsdup.texi: Renamed from
48619         doc/glibc-functions/wcsdup.texi.
48620         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48621         doc/glibc-functions/wcsncasecmp.texi.
48622         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48623         doc/glibc-functions/wcsncasecmp_l.texi.
48624         * doc/posix-functions/wcsnlen.texi: Renamed from
48625         doc/glibc-functions/wcsnlen.texi.
48626         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48627         doc/glibc-functions/wcsnrtombs.texi.
48628         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48629         doc/glibc-functions/wcsxfrm_l.texi.
48630         * doc/posix-functions/wctrans_l.texi: Renamed from
48631         doc/glibc-functions/wctrans_l.texi.
48632         * doc/posix-functions/wctype_l.texi: Renamed from
48633         doc/glibc-functions/wctype_l.texi.
48634         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48635         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48636         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48637         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48638         these subsections.
48639         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48640         Remove sections.
48641
48642 2008-12-14  Bruno Haible  <bruno@clisp.org>
48643
48644         Update doc for POSIX:2008.
48645         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48646
48647 2008-12-14  Bruno Haible  <bruno@clisp.org>
48648
48649         Update doc for POSIX:2008.
48650         * doc/pastposix-functions/bcmp.texi: Renamed from
48651         doc/posix-functions/bcmp.texi.
48652         * doc/pastposix-functions/bcopy.texi: Renamed from
48653         doc/posix-functions/bcopy.texi.
48654         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48655         doc/posix-functions/bsd_signal.texi.
48656         * doc/pastposix-functions/bzero.texi: Renamed from
48657         doc/posix-functions/bzero.texi.
48658         * doc/pastposix-functions/ecvt.texi: Renamed from
48659         doc/posix-functions/ecvt.texi.
48660         * doc/pastposix-functions/fcvt.texi: Renamed from
48661         doc/posix-functions/fcvt.texi.
48662         * doc/pastposix-functions/ftime.texi: Renamed from
48663         doc/posix-functions/ftime.texi.
48664         * doc/pastposix-functions/gcvt.texi: Renamed from
48665         doc/posix-functions/gcvt.texi.
48666         * doc/pastposix-functions/getcontext.texi: Renamed from
48667         doc/posix-functions/getcontext.texi.
48668         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48669         doc/posix-functions/gethostbyaddr.texi.
48670         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48671         doc/posix-functions/gethostbyname.texi.
48672         * doc/pastposix-functions/getwd.texi: Renamed from
48673         doc/posix-functions/getwd.texi.
48674         * doc/pastposix-functions/h_errno.texi: Renamed from
48675         doc/posix-functions/h_errno.texi.
48676         * doc/pastposix-functions/index.texi: Renamed from
48677         doc/posix-functions/index.texi.
48678         * doc/pastposix-functions/makecontext.texi: Renamed from
48679         doc/posix-functions/makecontext.texi.
48680         * doc/pastposix-functions/mktemp.texi: Renamed from
48681         doc/posix-functions/mktemp.texi.
48682         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48683         doc/posix-functions/pthread_attr_getstackaddr.texi.
48684         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48685         doc/posix-functions/pthread_attr_setstackaddr.texi.
48686         * doc/pastposix-functions/rindex.texi: Renamed from
48687         doc/posix-functions/rindex.texi.
48688         * doc/pastposix-functions/scalb.texi: Renamed from
48689         doc/posix-functions/scalb.texi.
48690         * doc/pastposix-functions/setcontext.texi: Renamed from
48691         doc/posix-functions/setcontext.texi.
48692         * doc/pastposix-functions/swapcontext.texi: Renamed from
48693         doc/posix-functions/swapcontext.texi.
48694         * doc/pastposix-functions/ualarm.texi: Renamed from
48695         doc/posix-functions/ualarm.texi.
48696         * doc/pastposix-functions/usleep.texi: Renamed from
48697         doc/posix-functions/usleep.texi.
48698         * doc/pastposix-functions/vfork.texi: Renamed from
48699         doc/posix-functions/vfork.texi.
48700         * doc/pastposix-functions/wcswcs.texi: Renamed from
48701         doc/posix-functions/wcswcs.texi.
48702         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48703         (Function Substitutes): Update.
48704
48705 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48706
48707         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48708         m4/strerror.m4.
48709
48710 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48711             Bruno Haible  <bruno@clisp.org>
48712
48713         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48714
48715 2008-12-13  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/strtoull (Depends-on): Remove unistd.
48718
48719 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48720
48721         * modules/strtoull (Depends-on): Add stdlib.
48722
48723 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48724
48725         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48726
48727 2008-12-10  Jim Meyering  <meyering@redhat.com>
48728
48729         gl_ASSERT: don't say assertions are disabled when they're not
48730         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48731         "checking whether to enable assertions... no", when they are in
48732         fact enabled.  This is solely a bug in the output of configure.
48733         In spite of saying "no", NDEBUG was not defined in that case.
48734         Also, as noted by Eric Blake, leave assertions enabled upon
48735         --enable-assert=INVALID.
48736
48737 2008-12-10  Bruno Haible  <bruno@clisp.org>
48738
48739         Change MODULES.html to refer to POSIX:2008 where possible.
48740         * MODULES.html.sh (POSIX2008_URL): New variable.
48741         (posix_headers): Remove sys/timeb, ucontext.
48742         (posix2001_headers): New variable.
48743         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48744         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48745         index, makecontext, mktemp, pthread_attr_getstackaddr,
48746         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48747         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48748         (posix2001_functions): New variable.
48749         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48750         otherwise.
48751
48752 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48753
48754         add missing include to parse-duration.c
48755         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48756         * modules/parse-duration (Depends-on): Add xalloc.
48757
48758         fix sed script reading maint.mk
48759         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48760         (syntax-check-rules): Use it.
48761
48762 2008-12-09  Bruno Haible  <bruno@clisp.org>
48763
48764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48765         MacOS X 10.4/PowerPC.
48766         Reported by Simon Josefsson.
48767
48768 2008-12-08  Jim Meyering  <meyering@redhat.com>
48769
48770         work around mingw's lack of some S_IF definitions
48771         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48772         Reported by Simon Josefsson.
48773
48774 2008-12-08  Bruno Haible  <bruno@clisp.org>
48775
48776         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48777         applied to variables. Needed on MacOS X 10.4/PowerPC.
48778         Reported by Simon Josefsson.
48779
48780 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48781         and Eric Blake  <ebb9@byu.net>
48782
48783         assert: honor --enable-assert
48784         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48785         order to honor --enable-assert, rather than treating it as a
48786         synonym for --disable-assert.
48787
48788 2008-12-08  Jim Meyering  <meyering@redhat.com>
48789
48790         * lib/posixtm.c: Remove now-useless declaration of mktime.
48791
48792         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48793
48794 2008-12-07  Bruno Haible  <bruno@clisp.org>
48795
48796         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48797         test_once): Mark functions as static.
48798         * tests/test-tls.c (test_tls): Likewise.
48799
48800 2008-12-07  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48803         iconv_register_autodetect.
48804
48805 2008-12-07  Jim Meyering  <meyering@redhat.com>
48806
48807         posixtm.c: avoid a warning
48808         * lib/posixtm.c (posixtime): Don't initialize tm0.
48809         It's no longer needed to placate gcc4's -Wuninitialized,
48810         and the attempt to placate would elicit a new warning.
48811
48812         unicodeio.c: mark unused parameters
48813         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48814         (fallback_failure_callback): Likewise.
48815
48816 2008-12-07  Bruno Haible  <bruno@clisp.org>
48817
48818         * gnulib-tool (func_create_testdir): When building the tests
48819         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48820         Reported by Simon Josefsson.
48821
48822 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48823
48824         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48825
48826 2008-12-06  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48829         Suggested by Eric Blake.
48830
48831 2008-12-06  Bruno Haible  <bruno@clisp.org>
48832
48833         Fix a c-stack test failure on MacOS X.
48834         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48835         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48836         handler for SIGBUS as well.
48837         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48838         install a signal handler for SIGBUS as well.
48839         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48840
48841 2008-12-06  Bruno Haible  <bruno@clisp.org>
48842
48843         Advocacy documentation.
48844         * doc/gnulib-intro.texi (Benefits): New section.
48845         * doc/gnulib.texi: Update.
48846
48847 2008-12-06  Bruno Haible  <bruno@clisp.org>
48848
48849         Document the 'manywarnings' module.
48850         * doc/manywarnings.texi: New file.
48851         * doc/gnulib.texi: Include it.
48852
48853 2008-12-05  Eric Blake  <ebb9@byu.net>
48854
48855         tests: silence some gcc warnings
48856         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48857         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48858         type mismatches.
48859
48860 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48861             Bruno Haible  <bruno@clisp.org>
48862
48863         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48864
48865 2008-11-29  Jim Meyering  <meyering@redhat.com>
48866
48867         unicodeio.c: mark unused parameters
48868         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48869         (fallback_failure_callback): Likewise.
48870
48871         fts: fix a thinko
48872         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48873         (set_stat_type): Return S_IF*-valued "type" directly.
48874         Prompted by James Youngman's spotting a related bug.
48875         Confirmed by further testing through find.
48876
48877         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48878         * lib/fts.c (D_TYPE): Define.
48879         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48880         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48881         (s_ifmt_shift_bits): New function.
48882         (set_stat_type): New function.
48883         (fts_build): When not calling fts_stat, call set_stat_type
48884         to propagate dirent.d_type info to fts_read caller.
48885         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48886         fts_statp->st_mode type information may be valid.
48887
48888 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48889
48890         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48891         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48892         <sds@gnu.org>.
48893
48894 2008-11-20  Bruno Haible  <bruno@clisp.org>
48895
48896         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48897         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48898         INCLUDE_NEXT.
48899         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48900         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48901         * modules/math (Makefile.am): Substitute
48902         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48903         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48904
48905 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48906             Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/stdint.in.h: Define all type macros so that their expansion is
48909         a single typedef'ed token. Fixes a compilation failure in Boost which
48910         does "using ::int8_t;".
48911
48912 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48913
48914         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48915         gl_MANYWARN_ALL_GCC.
48916         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48917         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48918         * modules/manywarnings: New file.
48919         * MODULES.html.sh: Mention manywarnings module.
48920
48921 2008-11-18  Bruno Haible  <bruno@clisp.org>
48922
48923         * doc/gnulib-tool.texi (Unit tests): New section.
48924
48925 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48926
48927         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48928         paths like 'lib/po/foo.po'.
48929
48930 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48931
48932         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48933         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48934
48935 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48936
48937         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48938         parameter works.
48939
48940 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48941
48942         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48943
48944 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48945
48946         * modules/parse-duration-tests: New file.
48947         * tests/test-parse-duration.sh: New file.
48948         * tests/test-parse-duration.c: New file.
48949
48950         New module 'parse-duration'.
48951         * lib/parse-duration.h: New file.
48952         * lib/parse-duration.c: New file.
48953         * modules/parse-duration: New file.
48954
48955 2008-11-17  Bruno Haible  <bruno@clisp.org>
48956
48957         * tests/test-select-out.sh: Comment out the first pipe test.
48958         Reported by Simon Josefsson.
48959
48960 2008-11-17  Bruno Haible  <bruno@clisp.org>
48961
48962         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48964         gl_HOSTENT.
48965
48966 2008-11-17  Bruno Haible  <bruno@clisp.org>
48967
48968         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48969         -lnetwork and -lnet. Needed for Haiku and BeOS.
48970
48971 2008-11-16  Bruno Haible  <bruno@clisp.org>
48972
48973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48974
48975 2008-11-16  Bruno Haible  <bruno@clisp.org>
48976
48977         Avoid test failure on Haiku.
48978         * tests/test-fsync.c: Include <errno.h>.
48979         (main): Don't require that fsync (0) fails.
48980
48981 2008-11-15  Bruno Haible  <bruno@clisp.org>
48982
48983         New module 'hostent'.
48984         * modules/hostent: New file.
48985         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48986
48987 2008-11-15  Bruno Haible  <bruno@clisp.org>
48988
48989         New module 'servent'.
48990         * modules/servent: New file.
48991         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48992
48993 2008-11-15  Bruno Haible  <bruno@clisp.org>
48994
48995         Avoid generating same test program with two different rules.
48996         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48997         test-frexp to test-frexp-nolibm.
48998         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48999         test-frexpl to test-frexpl-nolibm.
49000
49001 2008-11-15  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49004         $(FREXPL_LIBM).
49005
49006 2008-11-15  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/netdb.in.h: Activate the definitions also when the system's
49009         <netdb.h> has 'struct addrinfo'.
49010         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49011         EAI_OVERFLOW or AI_NUMERICSERV.
49012         * doc/posix-headers/netdb.texi: Document the problem.
49013
49014 2008-11-15  Bruno Haible  <bruno@clisp.org>
49015
49016         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49017
49018         Make the 'sched' module work on platforms where <sched.h> exists but
49019         is incomplete (such as Haiku).
49020         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49021         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49022         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49023         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49024         HAVE_STRUCT_SCHED_PARAM.
49025         * modules/sched (Depends-on): Add include_next.
49026         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49027         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49028         * doc/posix-headers/sched.texi: Document the issue.
49029
49030 2008-11-13  Jim Meyering  <meyering@redhat.com>
49031
49032         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49033         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49034         test would fail due to the difference in the Report bugs to ...
49035         line.  The expected address is empty, "<>", while the actual
49036         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49037
49038 2008-11-12  Bruno Haible  <bruno@clisp.org>
49039
49040         lstat: don't compile lstat.c on systems lacking lstat
49041         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49042         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49043         Reported by Daniel P. Berrange via Jim Meyering.
49044
49045 2008-11-12  Jim Meyering  <meyering@redhat.com>
49046
49047         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49048
49049 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49050
49051         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49052         instead.
49053
49054 2008-11-12  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/unicodeio.c: Include unistr.h.
49057         (utf8_wctomb): Remove function.
49058         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49059
49060 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49061
49062         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49063         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49064         <bruno@clisp.org>.
49065         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49066
49067 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49068
49069         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49070         * doc/gnulib.texi: Add section for warnings.
49071
49072 2008-11-11  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/sockets.h: Add a comment.
49075
49076 2008-11-11  Karl Berry  <karl@gnu.org>
49077
49078         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49079
49080 2008-11-11  Eric Blake  <ebb9@byu.net>
49081
49082         fdl.texi: avoid git symlinks
49083         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49084
49085 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49086
49087         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49088
49089 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49090
49091         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49092         (gl_WARN_ADD): Substitute $2 if literal.
49093
49094 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49095
49096         * m4/warning.m4: Remove.
49097
49098 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49099
49100         * m4/warnings.m4: Almost complete rewrite. :-)
49101
49102 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49103
49104         * modules/warnings: New module.
49105         * m4/warnings.m4: New file.
49106         * MODULES.html.sh: Mention warnings module.
49107         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49108         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49109
49110 2008-11-10  Eric Blake  <ebb9@byu.net>
49111
49112         fdl.texi: make a symlink to the latest version
49113         * doc/standards.texi: Revert today's earlier change.
49114         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49115         * doc/fdl.texi: ...and replace this with a symlink to the newer
49116         fdl-1.3.texi.
49117
49118 2008-11-10  Bruno Haible  <bruno@clisp.org>
49119
49120         * tests/test-select-fd.c (main): Accept the result file name as fourth
49121         argument.
49122         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49123         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49124
49125 2008-11-10  Bruno Haible  <bruno@clisp.org>
49126
49127         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49128         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49129         as autoconf-substituted macros.
49130         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49132         gl_NETDB_H_DEFAULTS. Set these variables.
49133         * modules/netdb (Makefile.am): Substitute these variables.
49134
49135 2008-11-10  Eric Blake  <ebb9@byu.net>
49136
49137         standards.texi: include correct file for FDL 1.3
49138         * doc/standards.texi (GNU Free Documentation License): Change
49139         include file to pull in FDL 1.3, not 1.2.
49140
49141         fdl.texi: revert accidental change to license
49142         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49143
49144 2008-11-10  Bruno Haible  <bruno@clisp.org>
49145
49146         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49147         cross-compiling guesses also when the native compile gives no result.
49148
49149 2008-11-10  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/spawni.c (__spawni): Force variable into the stack.
49152
49153 2008-11-10  Bruno Haible  <bruno@clisp.org>
49154
49155         Add support for Haiku.
49156         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49157         glibc and BeOS, but also on Haiku.
49158         * lib/fpurge.c (fpurge): Likewise.
49159         * lib/freadable.c (freadable): Likewise.
49160         * lib/freadahead.c (freadahead): Likewise.
49161         * lib/freading.c (freading): Likewise.
49162         * lib/freadptr.c (freadptr): Likewise.
49163         * lib/freadseek.c (freadptrinc): Likewise.
49164         * lib/fseeko.c (rpl_fseeko): Likewise.
49165         * lib/fseterr.c (fseterr): Likewise.
49166         * lib/fwritable.c (fwritable): Likewise.
49167         * lib/fwriting.c (fwriting): Likewise.
49168         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49169
49170 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49171
49172         * lib/config.charset: Treat Haiku like BeOS.
49173
49174 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49175
49176         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49177         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49178
49179 2008-11-08  Bruno Haible  <bruno@clisp.org>
49180
49181         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49182         AC_CACHE_CHECK.
49183
49184 2008-11-08  Bruno Haible  <bruno@clisp.org>
49185
49186         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49187
49188 2008-11-08  Bruno Haible  <bruno@clisp.org>
49189
49190         * tests/test-select-fd.c: New file.
49191         * tests/test-select-in.sh: New file.
49192         * tests/test-select-out.sh: New file.
49193         * tests/test-select-stdin.c: New file.
49194         * modules/select-tests (Files): Add the new files.
49195         (Depends-on): Add gettimeofday.
49196         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49197         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49198         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49199
49200 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49201             Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49204
49205 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49206
49207         * build-aux/pmccabe2html: Added support for C++ source files.
49208
49209 2008-11-05  Ben Pfaff  <blp@gnu.org>
49210
49211         Fix lib/close.c build on Windows.
49212         * modules/close (Files): Add lib/w32sock.h.
49213
49214 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49215
49216         Accept Bison's NEWS format.
49217         * build-aux/announce-gen (print_news_deltas): Tweak
49218         $re_prefix.
49219
49220 2008-11-04  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/random_r (Maintainer): Add glibc.
49223
49224 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49225
49226         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49227         by karl@freefriends.org (Karl Berry).
49228         * doc/alloca.texi: Likewise.
49229         * doc/c-ctype.texi: Likewise.
49230         * doc/c-strcase.texi: Likewise.
49231         * doc/c-strcaseeq.texi: Likewise.
49232         * doc/c-strcasestr.texi: Likewise.
49233         * doc/c-strstr.texi: Likewise.
49234         * doc/c-strtod.texi: Likewise.
49235         * doc/c-strtold.texi: Likewise.
49236         * doc/ctime.texi: Likewise.
49237         * doc/error.texi: Likewise.
49238         * doc/fdl.texi: Likewise.
49239         * doc/gcd.texi: Likewise.
49240         * doc/getdate.texi: Likewise.
49241         * doc/gnulib-intro.texi: Likewise.
49242         * doc/gnulib-tool.texi: Likewise.
49243         * doc/gnulib.texi: Likewise.
49244         * doc/inet_ntoa.texi: Likewise.
49245         * doc/maintain.texi: Likewise.
49246         * doc/make-stds.texi: Likewise.
49247         * doc/quote.texi: Likewise.
49248         * doc/regexprops-generic.texi: Likewise.
49249         * doc/standards.texi: Likewise.
49250         * doc/verify.texi: Likewise.
49251         * doc/visibility.texi: Likewise.
49252         * doc/gnulib.texi (GNU Free Documentation License): Include
49253         fdl-1.3.texi instead of fdl.texi.
49254
49255 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49256
49257         * doc/fdl-1.3.texi: New file, from
49258         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49259         * modules/fdl-1.3: Add.
49260         * MODULES.html.sh: Add fdl-1.3.
49261
49262 2008-11-03  Bruno Haible  <bruno@clisp.org>
49263
49264         Make determination of absolute name of header file work with AIX xlc.
49265         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49266         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49267         preprocessing.
49268         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49269         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49270
49271 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49272
49273         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49274         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49275         <ludo@gnu.org>.
49276
49277 2008-11-02  Bruno Haible  <bruno@clisp.org>
49278
49279         Mark 'strpbrk' obsolete.
49280         * modules/strpbrk (Status, Notice): New sections.
49281         * modules/strtok_r (Depends-on): Add strpbrk.
49282
49283 2008-11-02  Bruno Haible  <bruno@clisp.org>
49284
49285         Mark 'strdup' obsolete.
49286         * modules/strdup (Status, Notice): New sections.
49287         * modules/findprog (Depends-on): Add strdup.
49288         * modules/getaddrinfo (Depends-on): Likewise.
49289         * modules/localename (Depends-on): Likewise.
49290         * modules/relocatable-lib (Depends-on): Likewise.
49291         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49292         * modules/relocatable-prog (Depends-on): Likewise.
49293         * modules/trim (Depends-on): Likewise.
49294         * modules/unictype/gen-ctype (Depends-on): Likewise.
49295         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49296
49297 2008-11-02  Bruno Haible  <bruno@clisp.org>
49298
49299         Mark 'strcspn' obsolete.
49300         * modules/strcspn (Status, Notice): New sections.
49301
49302 2008-11-02  Bruno Haible  <bruno@clisp.org>
49303
49304         Mark 'rmdir' obsolete.
49305         * modules/rmdir (Status, Notice): New sections.
49306         * modules/clean-temp (Depends-on): Add rmdir.
49307         * modules/openat (Depends-on): Likewise.
49308
49309 2008-11-02  Bruno Haible  <bruno@clisp.org>
49310
49311         Mark 'raise' obsolete.
49312         * modules/raise (Status, Notice): New sections.
49313         (Include): Specify <signal.h>.
49314         * modules/stdio (Depends-on): Add raise.
49315         * modules/write (Depends-on): Likewise.
49316
49317 2008-11-02  Bruno Haible  <bruno@clisp.org>
49318
49319         Mark 'memset' obsolete.
49320         * modules/memset (Status, Notice): New sections.
49321
49322 2008-11-02  Bruno Haible  <bruno@clisp.org>
49323
49324         Mark 'memmove' obsolete.
49325         * modules/memmove (Status, Notice): New sections.
49326         * modules/argp (Depends-on): Add memmove.
49327         * modules/argz (Depends-on): Likewise.
49328         * modules/canonicalize (Depends-on): Likewise.
49329         * modules/canonicalize-lgpl (Depends-on): Likewise.
49330         * modules/fts (Depends-on): Likewise.
49331         * modules/getcwd (Depends-on): Likewise.
49332         * modules/human (Depends-on): Likewise.
49333         * modules/regex (Depends-on): Likewise.
49334         * modules/striconveh (Depends-on): Likewise.
49335         * modules/trim (Depends-on): Likewise.
49336         * modules/unistr/u8-move (Depends-on): Likewise.
49337         * modules/unistr/u16-move (Depends-on): Likewise.
49338         * modules/unistr/u32-move (Depends-on): Likewise.
49339
49340 2008-11-02  Bruno Haible  <bruno@clisp.org>
49341
49342         Mark 'memcpy' obsolete.
49343         * modules/memcpy (Status, Notice): New sections.
49344
49345 2008-11-02  Bruno Haible  <bruno@clisp.org>
49346
49347         Mark 'memcmp' obsolete.
49348         * modules/memcmp (Status, Notice): New sections.
49349         * modules/argmatch (Depends-on): Add memchr.
49350         * modules/backupfile (Depends-on): Likewise.
49351         * modules/c-strcasestr (Depends-on): Likewise.
49352         * modules/crypto/des (Depends-on): Likewise.
49353         * modules/csharpcomp (Depends-on): Likewise.
49354         * modules/fnmatch (Depends-on): Likewise.
49355         * modules/git-merge-changelog (Depends-on): Likewise.
49356         * modules/isnand (Depends-on): Likewise.
49357         * modules/isnand-nolibm (Depends-on): Likewise.
49358         * modules/isnanf (Depends-on): Likewise.
49359         * modules/isnanf-nolibm (Depends-on): Likewise.
49360         * modules/isnanl (Depends-on): Likewise.
49361         * modules/isnanl-nolibm (Depends-on): Likewise.
49362         * modules/mbchar (Depends-on): Likewise.
49363         * modules/memcoll (Depends-on): Likewise.
49364         * modules/quotearg (Depends-on): Likewise.
49365         * modules/regex (Depends-on): Likewise.
49366         * modules/relocatable-prog (Depends-on): Likewise.
49367         * modules/same (Depends-on): Likewise.
49368         * modules/signbit (Depends-on): Likewise.
49369         * modules/strcasestr-simple (Depends-on): Likewise.
49370         * modules/unictype/gen-ctype (Depends-on): Likewise.
49371         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49372         * modules/uniname/uniname (Depends-on): Likewise.
49373         * modules/unistr/u8-cmp (Depends-on): Likewise.
49374
49375 2008-11-02  Bruno Haible  <bruno@clisp.org>
49376
49377         Mark 'memchr' obsolete.
49378         * modules/memchr (Status, Notice): New sections.
49379         * modules/argp (Depends-on): Add memchr.
49380         * modules/base64 (Depends-on): Likewise.
49381         * modules/c-strcasestr (Depends-on): Likewise.
49382         * modules/chdir-long (Depends-on): Likewise.
49383         * modules/fnmatch (Depends-on): Likewise.
49384         * modules/getsubopt (Depends-on): Likewise.
49385         * modules/git-merge-changelog (Depends-on): Likewise.
49386         * modules/glob (Depends-on): Likewise.
49387         * modules/strcasestr-simple (Depends-on): Likewise.
49388         * modules/strnlen (Depends-on): Likewise.
49389
49390 2008-11-02  Bruno Haible  <bruno@clisp.org>
49391
49392         Mark 'atexit' obsolete.
49393         * modules/atexit (Status, Notice): New sections.
49394         * modules/chdir-long (Depends-on): Add atexit.
49395         * modules/wait-process (Depends-on): Likewise.
49396
49397 2008-11-02  Bruno Haible  <bruno@clisp.org>
49398
49399         * gnulib-tool: New option --with-obsolete.
49400         (func_usage): Document it.
49401         (func_modules_transitive_closure): Drop obsolete dependencies if
49402         incobsolete is not true.
49403         (func_import): Read and save the incobsolete variable to the cache.
49404
49405 2008-11-02  Bruno Haible  <bruno@clisp.org>
49406
49407         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49408         * gnulib-tool: New option --extract-status.
49409         (func_usage): Document it.
49410         (sed_extract_prog): Recognize it.
49411         (func_get_status): New function.
49412
49413 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49414
49415         * modules/sockets (License): Change from LGPL to LGPLv2+.
49416
49417 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49418
49419         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49420
49421 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49422
49423         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49424         Mention times and sys_times.
49425         * modules/sys_times, modules/sys_times-tests: New modules.
49426         * modules/times, modules/times-tests: Likewise
49427         * m4/sys_times_h.m4: New file.
49428         * lib/sys_times.in.h: Likewise
49429         * lib/times.c: Likewise.
49430         * tests/test-sys_times.c: Likewise.
49431         * tests/test-times.c: Likewise.
49432         * doc/posix-headers/sys_times.texi: Update.
49433         * doc/posix-functions/times.texi: Update.
49434
49435 2008-10-28  Jim Meyering  <meyering@redhat.com>
49436
49437         * modules/tempname (Depends-on): Add lstat.
49438
49439         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49440
49441 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49442
49443         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49444         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49445         using idiom used elsewhere in gnulib.
49446
49447 2008-10-27  Jim Meyering  <meyering@redhat.com>
49448
49449         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49450
49451 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49452
49453         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49454         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49455         programs.
49456         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49457
49458 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49459
49460         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49461
49462 2008-10-27  Bruno Haible  <bruno@clisp.org>
49463
49464         * tests/test-lstat.c: Include <stdio.h>.
49465
49466 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49467
49468         * modules/lstat-tests: New module.
49469         * tests/test-lstat.c: New file.
49470
49471 2008-10-26  Jim Meyering  <meyering@redhat.com>
49472
49473         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49474
49475 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49476             Bruno Haible  <bruno@clisp.org>
49477
49478         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49479         * modules/configmake (Include): Add a note that the include must come
49480         after all system headers.
49481         * lib/javaversion.c: Include configmake.h after all other includes.
49482
49483 2008-10-26  Bruno Haible  <bruno@clisp.org>
49484
49485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49486         HAVE_STRUCT_RANDOM_DATA to 1.
49487         (gl_STDLIB_H): Simplify.
49488
49489 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49490
49491         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49492         substitute HAVE_STRUCT_RANDOM_DATA.
49493         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49494         random_data.
49495         * modules/stdlib (Makefile.am): Substitute
49496         HAVE_STRUCT_RANDOM_DATA.
49497
49498 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49499
49500         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49501         * doc/gnulib-intro.texi (Copyright): Likewise.
49502
49503 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49504
49505         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49506         findings.
49507
49508 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49509             Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/unistd.in.h: Include <winsock2.h>.
49512         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49513         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49514         Provide dummy declarations.
49515         (gethostname): Override.
49516         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49517         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49518         gl_PREREQ_SYS_H_WINSOCK2.
49519         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49520         * doc/posix-functions/gethostname.texi: More details.
49521
49522 2008-10-25  Bruno Haible  <bruno@clisp.org>
49523
49524         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49525         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49526         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49527
49528         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49529         here ...
49530         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49532         gl_UNISTD_H_DEFAULTS.
49533
49534 2008-10-25  Eric Blake  <ebb9@byu.net>
49535
49536         signbit: avoid spurious compiler failure
49537         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49538         declarations inside function.
49539
49540 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49541             Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49544         * modules/random_r (Depends-on): Add stdint.
49545
49546 2008-10-24  Bruno Haible  <bruno@clisp.org>
49547
49548         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49549         Eggert.
49550         * modules/strerror (License): Likewise.
49551
49552 2008-10-24  Jim Meyering  <meyering@redhat.com>
49553
49554         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49555         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49556
49557 2008-10-24  Eric Blake  <ebb9@byu.net>
49558
49559         getgroups: fix compilation when getgroups is available
49560         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49561         but with <config.h> override of getgroups disabled.
49562
49563 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49564
49565         * doc/gnulib.texi (Header files): Add note about C++ problems.
49566         Explained by Bruno Haible <bruno@clisp.org>.
49567
49568 2008-10-23  Bruno Haible  <bruno@clisp.org>
49569
49570         Define a dummy SA_NODEFER macro on Interix.
49571         * lib/signal.in.h (SA_NODEFER): Define fallback.
49572         Reported by Aleksey Cheusov <cheusov@tut.by> via
49573         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49574
49575 2008-10-23  Bruno Haible  <bruno@clisp.org>
49576
49577         * modules/freadahead (License): Change to LGPLv2+.
49578         Suggested by Simon Josefsson.
49579
49580 2008-10-23  Jim Meyering  <meyering@redhat.com>
49581
49582         random_r: new module
49583         * modules/random_r: New file.
49584         * m4/random_r.m4: New file.
49585         * lib/random_r.c: New file, from glibc.
49586         * modules/random_r-tests: New file.
49587         * tests/test-random_r.c: New file.
49588         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49589          Declare.
49590         (RAND_MAX): Define.
49591         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49592         * modules/stdlib: Substitute them, too.
49593         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49594         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49595         * doc/glibc-functions/random_r.texi: Likewise.
49596         * doc/glibc-functions/setstate_r.texi: Likewise.
49597         * doc/glibc-functions/srandom_r.texi: Likewise.
49598         * config/srclist.txt: Mention it.
49599
49600 2008-10-23  David Lutterkort  <lutter@redhat.com>
49601
49602         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49603         link requirement
49604
49605 2008-10-23  Jim Meyering  <meyering@redhat.com>
49606
49607         selinux-h: mark parameters of stub functions as intentionally unused
49608         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49609         * lib/se-context.in.h: Likewise.
49610
49611 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49612
49613         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49614
49615 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49616
49617         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49618
49619 2008-10-22  Eric Blake  <ebb9@byu.net>
49620
49621         glthread/thread: avoid compiler warning
49622         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49623         Add unreachable abort to silence compiler.
49624
49625 2008-10-22  Eric Blake  <ebb9@byu.net>
49626
49627         netdb: also supply struct addrinfo for cygwin 1.5.x
49628         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49629         older cygwin.
49630         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49631         cygwin.
49632         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49633
49634 2008-10-22  Bruno Haible  <bruno@clisp.org>
49635
49636         * users.txt: Update entry about pspp.
49637
49638 2008-10-21  Bruno Haible  <bruno@clisp.org>
49639
49640         Simplification.
49641         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49642         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49643
49644         Simplification.
49645         * lib/ioctl.c (ioctl): Don't undefine.
49646         * lib/socket.c (socket): Don't undefine.
49647
49648         Remove unused module indicator macros.
49649         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49650         GNULIB_$1 as a C macro.
49651
49652         * doc/posix-functions/close.texi: Undo last change.
49653         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49654         Windows platforms.
49655
49656 2008-10-21  Bruno Haible  <bruno@clisp.org>
49657
49658         Add gethostname() declaration to <unistd.h>.
49659         * lib/unistd.in.h (gethostname): New declaration.
49660         * lib/gethostname.c: Include <unistd.h>.
49661         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49662         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49664         and HAVE_GETHOSTNAME.
49665         * modules/gethostname (Depends-on): Add unistd.
49666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49667         (Include): Specify <unistd.h>.
49668         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49669         HAVE_GETHOSTNAME.
49670         * tests/test-gethostname.c: Include <unistd.h> first.
49671
49672 2008-10-21  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49675         * modules/select-tests (Depends-on): Likewise.
49676         Reported by Simon Josefsson.
49677
49678 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49679
49680         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49681         * lib/accept.c: New file, based on winsock.c.
49682         * lib/bind.c: New file, based on winsock.c.
49683         * lib/connect.c: New file, based on winsock.c.
49684         * lib/getpeername.c: New file, based on winsock.c.
49685         * lib/getsockname.c: New file, based on winsock.c.
49686         * lib/getsockopt.c: New file, based on winsock.c.
49687         * lib/ioctl.c: New file, based on winsock.c.
49688         * lib/listen.c: New file, based on winsock.c.
49689         * lib/recv.c: New file, based on winsock.c.
49690         * lib/recvfrom.c: New file, based on winsock.c.
49691         * lib/send.c: New file, based on winsock.c.
49692         * lib/sendto.c: New file, based on winsock.c.
49693         * lib/setsockopt.c: New file, based on winsock.c.
49694         * lib/shutdown.c: New file, based on winsock.c.
49695         * lib/socket.c: New file, based on winsock.c.
49696         * lib/w32sock.h: New file, based on winsock.c.
49697         * lib/winsock.c: Remove file.
49698         * modules/accept: Likewise.
49699         * modules/bind: Likewise.
49700         * modules/connect: Likewise.
49701         * modules/getpeername: Likewise.
49702         * modules/getsockname: Likewise.
49703         * modules/getsockopt: Likewise.
49704         * modules/ioctl: Likewise.
49705         * modules/listen: Likewise.
49706         * modules/recv: Likewise.
49707         * modules/recvfrom: Likewise.
49708         * modules/send: Likewise.
49709         * modules/sendto: Likewise.
49710         * modules/setsockopt: Likewise.
49711         * modules/shutdown: Likewise.
49712         * modules/socket: Use socket.c instead of winsock.c.
49713         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49714         * doc/posix-functions/accept.texi: Doc fix.
49715         * doc/posix-functions/bind.texi: Doc fix.
49716         * doc/posix-functions/close.texi: Doc fix.
49717         * doc/posix-functions/connect.texi: Doc fix.
49718         * doc/posix-functions/getpeername.texi: Doc fix.
49719         * doc/posix-functions/getsockname.texi: Doc fix.
49720         * doc/posix-functions/getsockopt.texi: Doc fix.
49721         * doc/posix-functions/ioctl.texi: Doc fix.
49722         * doc/posix-functions/listen.texi: Doc fix.
49723         * doc/posix-functions/recv.texi: Doc fix.
49724         * doc/posix-functions/recvfrom.texi: Doc fix.
49725         * doc/posix-functions/send.texi: Doc fix.
49726         * doc/posix-functions/sendto.texi: Doc fix.
49727         * doc/posix-functions/setsockopt.texi: Doc fix.
49728         * doc/posix-functions/shutdown.texi: Doc fix.
49729         * doc/posix-functions/socket.texi: Doc fix.
49730
49731 2008-10-20  Bruno Haible  <bruno@clisp.org>
49732
49733         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49734         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49735         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49736         as an alias for SIGABRT.
49737         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49738         (sigaction): Map it to SIGABRT.
49739         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49740
49741 2008-10-20  Bruno Haible  <bruno@clisp.org>
49742
49743         * lib/fts.c: Don't include lstat.h.
49744         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49745
49746         Move the lstat() declaration to <sys/stat.h>.
49747         * lib/lstat.h: Remove file.
49748         * lib/sys_stat.in.h: Add special invocation convention.
49749         (lstat): New declaration.
49750         * lib/lstat.c (orig_lstat): New function.
49751         (rpl_lstat): Use orig_lstat instead of lstat.
49752         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49753         AC_C_INLINE. Set REPLACE_LSTAT.
49754         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49755         and REPLACE_LSTAT.
49756         * modules/lstat (Files): Remove lib/lstat.h.
49757         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49758         (Include): Specify <sys/stat.h> instead of lstat.h.
49759         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49760         REPLACE_LSTAT.
49761         * NEWS: Mention the change.
49762
49763 2008-10-20  Bruno Haible  <bruno@clisp.org>
49764
49765         * modules/posix_spawn-tests: New file.
49766         * tests/test-posix_spawn3.c: New file.
49767
49768 2008-10-20  Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49771         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49772         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49773         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49774         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49775
49776 2008-10-20  Bruno Haible  <bruno@clisp.org>
49777
49778         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49779         of posix_spawn on AIX 5.3.
49780
49781 2008-10-20  Bruno Haible  <bruno@clisp.org>
49782
49783         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49784
49785 2008-10-20  Bruno Haible  <bruno@clisp.org>
49786
49787         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49788         of AC_LANG_PROGRAM.
49789
49790 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49791
49792         * lib/netdb.in.h: Don't define GNU specific constants until they
49793         are supported or needed.  Reported by Bruno Haible
49794         <bruno@clisp.org>.
49795
49796 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49797
49798         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49799
49800 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49801
49802         * lib/getaddrinfo.h: Remove file.
49803         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49804         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49805         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49806         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49807         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49808         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49809         * tests/test-getaddrinfo.c: Likewise.
49810         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49811         * NEWS: Mention change.
49812
49813 2008-10-19  Bruno Haible  <bruno@clisp.org>
49814
49815         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49816
49817 2008-10-19  Bruno Haible  <bruno@clisp.org>
49818
49819         * lib/wait-process.c: Include simply <sys/wait.h>.
49820         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49821         WIFSTOPPED): Remove fallback definitions.
49822         * modules/wait-process (Depends-on): Add sys_wait.
49823
49824         New module 'sys_wait'.
49825         * modules/sys_wait: New file.
49826         * lib/sys_wait.in.h: New file, partially copied from
49827         lib/wait-process.c.
49828         * m4/sys_wait_h.m4: New file.
49829         * doc/posix-headers/sys_wait.texi: Mention the new module.
49830
49831 2008-10-19  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49834
49835 2008-10-19  Bruno Haible  <bruno@clisp.org>
49836
49837         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49838         * lib/wait-process.c (WAIT_T): Remove type.
49839         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49840         (wait_subprocess): Update.
49841
49842 2008-10-19  Bruno Haible  <bruno@clisp.org>
49843
49844         New module 'atoll'.
49845         * modules/atoll: New file.
49846         * lib/stdlib.in.h (atoll): New declaration.
49847         * lib/atoll.c: New file, from glibc with modifications.
49848         * m4/atoll.m4: New file.
49849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49850         HAVE_ATOLL.
49851         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49852         * doc/posix-functions/atoll.texi: Mention the new module.
49853
49854 2008-10-19  Bruno Haible  <bruno@clisp.org>
49855
49856         Add strtoull() declaration to <stdlib.h>.
49857         * lib/stdlib.in.h (strtoull): New declaration.
49858         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49859         Set HAVE_STRTOULL.
49860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49861         HAVE_STRTOULL.
49862         * modules/strtoull (Depends-on): Add stdlib.
49863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49864         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49865         HAVE_STRTOULL.
49866
49867 2008-10-19  Bruno Haible  <bruno@clisp.org>
49868
49869         Add strtoll() declaration to <stdlib.h>.
49870         * lib/stdlib.in.h (strtoll): New declaration.
49871         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49872         Set HAVE_STRTOLL.
49873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49874         HAVE_STRTOLL.
49875         * modules/strtoll (Depends-on): Add stdlib.
49876         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49877         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49878
49879 2008-10-19  Bruno Haible  <bruno@clisp.org>
49880
49881         * modules/bcopy (Depends-on): Add strings.
49882         (Include): Specify <strings.h>.
49883
49884 2008-10-19  Bruno Haible  <bruno@clisp.org>
49885
49886         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49887
49888 2008-10-19  Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49891         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49892         mingw.
49893
49894 2008-10-19  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/atanl.c: Don't include isnanl.h.
49897         * lib/cosl.c: Likewise.
49898         * lib/ldexpl.c: Likewise.
49899         * lib/logl.c: Likewise.
49900         * lib/sinl.c: Likewise.
49901         * lib/sqrtl.c: Likewise.
49902         * lib/tanl.c: Likewise.
49903
49904         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49905         * lib/isnanf.h: Remove file.
49906         * lib/isnand.h: Remove file.
49907         * lib/isnanl.h: Remove file.
49908         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49909         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49910         macros.
49911         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49912         HAVE_ISNANF, don't define it as a C macro.
49913         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49914         HAVE_ISNAND, don't define it as a C macro.
49915         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49916         HAVE_ISNANL, don't define it as a C macro.
49917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49918         HAVE_ISNAN[FDL].
49919         * modules/isnanf (Files): Remove lib/isnanf.h.
49920         (Depends-on): Add math.
49921         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49922         (Include): Specify <math.h> instead of isnanf.h.
49923         * modules/isnand (Files): Remove lib/isnand.h.
49924         (Depends-on): Add math.
49925         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49926         (Include): Specify <math.h> instead of isnand.h.
49927         * modules/isnanl (Files): Remove lib/isnanl.h.
49928         (Depends-on): Add math.
49929         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49930         (Include): Specify <math.h> instead of isnanl.h.
49931         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49932         HAVE_ISNAN[FDL].
49933         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49934         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49935         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49936         * NEWS: Mention the change.
49937
49938 2008-10-18  Bruno Haible  <bruno@clisp.org>
49939
49940         Add getusershell(), setusershell(), endusershell() declarations to
49941         <unistd.h>.
49942         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49943         declarations.
49944         * lib/getusershell.c: Include unistd.h.
49945         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49946         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49947         HAVE_GETUSERSHELL.
49948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49949         and HAVE_GETUSERSHELL.
49950         * modules/getusershell (Depends-on): Add unistd, extensions.
49951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49952         (Include): Specify <unistd.h>.
49953         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49954         HAVE_GETUSERSHELL.
49955
49956 2008-10-18  Bruno Haible  <bruno@clisp.org>
49957
49958         Add a getloadavg() declaration to <stdlib.h>.
49959         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49960         getloadavg declaration.
49961         (getloadavg): New declaration.
49962         * lib/getloadavg.c: Include <stdlib.h> first.
49963         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49964         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49965         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49967         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49968         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49969         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49970         (Include): Specify <stdlib.h>.
49971         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49972         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49973
49974 2008-10-18  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/dirchownmod.c: Don't include lchmod.h.
49977
49978         Move the lchmod() declaration to <sys/stat.h>.
49979         * lib/lchmod.h: Remove file.
49980         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49981         (lchmod): New declaration, moved here from lib/lchown.h.
49982         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49983         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49985         and HAVE_LCHMOD.
49986         * modules/lchmod (Files): Remove lib/lchmod.h.
49987         (Depends-on): Add sys_stat, extensions.
49988         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49989         (Include): Specify <sys/stat.h> instead of lchmod.h.
49990         * modules/sys_stat (Depends-on): Add link-warning.
49991         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49992         definition of GL_LINK_WARNING.
49993         * NEWS: Mention the change.
49994
49995 2008-10-18  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/fchdir.c: Don't include dirfd.h.
49998         * lib/fts.c: Likewise.
49999         * lib/getcwd.c: Likewise.
50000         * lib/glob.c: Likewise.
50001
50002         Move the dirfd() declaration to <dirent.h>.
50003         * lib/dirfd.h: Remove file.
50004         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50005         (dirfd): New declaration.
50006         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50007         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50008         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50009         HAVE_DECL_DIRFD.
50010         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50011         HAVE_DECL_DIRFD.
50012         * modules/dirfd (Files): Remove lib/dirfd.h.
50013         (Depends-on): Add dirent, extensions.
50014         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50015         (Include): Specify <dirent.h> instead of dirfd.h.
50016         * modules/dirent (Depends-on): Add link-warning.
50017         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50018         definition of GL_LINK_WARNING.
50019         * NEWS: Mention the change.
50020
50021 2008-10-18  Bruno Haible  <bruno@clisp.org>
50022
50023         Move the euidaccess() declaration to <unistd.h>.
50024         * lib/euidaccess.h: Remove file.
50025         * lib/unistd.in.h (euidaccess): New declaration.
50026         * lib/euidaccess.c: Don't include euidaccess.h.
50027         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50028         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50030         and HAVE_EUIDACCESS.
50031         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50032         (Depends-on): Add unistd.
50033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50034         (Include): Specify <unistd.h> instead of euidaccess.h.
50035         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50036         HAVE_EUIDACCESS.
50037         * NEWS: Mention the change.
50038
50039 2008-10-18  Bruno Haible  <bruno@clisp.org>
50040
50041         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50042
50043         Move the getdomainname() declaration to <unistd.h>.
50044         * lib/getdomainname.h: Remove file.
50045         * lib/unistd.in.h (getdomainname): New declaration.
50046         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50047         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50048         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50049         HAVE_GETDOMAINNAME.
50050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50051         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50052         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50053         (Depends-on): Add unistd, extensions.
50054         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50055         (Includes): Specify <unistd.h> instead of getdomainname.h.
50056         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50057         HAVE_GETDOMAINNAME.
50058         * NEWS: Mention the change.
50059
50060 2008-10-18  Bruno Haible  <bruno@clisp.org>
50061
50062         * modules/dirent: New file.
50063         * m4/dirent_h.m4: New file.
50064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50065         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50066         * modules/fchdir (Files): Remove lib/dirent.in.h.
50067         (Depends-on): Add dirent.
50068         (Makefile.am): Move rules to modules/dirent.
50069         * doc/posix-headers/dirent.texi: Mention the new module.
50070
50071 2008-10-18  Bruno Haible  <bruno@clisp.org>
50072
50073         Avoid -Wunused-parameter warnings in public gnulib header files.
50074         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50075         macro.
50076         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50077
50078 2008-10-18  Bruno Haible  <bruno@clisp.org>
50079
50080         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50081         * doc/glibc-functions/error.texi: Mention the module 'error'.
50082         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50083         * doc/glibc-functions/getdomainname.texi: Mention the module
50084         'getdomainname'.
50085         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50086         * doc/glibc-functions/getpagesize.texi: Mention the module
50087         'getpagesize'.
50088         * doc/glibc-functions/getusershell.texi: Mention the module
50089         'getusershell'.
50090         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50091         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50092         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50093         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50094         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50095         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50096         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50097         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50098         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50099         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50100         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50101         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50102         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50103         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50104
50105 2008-10-17  Bruno Haible  <bruno@clisp.org>
50106
50107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50108         HP-UX and IRIX, use -0.0L.
50109         * tests/test-ceill.c (minus_zero): Likewise.
50110         * tests/test-floorl.c (minus_zero): Likewise.
50111         * tests/test-frexpl.c (minus_zero): Likewise.
50112         * tests/test-isnan.c (minus_zerol): Likewise.
50113         * tests/test-isnanl.h (minus_zero): Likewise.
50114         * tests/test-ldexpl.c (minus_zero): Likewise.
50115         * tests/test-roundl.c (minus_zero): Likewise.
50116         * tests/test-signbit.c (minus_zerol): Likewise.
50117         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50118         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50119         * tests/test-truncl.c (minus_zero): Likewise.
50120         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50121         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50122         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50123         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50124
50125 2008-10-17  Bruno Haible  <bruno@clisp.org>
50126
50127         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50128         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50129         that it gets activated only for gcc >= 3.0.
50130         * lib/dirent.in.h: Likewise.
50131         * lib/errno.in.h: Likewise.
50132         * lib/fcntl.in.h: Likewise.
50133         * lib/float.in.h: Likewise.
50134         * lib/iconv.in.h: Likewise.
50135         * lib/inttypes.in.h: Likewise.
50136         * lib/locale.in.h: Likewise.
50137         * lib/math.in.h: Likewise.
50138         * lib/netdb.in.h: Likewise.
50139         * lib/netinet_in.in.h: Likewise.
50140         * lib/search.in.h: Likewise.
50141         * lib/signal.in.h: Likewise.
50142         * lib/spawn.in.h: Likewise.
50143         * lib/stdarg.in.h: Likewise.
50144         * lib/stdint.in.h: Likewise.
50145         * lib/stdio.in.h: Likewise.
50146         * lib/stdlib.in.h: Likewise.
50147         * lib/string.in.h: Likewise.
50148         * lib/strings.in.h: Likewise.
50149         * lib/sys_file.in.h: Likewise.
50150         * lib/sys_ioctl.in.h: Likewise.
50151         * lib/sys_select.in.h: Likewise.
50152         * lib/sys_socket.in.h: Likewise.
50153         * lib/sys_stat.in.h: Likewise.
50154         * lib/sys_time.in.h: Likewise.
50155         * lib/sysexits.in.h: Likewise.
50156         * lib/time.in.h: Likewise.
50157         * lib/unistd.in.h: Likewise.
50158         * lib/wchar.in.h: Likewise.
50159         * lib/wctype.in.h: Likewise.
50160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50161
50162 2008-10-17  Jim Meyering  <meyering@redhat.com>
50163
50164         ignore-value: don't depend on inline module
50165         * modules/ignore-value (Depends-on): Remove 'inline'.
50166         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50167         Suggestion from Bruno Haible.
50168
50169 2008-10-17  Bruno Haible  <bruno@clisp.org>
50170
50171         New implementation of condition variables for Win32.
50172         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50173         (gl_linked_waitqueue_t): New type.
50174         (gl_cond_t): Use it.
50175         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50176         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50177         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50178         (glthread_cond_init_func, glthread_cond_wait_func,
50179         glthread_cond_timedwait_func, glthread_cond_signal_func,
50180         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50181         Reimplemented on the basis of gl_linked_waitqueue_t.
50182         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50183         gl_waitqueue_t.
50184         (gl_rwlock_t): Update.
50185         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50186
50187 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50188
50189         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50190         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50191
50192 2008-10-17  Jim Meyering  <meyering@redhat.com>
50193
50194         ignore-value: new module
50195         * modules/ignore-value: New file.
50196         * lib/ignore-value.h: New file.
50197         * MODULES.html.sh (Compiler warning management): New section,
50198         just for this module.  More to come.
50199
50200 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50203         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50204         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50205
50206 2008-10-16  Jim Meyering  <meyering@redhat.com>
50207
50208         openat-die.c: avoid 'no previous prototype' warning
50209         * lib/openat-die.c: Include "openat.h".
50210         Reported by Reuben Thomas <rrt@sc3d.org>.
50211
50212 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50213
50214         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50215         * lib/netdb.in.h: Fix typo.
50216         Reported by Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/netdb.in.h: Include sys/socket.h for platforms without
50219         netdb.h, to get structures like hostent on MinGW.
50220         * modules/netdb (Depends-on): Add sys_socket.
50221
50222 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50223
50224         * modules/netdb, modules/netdb-tests: New file.
50225         * m4/netdb_h.m4: New file.
50226         * lib/netdb.in.h: Add, currently just an empty file pending
50227         definitions.
50228         * tests/test-netdb.c: New file.
50229         * doc/posix-headers/netdb.texi: Mention that we replace it if
50230         needed.
50231         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50232         netdb.
50233
50234 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50235
50236         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50237         with code.
50238
50239 2008-10-13  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/glthread/cond.c (glthread_cond_wait_func,
50242         glthread_cond_timedwait_func): Add a comment.
50243
50244 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50245
50246         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50247         * tests/test-select.c: Likewise,
50248
50249 2008-10-13  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/glthread/cond.c (glthread_cond_wait_func,
50252         glthread_cond_timedwait_func): Fix variable name.
50253         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50254
50255 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50256
50257         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50258         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50259         struct sockaddr.sa_len.
50260         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50261
50262 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50263
50264         * build-aux/pmccabe2html: Add css and css_url parameters.
50265
50266 2008-10-12  Bruno Haible  <bruno@clisp.org>
50267
50268         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50269         calling aclx_get.
50270         Reported by Rainer Tammer <tammer@tammer.net>.
50271
50272 2008-10-12  Bruno Haible  <bruno@clisp.org>
50273
50274         Use msvcrt aware primitives for creation/termination of Win32 threads.
50275         * lib/glthread/thread.c: Include <process.h>.
50276         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50277         (wrapper_func): Update signature.
50278         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50279
50280 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50281             Bruno Haible  <bruno@clisp.org>
50282
50283         Provide a Win32 implementation of the 'cond' module.
50284         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50285         * lib/glthread/cond.c (glthread_cond_init_func,
50286         glthread_cond_wait_func, glthread_cond_timedwait_func,
50287         glthread_cond_signal_func, glthread_cond_broadcast_func,
50288         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50289         * modules/cond (Dependencies): Add gettimeofday.
50290
50291 2008-10-11  Bruno Haible  <bruno@clisp.org>
50292
50293         Make sleep work on older versions of mingw.
50294         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50295         only whether it exists.
50296         * doc/posix-functions/sleep.texi: Mention the problem with older
50297         versions of mingw.
50298
50299 2008-10-11  Bruno Haible  <bruno@clisp.org>
50300
50301         New module 'shutdown'.
50302         * modules/shutdown: New file.
50303         * lib/sys_socket.in.h (shutdown): New declaration.
50304         * lib/winsock.c (shutdown): New function.
50305         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50306         GNULIB_SHUTDOWN.
50307         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50308         * doc/posix-functions/shutdown.texi: Document the new module.
50309
50310 2008-10-11  Jim Meyering  <meyering@redhat.com>
50311
50312         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50313
50314 2008-10-11  Bruno Haible  <bruno@clisp.org>
50315
50316         New module 'fclose'.
50317         * modules/fclose: New file.
50318         * lib/stdio.in.h (fclose): New declaration.
50319         * lib/fclose.c: New file.
50320         * m4/fclose.m4: New file.
50321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50322         REPLACE_FCLOSE.
50323         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50324         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50325         REPLACE_FCLOSE.
50326         * modules/close (Depends-on): fclose.
50327         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50328
50329 2008-10-11  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50332         set errno and don't call _close.
50333
50334 2008-10-10  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50337         ACL, not afterwards. Fixes test failure on Cygwin.
50338
50339 2008-10-09  Ben Pfaff  <blp@gnu.org>
50340
50341         * build-aux/announce-gen: Fix gnulib version related part of usage
50342         message.  Die with a useful error message if no tarballs are
50343         found.
50344
50345 2008-10-10  Jim Meyering  <meyering@redhat.com>
50346
50347         bootstrap: use git's --depth=N option only if it's supported
50348         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50349         recognize the --depth option.  Reported by Pádraig Brady.
50350
50351 2008-10-09  Bruno Haible  <bruno@clisp.org>
50352
50353         New module 'ioctl'.
50354         * modules/ioctl: New file.
50355         * lib/sys_socket.in.h (ioctl): Remove declaration.
50356         * lib/winsock.c: Include <sys/ioctl.h>.
50357         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50358         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50359         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50360         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50361         * doc/posix-functions/ioctl.texi: Mention the new module.
50362
50363 2008-10-09  Bruno Haible  <bruno@clisp.org>
50364
50365         New module 'sys_ioctl'.
50366         * lib/sys_ioctl.in.h: New file.
50367         * m4/sys_ioctl_h.m4: New file.
50368         * modules/sys_ioctl: New file.
50369         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50370
50371 2008-10-09  Bruno Haible  <bruno@clisp.org>
50372
50373         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50374         * lib/winsock.c: Include <stdarg.h>.
50375         (rpl_ioctl): Change to second argument 'int' and then varargs.
50376
50377 2008-10-09  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50380         when the sys_socket module is present and the system has <winsock2.h>.
50381
50382 2008-10-09  Bruno Haible  <bruno@clisp.org>
50383
50384         * doc/posix-functions/close.texi: Mention module 'close' instead of
50385         module 'sys_socket'.
50386
50387 2008-10-09  Bruno Haible  <bruno@clisp.org>
50388
50389         * doc/glibc-headers/sys_ioctl.texi: New file.
50390         * doc/gnulib.texi: Include it.
50391
50392 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50393             Bruno Haible  <bruno@clisp.org>
50394
50395         Combine the two replacements of 'close'.
50396         * lib/sys_socket.in.h (close): Define to a reminder to include
50397         <unistd.h>.
50398         (_gl_close_fd_maybe_socket): New declaration.
50399         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50400         * lib/winsock.c (close): Remove undefinition.
50401         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50402         needed for the gnulib module 'close'.
50403         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50404         define to an error symbol or to a warning, if suitable.
50405         * lib/close.c: Include <sys/socket.h>.
50406         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50407         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50408         UNISTD_H_HAVE_WINSOCK2_H.
50409         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50411         UNISTD_H_HAVE_WINSOCK2_H.
50412         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50413         (configure.ac): Set a module indicator.
50414         (Makefile.am): Substitute GNULIB_CLOSE.
50415         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50416         * modules/poll-tests (Depends-on): Add close.
50417         * modules/select-tests (Depends-on): Likewise.
50418
50419 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50420             Bruno Haible  <bruno@clisp.org>
50421
50422         New module 'close'.
50423         * modules/close: New file.
50424         * lib/unistd.in.h (close): Move declaration out of the
50425         FCHDIR_REPLACEMENT scope.
50426         (_gl_unregister_fd): New declaration.
50427         * lib/close.c: New file.
50428         * lib/fchdir.c (rpl_close): Remove function.
50429         * m4/close.m4: New file.
50430         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50431         close.
50432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50433         REPLACE_CLOSE.
50434         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50435         REPLACE_CLOSE.
50436         * modules/fchdir (Depends-on): Add close.
50437
50438 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50439             Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/fcntl.in.h (open): Simplify conditionals.
50442         (_gl_register_fd): New declaration.
50443         * lib/fchdir.c (rpl_open): Remove function.
50444         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50445         also.
50446         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50448         open.
50449
50450 2008-10-09  Jim Meyering  <meyering@redhat.com>
50451
50452         GNUmakefile: use the more name-space-friendly "_version"
50453         * top/GNUmakefile (_dummy): Update.
50454         (_version): Rename from "version".
50455
50456 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50457             Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50460         rpl_close.
50461         (_gl_register_fd): New function, extracted from rpl_open.
50462         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50463         (rpl_open, rpl_opendir): Use _gl_register_fd.
50464
50465 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50466
50467         Fix organization of 'open' replacement.
50468         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50469         (gl_FUNC_OPEN): Use it.
50470         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50471
50472 2008-10-08  Bruno Haible  <bruno@clisp.org>
50473
50474         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50475
50476 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50477
50478         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50479         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50480         listen).
50481
50482 2008-10-08  Eric Blake  <ebb9@byu.net>
50483
50484         GNUmakefile: add 'make version' target
50485         * top/GNUmakefile (_curr-ver): Split version update rules...
50486         (version): ...into a target.
50487
50488 2008-10-07  Bruno Haible  <bruno@clisp.org>
50489
50490         Use a more portable replacement expression for -0.0L.
50491         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50492         instead of -0.0L. Fix m4 quotation.
50493
50494         * tests/test-signbit.c: Include <float.h>.
50495         (minus_zero): New variable.
50496         (test_signbitl): Use minus_zero instead of -zero.
50497         * modules/signbit-tests (Depends-on): Add float.
50498
50499         * tests/test-ceill.c: Include <float.h>.
50500         (zero): Remove variable.
50501         (minus_zero): New variable.
50502         (main): Use minus_zero instead of -zero.
50503         * modules/ceill-tests (Depends-on): Add float.
50504
50505         * tests/test-floorl.c: Include <float.h>.
50506         (zero): Remove variable.
50507         (minus_zero): New variable.
50508         (main): Use minus_zero instead of -zero.
50509         * modules/floorl-tests (Depends-on): Add float.
50510
50511         * tests/test-roundl.c: Include <float.h>.
50512         (zero): Remove variable.
50513         (minus_zero): New variable.
50514         (main): Use minus_zero instead of -zero.
50515         * modules/roundl-tests (Depends-on): Add float.
50516
50517         * tests/test-truncl.c: Include <float.h>.
50518         (zero): Remove variable.
50519         (minus_zero): New variable.
50520         (main): Use minus_zero instead of -zero.
50521         * modules/truncl-tests (Depends-on): Add float.
50522
50523         * tests/test-frexpl.c (zero): Remove variable.
50524         (minus_zero): New variable.
50525         (main): Use minus_zero instead of -zero.
50526         * modules/frexpl-tests (Depends-on): Add float.
50527
50528         * tests/test-isnan.c (zerol): Remove variable.
50529         (minus_zerol): New variable.
50530         (test_long_double): Use minus_zerol instead of -zerol.
50531         * modules/isnan-tests (Depends-on): Add float.
50532
50533         * tests/test-isnanl.h (zero): Remove variable.
50534         (minus_zero): New variable.
50535         (main): Use minus_zero instead of -zero.
50536         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50537         * modules/isnanl-tests (Depends-on): Add float.
50538
50539         * tests/test-ldexpl.c (zero): Remove variable.
50540         (minus_zero): New variable.
50541         (main): Use minus_zero instead of -zero.
50542         * modules/ldexpl-tests (Depends-on): Add float.
50543
50544         * tests/test-snprintf-posix.h (zerol): Remove variable.
50545         (minus_zerol): New variable.
50546         (test_function): Use minus_zerol instead of -zerol.
50547         * modules/snprintf-posix-tests (Depends-on): Add float.
50548         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50549
50550         * tests/test-sprintf-posix.h (zerol): Remove variable.
50551         (minus_zerol): New variable.
50552         (test_function): Use minus_zerol instead of -zerol.
50553         * modules/sprintf-posix-tests (Depends-on): Add float.
50554         * modules/vsprintf-posix-tests (Depends-on): Add float.
50555
50556         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50557         (minus_zerol): New variable.
50558         (test_function): Use minus_zerol instead of -zerol.
50559         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50560
50561         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50562         (minus_zerol): New variable.
50563         (test_function): Use minus_zerol instead of -zerol.
50564         * modules/vasprintf-posix-tests (Depends-on): Add float.
50565
50566 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50567
50568         * MODULES.html.sh (Support for building documentation): Mention
50569         pmccabe2html.  Sort entries.
50570
50571         Add pmccabe2html module, from gnupdf.
50572         * build-aux/pmccabe.css: New file.
50573         * build-aux/pmccabe2html: New file.
50574         * m4/pmccabe2html.m4: New file.
50575         * modules/pmccabe2html: New file.
50576
50577 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50578
50579         flock: new module
50580         * MODULES.html.sh: Add to list of modules.
50581         * lib/flock.c: flock implementation for Windows and Unix systems
50582         which have fcntl.
50583         * doc/glibc-functions/flock.texi: Update documentation.
50584         * lib/sys_file.in.h: <sys/file.h> header file.
50585         * m4/flock.m4: M4 macros.
50586         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50587         * modules/flock: flock module.
50588         * modules/flock-tests: flock tests module.
50589         * modules/sys_file: sys/file.h module.
50590         * tests/test-flock.c: test suite for flock.
50591
50592 2008-10-06  Jim Meyering  <meyering@redhat.com>
50593
50594         bootstrap: check for LT_INIT more portably still ;-)
50595         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50596         Spotted by Bruno Haible.
50597
50598 2008-10-06  Eric Blake  <ebb9@byu.net>
50599
50600         test-signbit: avoid tripping Irix cc bug on -0.0L
50601         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50602         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50603         entire testsuite consistent and avoids an Irix 6.2 bug.
50604
50605 2008-10-05  Bruno Haible  <bruno@clisp.org>
50606             Jim Meyering  <jim@meyering.net>
50607
50608         Add an option for ignoring EPIPE during close_stdout.
50609         * lib/closeout.h: Include <stdbool.h>.
50610         (close_stdout_set_ignore_EPIPE): New declaration.
50611         * lib/closeout.c: Include <stdbool.h>.
50612         (ignore_EPIPE): New variable.
50613         (close_stdout_set_ignore_EPIPE): New function.
50614         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50615         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50616         failure.
50617         * modules/closeout (Depends-on): Add stdbool.
50618
50619 2008-10-05  Bruno Haible  <bruno@clisp.org>
50620
50621         * modules/accept: New file.
50622         * modules/bind: New file.
50623         * modules/connect: New file.
50624         * modules/getpeername: New file.
50625         * modules/getsockname: New file.
50626         * modules/getsockopt: New file.
50627         * modules/listen: New file.
50628         * modules/recv: New file.
50629         * modules/recvfrom: New file.
50630         * modules/send: New file.
50631         * modules/sendto: New file.
50632         * modules/setsockopt: New file.
50633         * modules/socket: New file.
50634         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50635         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50636         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50637         the particular module is requested. Add a link warning when the
50638         particular module is not requested.
50639         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50640         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50641         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50642         the particular module is requested.
50643         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50644         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50645         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50646         * modules/sys_socket (Depends-on): Add link-warning.
50647         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50648         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50649         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50650         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50651         GL_LINK_WARNING.
50652         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50653         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50654         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50655         * doc/posix-functions/getpeername.texi: Mention the new module
50656         'getpeername'.
50657         * doc/posix-functions/getsockname.texi: Mention the new module
50658         'getsockname'.
50659         * doc/posix-functions/getsockopt.texi: Mention the new module
50660         'getsockopt'.
50661         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50662         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50663         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50664         * doc/posix-functions/send.texi: Mention the new module 'send'.
50665         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50666         * doc/posix-functions/setsockopt.texi: Mention the new module
50667         'setsockopt'.
50668         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50669         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50670         listen, connect, accept.
50671         * modules/select-tests (Depends-on): Likewise.
50672
50673 2008-10-05  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/winsock.c (strerror): Remove unused #undef.
50676         (rpl_close): Remove unused local variable.
50677
50678         * modules/sys_socket (Depends-on); Add errno.
50679
50680 2008-10-05  Bruno Haible  <bruno@clisp.org>
50681
50682         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50683         (select): Add a link warning when the 'select' module is not used.
50684         * modules/sys_select (Depends-on): Add link-warning.
50685         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50686         Suggested by Paolo Bonzini.
50687
50688 2008-10-05  Jim Meyering  <meyering@redhat.com>
50689
50690         bootstrap: check for LT_INIT more portably
50691         * build-aux/bootstrap: Avoid using grep -E, since it's not
50692         portable enough.  Suggestion from Bruno Haible.
50693
50694 2008-10-05  Bruno Haible  <bruno@clisp.org>
50695
50696         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50697         as being fixed by gnulib.
50698
50699 2008-10-05  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/select-tests: New file, mostly copied from
50702         modules/sys_select-tests.
50703         * tests/test-select.c: New file, mostly copied from
50704         tests/test-sys_select.c.
50705         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50706         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50707         (Makefile.am): Remove test_sys_select_LDADD.
50708
50709         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50710         to an undefined symbol, for an error message.
50711         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50712         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50713         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50714         winsock-select.c here.
50715         * modules/sys_select (Files): Remove lib/winsock-select.c.
50716         (Depends-on): Remove alloca.
50717         (Makefile.am): Substitute GNULIB_SELECT.
50718         * modules/select: New file.
50719         * doc/posix-functions/select.texi: Update.
50720
50721 2008-10-05  Bruno Haible  <bruno@clisp.org>
50722
50723         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50724         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50725         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50726         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50727         getdtablesize.
50728         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50729         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50730
50731 2008-10-05  Bruno Haible  <bruno@clisp.org>
50732
50733         * modules/getdtablesize-tests: New file.
50734         * tests/test-getdtablesize.c: New file.
50735
50736         New module 'getdtablesize'.
50737         * lib/unistd.in.h (getdtablesize): New declaration.
50738         * lib/getdtablesize.c: New file.
50739         * m4/getdtablesize.m4: New file.
50740         * modules/getdtablesize: New file.
50741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50742         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50743         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50744         HAVE_GETDTABLESIZE.
50745         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50746
50747 2008-10-05  Bruno Haible  <bruno@clisp.org>
50748
50749         * modules/sched (Makefile.am): Fix typo.
50750         Reported by Simon Josefsson.
50751
50752 2008-10-05  Jim Meyering  <meyering@redhat.com>
50753
50754         bootstrap: check for LT_INIT, too
50755         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50756         are deprecated.  Suggestion from Ralf Wildenhues.
50757
50758 2008-10-05  Bruno Haible  <bruno@clisp.org>
50759
50760         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50761         overriding them by ours.
50762         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50763
50764 2008-10-05  Jim Meyering  <meyering@redhat.com>
50765
50766         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50767         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50768         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50769
50770 2008-10-04  Bruno Haible  <bruno@clisp.org>
50771
50772         * modules/dup2 (License): Change to LGPLv2+.
50773         * modules/sleep (License): Likewise.
50774         * modules/perror (License): Likewise.
50775         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50776         Blake.
50777         * modules/signal (License): Likewise.
50778         * modules/sigprocmask (License): Likewise.
50779         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50780         Meyering.
50781
50782 2008-10-04  Bruno Haible  <bruno@clisp.org>
50783
50784         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50785         Reported by Rainer Tammer <tammer@tammer.net>.
50786
50787 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50788             Bruno Haible  <bruno@clisp.org>
50789
50790         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50791         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50792         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50793
50794 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50795
50796         filevercmp: new module
50797         * lib/filevercmp.h: New function filevercmp comparing version strings.
50798         * lib/filevercmp.c: Implementation of filevercmp function.
50799         * modules/filevercmp: Module metadata.
50800         * tests/test-filevercmp.c: Unit test for new module.
50801         * modules/filevercmp-tests: Unit test metadata.
50802         * MODULES.html.sh: Add filevercmp module.
50803
50804 2008-10-03  Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/c-ctype.h: Add comment.
50807         Reported by Jim Meyering.
50808
50809 2008-10-02  Bruno Haible  <bruno@clisp.org>
50810
50811         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50812
50813 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50814
50815         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50816         name of bootstrap.conf accordingly.
50817
50818 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50819
50820         * build-aux/bootstrap: Install git-merge-changelog configuration
50821         items into .gitconfig if needed.
50822
50823 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50824
50825         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50826         git repository, and initialize/update it accordingly.
50827
50828 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50829
50830         * modules/fsync-tests: New file.
50831         * tests/test-fsync.c: New file.
50832
50833         New module 'fsync'.
50834         * lib/fsync.c: New file.
50835         * m4/fsync.m4: New file.
50836         * modules/fsync: New file.
50837         * lib/unistd.in.h (fsync): New declaration.
50838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50839         GNULIB_FSYNC and HAVE_FSYNC.
50840         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50841         * MODULES.html.sh (posix_functions): Add fsync.
50842         * doc/posix-functions/fsync.texi: Mention the new module.
50843
50844 2008-10-02  Jim Meyering  <meyering@redhat.com>
50845
50846         fts.c: sync with similar code from coreutils' remove.c
50847         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50848         Guard also with "#if defined __linux__", since for now at least,
50849         this code is Linux-kernel-specific.
50850
50851 2008-10-02  Jim Meyering  <meyering@redhat.com>
50852
50853         fts: bug fixes
50854         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50855         Include <sys/vfs.h>, not <sys/statfs.h>.
50856
50857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50858         Include <sys/vfs.h>, not <sys/statfs.h>.
50859
50860 2008-10-01  Bruno Haible  <bruno@clisp.org>
50861
50862         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50863         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50864         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50865         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50866         * doc/posix-functions/posix_spawnp.texi: Likewise.
50867         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50868         whether posix_spawn actually works.
50869         * m4/pipe.m4 (gl_PIPE): Likewise.
50870         * modules/execute (Files): Add m4/posix_spawn.m4.
50871         * modules/pipe (Files): Add m4/posix_spawn.m4.
50872         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50873
50874 2008-10-01  Jim Meyering  <meyering@redhat.com>
50875
50876         remove trailing spaces
50877         * NEWS: Likewise.
50878         * lib/poll.c (poll): Likewise.
50879         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50880         * lib/winsock.c (rpl_close): Likewise.
50881         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50882         * modules/yield: Likewise.
50883         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50884         * tests/test-sys_select.c (connect_to_socket): Likewise.
50885
50886         fts.c: adjust a new interface to be more generally useful
50887         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50888         (fts_build): Adjust caller.
50889
50890 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50891
50892         * modules/cond-tests: New file.
50893         * tests/test-cond.c: New file.
50894
50895 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50896             Bruno Haible  <bruno@clisp.org>
50897
50898         * modules/cond (Dependencies): Add errno, time.
50899         * lib/glthread/cond.h: Include <time.h>.
50900         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50901         across platforms.
50902
50903 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50904             Bruno Haible  <bruno@clisp.org>
50905
50906         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50907
50908 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50909             Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/tls-tests (Depends-on): Add thread, yield.
50912         (configure.ac): Remove all checks.
50913         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50914         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
50918
50919 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50920             Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/lock-tests (Depends-on): Add thread, yield.
50923         (configure.ac): Remove all checks.
50924         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50925         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50926         gl_thread_self): Remove definitions. Include glthread/thread.h and
50927         glthread/yield.h instead.
50928         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50929         additional NULL argument to gl_thread_join.
50930
50931 2008-09-30  Bruno Haible  <bruno@clisp.org>
50932
50933         Fix the Win32 implementation of the 'thread' module.
50934         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50935         pointer type.
50936         (gl_thread_self): Invoke gl_thread_self_func.
50937         (gl_thread_self_func): New declaration.
50938         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50939         (do_init_self_key, init_self_key): New functions.
50940         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50941         Remove some fields.
50942         (running_threads, running_lock): Remove variables.
50943         (get_current_thread_handle): New function.
50944         (gl_thread_self_func, wrapper_func, glthread_create_func,
50945         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50946         simplified.
50947
50948 2008-09-30  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50951         files.
50952
50953 2008-09-30  Jim Meyering  <meyering@redhat.com>
50954
50955         fts.m4: correct the test for statfs.f_type
50956         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50957         when checking for statfs.f_type.
50958
50959 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50960
50961         tests: avoid some compiler warnings
50962         * tests/test-memchr.c (main): Pass NULL indirectly.
50963         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50964
50965 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50966
50967         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50968         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50969         exactly specified dayshifts.
50970         (dayshift): New rule.
50971         (rel): Add dayshift.
50972         (relative_time_table) [tomorrow, yesterday, today, now]:
50973         Use tDAY_SHIFT in place of tDAY_UNIT.
50974         * tests/test-getdate.c: Add tests for now-disallowed countable
50975         dayshifts, e.g., "4 yesterday ago".
50976
50977 2008-09-29  Bruno Haible  <bruno@clisp.org>
50978
50979         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50980         * tests/test-posix_spawn1.in.sh: Renamed from
50981         tests/test-posix_spawn.in.sh.
50982         * tests/test-posix_spawn2.c: New file.
50983         * tests/test-posix_spawn2.in.sh: New file.
50984         * modules/posix_spawnp-tests (Files): Update.
50985         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50986
50987 2008-09-29  Bruno Haible  <bruno@clisp.org>
50988
50989         Propagate effects of putenv/setenv/unsetenv to child processes.
50990         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50991         * lib/pipe.c (create_pipe): Likewise.
50992
50993 2008-09-29  Bruno Haible  <bruno@clisp.org>
50994
50995         Enable use of shell scripts as executables in mingw.
50996         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50997         run the program as a shell script.
50998         * lib/pipe.c (create_pipe): Likewise.
50999         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51000         resulting array.
51001
51002 2008-09-29  Eric Blake  <ebb9@byu.net>
51003
51004         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51005
51006 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51007
51008         * doc/posix-functions/accept.texi: Update mingw problems.
51009         * doc/posix-functions/bind.texi: Update mingw problems.
51010         * doc/posix-functions/close.texi: Update mingw problems.
51011         * doc/posix-functions/connect.texi: Update mingw problems.
51012         * doc/posix-functions/getpeername.texi: Update mingw problems.
51013         * doc/posix-functions/getsockname.texi: Update mingw problems.
51014         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51015         * doc/posix-functions/ioctl.texi: Update mingw problems.
51016         * doc/posix-functions/listen.texi: Update mingw problems.
51017         * doc/posix-functions/recv.texi: Update mingw problems.
51018         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51019         * doc/posix-functions/select.texi: Update mingw problems.
51020         * doc/posix-functions/send.texi: Update mingw problems.
51021         * doc/posix-functions/sendto.texi: Update mingw problems.
51022         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51023         * doc/posix-functions/socket.texi: Update mingw problems.
51024
51025 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51026             Bruno Haible  <bruno@clisp.org>
51027
51028         * lib/sys_select.in.h: Include sys/time.h.
51029         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51030         * modules/sys_select: Depend on sys_time.
51031         * tests/test-sys_select.c: Test that sys/select.h defines struct
51032         timeval fully.
51033
51034 2008-09-29  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51037         * lib/sys_select.in.h: Likewise.
51038
51039 2008-09-29  Bruno Haible  <bruno@clisp.org>
51040
51041         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51042
51043 2008-09-29  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51046         Set LIBSOCKET instead of augmenting LIBS.
51047         * modules/sockets (Link): New section.
51048         * modules/sockets-tests (test_sockets_LDADD): New variable.
51049         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51050         * modules/poll-tests (test_poll_LDADD): New variable.
51051         * NEWS: Document the change.
51052
51053 2008-09-29  Bruno Haible  <bruno@clisp.org>
51054
51055         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51056         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51057         ARPA_INET_H directly.
51058         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51059
51060 2008-09-28  Bruno Haible  <bruno@clisp.org>
51061
51062         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51063         from gl_HEADER_SYS_SOCKET.
51064         (gl_HEADER_SYS_SOCKET): Invoke it.
51065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51066
51067 2008-09-28  Bruno Haible  <bruno@clisp.org>
51068
51069         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51070         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51071         Needed on OSF/1 4.0.
51072
51073 2008-09-28  Bruno Haible  <bruno@clisp.org>
51074
51075         Override open more carefully.
51076         * lib/open.c (orig_open): New function.
51077         (rpl_open): Use orig_open instead of open.
51078         * lib/fcntl.in.h: Add special invocation convention.
51079         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51080         (gl_FUNC_OPEN): Invoke it.
51081
51082         Override freopen more carefully.
51083         * lib/freopen.c (orig_freopen): New function.
51084         (rpl_freopen): Use orig_freopen instead of freopen.
51085         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51086         (gl_FUNC_FREOPEN): Invoke it.
51087
51088         Override fopen more carefully.
51089         * lib/fopen.c (orig_fopen): New function.
51090         (rpl_fopen): Use orig_fopen instead of fopen.
51091         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51092         (gl_FUNC_FOPEN): Invoke it.
51093         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51094
51095 2008-09-28  Bruno Haible  <bruno@clisp.org>
51096
51097         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51098         SIGPIPE.
51099
51100 2008-09-28  Bruno Haible  <bruno@clisp.org>
51101
51102         * tests/test-sigaction.c (handler, main): Disable the check whether
51103         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51104         glibc systems with LinuxThreads.
51105
51106 2008-09-28  Bruno Haible  <bruno@clisp.org>
51107
51108         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51109
51110         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51111         with AIX xlc.
51112         * lib/fcntl.in.h (open): Likewise.
51113         Reported by Rainer Tammer <tammer@tammer.net>.
51114
51115 2008-09-28  Bruno Haible  <bruno@clisp.org>
51116
51117         * modules/posix_spawnp-tests: New file.
51118         * tests/test-posix_spawn.c: New file.
51119         * tests/test-posix_spawn.in.sh: New file.
51120
51121         New module 'posix_spawnp'.
51122         * modules/posix_spawnp: New file.
51123         * lib/spawnp.c: New file, from GNU libc with modifications.
51124         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51125
51126         New module 'posix_spawn'.
51127         * modules/posix_spawn: New file.
51128         * lib/spawn.c: New file, from GNU libc with modifications.
51129         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51130
51131         New module 'posix_spawnattr_destroy'.
51132         * modules/posix_spawnattr_destroy: New file.
51133         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51134         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51135         module.
51136
51137         New module 'posix_spawnattr_setsigmask'.
51138         * modules/posix_spawnattr_setsigmask: New file.
51139         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51140         modifications.
51141         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51142         new module.
51143
51144         New module 'posix_spawnattr_getsigmask'.
51145         * modules/posix_spawnattr_getsigmask: New file.
51146         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51147         modifications.
51148         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51149         new module.
51150
51151         New module 'posix_spawnattr_setsigdefault'.
51152         * modules/posix_spawnattr_setsigdefault: New file.
51153         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51154         modifications.
51155         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51156         new module.
51157
51158         New module 'posix_spawnattr_getsigdefault'.
51159         * modules/posix_spawnattr_getsigdefault: New file.
51160         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51161         modifications.
51162         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51163         new module.
51164
51165         New module 'posix_spawnattr_setschedpolicy'.
51166         * modules/posix_spawnattr_setschedpolicy: New file.
51167         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51168         modifications.
51169         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51170         new module.
51171
51172         New module 'posix_spawnattr_getschedpolicy'.
51173         * modules/posix_spawnattr_getschedpolicy: New file.
51174         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51175         modifications.
51176         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51177         new module.
51178
51179         New module 'posix_spawnattr_setschedparam'.
51180         * modules/posix_spawnattr_setschedparam: New file.
51181         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51182         modifications.
51183         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51184         new module.
51185
51186         New module 'posix_spawnattr_getschedparam'.
51187         * modules/posix_spawnattr_getschedparam: New file.
51188         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51189         modifications.
51190         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51191         new module.
51192
51193         New module 'posix_spawnattr_setpgroup'.
51194         * modules/posix_spawnattr_setpgroup: New file.
51195         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51196         modifications.
51197         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51198         module.
51199
51200         New module 'posix_spawnattr_getpgroup'.
51201         * modules/posix_spawnattr_getpgroup: New file.
51202         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51203         modifications.
51204         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51205         module.
51206
51207         New module 'posix_spawnattr_setflags'.
51208         * modules/posix_spawnattr_setflags: New file.
51209         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51210         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51211         module.
51212
51213         New module 'posix_spawnattr_getflags'.
51214         * modules/posix_spawnattr_getflags: New file.
51215         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51216         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51217         module.
51218
51219         New module 'posix_spawnattr_init'.
51220         * modules/posix_spawnattr_init: New file.
51221         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51222         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51223         module.
51224
51225         New module 'posix_spawn_file_actions_destroy'.
51226         * modules/posix_spawn_file_actions_destroy: New file.
51227         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51228         modifications.
51229         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51230         the new module.
51231
51232         New module 'posix_spawn_file_actions_addopen'.
51233         * modules/posix_spawn_file_actions_addopen: New file.
51234         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51235         modifications.
51236         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51237         the new module.
51238
51239         New module 'posix_spawn_file_actions_adddup2'.
51240         * modules/posix_spawn_file_actions_adddup2: New file.
51241         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51242         modifications.
51243         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51244         the new module.
51245
51246         New module 'posix_spawn_file_actions_addclose'.
51247         * modules/posix_spawn_file_actions_addclose: New file.
51248         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51249         modifications.
51250         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51251         the new module.
51252
51253         New module 'posix_spawn_file_actions_init'.
51254         * modules/posix_spawn_file_actions_init: New file.
51255         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51256         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51257         new module.
51258
51259         New module 'posix_spawn-internal'.
51260         * modules/posix_spawn-internal: New file.
51261         * lib/spawn_int.h: New file, from GNU libc with modifications.
51262         * lib/spawni.c: New file, from GNU libc with modifications.
51263         * m4/posix_spawn.m4: New file.
51264
51265         New module 'spawn'.
51266         * modules/spawn: New file.
51267         * lib/spawn.in.h: New file, from GNU libc with modifications.
51268         * m4/spawn_h.m4: New file.
51269         * doc/posix-headers/spawn.texi: Mention the new module.
51270
51271 2008-09-28  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/sched-tests: New file.
51274         * tests/test-sched.c: New file.
51275
51276         New module 'sched'.
51277         * modules/sched: New file.
51278         * lib/sched.in.h: New file.
51279         * m4/sched_h.m4: New file.
51280         * doc/posix-headers/sched.texi: Mention the new module.
51281
51282 2008-09-27  Eric Blake  <ebb9@byu.net>
51283
51284         Fix previous patch, and tweak references to $0.
51285         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51286         (func_version, func_gnulib_dir): Don't call this program
51287         gnulib-tool.
51288         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51289         with using $0 in function.
51290         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51291         (func_fatal_error): Reuse the name the user invoked us with.
51292
51293 2008-09-27  Bruno Haible  <bruno@clisp.org>
51294
51295         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51296         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51297         (gl_ICONV_H): Not here.
51298         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51299         instead of assigning ICONV_H directly.
51300
51301         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51303         WCHAR_H directly.
51304
51305 2008-09-27  Bruno Haible  <bruno@clisp.org>
51306
51307         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51308         * modules/arpa_inet (Depends-on): Add link-warning.
51309         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51310         * modules/unistd (Makefile.am): Likewise.
51311
51312 2008-09-26  Bruno Haible  <bruno@clisp.org>
51313
51314         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51315         variables.
51316         (func_version): Essentially copied from gnulib-tool.
51317         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51318         func_readlink): Copied from gnulib-tool.
51319
51320 2008-09-26  Bruno Haible  <bruno@clisp.org>
51321
51322         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51323         invoking git-version-gen.
51324
51325 2008-09-26  Bruno Haible  <bruno@clisp.org>
51326
51327         * posix-modules: Update to directory names changed on 2008-01-19.
51328         Remove commas in output before splitting into words. No more need to
51329         avoid 'ftruncate' since 2007-02-19.
51330
51331 2008-09-26  Bruno Haible  <bruno@clisp.org>
51332
51333         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51334
51335 2008-09-26  Bruno Haible  <bruno@clisp.org>
51336
51337         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51338         * modules/fwriteerror (Depends-on): Add errno.
51339
51340 2008-09-26  Bruno Haible  <bruno@clisp.org>
51341
51342         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51343         * tests/test-vc-list-files-cvs.sh: Likewise.
51344
51345 2008-09-26  Bruno Haible  <bruno@clisp.org>
51346
51347         * doc/posix-headers/sys_resource.texi: Reorder items.
51348
51349 2008-09-26  Jim Meyering  <meyering@redhat.com>
51350
51351         fts: tweak inode comparison function
51352         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51353         inode numbers, as documented.
51354
51355         fts: sort dirent entries on inode number before traversing
51356         This avoids a quadratic, seek-related performance penalty when
51357         operating on a directory containing many entries (measurable at 10k;
51358         3.5 hours at 2 million entries with a cold cache) on certain types
51359         of file systems, including ext3 and ext4, but not tmpfs.
51360         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51361         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51362         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51363         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51364         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51365         (fts_build): Set the stat.st_ino member from D_INO.
51366         If it is likely to be useful, sort dirent entries on inode number.
51367
51368         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51369         and the struct statfs.f_type member.
51370         * modules/fts (Depends-on): Add d-ino.
51371
51372 2008-09-26  Bruno Haible  <bruno@clisp.org>
51373
51374         * modules/sigpipe-die (Depends-on): Add sigpipe.
51375
51376         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51377         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51378         and GNULIB_STDIO_H_SIGPIPE are set.
51379         * lib/stdio-write.c: New file.
51380         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51381         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51382         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51383         REPLACE_STDIO_WRITE_FUNCS.
51384         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51385         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51386         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51387         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51388         * modules/stdio (Files): Add lib/stdio-write.c.
51389         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51390         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51391         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51392         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51393         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51394         REPLACE_FPRINTF_POSIX.
51395         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51396         REPLACE_PRINTF_POSIX.
51397         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51398         REPLACE_VFPRINTF_POSIX.
51399         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51400         REPLACE_VPRINTF_POSIX.
51401         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51402         SIGPIPE issue.
51403         * doc/posix-functions/fputc.texi: Likewise.
51404         * doc/posix-functions/fputs.texi: Likewise.
51405         * doc/posix-functions/fwrite.texi: Likewise.
51406         * doc/posix-functions/printf.texi: Likewise.
51407         * doc/posix-functions/putc.texi: Likewise.
51408         * doc/posix-functions/putchar.texi: Likewise.
51409         * doc/posix-functions/puts.texi: Likewise.
51410         * doc/posix-functions/vfprintf.texi: Likewise.
51411         * doc/posix-functions/vprintf.texi: Likewise.
51412
51413         * modules/safe-write (Depends-on): Add write.
51414
51415         * modules/sigpipe-tests: New file.
51416         * tests/test-sigpipe.c: New file.
51417         * tests/test-sigpipe.sh: New file.
51418
51419         * modules/write: New file.
51420         * lib/unistd.in.h: Include <sys/types.h>.
51421         (write): New declaration.
51422         * lib/write.c: New file.
51423         * m4/write.m4: New file.
51424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51425         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51426         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51427         GNULIB_WRITE, REPLACE_WRITE.
51428         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51429         and the SIGPIPE issue.
51430
51431         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51432         (raise): New declaration.
51433         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51434         (ext_signal): New function.
51435         (rpl_raise): New function.
51436         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51437         GNULIB_SIGNAL_H_SIGPIPE.
51438         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51439         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51440
51441         * modules/sigpipe: New file.
51442         * m4/sigpipe.m4: New file.
51443
51444 2008-09-25  Derek Price  <derek@ximbiot.com>
51445             Bruno Haible  <bruno@clisp.org>
51446
51447         * gnulib-tool (func_import): Report all license incompatibilities, not
51448         just the first one.
51449
51450 2008-09-25  Bruno Haible  <bruno@clisp.org>
51451
51452         * gnulib-tool (func_import): When computing the edits, consider not
51453         only the Makefile.ams that exist but also those that will be generated.
51454
51455 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51456
51457         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51458         fixes gnulib-tool --test warning about duplicate dependency.
51459
51460 2008-09-25  Bruno Haible  <bruno@clisp.org>
51461
51462         * gnulib-tool: Don't ask the user to perform edits in the generated
51463         Makefile.ams.
51464         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51465         apply to the Makefile.am being generated.
51466         (func_emit_tests_Makefile_am): Execute edits that apply to the
51467         Makefile.am being generated.
51468         (func_import): Setup list of Makefile.am edits before emitting the
51469         Makefile.ams, not at the end.
51470         (func_create_testdir): Update.
51471         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51472
51473 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51474
51475         * gnulib-tool (func_import): Store the --tests-base option in the
51476         comment in gnulib-cache.m4.
51477
51478 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51479
51480         * NEWS: Document increased portability that sys_select now provides.
51481
51482         * lib/sys_select.in.h: Install select wrapper.
51483         * lib/sys_socket.in.h: Use more descriptive name when there is no
51484         select wrapper.
51485         * lib/winsock-select.c: New.
51486         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51487         Require gl_HEADER_SYS_SOCKET.
51488         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51489         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51490         * tests/test-sys_select.c: Add functional tests.
51491
51492 2008-09-24  Eric Blake  <ebb9@byu.net>
51493
51494         open, fopen: close fd leak in last patch
51495         * lib/open.c (rpl_open): Close fd before returning error.
51496         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51497         * doc/posix-functions/open.texi (open): Document that Irix also
51498         has the bug.
51499         * doc/posix-functions/fopen.texi (fopen): Likewise.
51500         Reported by Paolo Bonzini.
51501
51502 2008-09-24  Bruno Haible  <bruno@clisp.org>
51503
51504         Ensure that a filename ending in a slash cannot be used to access a
51505         non-directory.
51506         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51507         to check whether it's really a directory.
51508         * lib/fopen.c: Include fcntl.h, unistd.h.
51509         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51510         and fdopen().
51511         * modules/fopen (Depends-on): Add unistd.
51512         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51513         * tests/test-fopen.c (main): Likewise.
51514         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51515         * doc/posix-functions/fopen.texi: Likewise.
51516         Reported by Eric Blake.
51517
51518 2008-09-23  Eric Blake  <ebb9@byu.net>
51519
51520         c-stack: avoid compiler optimizations when provoking overflow
51521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51522         recursion harder to optimize, to ensure a stack overflow occurs.
51523         * tests/test-c-stack.c (recurse): Likewise.
51524         Borrowed from libsigsegv.
51525
51526         c-stack: work around Irix sigaltstack bug
51527         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51528         whether sigaltstack uses wrong end of stack_t (copied in part from
51529         libsigsegv).
51530         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51531         Irix bug, without requiring an over-allocation.
51532         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51533         bug.
51534
51535         fopen: document mingw bug on directories
51536         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51537         not allowing a stream visiting a directory, even though reading
51538         from such a stream is not portable.
51539
51540 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51541
51542         * lib/poll.c: Rewrite.
51543         * modules/poll: Depend on alloca.
51544
51545 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51546
51547         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51548         instead define prototypes for a full set of wrappers.  Ensure
51549         that Cygwin does not use the compatibility code, which is only
51550         for MinGW.
51551         * lib/winsock.c: New.
51552         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51553         * modules/sys_socket: Add lib/winsock.c.
51554
51555         * modules/poll-tests: Add errno and perror.
51556         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51557
51558 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51559
51560         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51561
51562 2008-09-23  Bruno Haible  <bruno@clisp.org>
51563
51564         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51565         * doc/glibc-functions/*: Likewise.
51566
51567 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51568
51569         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51570         success.
51571
51572 2008-09-22  Eric Blake  <ebb9@byu.net>
51573             Bruno Haible  <bruno@clisp.org>
51574
51575         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51576         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51577         supply %A but mishandle pseudo-NaN.
51578         Reported by Simon Josefsson.
51579
51580 2008-09-21  Bruno Haible  <bruno@clisp.org>
51581
51582         * tests/test-lock.c (main): Tweak skip message.
51583         * tests/test-tls.c (main): Likewise.
51584
51585 2008-09-21  Bruno Haible  <bruno@clisp.org>
51586
51587         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51588         whether 'struct sigaction' has sa_sigaction here...
51589         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51590         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51591
51592 2008-09-21  Bruno Haible  <bruno@clisp.org>
51593
51594         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51595         section.
51596         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51597         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51598         the new section.
51599         (Support for obsolete systems lacking POSIX:2001): New section.
51600         (String handling <string.h>): Move strdup to the new section.
51601         Suggested by Simon Josefsson and Paolo Bonzini.
51602
51603 2008-09-21  Bruno Haible  <bruno@clisp.org>
51604
51605         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51606         exponents in %e and %g results on 'long double'. Needed for mingw's
51607         improved *printf functions.
51608         * tests/test-vasprintf-posix.c (test_function): Likewise.
51609         * tests/test-snprintf-posix.h (test_function): Likewise.
51610         * tests/test-sprintf-posix.h (test_function): Likewise.
51611         Reported by Eric Blake.
51612
51613 2008-09-21  Bruno Haible  <bruno@clisp.org>
51614
51615         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51616         * tests/test-sprintf-posix.h (test_function): Likewise.
51617
51618 2008-09-21  Bruno Haible  <bruno@clisp.org>
51619
51620         * modules/getpass (Depends-on): Add strdup-posix.
51621
51622         New module 'strdup-posix'.
51623         * modules/strdup-posix: New file.
51624         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51625         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51627         REPLACE_STRDUP.
51628         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51629         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51631         strdup-posix.
51632
51633         * modules/strdup (Depends-on): Remove malloc-posix.
51634
51635 2008-09-20  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51638         Wildenhues.
51639
51640 2008-09-20  Bruno Haible  <bruno@clisp.org>
51641
51642         Ensure that wint_t gets defined on IRIX 5.3.
51643         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51644         * lib/wctype.in.h (wint_t): Likewise.
51645         (__wctype_wint_t): Remove type.
51646         (isw*): Use wint_t instead of __wctype_wint_t.
51647         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51648         * modules/wchar (Files): Add m4/wint_t.m4.
51649         (Makefile.am): Substitute HAVE_WINT_T.
51650         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51651         * tests/test-wctype.c: Check that wint_t is defined.
51652         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51653         * doc/posix-headers/wctype.texi: Likewise.
51654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51655
51656 2008-09-18  Bruno Haible  <bruno@clisp.org>
51657
51658         * gnulib-tool (func_exit): Update comment.
51659
51660 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51661
51662         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51663         assumes strdup exists and does not depend on strdup to return
51664         ENOMEM on out of memory conditions.
51665
51666 2008-09-18  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51669         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51670         digits for the exponent.
51671
51672 2008-09-18  Jim Meyering  <meyering@redhat.com>
51673             Bruno Haible  <bruno@clisp.org>
51674
51675         * lib/vasnprintf.c (decimal_point_char): Define also if
51676         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51677
51678 2008-09-16  Bruno Haible  <bruno@clisp.org>
51679         and Eric Blake  <ebb9@byu.net>
51680
51681         vasnprintf: support Irix 5.3
51682         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51683         that mishandle long double infinity.
51684         Reported by Tom G. Christensen.
51685
51686 2008-09-16  Bruno Haible  <bruno@clisp.org>
51687
51688         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51689         Solaris 9.
51690         * doc/glibc-functions/alphasort.texi: Likewise.
51691         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51692
51693 2008-09-16  Jim Meyering  <meyering@redhat.com>
51694
51695         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51696         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51697         a umask modification leak out of a subshell.  Otherwise, the
51698         opensolaris /bin/sh would be accepted and thus cause unwarranted
51699         failures in the coreutils test suite.
51700
51701 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51702
51703         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51704         to succeed.
51705
51706 2008-09-16  Jim Meyering  <meyering@redhat.com>
51707
51708         avoid spurious test failure when library is built without ACL support
51709         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51710         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51711         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51712         * tests/test-copy-acl.sh: Likewise.
51713
51714 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51715
51716         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51717         based on character occurrence counts.
51718
51719 2008-09-15  Eric Blake  <ebb9@byu.net>
51720
51721         tests: avoid some compiler warnings
51722         * tests/test-memchr.c (main): Pass NULL indirectly.
51723         * tests/test-closein.c (main): Avoid unused variable.
51724
51725 2008-09-15  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51728         are missing on OpenBSD 4.0 individually.
51729         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51730
51731 2008-09-15  Bruno Haible  <bruno@clisp.org>
51732
51733         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51734         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51735         * doc/posix-functions/perror.texi: Likewise.
51736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51737         is missing.
51738         Reported by Eric Blake.
51739
51740         * lib/errno.in.h: Use replacement values >= 2000.
51741         Reported by Eric Blake.
51742
51743 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51744
51745         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51746         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51747         limit.
51748         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51749         compareseq was aborted.
51750
51751 2008-09-14  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51754         yvec_edit_count.
51755         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51756         (fstrcmp_bounded): Simplify result computation accordingly.
51757
51758 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51759
51760         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51761         (fstrcmp): Define in terms of fstrcmp_bounded.
51762         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51763         lower_bound argument.
51764         Return quickly if the result is certainly < lower_bound.
51765         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51766
51767 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51768
51769         * lib/diffseq.h (EARLY_ABORT): New macro.
51770         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51771         evaluates to true.
51772
51773 2008-09-14  Bruno Haible  <bruno@clisp.org>
51774
51775         * modules/perror-tests: New file.
51776         * tests/test-perror.sh: New file.
51777         * tests/test-perror.c: New file.
51778
51779         New module 'perror'.
51780         * lib/stdio.in.h (perror): New declaration.
51781         * lib/perror.c: New file.
51782         * m4/perror.m4: New file.
51783         * modules/perror: New file.
51784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51785         * doc/posix-functions/perror.texi: Mention the perror module.
51786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51787         REPLACE_PERROR.
51788         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51789         REPLACE_PERROR.
51790
51791 2008-09-14  Bruno Haible  <bruno@clisp.org>
51792
51793         * modules/stdio (Makefile.am): Reorder to match the order in
51794         lib/stdio.in.h.
51795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51796
51797 2008-09-13  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51800
51801 2008-09-13  Bruno Haible  <bruno@clisp.org>
51802
51803         Extend strerror to cover the added errno values.
51804         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51805         (rpl_strerror): Provide error messages for the added errno values and
51806         for the WSA* values.
51807         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51808         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51809         strerror.
51810         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51811         * modules/strerror (Depends-on): Add errno.
51812         * doc/posix-functions/strerror.texi: Document the change.
51813         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51814         and EOVERFLOW.
51815
51816 2008-09-13  Bruno Haible  <bruno@clisp.org>
51817
51818         * modules/EOVERFLOW: Remove file.
51819         * m4/eoverflow.m4: Remove file.
51820         * modules/EOVERFLOW-tests: Remove file.
51821         * tests/test-EOVERFLOW.c: Remove file.
51822         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51823         * modules/ftell (Depends-on): Likewise.
51824         * modules/getdelim (Depends-on): Likewise.
51825         * modules/getugroups (Depends-on): Likewise.
51826         * modules/poll (Depends-on): Likewise.
51827         * modules/snprintf (Depends-on): Likewise.
51828         * modules/sprintf-posix (Depends-on): Likewise.
51829         * modules/vasnprintf (Depends-on): Likewise.
51830         * modules/vasprintf (Depends-on): Likewise.
51831         * modules/vfprintf-posix (Depends-on): Likewise.
51832         * modules/vsnprintf (Depends-on): Likewise.
51833         * modules/vsprintf-posix (Depends-on): Likewise.
51834         * modules/xvasprintf (Depends-on): Likewise.
51835         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51836         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51837         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51838         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51839         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51840         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51841         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51842         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51843         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51844         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51845         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51846         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51847         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51848         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51849         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51850         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51851         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51852         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51853         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51854         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51855         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51856         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51857         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51858         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51859         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51860         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51861         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51862         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51863         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51864         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51865         * MODULES.html.sh: Remove EOVERFLOW.
51866         * NEWS: Mention the change.
51867
51868 2008-09-13  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/errno-tests: New file.
51871         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51872
51873         * lib/errno.in.h: New file.
51874         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51875         * modules/errno: New file.
51876         * doc/posix-headers/errno.texi: Update documentation.
51877         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51878
51879 2008-09-13  Bruno Haible  <bruno@clisp.org>
51880
51881         * tests/test-poll.c: Use #if for native Windows, rather than testing
51882         __MSVCRT__.
51883
51884 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51885             Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/glob.c: Don't include <pwd.h> on native Windows.
51888         (WINDOWS32): New macro.
51889         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51890
51891 2008-09-13  Bruno Haible  <bruno@clisp.org>
51892
51893         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51894         (ETIMEDOUT): Remove macro.
51895         (glthread_cond_timedwait_multithreaded): New declaration.
51896         (glthread_cond_timedwait): Use it.
51897         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51898         (glthread_cond_timedwait_multithreaded): New function.
51899
51900 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51901
51902         * modules/poll-tests: Do not check for io.h.
51903         * tests/test-poll.c: Check for __MSVCRT__ instead.
51904
51905 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51906
51907         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51908         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51909         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51910
51911 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51912
51913         * modules/poll-tests: New.
51914         * tests/test-poll.c: New.
51915
51916 2008-09-12  Eric Blake  <ebb9@byu.net>
51917
51918         frexp: test for NetBSD failure on -0.0
51919         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51920         not all, bugs from NetBSD 3.0 have been fixed.
51921         * doc/posix-functions/frexp.texi (frexp): Document bug.
51922         Reported by Thomas Klausner.
51923
51924         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51925         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51926         literal -0.0.
51927         Reported by Jonathan C. Patschke <jp@centtech.com>.
51928
51929 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51930
51931         * lib/glthread/cond.h: Use dummy implementation also if
51932         USE_WIN32_THREADS.
51933
51934 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51935
51936         * modules/fnmatch-posix (License): Change to LGPLv2+.
51937         * modules/fnmatch-gnu (License): Likewise.
51938
51939 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51940
51941         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51942
51943 2008-09-11  Jim Meyering  <meyering@redhat.com>
51944
51945         * users.txt: Add gtk-vnc.
51946
51947 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51948
51949         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51950         rotate amounts.
51951
51952         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51953         required for 16-bit and 8-bit rotates.
51954         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51955         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51956         UINT8_MAX instead of hard-coded constants.
51957         Suggested by Paul Eggert.
51958
51959 2008-09-07  Bruno Haible  <bruno@clisp.org>
51960
51961         * tests/test-striconveh.c (main): Check behaviour when converting from
51962         UTF-7.
51963
51964         Make striconveh work better with stateful encodings.
51965         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51966         that iconv does not increment the inptr when returning -1/EINVAL.
51967
51968 2008-09-07  Bruno Haible  <bruno@clisp.org>
51969
51970         * build-aux/config.rpath: Update according to libtool-2.2.6.
51971         * build-aux/config.libpath: Likewise.
51972
51973 2008-09-06  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51976         * lib/freadptr.c (freadptr): Likewise.
51977         * lib/freadseek.c (freadptrinc): Likewise.
51978         Reported by Simon Josefsson.
51979
51980 2008-09-06  Bruno Haible  <bruno@clisp.org>
51981
51982         * modules/freadptr (License): Change to LGPLv2+.
51983         * modules/freadseek (License): Likewise.
51984         Suggested by Eric Blake.
51985
51986         * modules/memchr2 (License): Change to LGPLv2+.
51987         Approved by Eric Blake.
51988
51989 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51990             Bruno Haible  <bruno@clisp.org>
51991
51992         Make gnulib-tool work with native 'sed' on AIX.
51993         * gnulib-tool (sed_noop): New variable.
51994         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51995         func_add_or_update, func_create_testdir): Use it to initialize sed
51996         script variables.
51997         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51998
51999 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52000             Bruno Haible  <bruno@clisp.org>
52001
52002         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52003         also works after #include directives.
52004
52005 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
52006
52007         getdate.y: reject an out-of-range timezone value
52008         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52009         the range [-24...+24].  When specified with only one or two digits,
52010         * tests/test-getdate.c: Tests for the fix.
52011         * doc/getdate.texi: Document this change.
52012
52013 2008-09-03  Bruno Haible  <bruno@clisp.org>
52014
52015         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52016
52017 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52018
52019         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52020         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52021         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52022         Blake <ebb9@byu.net>.
52023
52024         * tests/test-bitrotate.c: Add more test vectors.
52025
52026 2008-09-02  Eric Blake  <ebb9@byu.net>
52027
52028         vasnprintf-posix: handle large precision via %.*d
52029         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52030         when handling it ourselves.
52031         * tests/test-vasnprintf-posix.c (test_function): Add test.
52032         * tests/test-snprintf-posix.h (test_function): Likewise.
52033         * tests/test-sprintf-posix.h (test_function): Likewise.
52034         * tests/test-vasprintf-posix.c (test_function): Likewise.
52035         Reported by Alain Guibert.
52036
52037 2008-09-01  Eric Blake  <ebb9@byu.net>
52038
52039         c-stack: make configure-time check more robust
52040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52041         successful sigaction call.
52042         Reported by Tom G. Christensen.
52043
52044 2008-09-01  Bruno Haible  <bruno@clisp.org>
52045
52046         New module 'findprog-lgpl'.
52047         * modules/findprog-lgpl: New file.
52048         * lib/findprog-lgpl.c: New file.
52049         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52050         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52051         to decide whether to use strdup or xstrdup, concatenated_filename or
52052         xconcatenated_filename.
52053
52054 2008-09-01  Bruno Haible  <bruno@clisp.org>
52055
52056         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52057         'xconcat-filename' (GPL).
52058         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52059         (License): Change to LGPLv2+.
52060         * modules/xconcat-filename: New file.
52061         * lib/concat-filename.h (concatenated_filename): Change specification.
52062         (xconcatenated_filename): New declaration.
52063         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52064         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52065         memory situations.
52066         * lib/xconcat-filename.c: New file.
52067         * NEWS: Mention the change.
52068         * lib/findprog.c: Include concat-filename.h, not filename.h.
52069         (find_in_path): Use xconcatenated_filename instead of
52070         concatenated_filename.
52071         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52072         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52073         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52074         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52075         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52076         instead of concatenated_filename.
52077         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52078         (execute_java_class): Use xconcatenated_filename instead of
52079         concatenated_filename.
52080         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52081         * modules/javacomp (Depends-on): Likewise.
52082         * modules/javaexec (Depends-on): Likewise.
52083
52084 2008-09-01  Bruno Haible  <bruno@clisp.org>
52085
52086         Split module 'filename' into 'filename' and 'concat-filename'.
52087         * modules/filename: Keep only lib/filename.h.
52088         (License): Change to LGPLv2+.
52089         * modules/concat-filename: New file, extracted from modules/filename.
52090         * lib/filename.h (concatenated_filename): Remove declaration.
52091         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52092         * lib/concat-filename.c: Include concat-filename.h.
52093         * NEWS: Mention the change.
52094
52095 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52096
52097         * lib/bitrotate.h (rotl8, rotr8): Add.
52098
52099         * modules/bitrotate (configure.ac): Need
52100         AC_REQUIRE([AC_C_INLINE]).
52101         (Description): Mention stdint.h.  Reported by Bruno Haible
52102         <bruno@clisp.org>.
52103
52104         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52105         Paolo Bonzini <bonzini@gnu.org>.
52106
52107 2008-08-31  Bruno Haible  <bruno@clisp.org>
52108
52109         Assume Solaris specific bi-arch conventions on Solaris systems.
52110         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52111         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52113         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52114         like acl_libdirstem.
52115         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52116         acl_libdirstem.
52117         * NEWS: Mention the change.
52118         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52119
52120 2008-08-31  Jim Meyering  <meyering@redhat.com>
52121
52122         * lib/strftime.h: Add comments describing the two added arguments.
52123
52124         remove duplicate #include directives
52125         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52126         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52127
52128 2008-08-31  Bruno Haible  <bruno@clisp.org>
52129
52130         New module 'sigpipe-die'.
52131         * modules/sigpipe-die: New file.
52132         * lib/sigpipe-die.h: New file.
52133         * lib/sigpipe-die.c: New file.
52134         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52135
52136 2008-08-31  Bruno Haible  <bruno@clisp.org>
52137
52138         Don't override previously installed signal handlers.
52139         * lib/fatal-signal.c (saved_sigactions): New variable.
52140         (uninstall_handlers): Reset the signal to the saved handler, not
52141         to SIG_DFL (except when ignored).
52142         (install_handlers): Save the previous handlers.
52143
52144 2008-08-30  Bruno Haible  <bruno@clisp.org>
52145
52146         * gnulib-tool (func_reset_sigpipe): New function.
52147         (func_get_automake_snippet, func_modules_transitive_closure,
52148         func_import): Invoke it before a join command that reads from stdin,
52149         to avoid "echo: write error: Broken pipe" error messages on stderr.
52150         Reported by Sam Steingold <sds@gnu.org>.
52151
52152 2008-08-30  Bruno Haible  <bruno@clisp.org>
52153
52154         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52155         Code copied from m4/open.m4.
52156         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52157         access and the filename ends in a slash. Code copied from lib/open.c.
52158         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52159         * tests/test-fopen.c (main): Check against bug with trailing slash.
52160
52161 2008-08-29  Bruno Haible  <bruno@clisp.org>
52162
52163         Avoid some "gcc -pedantic" warnings.
52164         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52165         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52166         * lib/dirent.in.h: Likewise.
52167         * lib/fcntl.in.h: Likewise.
52168         * lib/float.in.h: Likewise.
52169         * lib/iconv.in.h: Likewise.
52170         * lib/inttypes.in.h: Likewise.
52171         * lib/locale.in.h: Likewise.
52172         * lib/math.in.h: Likewise.
52173         * lib/netinet_in.in.h: Likewise.
52174         * lib/search.in.h: Likewise.
52175         * lib/signal.in.h: Likewise.
52176         * lib/stdarg.in.h: Likewise.
52177         * lib/stdint.in.h: Likewise.
52178         * lib/stdio.in.h: Likewise.
52179         * lib/stdlib.in.h: Likewise.
52180         * lib/string.in.h: Likewise.
52181         * lib/strings.in.h: Likewise.
52182         * lib/sys_select.in.h: Likewise.
52183         * lib/sys_socket.in.h: Likewise.
52184         * lib/sys_stat.in.h: Likewise.
52185         * lib/sys_time.in.h: Likewise.
52186         * lib/sysexits.in.h: Likewise.
52187         * lib/time.in.h: Likewise.
52188         * lib/unistd.in.h: Likewise.
52189         * lib/wchar.in.h: Likewise.
52190         * lib/wctype.in.h: Likewise.
52191         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52192         * modules/fchdir (Makefile.am): Likewise.
52193         * modules/fcntl (Makefile.am): Likewise.
52194         * modules/float (Makefile.am): Likewise.
52195         * modules/iconv_open (Makefile.am): Likewise.
52196         * modules/inttypes (Makefile.am): Likewise.
52197         * modules/locale (Makefile.am): Likewise.
52198         * modules/math (Makefile.am): Likewise.
52199         * modules/netinet_in (Makefile.am): Likewise.
52200         * modules/search (Makefile.am): Likewise.
52201         * modules/signal (Makefile.am): Likewise.
52202         * modules/stdarg (Makefile.am): Likewise.
52203         * modules/stdint (Makefile.am): Likewise.
52204         * modules/stdio (Makefile.am): Likewise.
52205         * modules/stdlib (Makefile.am): Likewise.
52206         * modules/string (Makefile.am): Likewise.
52207         * modules/strings (Makefile.am): Likewise.
52208         * modules/sys_select (Makefile.am): Likewise.
52209         * modules/sys_socket (Makefile.am): Likewise.
52210         * modules/sys_stat (Makefile.am): Likewise.
52211         * modules/sys_time (Makefile.am): Likewise.
52212         * modules/sysexits (Makefile.am): Likewise.
52213         * modules/time (Makefile.am): Likewise.
52214         * modules/unistd (Makefile.am): Likewise.
52215         * modules/wchar (Makefile.am): Likewise.
52216         * modules/wctype (Makefile.am): Likewise.
52217         Reported by Reuben Thomas <rrt@sc3d.org>.
52218
52219 2008-08-29  Bruno Haible  <bruno@clisp.org>
52220
52221         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52222         any more.
52223
52224 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52225
52226         * MODULES.html.sh (Misc): Add bitrotate.
52227
52228         * modules/bitrotate: New file.
52229
52230         * lib/bitrotate.h: New file.
52231
52232         * modules/bitrotate-tests: New file.
52233
52234         * tests/test-bitrotate.c: New file.
52235
52236         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52237         on the bitrotate module.
52238
52239         * lib/arctwo.c: Use new bitrotate module.
52240
52241 2008-08-29  Jim Meyering  <meyering@redhat.com>
52242
52243         bootstrap: merge changes from coreutils
52244         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52245         of copied files.  Remove a kludge, now that this is fixed.
52246         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52247         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52248         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52249
52250 2008-08-29  Bruno Haible  <bruno@clisp.org>
52251
52252         * MODULES.html.sh: Remove --cvs-urls option.
52253
52254 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52255
52256         maint.mk: adjust to file name change
52257         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52258
52259 2008-08-28  Jim Meyering  <meyering@redhat.com>
52260
52261         * modules/getndelim2 (License): Relicense to LGPLv2+.
52262         Approved by Richard Stallman for the version of 1995, and by
52263         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52264
52265 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52266
52267         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52268         dummy if one is not available.  Do not touch them if
52269         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52270         (getc_maybe_unlocked): New.
52271         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52272
52273 2008-08-26  Eric Blake  <ebb9@byu.net>
52274
52275         doc/INSTALL: resync from autoconf
52276         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52277         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52278         moving...
52279         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52280         * INSTALL: Regenerate.
52281         * INSTALL.ISO: New file.
52282         * INSTALL.UTF-8: Likewise.
52283
52284 2008-08-26  Jim Meyering  <meyering@redhat.com>
52285
52286         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52287         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52288         these definitions conditional, so that they may be overridden, too.
52289
52290 2008-08-26  Bruno Haible  <bruno@clisp.org>
52291
52292         Generate INSTALL file variants with prettier quotes.
52293         * doc/Makefile (INSTALL_PRELUDE): New macro.
52294         (INSTALL): Use it.
52295         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52296
52297 2008-08-26  Bruno Haible  <bruno@clisp.org>
52298
52299         Run makeinfo in an English locale.
52300         * doc/Makefile (MAKEINFO): New variable.
52301
52302 2008-08-26  Bruno Haible  <bruno@clisp.org>
52303
52304         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52305         Suggested by Eric Blake.
52306
52307 2008-08-25  Bruno Haible  <bruno@clisp.org>
52308
52309         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52310
52311 2008-08-25  Eric Blake  <ebb9@byu.net>
52312
52313         c-stack: test that stack overflow can be caught
52314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52315         that platform allows handling stack overflow; at least OS/2 EMX
52316         has sigaltstack, but crashes before transferring control to
52317         handler on stack overflow.
52318         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52319         check for HAVE_STACK_OVERFLOW_HANDLING.
52320         Reported by Elbert Pol.
52321
52322 2008-08-25  Bruno Haible  <bruno@clisp.org>
52323
52324         * doc/posix-functions/strftime.texi: Fix description of strftime
52325         module.
52326
52327 2008-08-24  Bruno Haible  <bruno@clisp.org>
52328
52329         * tests/uniwidth/test-uc_width2.c: New file.
52330         * tests/uniwidth/test-uc_width2.sh: New file.
52331         * modules/uniwidth/width-tests (Files): Add the new files.
52332         (TESTS): Add uniwidth/test-uc_width2.sh.
52333         (TESTS_ENVIRONMENT): New variable.
52334         (check_PROGRAMS): Add test-uc_width2.
52335         (test_uc_width2_SOURCES): New variable.
52336
52337         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52338         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52339         not 0x00AB.
52340         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52341
52342 2008-08-22  Eric Blake  <ebb9@byu.net>
52343
52344         test-lock, test-tls: mention why a test is skipped
52345         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52346         skipped.
52347         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52348
52349         count-one-bits: relax license
52350         * modules/count-one-bits (License): Relicense to LGPLv2+.
52351         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52352
52353 2008-08-22  Andreas Schwab  <schwab@suse.de>
52354
52355         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52356         Remove spurious space in assignment.
52357
52358 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52359
52360         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52361         Paul Eggert <eggert@CS.UCLA.EDU>.
52362
52363 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52364
52365         * modules/gettext: Add m4/threadlib.m4.
52366
52367 2008-08-19  Eric Blake  <ebb9@byu.net>
52368
52369         test-c-stack: fix compilation failure on FreeBSD 5.0
52370         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52371         headers before <sys/resource.h>.
52372         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52373         the bug.
52374         Reported by Nelson H. F. Beebe.
52375
52376         strverscmp: migrate from "strverscmp.h" to <string.h>
52377         * modules/string (Makefile.am): Add new hooks.
52378         * modules/strverscmp (Files): Remove strverscmp.h.
52379         (Depends-on): Add string.
52380         (configure.ac): Add indicator.
52381         (Include): Mention new header.
52382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52383         defaults.
52384         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52385         results.
52386         * lib/strverscmp.h: Delete.
52387         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52388         * tests/test-strverscmp.c (includes): Adjust client.
52389         * lib/check-version.c (includes): Likewise.
52390         * NEWS: Document the change.
52391
52392         strverscmp: add unit test
52393         * modules/strverscmp-tests: New file.
52394         * tests/test-strverscmp.c: Likewise.
52395
52396 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52397
52398         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52399         regarding Windows crypto stuff, from Mono.
52400
52401 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52402
52403         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52404         if present, for intel RND.  Return error on failures.
52405
52406 2008-08-18  Ben Pfaff  <blp@gnu.org>
52407
52408         gitlog-to-changelog: give better diagnostic for failed pipe-open
52409         * build-aux/gitlog-to-changelog: Improve error message: suggest
52410         that the version of Git may be too old.
52411
52412 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52413
52414         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52415         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52416
52417 2008-08-18  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52420         pthread_in_use().
52421
52422 2008-08-18  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/glthread/threadlib.c: Include <pthread.h>.
52425
52426 2008-08-18  Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52429         glthread_recursive_lock_* macros.
52430         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52431         Fix syntax error.
52432
52433 2008-08-18  Bruno Haible  <bruno@clisp.org>
52434
52435         * lib/glthread/thread.c: Avoid forcing a context switch right after
52436         thread creation.
52437
52438 2008-08-17  Bruno Haible  <bruno@clisp.org>
52439
52440         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52441         * lib/glthread/thread.h: Provide Win32 specific implementation.
52442         * modules/thread (Files): Add lib/glthread/thread.c.
52443         (Depends-on): Add lock.
52444         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52445
52446 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52447
52448         New module 'yield'.
52449         * modules/yield: New file.
52450         * lib/glthread/yield.h: New file.
52451         * m4/yield.m4: New file.
52452         * MODULES.html.sh (Multithreading): Add yield.
52453
52454 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52455
52456         New module 'thread'.
52457         * modules/thread: New file.
52458         * lib/glthread/thread.h: New file.
52459         * m4/thread.m4: New file.
52460         * MODULES.html.sh (Multithreading): Add thread.
52461
52462 2008-08-17  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/glthread/lock.h: Include <stdlib.h> always.
52465         * lib/glthread/tls.h: Likewise.
52466         * lib/glthread/cond.h: Likewise.
52467
52468 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52469
52470         New module 'cond'.
52471         * modules/cond: New file.
52472         * lib/glthread/cond.h: New file.
52473         * lib/glthread/cond.c: New file.
52474         * m4/cond.m4: New file.
52475         * MODULES.html.sh (Multithreading): Add cond.
52476
52477 2008-08-16  Eric Blake  <ebb9@byu.net>
52478
52479         c-stack: fix regression on Irix 5.3 from 2008-06-21
52480         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52481         sa_sigaction...
52482         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52483         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52484         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52485         * modules/signal (Makefile.am): Use the value.
52486         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52487         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52488         * doc/posix-headers/signal.texi (signal.h): Document this
52489         portability issue.
52490         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52491         Reported by Tom G. Christensen.
52492
52493 2008-08-17  Bruno Haible  <bruno@clisp.org>
52494
52495         New module 'threadlib'.
52496         * modules/threadlib: New file.
52497         * lib/glthread/threadlib.c: New file, extracted from
52498         lib/glthread/lock.c.
52499         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52500         functions.
52501         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52502         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52503         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52504         macros.
52505         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52506         (gl_DISABLE_THREADS): Remove macro.
52507         * modules/lock (Files): Remove build-aux/config.rpath.
52508         (Depends-on): Remove havelib. Add threadlib.
52509         (configure.ac-early): Remove section.
52510         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52511         * modules/tls (Depends-on): Remove lock. Add threadlib.
52512         (Link): New section, copied from threadlib.
52513         * MODULES.html.sh (Multithreading): Add threadlib.
52514
52515 2008-08-14  Bruno Haible  <bruno@clisp.org>
52516
52517         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52518         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52519         glthread_rwlock_unlock, glthread_rwlock_destroy,
52520         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52521         glthread_recursive_lock_destroy): Define as macros always.
52522         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52523         glthread_lock_lock.
52524         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52525         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52526         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52527         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52528         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52529         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52530         (glthread_recursive_lock_lock_func): Renamed from
52531         glthread_recursive_lock_lock.
52532         (glthread_recursive_lock_unlock_func): Renamed from
52533         glthread_recursive_lock_unlock.
52534         (glthread_recursive_lock_destroy_func): Renamed from
52535         glthread_recursive_lock_destroy.
52536
52537 2008-08-14  Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/glthread/lock.h: Renamed from lib/lock.h.
52540         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52541         * lib/glthread/tls.h: Renamed from lib/tls.h.
52542         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52543         * lib/fstrcmp.c: Update includes.
52544         * lib/strsignal.c: Update includes.
52545         * modules/lock (Files, Makefile.am): Update.
52546         (Include): Change to "glthread/lock.h".
52547         * modules/tls (Files, Makefile.am): Update.
52548         (Include): Change to "glthread/tls.h".
52549         * tests/test-lock.c: Update includes.
52550         * tests/test-tls.c: Update includes.
52551         * NEWS: Mention the renamed header files.
52552
52553 2008-08-11  Jim Meyering  <meyering@redhat.com>
52554
52555         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52556
52557 2008-08-11  Eric Blake  <ebb9@byu.net>
52558
52559         test-c-stack: avoid C99-ism
52560         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52561         before statement.
52562         Reported by Alain Guibert.
52563
52564 2008-08-10  Jim Meyering  <meyering@redhat.com>
52565
52566         ensure that return value of uinttostr et al are not ignored
52567         * lib/inttostr.h (__GNUC_PREREQ): Define.
52568         (__attribute_warn_unused_result__): Define.
52569         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52570
52571 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52572
52573         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52574         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52575
52576 2008-08-07  Jim Meyering  <meyering@redhat.com>
52577
52578         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52579
52580         * modules/mkstemp (License): Relicense under LGPLv2+.
52581         * modules/tempname (License): Likewise.
52582
52583 2008-08-06  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/poll.c (poll): Further micro-optimization.
52586
52587 2008-08-06  Jim Meyering  <meyering@redhat.com>
52588
52589         inet_pton.c: use locale-independent tolower
52590         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52591         (inet_pton6): Use c_tolower rather than tolower.
52592         * modules/inet_pton (Depends-on): Add c-ctype.
52593
52594 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52595
52596         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52597         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52598
52599 2008-08-06  Jim Meyering  <meyering@redhat.com>
52600
52601         * modules/inet_pton (License): Relicense under LGPLv2+.
52602
52603 2008-08-03  Bruno Haible  <bruno@clisp.org>
52604
52605         Additional non-aborting API for lock and tls.
52606         * lib/lock.h: Include <errno.h>.
52607         (glthread_lock_init): New macro/function.
52608         (gl_lock_init): Define as wrapper around glthread_lock_init.
52609         (glthread_lock_lock): New macro/function.
52610         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52611         (glthread_lock_unlock): New macro/function.
52612         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52613         (glthread_lock_destroy): New macro/function.
52614         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52615         (glthread_rwlock_init): New macro/function.
52616         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52617         (glthread_rwlock_rdlock): New macro/function.
52618         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52619         (glthread_rwlock_wrlock): New macro/function.
52620         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52621         (glthread_rwlock_unlock): New macro/function.
52622         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52623         (glthread_rwlock_destroy): New macro/function.
52624         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52625         (glthread_recursive_lock_init): New macro/function.
52626         (gl_recursive_lock_init): Define as wrapper around
52627         glthread_recursive_lock_init.
52628         (glthread_recursive_lock_lock): New macro/function.
52629         (gl_recursive_lock_lock): Define as wrapper around
52630         glthread_recursive_lock_lock.
52631         (glthread_recursive_lock_unlock): New macro/function.
52632         (gl_recursive_lock_unlock): Define as wrapper around
52633         glthread_recursive_lock_unlock.
52634         (glthread_recursive_lock_destroy): New macro/function.
52635         (gl_recursive_lock_destroy): Define as wrapper around
52636         glthread_recursive_lock_destroy.
52637         (glthread_once): New macro/function.
52638         (gl_once): Define as wrapper around glthread_once.
52639         Update function declarations.
52640         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52641         glthread_rwlock_init. Return error code.
52642         (glthread_rwlock_rdlock_multithreaded): Renamed from
52643         glthread_rwlock_rdlock. Return error code.
52644         (glthread_rwlock_wrlock_multithreaded): Renamed from
52645         glthread_rwlock_wrlock. Return error code.
52646         (glthread_rwlock_unlock_multithreaded): Renamed from
52647         glthread_rwlock_unlock. Return error code.
52648         (glthread_rwlock_destroy_multithreaded): Renamed from
52649         glthread_rwlock_destroy. Return error code.
52650         (glthread_recursive_lock_init_multithreaded): Renamed from
52651         glthread_recursive_lock_init. Return error code.
52652         (glthread_recursive_lock_lock_multithreaded): Renamed from
52653         glthread_recursive_lock_lock. Return error code.
52654         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52655         glthread_recursive_lock_unlock. Return error code.
52656         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52657         glthread_recursive_lock_destroy. Return error code.
52658         (glthread_once_call): Make static.
52659         (glthread_once_multithreaded): Renamed from glthread_once.
52660         * lib/tls.h: Include <errno.h>.
52661         (glthread_tls_key_init): New macro/function.
52662         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52663         (glthread_tls_set): New macro/function.
52664         (gl_tls_set): Define as wrapper around glthread_tls_set.
52665         (glthread_tls_key_destroy): New macro/function.
52666         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52667         Update function declarations.
52668         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52669         glthread_tls_get.
52670         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52671
52672 2008-08-04  Eric Blake  <ebb9@byu.net>
52673
52674         gnumakefile: use space, not TAB, outside of targets
52675         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52676
52677 2008-08-02  Jim Meyering  <meyering@redhat.com>
52678
52679         getdate.y: avoid locale-dependent date parsing failure
52680         In Turkish locales, getdate would fail to recognize keywords
52681         containing a lowercase "i".  The solution is not to rely on
52682         locale-sensitive case-conversion.
52683         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52684         (lookup_word): Use c_toupper in place of toupper.
52685         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52686         Reported by Vefa Bicakci <bicave@superonline.com> in
52687         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52688         * modules/getdate (Depends-on): Add c-ctype.
52689
52690 2008-08-02  Bruno Haible  <bruno@clisp.org>
52691
52692         * gnulib-tool (func_import): When updating or creating a .gitignore
52693         file, prepend each added line with a slash, and ignore leading slashes
52694         from the existing lines.
52695         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52696
52697 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52698
52699         Portability fix for GNU make 3.79.1.
52700         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52701         versions do not understand.
52702
52703 2008-08-01  Bruno Haible  <bruno@clisp.org>
52704
52705         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52706         * tests/test-isnanf.h (zero): New variable.
52707         (main): Avoid literal -0.0f.
52708         * tests/test-isnand.h (zero): New variable.
52709         (main): Avoid literal -0.0.
52710         * tests/test-isnanl.h (zero): New variable.
52711         (main): Avoid literal -0.0L.
52712         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52713         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52714         -0.0, -0.0L.
52715         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52716         (test_signbitd): Avoid literal -0.0.
52717         (test_signbitl): Avoid literal -0.0L.
52718         * tests/test-ceilf1.c (zero): New variable.
52719         (main): Avoid literal -0.0f.
52720         * tests/test-ceill.c (zero): New variable.
52721         (main): Avoid literal -0.0L.
52722         * tests/test-floorf1.c (zero): New variable.
52723         (main): Avoid literal -0.0f.
52724         * tests/test-floorl.c (zero): New variable.
52725         (main): Avoid literal -0.0L.
52726         * tests/test-roundf1.c (zero): New variable.
52727         (main): Avoid literal -0.0f.
52728         * tests/test-round1.c (zero): New variable.
52729         (main): Avoid literal -0.0.
52730         * tests/test-roundl.c (zero): New variable.
52731         (main): Avoid literal -0.0L.
52732         * tests/test-truncf1.c (zero): New variable.
52733         (main): Avoid literal -0.0f.
52734         * tests/test-trunc1.c (zero): New variable.
52735         (main): Avoid literal -0.0.
52736         * tests/test-truncl.c (zero): New variable.
52737         (main): Avoid literal -0.0L.
52738         * tests/test-frexp.c (zero): New variable.
52739         (main): Avoid literal -0.0.
52740         * tests/test-frexpl.c (zero): New variable.
52741         (main): Avoid literal -0.0L.
52742         * tests/test-ldexpl.c (zero): New variable.
52743         (main): Avoid literal -0.0L.
52744         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52745         (zerod, zerol): New variables.
52746         (test_function): Avoid literals -0.0, -0.0L.
52747         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52748         (zerod, zerol): New variables.
52749         (test_function): Avoid literals -0.0, -0.0L.
52750         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52751         (zerod, zerol): New variables.
52752         (test_function): Avoid literals -0.0, -0.0L.
52753         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52754         (zerod, zerol): New variables.
52755         (test_function): Avoid literals -0.0, -0.0L.
52756         * tests/test-strtod.c (zero): New variable.
52757         (main): Avoid literal -0.0.
52758         Reported by Jonathan C. Patschke <jp@centtech.com>.
52759
52760 2008-07-31  Jim Meyering  <meyering@redhat.com>
52761
52762         sha256.h: correct definition of SHA224_DIGEST_SIZE
52763         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52764         Reported by Paulie Pena IV <paulie4@gmail.com>.
52765         Define as 224 / 8, rather than as a literal.
52766         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52767         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52768         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52769
52770 2008-07-31  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52773         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52774         Reported by Jonathan Patschke <jp@centtech.com>.
52775
52776 2008-07-31  Bruno Haible  <bruno@clisp.org>
52777
52778         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52779         Reported by Paolo Bonzini <bonzini@gnu.org>.
52780
52781 2008-07-30  Eric Blake  <ebb9@byu.net>
52782
52783         test-strtod: allow compilation without -lm
52784         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52785         Reported by Dennis Clarke <blastwave@gmail.com>.
52786
52787 2008-07-28  Jim Meyering  <meyering@redhat.com>
52788
52789         bootstrap: work also when there are no .po files in po/
52790         * build-aux/bootstrap (update_po_files): Complete the change
52791         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52792
52793 2008-07-27  Jim Meyering  <meyering@redhat.com>
52794
52795         * users.txt: Add zile.
52796
52797 2008-07-26  Ben Pfaff  <blp@gnu.org>
52798
52799         Add missing dependencies on new m4/exponent[fdl].m4 files.
52800         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52801         * modules/isnand-nolibm: Add m4/exponentd.m4.
52802         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52803         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52804         m4/isnan[fdl].m4, because the macros actually used moved.
52805         Reported by Jim Meyering.
52806
52807 2008-07-14  Ben Pfaff  <blp@gnu.org>
52808
52809         Add isinf module.
52810         * lib/isinf.c: New file.
52811         * lib/math.in.h: Define isinf macro if we have decided to replace
52812         it.
52813         * m4/isinf.m4: New file.
52814         * m4/math_h.m4: Initialize and substitute variables for isinf
52815         module.
52816         * modules/isinf: New file.
52817         * modules/isinf-tests: New file.
52818         * modules/math: Add substitutions for new module.
52819         * tests/test-isinf.c: New file.
52820         * doc/posix-functions/isinf.texi: Mention new module.
52821         * MODULES.html.sh: Mention new module.
52822
52823 2008-07-14  Ben Pfaff  <blp@gnu.org>
52824
52825         Factor out some macros for use by additional modules.
52826         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52827         exponentf.m4.
52828         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52829         exponentd.m4.
52830         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52831         file exponentl.m4.
52832         * m4/exponentf.m4: New file.
52833         * m4/exponentd.m4: New file.
52834         * m4/exponentl.m4: New file.
52835         * modules/isnanf: Use new file m4/exponentf.m4.
52836         * modules/isnand: Use new file m4/exponentd.m4.
52837         * modules/isnanl: Use new file m4/exponentl.m4.
52838
52839 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52840
52841         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52842         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52843         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52844         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52845
52846         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52847         readlink on platforms without PATH_MAX.
52848
52849 2008-07-21  Eric Blake  <ebb9@byu.net>
52850
52851         Warn, not fail, on stale version.
52852         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52853
52854         Don't allow installation with stale devel version number.
52855         * top/GNUmakefile (_is-install-target): New macro.
52856         (_curr-ver): Forbid installation with stale version number.
52857
52858 2008-07-20  Bruno Haible  <bruno@clisp.org>
52859
52860         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52861         TESTS_ENVIRONMENT.
52862         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52863
52864 2008-07-20  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/c-stack.h (c_stack_action): Add documentation.
52867         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52868
52869 2008-07-20  Bruno Haible  <bruno@clisp.org>
52870
52871         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52872         * modules/readlink (License): Likewise.
52873
52874 2008-07-17  Eric Blake  <ebb9@byu.net>
52875
52876         * modules/c-stack (Link): Fix typo.
52877
52878         Make c-stack use libsigsegv, when available.
52879         * modules/c-stack (Depends-on): Add libsigsegv.
52880         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52881         needed.
52882         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52883         (segv_handler, overflow_handler, c_stack_action)
52884         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52885         implementation when libsigsegv is available, but only when using
52886         the library is necessary.
52887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52888         comment, explaining why XSI check fails on Linux.
52889         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52890         * tests/test-c-stack2.sh: Tweak skip message.
52891         * NEWS: Document new link-time requirements.
52892
52893 2008-07-16  Eric Blake  <ebb9@byu.net>
52894
52895         c-stack: Expose false positives when not using libsigsegv.
52896         * modules/c-stack-tests (Files): Expand test.
52897         * tests/test-c-stack.c (main): Add means to conditionally trigger
52898         non-overflow SIGSEGV.
52899         * tests/test-c-stack2.sh: New file.
52900
52901 2008-07-14  Bruno Haible  <bruno@clisp.org>
52902
52903         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52904         Reported by Eric Blake.
52905
52906 2008-07-14  Sam Steingold  <sds@gnu.org>
52907             Bruno Haible  <bruno@clisp.org>
52908
52909         New module libsigsegv.
52910         * modules/libsigsegv: New file.
52911         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52912         modifications.
52913         * MODULES.html.sh (Signal handling): New section.
52914
52915 2008-07-14  Bruno Haible  <bruno@clisp.org>
52916
52917         * modules/unictype/ctype-* (Description): Add the word "function".
52918         Improves the resulting doc in MODULES.html.
52919
52920 2008-07-12  Ben Pfaff  <blp@gnu.org>
52921
52922         Add longlong module.
52923         * modules/longlong: New file.
52924
52925 2008-07-12  Bruno Haible  <bruno@clisp.org>
52926
52927         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52928         to empty.
52929
52930 2008-07-10  Ben Pfaff  <blp@gnu.org>
52931
52932         Add isnan module.
52933         * doc/posix-functions/isnan.texi: Mention new module.
52934         * lib/math.in.h: Define isnan macro if we have decided to replace
52935         it.
52936         * m4/isnan.m4: New file.
52937         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52938         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52939         also.
52940         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52941         redundancy.
52942         * m4/math_h.m4: Initialize and substitute variables for isnan
52943         module.
52944         * modules/isnan: New file.
52945         * modules/isnan-tests: New file.
52946         * modules/math: Add substitutions for new module.
52947         * tests/test-isnan.c: New file.
52948         * MODULES.html.sh: Mention new module.
52949
52950 2008-07-10  Ben Pfaff  <blp@gnu.org>
52951
52952         Add isnanf module.
52953         * lib/isnanf.m4: New file.
52954         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52955         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52956         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52957         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52958         * modules/isnanf: New file.
52959         * modules/isnanf-tests: New file.
52960         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52961         files.
52962         * tests/test-isnanf-nolibm.c: factored most of its contents into
52963         new file tests/test-isnanf.h.
52964         * tests/test-isnanf.h: New file.
52965         * tests/test-isnanf.c: New file.
52966         * MODULES.html.sh: Mention new module.
52967         * doc/glibc-functions/isnanf.texi: Mention new module.
52968
52969 2008-07-10  Ben Pfaff  <blp@gnu.org>
52970
52971         Add isnand module.
52972         * lib/isnand.h: New file.
52973         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52974         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52975         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52976         functionality also.
52977         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52978         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52979         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52980         * modules/isnand: New file.
52981         * modules/isnand-tests: New file.
52982         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52983         files.
52984         * tests/test-isnand-nolibm.c: factored most of its contents into
52985         new file tests/test-isnand.h.
52986         * tests/test-isnand.h: New file.
52987         * tests/test-isnand.c: New file.
52988         * MODULES.html.sh: Mention new module.
52989
52990 2008-07-10  Ben Pfaff  <blp@gnu.org>
52991
52992         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52993         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52994         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52995         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52996         * modules/isnanf-nolibm: Update references to renamed files.
52997         * modules/isnand-nolibm: Likewise.
52998         * modules/isnanf-nolibm-tests: Likewise.
52999         * modules/isnand-nolibm-tests: Likewise.
53000         * lib/frexp.c: Likewise.
53001         * lib/isfinite.c: Likewise.
53002         * lib/signbitd.c: Likewise.
53003         * lib/signbitf.c: Likewise.
53004         * lib/vasnprintf.c: Likewise.
53005         * tests/test-ceilf1.c: Likewise.
53006         * tests/test-ceilf2.c: Likewise.
53007         * tests/test-floorf1.c: Likewise.
53008         * tests/test-floorf2.c: Likewise.
53009         * tests/test-frexp.c: Likewise.
53010         * tests/test-round1.c: Likewise.
53011         * tests/test-round2.c: Likewise.
53012         * tests/test-roundf1.c: Likewise.
53013         * tests/test-strtod.c: Likewise.
53014         * tests/test-trunc1.c: Likewise.
53015         * tests/test-trunc2.c: Likewise.
53016         * tests/test-truncf1.c: Likewise.
53017         * tests/test-truncf2.c: Likewise.
53018         * NEWS: Mention the renamed header files.
53019
53020 2008-07-11  Jim Meyering  <meyering@redhat.com>
53021
53022         vc-list-files: make the last-resort awk code more portable
53023         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53024         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53025         does not support it.
53026
53027 2008-07-10  Eric Blake  <ebb9@byu.net>
53028
53029         Work with tar's bootstrap.
53030         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53031         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53032         an m4 comment.
53033
53034 2008-07-09  Jim Meyering  <meyering@redhat.com>
53035
53036         posix-shell.m4: fix typo that made this test malfunction
53037         * m4/posix-shell.m4: Remove capitalization in variable name.
53038
53039 2008-07-08  Bruno Haible  <bruno@clisp.org>
53040
53041         * m4/onceonly.m4: Update comments.
53042         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53043
53044 2008-07-04  Jim Meyering  <meyering@redhat.com>
53045
53046         * users.txt: Add vc-dwim.
53047         (bison, coreutils): Use the gitweb URL.
53048
53049 2008-07-03  Jim Meyering  <meyering@redhat.com>
53050
53051         * users.txt: Add libffcall.  From Sam Steingold.
53052
53053 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
53054
53055         getdate.y: do not ignore TZ with relative day, month or year offset
53056         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53057         relative-date-handling, since otherwise, the latter would clobber the
53058         sole output (an updated Start value) of the tz-handling block.
53059         * tests/test-getdate.c: Tests for the fix
53060
53061 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53062
53063         Recognize 'foo_LIBRARIES += libgnu.a'.
53064         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53065         makefile snippet has already specified an installation location,
53066         also using '+='.
53067
53068 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
53069
53070         getdate.y: factor out common actions
53071         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53072         Use them in place of open-coded actions.
53073
53074 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53075
53076         Add self-test for getdate module.
53077         * modules/getdate-tests: New file.
53078         * tests/test-getdate.c: New file.
53079
53080 2008-06-29  Bruno Haible  <bruno@clisp.org>
53081
53082         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53083         .gitignore.
53084         Reported by Sylvain Beucler <beuc@beuc.net>.
53085
53086 2008-06-29  Bruno Haible  <bruno@clisp.org>
53087
53088         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53089         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53090
53091 2008-06-29  Bruno Haible  <bruno@clisp.org>
53092
53093         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53094         EXTRA_DIST.
53095         Reported by Sylvain Beucler <beuc@beuc.net>.
53096
53097 2008-06-26  Jim Meyering  <meyering@redhat.com>
53098
53099         make several modules depend on the "open" module
53100         This provides slightly increased consistency when opening-for-write
53101         the name of a non-directory spelled with a trailing slash.
53102         * modules/chdir-safer: Likewise.
53103         * modules/chown: Likewise.
53104         * modules/clean-temp: Likewise.
53105         * modules/copy-file: Likewise.
53106         * modules/fchdir: Likewise.
53107         * modules/fcntl-safer: Likewise.
53108         * modules/pipe: Likewise.
53109         * modules/utime: Likewise.
53110         Prompted by Eric Blake and Bruno Haible.
53111
53112 2008-06-24  Andreas Schwab  <schwab@suse.de>
53113
53114         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53115         literals can be used as initializers for global variables.
53116
53117 2008-06-23  Eric Blake  <ebb9@byu.net>
53118
53119         Make gnulib-cache.m4 easier to diff.
53120         * gnulib-tool (func_import): Allow newlines when reading cached
53121         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53122
53123 2008-06-23  Bruno Haible  <bruno@clisp.org>
53124
53125         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53126         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53127         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53128         m4/signalblocking.m4.
53129         (gl_PREREQ_SIGACTION): Don't invoke it.
53130         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53131         gl_PREREQ_SIG_HANDLER_H.
53132         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53133         Don't check for sigaction here.
53134
53135 2008-06-23  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53138         (install_handlers): Don't set the SA_RESETHAND flag.
53139
53140 2008-06-23  Bruno Haible  <bruno@clisp.org>
53141
53142         * m4/sigaction.m4: Comment fixes.
53143         * lib/signal.in.h: Likewise.
53144
53145 2008-06-23  Eric Blake  <ebb9@byu.net>
53146
53147         Fix typo.
53148         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53149
53150         Avoid SA_ namespace.
53151         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53152         Reported by Ralf Wildenhues.
53153
53154         Avoid test failure due to SA_RESTORER.
53155         * tests/test-sigaction.c (SA_MASK): New macro.
53156         (main): Avoid failing due to extension flags being set.
53157         Reported by Jim Meyering.
53158
53159         Revert use of sig-handler.h in sigprocmask.c.
53160         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53161         it requires the existence of struct sigaction.
53162         * lib/sigprocmask.c (handler_t): Restore typedef.
53163         (rpl_signal, old_handlers): Use local type.
53164
53165 2008-06-22  Bruno Haible  <bruno@clisp.org>
53166
53167         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53168         conditionally.
53169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53170
53171 2008-06-22  Bruno Haible  <bruno@clisp.org>
53172
53173         * doc/posix-functions/siginterrupt.texi: Move note.
53174
53175         * lib/signal.in.h (SA_RESTART): New macro.
53176         * lib/sigaction.c: Update comment.
53177
53178         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53179
53180         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53181         (gl_PREREQ_SIGPROCMASK): Invoke it.
53182         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53183
53184         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53185
53186         * lib/sigprocmask.c: Update a comment.
53187
53188 2008-06-21  Eric Blake  <ebb9@byu.net>
53189
53190         Use sigaction module rather than signal().
53191         * modules/c-stack (Depends-on): Add sigaction.
53192         * modules/fatal-signal (Depends-on): Likewise.
53193         * modules/nanosleep (Depends-on): Likewise.
53194         * modules/sigprocmask (Files): Add sig-handler.h.
53195         * modules/sigaction (Files): Likewise.
53196         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53197         Eggert.
53198         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53199         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53200         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53201         (init_fatal_signals): Likewise.
53202         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53203         (siginterrupt): Delete fallback.
53204         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53205         instead.
53206         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53207         siginterrupt.
53208
53209         New module sigaction, for mingw.
53210         * modules/sigaction: New module...
53211         * modules/sigaction-tests: ...and its test.
53212         * m4/sigaction.m4: New file.
53213         * lib/sigaction.c: Likewise.
53214         * tests/test-sigaction.c: Likewise.
53215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53216         * modules/signal (Makefile.am): Likewise.
53217         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53218         needed.
53219         * doc/posix-headers/signal.texi (signal.h): Mention provided
53220         types.
53221         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53222         that sigaction is preferable.
53223         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53224         module.
53225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53226         sigaction.
53227
53228         Improve robustness of sigprocmask by overriding signal.
53229         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53230         is in use.
53231         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53232         (SIGKILL, SIGSTOP): Provide fallbacks.
53233         (rpl_signal): Implement.
53234         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53235         signal can be called inside handlers.
53236
53237         Fix nanosleep module on mingw.
53238         * modules/nanosleep (Depends-on): Add sys_select.
53239         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53240
53241         Fix licensing of sigprocmask.
53242         * modules/raise (License): Relicense as LGPL.
53243
53244 2008-06-21  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53247         result if it contains question marks.
53248         Reported by Michael Geng <linux@michaelgeng.de>.
53249
53250 2008-06-19  Bruno Haible  <bruno@clisp.org>
53251
53252         Fix CVS-ism.
53253         * doc/gnulib.texi: Include updated-stamp.texi.
53254         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53255         (updated-stamp.texi): New rule.
53256         (gnulib.info): Depend on it.
53257         * doc/.gitignore: Add updated-stamp.texi.
53258         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53259
53260 2008-06-19  Bruno Haible  <bruno@clisp.org>
53261
53262         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53263         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53264
53265 2008-06-19  Eric Blake  <ebb9@byu.net>
53266
53267         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53268         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53269         Reported by Stepan Kasal.
53270
53271 2008-06-18  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53274         Reported by Eric Blake.
53275
53276 2008-06-18  Eric Blake  <ebb9@byu.net>
53277
53278         Work around cygwin 1.5.25 strsignal bug.
53279         * tests/test-strsignal.c: Allow for const char *.
53280         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53281
53282 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53283
53284         * users.txt: Update URL to article and add author/date
53285         information.
53286
53287 2008-06-17  Bruno Haible  <bruno@clisp.org>
53288
53289         New macro gl_DISABLE_THREADS.
53290         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53291         if the user did not pass --enable-threads or --disable-threads option.
53292         (gl_DISABLE_THREADS): New macro.
53293         Reported by Eric Blake <ebb9@byu.net>.
53294
53295 2008-06-17  Bruno Haible  <bruno@clisp.org>
53296
53297         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53298         when the macro ignores it.
53299         Based on a patch by Eric Blake <ebb9@byu.net>.
53300
53301 2008-06-17  Bruno Haible  <bruno@clisp.org>
53302
53303         * modules/tls (License): Change to LGPLv2+.
53304         Reported by Eric Blake.
53305
53306 2008-06-17  Eric Blake  <ebb9@byu.net>
53307
53308         Simplify c-stack prerequisites.
53309         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53311         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53312         check.
53313         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53314         <sys/resource.h>.
53315
53316         Move c-stack test into testsuite.
53317         * modules/c-stack-tests: New file.
53318         * lib/c-stack.c [DEBUG]: Move test program...
53319         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53320         fail test if sigaltstack is lacking.
53321         * tests/test-c-stack.sh: New driver file.
53322
53323 2008-06-16  Eric Blake  <ebb9@byu.net>
53324
53325         Use raise module consistently.
53326         * modules/fatal-signal (Depends-on): Add raise.
53327         * modules/sigprocmask (Depends-on): Likewise.
53328         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53329         * lib/sigprocmask.c (sigprocmask): Likewise.
53330         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53331         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53332
53333         Fix compliance bug in sigpending.
53334         * lib/sigprocmask.c (sigpending): Return pending array via
53335         parameter, not return value.
53336
53337 2008-06-14  Eric Blake  <ebb9@byu.net>
53338
53339         Improve obstack-printf test code.
53340         * tests/test-obstack-printf.c (test_function): Fix comment, and
53341         simplify usage of obstack_* in macros.  Add a test for coverage.
53342         Reported by Bruno Haible.
53343
53344 2008-06-14  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53347         array size as a constant, not as a const variable.
53348         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53349         AC_USE_SYSTEM_EXTENSIONS.
53350         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53351         Test whether the obstack_printf function actually exists.
53352         * modules/obstack-printf (Depends-on): Add extensions.
53353         (Include): Remove obstack.h.
53354         * modules/obstack-printf-posix (Depends-on): Add extensions.
53355         (Include): Remove obstack.h.
53356
53357 2008-06-13  Eric Blake  <ebb9@byu.net>
53358
53359         Add obstack-printf and obstack-printf-posix modules.
53360         * modules/obstack-printf: New file.
53361         * modules/obstack-printf-posix: Likewise.
53362         * MODULES.html.sh (Misc): Mention them.
53363         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53364         Likewise.
53365         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53366         Likewise.
53367         * modules/stdio (Makefile.am): Accomodate new modules.
53368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53369         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53370         Declare.
53371         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53372         functions.
53373         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53374         (gl_REPLACE_OBSTACK_PRINTF): New macros
53375         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53376         * tests/test-obstack-printf.c: New file.
53377         * modules/obstack-printf-tests: Likewise.
53378         * modules/obstack-printf-posix-tests: Likewise.
53379
53380 2008-06-11  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53383         * lib/open.c: Include errno.h.
53384         (open): Fail when attempting to write to a file that has a trailing
53385         slash.
53386         * tests/test-open.c (main): Test against trailing slash bug.
53387         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53388
53389 2008-06-10  Bruno Haible  <bruno@clisp.org>
53390
53391         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53392         for $? to work inside the trap command, with various /bin/sh-s.
53393         * tests/test-vc-list-files-cvs.sh: Likewise.
53394
53395 2008-06-10  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/acl-internal.h: Don't include gettext.h here.
53398         * lib/set-mode-acl.c: Include gettext.h here.
53399         * lib/copy-acl.c: Likewise.
53400
53401 2008-06-10  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53404         * lib/wait-process.c (wait_subprocess): Likewise.
53405         * lib/execute.h (execute): Add termsigp argument.
53406         * lib/execute.c (execute): Likewise.
53407         * lib/csharpcomp.c (compile_csharp_using_pnet,
53408         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53409         * lib/csharpexec.c (execute_csharp_using_pnet,
53410         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53411         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53412         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53413         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53414         is_jikes_present): Update.
53415         * lib/javaexec.c (execute_java_class): Update.
53416         * lib/javaversion.c (execute_and_read_line): Update.
53417         * NEWS: Document the changes.
53418         Reported by Eric Blake.
53419
53420 2008-06-10  Eric Blake  <ebb9@byu.net>
53421
53422         Add missing include.
53423         * tests/test-strstr.c (includes): Add <signal.h>.
53424         * tests/test-strcasestr.c (includes): Likewise.
53425         * tests/test-memmem.c (includes): Likewise.
53426
53427 2008-06-10  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/wait-process.c (wait_subprocess): Add an assertion.
53430
53431 2008-06-10  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53434
53435 2008-06-10  Bruno Haible  <bruno@clisp.org>
53436
53437         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53438         using alarm().
53439         * tests/test-strcasestr.c (main): Likewise.
53440         * tests/test-strstr.c (main): Likewise.
53441
53442 2008-06-09  Bruno Haible  <bruno@clisp.org>
53443
53444         Work around the Solaris 10 ACE ACLs ABI change.
53445         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53446         declare if ACL_NO_TRIVIAL is present.
53447         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53448         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53449         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53450         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53451         define if ACL_NO_TRIVIAL is present.
53452         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53453         and use the current ABI.
53454         (file_has_acl): Use same #if condition as elsewhere.
53455         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53456         in use, and use the current ABI.
53457         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53458         Reported by Jim Meyering.
53459
53460 2008-06-09  Eric Blake  <ebb9@byu.net>
53461
53462         Work around environments that (stupidly) ignore SIGALRM.
53463         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53464         before using alarm().
53465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53467         Reported by Ian Beckwith <ianb@erislabs.net>.
53468
53469         Produce autobuild blurb earlier in log.
53470         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53471
53472 2008-06-09  Jim Meyering  <meyering@redhat.com>
53473         and Ondřej Vašík  <ovasik@redhat.com>
53474
53475         utimens.c: correct kernel bug work-around
53476         Ondřej Vašík found that the invalid return value of 280 indicates
53477         failure, not success, and the kernel bug we're trying to work
53478         around affects not just the utimensat call, but also the fallback
53479         futimens call.
53480         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53481         not success.
53482         [HAVE_FUTIMENS]: Use the same work-around, here.
53483
53484 2008-06-09  Jim Meyering  <meyering@redhat.com>
53485
53486         add more guards around definition of ACE_-related code
53487         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53488         ALLOW and ACE_OWNER are also defined.
53489
53490 2008-06-08  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/acl-internal.h: Add me as co-author.
53493         * lib/file-has-acl.c: Likewise.
53494         * lib/set-mode-acl.c: Likewise.
53495         * lib/copy-acl.c: Likewise.
53496
53497 2008-06-08  Bruno Haible  <bruno@clisp.org>
53498
53499         Add support for AIX ACLs.
53500         * lib/acl-internal.h (acl_nontrivial): New declaration.
53501         * lib/file-has-acl.c (acl_nontrivial): New function.
53502         (file_has_acl): Add implementation using AIX 4 ACL API.
53503         * lib/set-mode-acl.c (qset_acl): Likewise.
53504         * lib/copy-acl.c (qcopy_acl): Likewise.
53505
53506 2008-06-08  Bruno Haible  <bruno@clisp.org>
53507
53508         Add support for HP-UX ACLs.
53509         * lib/acl-internal.h (acl_nontrivial): New declaration.
53510         * lib/file-has-acl.c (acl_nontrivial): New function.
53511         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53512         * lib/set-mode-acl.c (qset_acl): Likewise.
53513         * lib/copy-acl.c (qcopy_acl): Likewise.
53514
53515 2008-06-08  Bruno Haible  <bruno@clisp.org>
53516
53517         Add support for Cygwin ACLs.
53518         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53519         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53520         the chmod_or_fchmod call.
53521         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53522
53523 2008-06-08  Bruno Haible  <bruno@clisp.org>
53524
53525         Fix bug with setuid modes in Solaris 10+ code.
53526         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53527         succeeded, when the mode contains some special bits.
53528
53529 2008-06-08  Bruno Haible  <bruno@clisp.org>
53530
53531         Add support for Solaris 7..10 ACLs.
53532         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53533         declarations.
53534         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53535         functions.
53536         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53537         * lib/set-mode-acl.c (qset_acl): Likewise.
53538         * lib/copy-acl.c (qcopy_acl): Likewise.
53539
53540 2008-06-08  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53543         declaration.
53544         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53545         (acl_access_nontrivial): Remove MacOS X case.
53546         (file_has_acl): Use acl_extended_nontrivial.
53547         * lib/copy-acl.c (qcopy_acl): Likewise.
53548
53549 2008-06-08  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53552
53553 2008-06-08  Jim Meyering  <meyering@redhat.com>
53554
53555         * modules/acl (Maintainer): Add Bruno Haible.
53556
53557 2008-06-07  Bruno Haible  <bruno@clisp.org>
53558
53559         Improve support for Tru64 ACLs.
53560         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53561         ACL on OSF/1.
53562
53563 2008-06-07  Bruno Haible  <bruno@clisp.org>
53564
53565         Add support for MacOS X ACLs.
53566         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53567         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53568         * lib/set-mode-acl.c (qset_acl): Likewise.
53569         * lib/copy-acl.c (qcopy_acl): Likewise.
53570
53571 2008-06-07  Bruno Haible  <bruno@clisp.org>
53572
53573         Fix memory leak introduced on 2008-05-22.
53574         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53575         use.
53576
53577 2008-06-07  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53580         to construct an empty ACL.
53581
53582 2008-06-07  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53585         precisely.
53586         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53587
53588 2008-06-07  Bruno Haible  <bruno@clisp.org>
53589
53590         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53591         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53592
53593 2008-06-07  Bruno Haible  <bruno@clisp.org>
53594
53595         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53596         regardless of POSIX.
53597         * doc/posix-functions/_longjmp.texi: Likewise.
53598         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53599         SystemV platform in this case.
53600
53601 2008-06-06  Eric Blake  <ebb9@byu.net>
53602
53603         Document abort() bugs.
53604         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53605
53606         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53607         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53608         sigsetjmp.
53609         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53610         siglongjmp, but only as a macro.
53611         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53612         is obsolete.
53613         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53614
53615         Tweak documentation to cover cygwin argz bugs.
53616         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53617         argz bug fix; no code change needed since no cygwin releases
53618         occurred between the last fix and the bug being tested.
53619         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53620         module and recently fixed cygwin bugs.
53621         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53622         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53623         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53624         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53625         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53626         Likewise.
53627         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53628         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53629         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53630         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53631         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53632         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53633         Likewise.
53634
53635         Avoid gcc warning on cygwin.
53636         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53637         !ACL_NO_TRIVIAL]: Avoid unused variable.
53638
53639 2008-06-05  Eric Blake  <ebb9@byu.net>
53640
53641         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53642         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53643         git-version-gen fails to come up with a version.
53644         Reported by Simon Josefsson.
53645
53646 2008-06-05  Jim Meyering  <meyering@redhat.com>
53647             Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         utimens.c: work around a probable Linux kernel bug
53650         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53651         appears to be a kernel bug that causes utimensat to return 280
53652         instead of 0, indicating success.
53653
53654 2008-06-04  Bruno Haible  <bruno@clisp.org>
53655
53656         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53657         2008-06-01 commit.
53658
53659 2008-06-04  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53662         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53663         (file_has_acl): Use it. Save errno afterwards.
53664         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53665
53666 2008-06-03  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53669         draft code. Simplify #ifs.
53670         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53671         Put Solaris code after POSIX-draft code. Fix comments regarding
53672         Solaris 10, HP-UX. Mention Cygwin.
53673         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53674
53675 2008-06-03  Eric Blake  <ebb9@byu.net>
53676
53677         Provide fallback for older kernels.
53678         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53679         Provide runtime fallback if kernel lacks support.
53680         Reported by Mike Frysinger.
53681
53682 2008-06-02  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53685         it exists.
53686
53687 2008-06-02  Bruno Haible  <bruno@clisp.org>
53688
53689         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53690         * lib/copy-acl.c (qcopy_acl): Update comment.
53691
53692 2008-06-02  Bruno Haible  <bruno@clisp.org>
53693
53694         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53695         like ACL APIs.
53696
53697 2008-06-02  Bruno Haible  <bruno@clisp.org>
53698
53699         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53700         * tests/test-set-mode-acl.sh: Likewise.
53701         * tests/test-copy-acl.sh: Likewise.
53702         * tests/test-copy-file.sh: Likewise.
53703
53704 2008-06-02  Bruno Haible  <bruno@clisp.org>
53705
53706         * tests/test-file-has-acl.sh: Remove unused code.
53707
53708 2008-06-01  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53711         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53712         messages.
53713         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53714
53715 2008-06-01  Bruno Haible  <bruno@clisp.org>
53716
53717         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53718         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53719         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53720         APIs.
53721         * modules/acl-tests (configure.ac): Remove tests now contained in
53722         m4/acl.m4.
53723
53724 2008-06-02  Jim Meyering  <meyering@redhat.com>
53725
53726         announce-gen: use a better key-server host name
53727         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53728         it may be more consistently reliable.  Suggested by Werner Koch
53729         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53730
53731 2008-06-01  Bruno Haible  <bruno@clisp.org>
53732
53733         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53734         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53735
53736 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53737
53738         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53739
53740 2008-06-01  Bruno Haible  <bruno@clisp.org>
53741
53742         New ACL tests.
53743         * tests/test-file-has-acl.sh: New file.
53744         * tests/test-file-has-acl.c: New file.
53745         * tests/test-set-mode-acl.sh: New file.
53746         * tests/test-set-mode-acl.c: New file.
53747         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53748         * tests/test-copy-acl.c: New file.
53749         * modules/acl-tests: New file, based on modules/copy-file-tests.
53750         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53751         (Depends-on): Add acl-tests.
53752         (configure.ac): Remove checks.
53753         (Makefile.am): Don't create test-sameacls program here any more.
53754
53755 2008-06-01  Bruno Haible  <bruno@clisp.org>
53756
53757         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53758         * tests/test-sameacls.c: Include progname.h.
53759         (main): Invoke set_program_name. Portability fixes for MacOS X,
53760         Solaris, HP-UX.
53761
53762 2008-06-01  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53765         function.
53766         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53767
53768 2008-06-01  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/rpmatch (Depends-on): Add strdup.
53771
53772 2008-06-01  Bruno Haible  <bruno@clisp.org>
53773
53774         * lib/pipe.c: Include unistd-safer.h.
53775         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53776         * modules/pipe (Depends-on): Add unistd-safer.
53777
53778 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53779
53780         * modules/autobuild (configure.ac): Call AB_INIT.
53781
53782 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53783
53784         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53785         Suggested by Bruno Haible <bruno@clisp.org>.
53786
53787 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53788
53789         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53790         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53791         <bruno@clisp.org>.
53792
53793 2008-05-29  Eric Blake  <ebb9@byu.net>
53794
53795         Prefer new POSIX 200x interfaces over futimesat.
53796         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53797         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53798         when available.
53799         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53800
53801 2008-05-28  Bruno Haible  <bruno@clisp.org>
53802
53803         * modules/stpcpy (License): Change to LGPLv2+.
53804         Requested by David Lutterkort <dlutter@redhat.com>.
53805
53806 2008-05-27  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53809         current mingw.
53810         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53811
53812 2008-05-27  Bruno Haible  <bruno@clisp.org>
53813
53814         * modules/iconv_open (Link): New section, from module 'iconv'.
53815         * modules/striconv (Link): Likewise.
53816         * modules/striconveh (Link): Likewise.
53817         * modules/xstriconv (Link): Likewise.
53818         * modules/unicodeio (Link): Likewise.
53819         * modules/propername (Link): Likewise.
53820         Reported by Jim Meyering.
53821
53822 2008-05-26  Jim Meyering  <meyering@redhat.com>
53823
53824         sha256: do not artificially restrict buffer length to be < 2^32
53825         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53826         uint32_t to size_t.
53827         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53828         to match.
53829
53830         avoid unaligned access errors, e.g., on sparc
53831         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53832         direct access through a possibly-unaligned uint64* pointer.
53833         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53834         direct access through a possibly-unaligned uint32* pointer.
53835         Prompted by this patch from Tom "spot" Callaway:
53836         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53837
53838         sha512.c: fix typo in comment
53839         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53840
53841 2008-05-25  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53844         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53845         (Makefile.am): Update lib_SOURCES.
53846
53847 2008-05-25  Bruno Haible  <bruno@clisp.org>
53848
53849         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53850
53851 2008-05-25  Jim Meyering  <meyering@redhat.com>
53852
53853         useless-if-before-free: freed expr may have white-space differences
53854         * build-aux/useless-if-before-free: Recognize cases in which the
53855         freed expression differs from the tested one in embedded white
53856         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53857         $1 was used, so we can't make any regexp shy.  Improved tests now
53858         detect this.
53859
53860         useless-if-before-free: accept white space in the expression.
53861         * build-aux/useless-if-before-free: For now, any white space
53862         in the expression must be identical in the free argument.
53863
53864         useless-if-before-free: efficiency tweak
53865         * build-aux/useless-if-before-free: Make the expression-matching
53866         regexp "shy".
53867         Make the *outer* regexp shy, not the expr-matching one.
53868
53869         update code-in-comment to accept cast of free arg
53870         * build-aux/useless-if-before-free: Update regexp.
53871
53872 2008-05-25  Bruno Haible  <bruno@clisp.org>
53873
53874         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53875         * modules/copy-file-tests (Files, Makefile.am): Update.
53876         * tests/test-copy-file.c (func_test_copy): Update.
53877
53878 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53879
53880         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53881
53882 2008-05-23  Bruno Haible  <bruno@clisp.org>
53883
53884         Improve support for ACLs on OSF/1.
53885         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53886         Remove fallback for unknown flavors of ACLs.
53887
53888 2008-05-22  Bruno Haible  <bruno@clisp.org>
53889
53890         Add support for ACLs on OSF/1.
53891         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53892         replacements.
53893         (acl_free_text): New macro fallback.
53894         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53895         acl_free.
53896         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53897         acl_free_text function. Require AC_C_INLINE.
53898
53899 2008-05-22  Bruno Haible  <bruno@clisp.org>
53900
53901         Make copy_acl work on MacOS X 10.5.
53902         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53903         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53904         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53905         If MODE_INSIDE_ACL, don't assume that every system has the same text
53906         representation for ACLs as FreeBSD.
53907         * lib/copy-acl.c (copy_acl): Add support for platforms with
53908         !MODE_INSIDE_ACL.
53909         * lib/file-has-acl.c (file_has_acl): Likewise.
53910         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53911         FreeBSD, MacOS X, or IRIX, respectively.
53912
53913 2008-05-22  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/acl.h: Don't include <sys/acl.h>.
53916         (GETACLCNT): Move fallback to lib/acl-internal.h.
53917         * lib/acl-internal.h: Include <sys/acl.h> here.
53918         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53919
53920 2008-05-22  Bruno Haible  <bruno@clisp.org>
53921
53922         Split off copy_acl function to separate file.
53923         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53924         * lib/acl.c (copy_acl): Moved function to separate file.
53925         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53926         * modules/acl (Files): Add lib/copy-acl.c.
53927         (Makefiles.am): Augment lib_SOURCES.
53928
53929 2008-05-22  Bruno Haible  <bruno@clisp.org>
53930
53931         * modules/copy-file-tests: New file.
53932         * tests/test-copy-file.sh: New file.
53933         * tests/test-copy-file.c: New file.
53934         * tests/test-copy-file-sameacls.c: New file.
53935
53936 2008-05-22  Eric Blake  <ebb9@byu.net>
53937
53938         Avoid gcc warning.
53939         * tests/test-memcmp.c (main): Pass NULL indirectly.
53940
53941 2008-05-21  Bruno Haible  <bruno@clisp.org>
53942
53943         Add reference doc about ACLs.
53944         * doc/acl-resources.txt: New file.
53945         * doc/acl-cygwin.txt: New file.
53946
53947 2008-05-21  Bruno Haible  <bruno@clisp.org>
53948
53949         Avoid one more warning from gcc.
53950         * lib/vasnprintf.c (IF_LINT): Update comments.
53951         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53952
53953 2008-05-21  Jim Meyering  <meyering@redhat.com>
53954
53955         avoid a warning from gcc
53956         * lib/vasnprintf.c (IF_LINT): Define.
53957         (scale10_round_decimal_long_double):
53958         Use it to avoid a "may be used uninitialized" warning.
53959         (scale10_round_decimal_double): Likewise.
53960
53961 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53962
53963         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53964         declared.
53965
53966 2008-05-20  Bruno Haible  <bruno@clisp.org>
53967
53968         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53969         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53970
53971 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53972
53973         * modules/memcmp-tests: New file.
53974         * tests/test-memcmp.c: New file.
53975
53976 2008-05-19  Bruno Haible  <bruno@clisp.org>
53977
53978         * modules/propername (Notice, configure.ac): Put quoted "..." into
53979         --keyword option.
53980         * lib/propername.h: Update comments accordingly.
53981         Reported by Eric Blake.
53982
53983 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53984
53985         * modules/getpass-gnu (Depends-on): Add fseeko.
53986
53987 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53988
53989         * modules/base64-tests: New file.
53990
53991 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53992
53993         * lib/base64.c (base64_decode_ctx): If a decode context structure
53994         was passed in use it to ignore newlines.  If a context structure
53995         was _not_ passed in, continue to treat newlines as garbage (this
53996         is the historical behavior).  Formerly base64_decode.
53997         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53998         takes a decode context structure.
53999         * lib/base64.h (base64_decode): Macro for four-argument calls.
54000         (base64_decode_alloc): Likewise.
54001         * lib/base64.c (base64_decode_ctx): If a decode context structure
54002         was passed in use it to ignore newlines.  If a context structure
54003         was _not_ passed in, continue to treat newlines as garbage (this
54004         is the historical behavior).  Formerly base64_decode.
54005         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54006         takes a decode context structure.
54007         * lib/base64.h (base64_decode): Macro for four-argument calls.
54008         (base64_decode_alloc): Likewise.
54009
54010 2008-05-19  Jim Meyering  <meyering@redhat.com>
54011
54012         avoid a warning from gcc
54013         * lib/trim.c (IF_LINT): Define.
54014         (trim2): Use it to avoid a "may be used uninitialized" warning.
54015
54016         Fix doc typo.
54017         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54018
54019 2008-05-19  Bruno Haible  <bruno@clisp.org>
54020
54021         * doc/glibc-functions/getpass.texi: Document limits of other
54022         implementations.
54023
54024 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54025             Bruno Haible <bruno@clisp.org>
54026
54027         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54028
54029 2008-05-18  Bruno Haible  <bruno@clisp.org>
54030
54031         * modules/propername: New file, from GNU gettext.
54032         * lib/propername.h: New file, from GNU gettext.
54033         * lib/propername.c: New file, from GNU gettext.
54034         * MODULES.html.sh (Internationalization functions): Add propername.
54035
54036 2008-05-16  Jim Meyering  <meyering@redhat.com>
54037             Bruno Haible  <bruno@clisp.org>
54038
54039         Avoid some warnings from "gcc -Wshadow".
54040         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54041
54042 2008-05-15  Eric Blake  <ebb9@byu.net>
54043
54044         Extend previous patch to cygwin 1.7.0.
54045         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54046         fast implementation in cygwin >= 1.7.0.
54047         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54049
54050 2008-05-15  Bruno Haible  <bruno@clisp.org>
54051
54052         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54053         implementation in glibc >= 2.9.
54054         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54056
54057 2008-05-15  Bruno Haible  <bruno@clisp.org>
54058
54059         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54060         (Unicode string functions): Add unilbrk/*.
54061         Reported by Karl Berry.
54062
54063 2008-05-15  Eric Blake  <ebb9@byu.net>
54064
54065         Fix violation of <stdbool.h> replacement in regex.
54066         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54067         * lib/regexec.c (re_search_internal): Likewise.
54068         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54069
54070 2008-05-15  Jim Meyering  <meyering@redhat.com>
54071
54072         avoid distracting test output when git or cvs is not found
54073         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54074         * tests/test-vc-list-files-git.sh: Likewise.
54075
54076 2008-05-15  Eric Blake  <ebb9@byu.net>
54077
54078         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54079         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54080         glibc version.
54081         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54082         * doc/posix-functions/strstr.texi (strstr): Likewise.
54083         * lib/str-two-way.h (MAX): Sychronize with glibc.
54084
54085 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54086
54087         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54088         opr.ctx_type.
54089         (calc_first): Initialize constraint field.
54090         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54091         Fix grammar.
54092         (duplicate_node): Merge constraint field for all node types.
54093         (calc_eclosure_iter): Look at constraint field for all node types.
54094         * lib/regex_internal.c (create_cd_newstate): Don't look at
54095         opr.ctx_type.
54096
54097 2008-05-14  Bruno Haible  <bruno@clisp.org>
54098
54099         Help GCC to do better code generation.
54100         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54101         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54102         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54103         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54104         Declare with attribute 'malloc' if supported.
54105
54106 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54107
54108         use "echo STR|wc -c" rather than unportable "expr length STR"
54109         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54110         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54111
54112 2008-05-14  Jim Meyering  <meyering@redhat.com>
54113
54114         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54115         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54116         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54117         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54118         via Collin Lasse.
54119
54120 2008-05-14  Eric Blake  <ebb9@byu.net>
54121
54122         Avoid quadratic growth in gl_LIBSOURCES.
54123         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54124         Suggested by Bruno Haible.
54125
54126         Test xmemdup0.
54127         * modules/xmemdup0-tests: New file.
54128         * tests/test-xmemdup0.c: Likewise.
54129
54130 2008-05-13  Eric Blake  <ebb9@byu.net>
54131
54132         Split xmemdup0 into its own module.
54133         * modules/xmemdup0: New file.
54134         * lib/xmemdup0.h: Likewise.
54135         * lib/xmemdup0.c: Likewise.
54136         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54137         * lib/xalloc.h (xmemdup0): Remove.
54138         * lib/xmalloc.c (xmemdup0): Likewise.
54139
54140 2008-05-13  Eric Blake  <ebb9@byu.net>
54141             Bruno Haible  <bruno@clisp.org>
54142
54143         Reduce number of forks required during autoconf.
54144         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54145         and gl_LIBSOURCES_DIR.
54146         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54147         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54148         m4_syscmd per file.
54149         <m4_foreach_w>: Move...
54150         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54151
54152 2008-05-13  Eric Blake  <ebb9@byu.net>
54153
54154         * gnulib-tool: Fix various comment typos.
54155
54156 2008-05-12  Bruno Haible  <bruno@clisp.org>
54157
54158         Tailor the linebreaking algorithm.
54159         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54160
54161 2008-05-12  Bruno Haible  <bruno@clisp.org>
54162
54163         Update to Unicode 5.0.0.
54164         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54165         LBP_JV, LBP_JT. Redistribute values.
54166         (unilbrk_table): Change size.
54167         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54168         Unicode TR#14 rev. 22.
54169         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54170         LBP_JV, LBP_JT. Redistribute values.
54171         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54172         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54173         Update.
54174         * lib/unilbrk/lbrkprop1.h: Regenerated.
54175         * lib/unilbrk/lbrkprop2.h: Regenerated.
54176         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54177         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54178         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54179         Likewise.
54180         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54181         Likewise.
54182         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54183         result.
54184         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54185         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54186         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54187         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54188         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54189         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54190
54191 2008-05-11  Bruno Haible  <bruno@clisp.org>
54192
54193         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54194
54195 2008-05-11  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54198         * modules/unilbrk/gen-lbrk: New file.
54199
54200 2008-05-11  Bruno Haible  <bruno@clisp.org>
54201
54202         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54203         * m4/sha512.m4 (gl_SHA512): Likewise.
54204
54205 2008-05-11  Jim Meyering  <meyering@redhat.com>
54206
54207         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54208         * modules/crypto/sha256: New file.
54209         * modules/crypto/sha512: Likewise.
54210         * lib/sha256.c: Likewise.
54211         * lib/sha256.h: Likewise.
54212         * lib/sha512.c: Likewise.
54213         * lib/sha512.h: Likewise.
54214         * lib/u64.h: Likewise.
54215         * m4/sha256.m4: Likewise.
54216         * m4/sha512.m4: Likewise.
54217         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54218
54219 2008-05-10  Bruno Haible  <bruno@clisp.org>
54220
54221         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54222         (Input/Output <stdio.h>): Add xprintf.
54223         (Signal handling <signal.h>): Add strsignal.
54224         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54225         (Core language properties): Add func.
54226         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54227         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54228         strings.
54229         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54230         (Input/output): New section.
54231         (File system functions): Add openat-die, stat-macros.
54232         (Networking functions): Add sockets.
54233         (Unicode string functions): Add unictype/*.
54234         (Support for building libraries and executables): Add gperf.
54235         (Support for building documentation): Add agpl-3.0.
54236         (Misc): Add nocrash.
54237
54238 2008-05-10  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/unictype/gen-ctype: New file.
54241
54242 2008-05-10  Jim Meyering  <meyering@redhat.com>
54243
54244         Make chdir-safer.c more efficient on a system with no symlinks.
54245         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54246         also if ELOOP is zero.  Suggested by Bruno Haible.
54247
54248         Make chdir-safer.c slightly safer.
54249         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54250         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54251
54252         Avoid compile failure on systems without ELOOP (like mingw).
54253         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54254         Reported by Bruno Haible.
54255
54256 2008-05-10  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54259         (is_utf8_encoding): Use a case-insensitive comparison.
54260         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54261         streq.
54262
54263 2008-05-10  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54266         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54267         * lib/unilbrk/ulc-common.h (iconv_string_length,
54268         iconv_string_keeping_offsets): Remove declarations.
54269         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54270         Don't include <iconv.h>, streq.h, xsize.h.
54271         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54272         conversion.
54273         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54274         <iconv.h>, streq.h, xsize.h.
54275         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54276         conversion.
54277         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54278         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54279         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54280         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54281
54282 2008-05-10  Bruno Haible  <bruno@clisp.org>
54283
54284         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54285         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54286
54287         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54288         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54289
54290         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54291         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54292
54293         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54294         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54295
54296         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54297         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54298
54299         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54300         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54301
54302         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54303         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54304
54305         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54306         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54307
54308 2008-05-10  Bruno Haible  <bruno@clisp.org>
54309
54310         Split up 'linebreak' module.
54311         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54312         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54313         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54314         modifications.
54315         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54316         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54317         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54318         lib/linebreak.c.
54319         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54320         lib/linebreak.c.
54321         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54322         lib/linebreak.c.
54323         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54324         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54325         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54326         lib/linebreak.c.
54327         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54328         lib/linebreak.c.
54329         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54330         lib/linebreak.c.
54331         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54332         lib/linebreak.c.
54333         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54334         lib/linebreak.c.
54335         * modules/unilbrk/base: New file.
54336         * modules/unilbrk/tables: New file.
54337         * modules/unilbrk/u8-possible-linebreaks: New file.
54338         * modules/unilbrk/u16-possible-linebreaks: New file.
54339         * modules/unilbrk/u32-possible-linebreaks: New file.
54340         * modules/unilbrk/ulc-common: New file.
54341         * modules/unilbrk/ulc-possible-linebreaks: New file.
54342         * modules/unilbrk/u8-width-linebreaks: New file.
54343         * modules/unilbrk/u16-width-linebreaks: New file.
54344         * modules/unilbrk/u32-width-linebreaks: New file.
54345         * modules/unilbrk/ulc-width-linebreaks: New file.
54346         * lib/linebreak.h: Remove file.
54347         * lib/linebreak.c: Remove file.
54348         * m4/linebreak.m4: Remove file.
54349         * modules/linebreak: Remove file.
54350         * NEWS: Mention the changes.
54351
54352 2008-05-09  Eric Blake  <ebb9@byu.net>
54353
54354         Add xmemdup0.
54355         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54356         implementation.
54357         * lib/xmalloc.c (xmemdup0): New C implementation.
54358
54359 2008-05-08  Bruno Haible  <bruno@clisp.org>
54360
54361         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54362
54363 2008-05-07  Eric Blake  <ebb9@byu.net>
54364
54365         Support cross-compilation of <wctype.h>.
54366         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54367         AC_CACHE_CHECK.
54368
54369 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54370
54371         * build-aux/vc-list-files: Add support for bzr.
54372
54373 2008-05-03  Jim Meyering  <meyering@redhat.com>
54374
54375         avoid failed assertion with tight malloc
54376         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54377
54378 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54379
54380         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54381         are needed from arpa/inet.h.
54382         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54383         Reported by Bruno Haible.
54384
54385 2008-05-02  Jim Meyering  <meyering@redhat.com>
54386
54387         avoid compilation error on FreeBSD 6
54388         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54389
54390 2008-05-01  Jim Meyering  <meyering@redhat.com>
54391
54392         useless-if-before-free: correct --help's exit status description
54393         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54394         for one or more matches, etc.  Reported by Bruno Haible.
54395
54396         vc-list-files: make the stand-alone gnulib test work
54397         * modules/vc-list-files-tests (configure.ac):
54398         Define and AC_SUBST abs_aux_dir.
54399         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54400         $(abs_top_srcdir) to each script and having each of them
54401         duplicate the work of setting PATH, set PATH here, using
54402         the new variable, abs_aux_dir instead.
54403         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54404         * tests/test-vc-list-files-git.sh: Likewise.
54405         Reported by Bruno Haible.
54406
54407 2008-05-01  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54410         reallocation. Rename 'done' to 'found_delimiter'.
54411
54412 2008-05-01  Jim Meyering  <meyering@redhat.com>
54413
54414         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54415         * build-aux/vc-list-files: Use `...`, not $(...).
54416
54417 2008-04-30  Jim Meyering  <meyering@redhat.com>
54418
54419         add tests for vc-list-files
54420         * modules/vc-list-files-tests: New module.
54421         * tests/test-vc-list-files-cvs.sh: New file.
54422         * tests/test-vc-list-files-git.sh: New file.
54423
54424         avoid a warning from gcc
54425         * lib/getndelim2.c (IF_LINT): Define.
54426         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54427
54428         vc-list-files: work properly with build-aux/cvsu, too
54429         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54430         to all cvs-based clauses.
54431
54432         vc-list-files: work properly in the CVS+awk case, too
54433         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54434
54435         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54436         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54437         take more than one file argument, so .  Add quotes, just in case $dir
54438         ever contains a shell meta-character.  Prompted by Soren Hansen in
54439         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54440
54441 2008-04-29  Eric Blake  <ebb9@byu.net>
54442
54443         Optimize getndelim2 to use block operations when possible.
54444         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54445         freadseek, and memchr2.
54446         * lib/getndelim2.c (getndelim2): Use them for block reads.
54447
54448 2008-04-29  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54451         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54452         * modules/inet_ntop (Depends-on): Add extensions.
54453         * modules/inet_pton (Depends-on): Likewise.
54454         Reported by Simon Josefsson.
54455
54456 2008-04-29  Jim Meyering  <meyering@redhat.com>
54457
54458         When the is more than one match in a block, match all of them.
54459         * build-aux/useless-if-before-free: Iterate through each block
54460         until there are no more matches.
54461
54462         Fix broken useless-if-before-free script.
54463         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54464         the expression to match cast of argument to free-like function.
54465
54466 2008-04-29  Eric Blake  <ebb9@byu.net>
54467
54468         Use new header.
54469         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54470
54471 2008-04-29  Jim Meyering  <meyering@redhat.com>
54472
54473         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54474         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54475         by gnulib to exist and to declare e.g., inet_ntop.
54476         Don't include "inet_ntop.h", now removed.
54477
54478         * m4/arpa_inet_h.m4: Remove trailing blanks.
54479
54480 2008-04-29  Eric Blake  <ebb9@byu.net>
54481
54482         Silence valgrind on safe reads beyond potential array bounds.
54483         * lib/rawmemchr.valgrind: New file.
54484         * lib/strchrnul.valgrind: Likewise.
54485         * modules/rawmemchr (Files): Distribute new file.
54486         * modules/strchrnul (Files): Likewise.
54487         Suggested by Bruno Haible.
54488
54489 2008-04-29  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54492         (inet_ntop, inet_pton): Change portability warning's wording.
54493         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54494         Invoke gl_CHECK_NEXT_HEADERS.
54495         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54496         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54497         set ARPA_INET_H.
54498         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54499         * modules/arpa_inet (Description): No longer only for systems that
54500         lack it.
54501         (Depends-on): Add include_next.
54502         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54503         HAVE_ARPA_INET_H.
54504
54505 2008-04-29  Jim Meyering  <meyering@redhat.com>
54506
54507         * modules/mkdir (License): Re-license as LGPLv2+.
54508
54509 2008-04-29  Bruno Haible  <bruno@clisp.org>
54510
54511         * modules/rawmemchr (Maintainer): Set to Eric.
54512         * modules/strchrnul (Maintainer): Likewise.
54513
54514 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54515
54516         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54517         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54518
54519         * modules/arpa_inet (arpa/inet.h): Use them.
54520
54521 2008-04-28  Eric Blake  <ebb9@byu.net>
54522
54523         Test getndelim2.
54524         * modules/getndelim2-tests: New file.
54525         * tests/test-getndelim2.c: Likewise.
54526         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54527         stream.
54528         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54529
54530         * MODULES.html.sh: Document new module.
54531
54532 2008-04-20  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/c-stack.c (die): Use raise.
54535         * modules/c-stack (Depends-on): Add raise.
54536
54537 2008-04-28  Bruno Haible  <bruno@clisp.org>
54538
54539         Expect rpmatch to be declared.
54540         * lib/yesno.c (rpmatch): Remove declaration.
54541
54542         Declare rpmatch.
54543         * lib/stdlib.in.h (rpmatch): New declaration.
54544         * lib/rpmatch.c: Include <stdlib.h> first.
54545         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54546         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54548         HAVE_RPMATCH.
54549         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54550         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54551         (Include): Set to <stdlib.h>.
54552         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54553         HAVE_RPMATCH.
54554         * NEWS: Document the change.
54555
54556 2008-04-28  Bruno Haible  <bruno@clisp.org>
54557
54558         Change rpmatch to use nl_langinfo when appropriate.
54559         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54560         (N_): New macro.
54561         (localized_pattern): New function/macro.
54562         (try): Remove match, nomatch arguments. Copy the pattern into safe
54563         memory before caching it.
54564         (rpmatch): Use localized_pattern. Add translator comments.
54565         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54566         Suggested by Eric Blake.
54567         * modules/rpmatch (Depends-on): Add stdbool.
54568
54569 2008-04-28  Eric Blake  <ebb9@byu.net>
54570
54571         Add rawmemchr module, matching glibc.
54572         * modules/string (Makefile.am): New indicator.
54573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54574         * lib/string.in.h (rawmemchr): Declare when appropriate.
54575         * modules/rawmemchr: New file.
54576         * m4/rawmemchr.m4: Likewise.
54577         * lib/rawmemchr.c: Likewise.
54578         * modules/rawmemchr-tests: Likewise.
54579         * tests/test-rawmemchr.c: Likewise.
54580         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54581         module.
54582         * modules/strchrnul (Depends-on): Add rawmemchr.
54583         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54584
54585         Whitespace cleanup.
54586         * tests/test-strchrnul.c: Reindent.
54587         * lib/strchrnul.c: Likewise.
54588
54589         Optimize and test strchrnul.
54590         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54591         * modules/strchrnul-tests: New file.
54592         * tests/test-strchrnul.c: Likewise.
54593
54594         Remove intprops dependency.
54595         * modules/memchr (Depends-on): Remove intprops.
54596         * modules/memrchr (Depends-on): Likewise.
54597         * modules/memchr2 (Depends-on): Likewise.
54598         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54599         * lib/memrchr.c (__memrchr): Likewise.
54600         * lib/memrchr2.c (memchr2): Likewise.
54601         Reported by Simon Josefsson.
54602
54603 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54604
54605         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54606         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54607
54608 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54609
54610         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54611
54612         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54613
54614         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54615
54616         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54617         declarations.
54618         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54619
54620         * m4/inet_pton.m4: Don't check for header files.
54621
54622         * m4/inet_ntop.m4: Don't check for header files.
54623
54624 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54625
54626         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54627         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54628         trigger for cygwin).
54629         Reported by Bruno Haible  <bruno@clisp.org>.
54630
54631 2008-04-28  Bruno Haible  <bruno@clisp.org>
54632
54633         * doc/posix-functions/strdup.texi: Mention mingw problem.
54634
54635 2008-04-27  Bruno Haible  <bruno@clisp.org>
54636
54637         * modules/stat-time-tests (Depends-on): Add sleep.
54638         * tests/test-stat-time.c (force_unlink): New function.
54639         (cleanup): Use it.
54640         (test_mtime): Remove the ctime related tests.
54641         (test_ctime): New function, containing the ctime related tests.
54642         (main): Call test_ctime, except on native Windows platforms.
54643
54644 2008-04-27  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/rpmatch.c (rpmatch): Add some comments.
54647         Reported by James Youngman <jay@gnu.org>.
54648
54649 2008-04-27  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54652         quiet NaNs.
54653
54654 2008-04-27  Bruno Haible  <bruno@clisp.org>
54655
54656         Make test-yesno.sh work on mingw.
54657         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54658         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54659         (main): Set stdin to binary mode.
54660         * modules/yesno-tests (Depends-on): Add binary-io.
54661
54662 2008-04-27  Bruno Haible  <bruno@clisp.org>
54663
54664         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54665         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54666         argument that lie outside the IEEE 854 domain.
54667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54668         (gl_ISFINITE): Use it.
54669         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54670
54671 2008-04-27  Bruno Haible  <bruno@clisp.org>
54672
54673         Allow local renaming in config.h.
54674         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54675
54676 2008-04-27  Bruno Haible  <bruno@clisp.org>
54677
54678         * lib/memchr.c (__memchr): Change type of 'i'.
54679         * lib/memchr2.c (memchr2): Likewise.
54680
54681 2008-04-26  Eric Blake  <ebb9@byu.net>
54682         and Bruno Haible  <bruno@clisp.org>
54683
54684         Optimize and test memrchr.
54685         * modules/memrchr (Depends-on): Add intprops.
54686         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54687         * modules/memrchr-tests: New file.
54688         * tests/test-memrchr.c: New file.
54689
54690 2008-04-26  Bruno Haible  <bruno@clisp.org>
54691
54692         Add tentative support for DragonFly BSD.
54693         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54694         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54695         fp.
54696         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54697         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54698         * lib/fpurge.c (fpurge): Likewise.
54699         * lib/freadable.c (freaadable): Likewise.
54700         * lib/freadahead.c (freadahead): Likewise.
54701         * lib/freading.c (freading): Likewise.
54702         * lib/freadptr.c (freadptr): Likewise.
54703         * lib/freadseek.c (freadptrinc): Likewise.
54704         * lib/fseeko.c (fseeko): Likewise.
54705         * lib/fseterr.c (fseterr): Likewise.
54706         * lib/fwritable.c (fwritable): Likewise.
54707         * lib/fwriting.c (fwriting): Likewise.
54708
54709 2008-04-26  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/stdio-impl.h: New file.
54712         * lib/fbufmode.c: Include stdio-impl.h.
54713         (fbufmode): Use fp_, remove redundant #defines.
54714         * lib/fflush.c: Include stdio-impl.h.
54715         (clear_ungetc_buffer): Remove redundant #defines.
54716         * lib/fpurge.c: Include stdio-impl.h.
54717         (fpurge): Remove redundant #defines.
54718         * lib/freadable.c: Include stdio-impl.h.
54719         (freadable): Remove redundant #defines.
54720         * lib/freadahead.c: Include stdio-impl.h.
54721         (freadahead): Remove redundant #defines.
54722         * lib/freading.c: Include stdio-impl.h.
54723         (freading): Remove redundant #defines.
54724         * lib/freadptr.c: Include stdio-impl.h.
54725         (freadptr): Remove redundant #defines.
54726         * lib/freadseek.c: Include stdio-impl.h.
54727         (freadptrinc): Remove redundant #defines.
54728         * lib/fseeko.c: Include stdio-impl.h.
54729         (rpl_fseeko): Remove redundant #defines.
54730         * lib/fseterr.c: Include stdio-impl.h.
54731         (fseterr): Remove redundant #defines.
54732         * lib/fwritable.c: Include stdio-impl.h.
54733         (fwritable: Remove redundant #defines.
54734         * lib/fwriting.c: Include stdio-impl.h.
54735         (fwriting): Remove redundant #defines.
54736         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54737         * modules/fflush (Files): Likewise.
54738         * modules/fpurge (Files): Likewise.
54739         * modules/freadable (Files): Likewise.
54740         * modules/freadahead (Files): Likewise.
54741         * modules/freading (Files): Likewise.
54742         * modules/freadptr (Files): Likewise.
54743         * modules/freadseek (Files): Likewise.
54744         * modules/fseeko (Files): Likewise.
54745         * modules/fseterr (Files): Likewise.
54746         * modules/fwritable (Files): Likewise.
54747         * modules/fwriting (Files): Likewise.
54748
54749 2008-04-26  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54752         restore_seek_optimization, update_fpos_cache): New functions, extracted
54753         from rpl_fflush.
54754         (rpl_fflush): Use them.
54755         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54756         (gl_REPLACE_FFLUSH): Use it.
54757
54758 2008-04-26  Bruno Haible  <bruno@clisp.org>
54759
54760         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54761         on Solaris.
54762         * tests/test-xstrtoimax.sh: Likewise.
54763         * tests/test-xstrtoumax.sh: Likewise.
54764         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54765
54766 2008-04-26  Bruno Haible  <bruno@clisp.org>
54767
54768         * modules/memchr-tests: New file.
54769         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54770
54771 2008-04-26  Eric Blake  <ebb9@byu.net>
54772             Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/memchr.c: Include intprops.h.
54775         (__memchr): Optimize parallel detection of matching bytes. Rename local
54776         variables. Add explanatory comments.
54777
54778 2008-04-26  Bruno Haible  <bruno@clisp.org>
54779
54780         Fix module 'memchr', broken since 2000-10-28.
54781         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54782
54783 2008-04-26  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54786         comments.
54787
54788 2008-04-25  Eric Blake  <ebb9@byu.net>
54789
54790         Use native fstatat on cygwin 1.7.0.
54791         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54792         first.
54793
54794 2008-04-23  Eric Blake  <ebb9@byu.net>
54795
54796         Improve memchr2 performance.
54797         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54798         NUL bytes.
54799         * modules/memchr2 (Depends-on): Use intprops.h.
54800
54801 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54802
54803         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54804         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54805         <blp@cs.stanford.edu>.
54806
54807 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54808
54809         * lib/arpa_inet.in.h: New file.
54810
54811         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54812         (Makefile.am): Sed in substitute header file.
54813
54814         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54815         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54816
54817         * modules/inet_ntop (configure.ac): Use
54818         gl_ARPA_INET_MODULE_INDICATOR.
54819
54820         * modules/inet_pton (configure.ac): Use
54821         gl_ARPA_INET_MODULE_INDICATOR.
54822
54823 2008-04-22  Jim Meyering  <meyering@redhat.com>
54824
54825         * modules/verify (License): Re-license as LGPLv2+.
54826
54827 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54828
54829         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54830         parameter to void* as per POSIX standard (MinGW uses char*).
54831
54832 2008-04-21  Bruno Haible  <bruno@clisp.org>
54833
54834         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54835         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54836         Define to replacements if REPLACE_ISWCNTRL is 1.
54837         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54838         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54839         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54840         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54841         what it fixes.
54842         * doc/posix-functions/iswalpha.texi: Likewise.
54843         * doc/posix-functions/iswblank.texi: Likewise.
54844         * doc/posix-functions/iswcntrl.texi: Likewise.
54845         * doc/posix-functions/iswdigit.texi: Likewise.
54846         * doc/posix-functions/iswgraph.texi: Likewise.
54847         * doc/posix-functions/iswlower.texi: Likewise.
54848         * doc/posix-functions/iswprint.texi: Likewise.
54849         * doc/posix-functions/iswpunct.texi: Likewise.
54850         * doc/posix-functions/iswspace.texi: Likewise.
54851         * doc/posix-functions/iswupper.texi: Likewise.
54852         * doc/posix-functions/iswxdigit.texi: Likewise.
54853         Reported by Alain Guibert.
54854
54855 2008-04-21  Bruno Haible  <bruno@clisp.org>
54856
54857         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54858         Patch by Alain Guibert.
54859
54860 2008-04-21  Bruno Haible  <bruno@clisp.org>
54861
54862         Fix test failures on mingw.
54863         * tests/test-xstrtol.c (print_no_progname): New function.
54864         (main): Install it in error_print_progname hook.
54865         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54866         * tests/test-xstrtoimax.sh: Likewise.
54867         * tests/test-xstrtoumax.sh: Likewise.
54868
54869 2008-04-21  Bruno Haible  <bruno@clisp.org>
54870
54871         Fix test failure on mingw.
54872         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54873
54874 2008-04-21  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54877         Actually assign a value.
54878
54879 2008-04-20  Bruno Haible  <bruno@clisp.org>
54880
54881         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54882         take 2.
54883         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54884         'canonicalize-lgpl' module is also used.
54885         * lib/canonicalize-lgpl.c: Undo last change.
54886         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54887
54888 2008-04-20  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54891         config.h. Provide _mkdir based fallback for mingw.
54892         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54893         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54894         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54895         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54896         rather than defining mkdir in config.h.
54897         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54898         (gl_SYS_STAT_H_DEFAULTS): New macro.
54899         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54900         HAVE_IO_H any more.
54901         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54902         HAVE_DECL_MKDIR and HAVE_IO_H.
54903
54904 2008-04-20  Bruno Haible  <bruno@clisp.org>
54905
54906         * lib/isapipe.c: Port to native Windows platforms.
54907
54908 2008-04-20  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54911
54912 2008-04-21  Eric Blake  <ebb9@byu.net>
54913
54914         Work around preprocessors that don't handle UINTMAX_MAX.
54915         * lib/memchr2.c (memchr2): Avoid embedded #if.
54916         Reported by Alain Guibert, fix suggested by Bruno Haible.
54917
54918 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54919
54920         * doc/posix-functions/strftime.texi (strftime): Explain better
54921         Windows incompatibility.  Suggested by Micah Cowan
54922         <micah@cowan.name>.
54923
54924 2008-04-20  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54927         unistr/u8-mblen.
54928
54929 2008-04-20  Bruno Haible  <bruno@clisp.org>
54930
54931         Fix test failure on platforms with non-GNU iconv.
54932         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54933         (U_TO_U8): Use it, rather than u16_to_u8.
54934         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54935         units at the end of the input string.
54936         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54937
54938 2008-04-20  Bruno Haible  <bruno@clisp.org>
54939
54940         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54941         when the resulting length is 0.
54942         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54943
54944 2008-04-20  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54947         works.
54948         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54949
54950 2008-04-20  Bruno Haible  <bruno@clisp.org>
54951
54952         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54953         * modules/tsearch-tests (configure.ac): Test for initstate function.
54954
54955 2008-04-20  Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54958         for nlink_t if missing.
54959         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54960
54961 2008-04-19  Bruno Haible  <bruno@clisp.org>
54962
54963         Work around snprintf bug on Linux libc5.
54964         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54966         gl_SNPRINTF_SIZE1.
54967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54968         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54969         that test failed.
54970         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54971         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54972         * modules/snprintf (Files): Add m4/printf.m4.
54973         * modules/vsnprintf (Files): Likewise.
54974         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54975         * doc/posix-functions/vsnprintf.texi: Likewise.
54976
54977 2008-04-19  Bruno Haible  <bruno@clisp.org>
54978
54979         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54980         from 0.0058 to less than 10^-7.
54981
54982 2008-04-19  Bruno Haible  <bruno@clisp.org>
54983
54984         Fix rounding when a precision is given.
54985         * lib/vasnprintf.c (is_borderline): New function.
54986         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54987         9...9x.
54988         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54989         %e, %g.
54990         * tests/test-vasprintf-posix.c (test_function): Likewise.
54991         * tests/test-snprintf-posix.h (test_function): Likewise.
54992         * tests/test-sprintf-posix.h (test_function): Likewise.
54993         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54994         * tests/test-printf-posix.h (test_function): Likewise.
54995         * tests/test-printf-posix.output: Update.
54996         Reported by John Darrington <john@darrington.wattle.id.au> via
54997         Ben Pfaff <blp@cs.stanford.edu>.
54998
54999 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55000
55001         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55002         Suggested by Bruno Haible <bruno@clisp.org>.
55003
55004 2008-04-17  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55007         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55008         implementation.
55009         Patch by Bruce Merry <bmerry@gmail.com>.
55010
55011 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55012
55013         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55014         doesn't work under Windows.
55015
55016 2008-04-16  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55019         New macros.
55020         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55021         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55022         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55023         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55024         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55025         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55026         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55027         macros.
55028         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55029         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55030         Northern Sotho, Uighur.
55031
55032 2008-04-16  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55035         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55036         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55037         Reported by Daniel Bergström <daniel@octocode.com>.
55038
55039 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55040             Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55043         function.
55044         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55045         New functions, mostly extracted from gl_locale_name_default.
55046         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55047
55048 2008-04-16  Eric Blake  <ebb9@byu.net>
55049
55050         Adjust strtod detection to catch glibc 2.7 bug.
55051         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55052         Reported by John Gatewood Ham.
55053
55054 2008-04-16  Bruno Haible  <bruno@clisp.org>
55055
55056         Add tentative support for Linux libc5.
55057         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55058         * lib/fpurge.c (fpurge): Likewise.
55059         * lib/freadable.c (freadable): Likewise.
55060         * lib/freadahead.c (freadahead): Likewise.
55061         * lib/freading.c (freading): Likewise.
55062         * lib/freadptr.c (freadptr): Likewise.
55063         * lib/freadseek.c (freadptrinc): Likewise.
55064         * lib/fseeko.c (rpl_fseeko): Likewise.
55065         * lib/fseterr.c (fseterr): Likewise.
55066         * lib/fwritable.c (fwritable): Likewise.
55067         * lib/fwriting.c (fwriting): Likewise.
55068         Reported by Alain Guibert <alguibert+bts@free.fr>.
55069
55070 2008-04-15  Bruno Haible  <bruno@clisp.org>
55071
55072         * modules/mathl (configure.ac): Define module indicator.
55073
55074 2008-04-15  Bruno Haible  <bruno@clisp.org>
55075
55076         * lib/logl.c (logl): Remove unused variables.
55077
55078 2008-04-15  Bruno Haible  <bruno@clisp.org>
55079
55080         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55081         fails.
55082
55083 2008-04-15  Bruno Haible  <bruno@clisp.org>
55084
55085         * lib/trim.c (trim2): Fix argument of isspace() macro.
55086
55087 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55088
55089         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55090         to 0.
55091         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55092
55093 2008-04-14  Bruno Haible  <bruno@clisp.org>
55094
55095         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55096         AC_LANG_PROGRAM argument.
55097         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55098         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55100         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55101         * m4/math_h.m4 (gl_MATH_H): Likewise.
55102         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55103         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55104         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55105         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55106         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55107         * m4/regex.m4 (gl_REGEX): Likewise.
55108         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55109         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55111         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55112         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55113         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55116
55117 2008-04-14  Jim Meyering  <meyering@redhat.com>
55118
55119         test-strtod: fix typos: s/abs/fabs/
55120         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55121
55122 2008-04-13  Bruno Haible  <bruno@clisp.org>
55123
55124         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55125         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55126         module is also used and while not building the reloc-wrapper.
55127
55128 2008-04-13  Bruno Haible  <bruno@clisp.org>
55129
55130         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55131
55132 2008-04-13  Bruno Haible  <bruno@clisp.org>
55133
55134         Fix AIX compilation failure introduced on 2008-04-02.
55135         * tests/test-frexp.c (exp): Undefine before redefining.
55136         * tests/test-frexpl.c (exp): Likewise.
55137
55138 2008-04-13  Bruno Haible  <bruno@clisp.org>
55139
55140         Work around a HP-UX stdio bug.
55141         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55142         * tests/test-ftello.c (main): Likewise.
55143         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55144         * doc/posix-functions/ftello.texi: Likewise.
55145
55146 2008-04-13  Bruno Haible  <bruno@clisp.org>
55147
55148         Make test-signbit pass on HP-UX/hppa.
55149         * tests/test-signbit.c (minus_zerol): New variable.
55150         (test_signbitl): Use it.
55151
55152 2008-04-13  Bruno Haible  <bruno@clisp.org>
55153
55154         Make truncl work on OSF/1 4.0.
55155         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55156         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55157         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55159         HAVE_DECL_TRUNCL.
55160         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55161         HAVE_DECL_TRUNCL.
55162         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55163
55164 2008-04-13  Bruno Haible  <bruno@clisp.org>
55165
55166         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55167
55168 2008-04-13  Bruno Haible  <bruno@clisp.org>
55169
55170         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55171         expression, so as to avoid HP-UX 11 cc compiler bug.
55172
55173 2008-04-13  Bruno Haible  <bruno@clisp.org>
55174
55175         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55176
55177 2008-04-13  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/git-merge-changelog.c: Remove empty declaration outside of
55180         functions.
55181
55182 2008-04-13  Bruno Haible  <bruno@clisp.org>
55183
55184         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55185
55186 2008-04-13  Bruno Haible  <bruno@clisp.org>
55187
55188         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55189         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55190         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55191         also if it exists but lacks definitions of the SHUT_* macros.
55192         * modules/sys_socket (Description): Update.
55193         Reported by Elbert Pol <e.pol@chello.nl>.
55194
55195 2008-04-13  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/localcharset.c (OS2): Don't redefine if already defined.
55198         Reported by Elbert Pol <e.pol@chello.nl>.
55199
55200 2008-04-13  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/binary-io.h [__EMX__]: Include <io.h>.
55203         Reported by Elbert Pol <e.pol@chello.nl>.
55204
55205 2008-04-12  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/fpucw.h: Enable the definitions also for x86_64.
55208         Needed for NetBSD/x86_64.
55209         Reported by Thomas Klausner <tk@giga.or.at>.
55210
55211 2008-04-12  Bruno Haible  <bruno@clisp.org>
55212
55213         * tests/test-strtod.c: Include isnand.h.
55214         (main): Use isnand instead of isnan.
55215         Reported by Jim Meyering.
55216
55217 2008-04-12  Bruno Haible  <bruno@clisp.org>
55218
55219         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55220         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55221
55222 2008-04-12  Jim Meyering  <meyering@redhat.com>
55223
55224         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55225
55226 2008-04-12  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55229         Reported by Elbert Pol <e.pol@chello.nl>.
55230
55231 2008-04-12  Eric Blake  <ebb9@byu.net>
55232
55233         Work around Solaris 10 math.h bug.
55234         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55235         (gl_MATH_H_DEFAULTS): Set up default.
55236         * modules/math (Makefile.am): Replace new indicators.
55237         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55238         * tests/test-math.c (main): Test this.
55239         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55240         * doc/posix-headers/math.texi (math.h): Mention bug.
55241         Reported by Nelson H. F. Beebe and Jim Meyering.
55242
55243 2008-04-11  Bruno Haible  <bruno@clisp.org>
55244
55245         Adapt to future versions of Apple GCC.
55246         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55247         Reported by Peter O'Gorman <peter@pogma.com>.
55248
55249 2008-04-11  Bruno Haible  <bruno@clisp.org>
55250
55251         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55252
55253 2008-04-11  Bruno Haible  <bruno@clisp.org>
55254
55255         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55256
55257         * modules/getaddrinfo-tests (Makefile.am): Define
55258         test_getaddrinfo_LDADD.
55259
55260 2008-04-11  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55263         (init): Fix syntax error.
55264         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55265         is declared.
55266
55267 2008-04-11  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55270         * modules/glob (Depends-on): Add stdbool.
55271
55272 2008-04-11  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/trim.c: Include <string.h>.
55275
55276 2008-04-11  Eric Blake  <ebb9@byu.net>
55277
55278         Avoid compile failure on OS/2.
55279         * lib/regex_internal.h (internal_function): Disable optimization
55280         on OS/2 (__EMX__), where it caused compiler error.
55281         Reported by Elbert Pol.
55282
55283 2008-04-11  Bruno Haible  <bruno@clisp.org>
55284
55285         Flush the standard error stream before aborting. Needed on mingw.
55286         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55287         * tests/test-array_list.c (ASSERT): Likewise.
55288         * tests/test-array_oset.c (ASSERT): Likewise.
55289         * tests/test-avltree_list.c (ASSERT): Likewise.
55290         * tests/test-avltree_oset.c (ASSERT): Likewise.
55291         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55292         * tests/test-binary-io.c (ASSERT): Likewise.
55293         * tests/test-byteswap.c (ASSERT): Likewise.
55294         * tests/test-c-ctype.c (ASSERT): Likewise.
55295         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55296         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55297         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55298         * tests/test-c-strstr.c (ASSERT): Likewise.
55299         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55300         * tests/test-canonicalize.c (ASSERT): Likewise.
55301         * tests/test-carray_list.c (ASSERT): Likewise.
55302         * tests/test-ceilf1.c (ASSERT): Likewise.
55303         * tests/test-ceilf2.c (ASSERT): Likewise.
55304         * tests/test-ceill.c (ASSERT): Likewise.
55305         * tests/test-count-one-bits.c (ASSERT): Likewise.
55306         * tests/test-fbufmode.c (ASSERT): Likewise.
55307         * tests/test-fflush2.c (ASSERT): Likewise.
55308         * tests/test-floorf1.c (ASSERT): Likewise.
55309         * tests/test-floorf2.c (ASSERT): Likewise.
55310         * tests/test-floorl.c (ASSERT): Likewise.
55311         * tests/test-fopen.c (ASSERT): Likewise.
55312         * tests/test-fpending.c (ASSERT): Likewise.
55313         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55314         * tests/test-fpurge.c (ASSERT): Likewise.
55315         * tests/test-freadable.c (ASSERT): Likewise.
55316         * tests/test-freadahead.c (ASSERT): Likewise.
55317         * tests/test-freading.c (ASSERT): Likewise.
55318         * tests/test-freadptr.c (ASSERT): Likewise.
55319         * tests/test-freadptr2.c (ASSERT): Likewise.
55320         * tests/test-freadseek.c (ASSERT): Likewise.
55321         * tests/test-freopen.c (ASSERT): Likewise.
55322         * tests/test-frexp.c (ASSERT): Likewise.
55323         * tests/test-frexpl.c (ASSERT): Likewise.
55324         * tests/test-fseek.c (ASSERT): Likewise.
55325         * tests/test-fseeko.c (ASSERT): Likewise.
55326         * tests/test-fstrcmp.c (ASSERT): Likewise.
55327         * tests/test-ftell.c (ASSERT): Likewise.
55328         * tests/test-ftello.c (ASSERT): Likewise.
55329         * tests/test-func.c (ASSERT): Likewise.
55330         * tests/test-fwritable.c (ASSERT): Likewise.
55331         * tests/test-fwriting.c (ASSERT): Likewise.
55332         * tests/test-getdelim.c (ASSERT): Likewise.
55333         * tests/test-getline.c (ASSERT): Likewise.
55334         * tests/test-i-ring.c (ASSERT): Likewise.
55335         * tests/test-iconv-utf.c (ASSERT): Likewise.
55336         * tests/test-iconv.c (ASSERT): Likewise.
55337         * tests/test-isfinite.c (ASSERT): Likewise.
55338         * tests/test-isnand.c (ASSERT): Likewise.
55339         * tests/test-isnanf.c (ASSERT): Likewise.
55340         * tests/test-isnanl.h (ASSERT): Likewise.
55341         * tests/test-ldexpl.c (ASSERT): Likewise.
55342         * tests/test-linked_list.c (ASSERT): Likewise.
55343         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55344         * tests/test-localename.c (ASSERT): Likewise.
55345         * tests/test-lseek.c (ASSERT): Likewise.
55346         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55347         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55348         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55349         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55350         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55351         * tests/test-mbschr.c (ASSERT): Likewise.
55352         * tests/test-mbscspn.c (ASSERT): Likewise.
55353         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55354         * tests/test-mbspbrk.c (ASSERT): Likewise.
55355         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55356         * tests/test-mbsrchr.c (ASSERT): Likewise.
55357         * tests/test-mbsspn.c (ASSERT): Likewise.
55358         * tests/test-mbsstr1.c (ASSERT): Likewise.
55359         * tests/test-mbsstr2.c (ASSERT): Likewise.
55360         * tests/test-mbsstr3.c (ASSERT): Likewise.
55361         * tests/test-memchr2.c (ASSERT): Likewise.
55362         * tests/test-memmem.c (ASSERT): Likewise.
55363         * tests/test-open.c (ASSERT): Likewise.
55364         * tests/test-printf-frexp.c (ASSERT): Likewise.
55365         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55366         * tests/test-printf-posix.c (ASSERT): Likewise.
55367         * tests/test-quotearg.c (ASSERT): Likewise.
55368         * tests/test-rbtree_list.c (ASSERT): Likewise.
55369         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55370         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55371         * tests/test-round1.c (ASSERT): Likewise.
55372         * tests/test-roundf1.c (ASSERT): Likewise.
55373         * tests/test-roundl.c (ASSERT): Likewise.
55374         * tests/test-signbit.c (ASSERT): Likewise.
55375         * tests/test-sleep.c (ASSERT): Likewise.
55376         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55377         * tests/test-snprintf.c (ASSERT): Likewise.
55378         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55379         * tests/test-stat-time.c (ASSERT): Likewise.
55380         * tests/test-strcasestr.c (ASSERT): Likewise.
55381         * tests/test-strerror.c (ASSERT): Likewise.
55382         * tests/test-striconv.c (ASSERT): Likewise.
55383         * tests/test-striconveh.c (ASSERT): Likewise.
55384         * tests/test-striconveha.c (ASSERT): Likewise.
55385         * tests/test-strsignal.c (ASSERT): Likewise.
55386         * tests/test-strstr.c (ASSERT): Likewise.
55387         * tests/test-strtod.c (ASSERT): Likewise.
55388         * tests/test-trunc1.c (ASSERT): Likewise.
55389         * tests/test-trunc2.c (ASSERT): Likewise.
55390         * tests/test-truncf1.c (ASSERT): Likewise.
55391         * tests/test-truncf2.c (ASSERT): Likewise.
55392         * tests/test-truncl.c (ASSERT): Likewise.
55393         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55394         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55395         * tests/test-vasnprintf.c (ASSERT): Likewise.
55396         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55397         * tests/test-vasprintf.c (ASSERT): Likewise.
55398         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55399         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55400         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55401         * tests/test-vsnprintf.c (ASSERT): Likewise.
55402         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55403         * tests/test-wcwidth.c (ASSERT): Likewise.
55404         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55405         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55406         * tests/test-xvasprintf.c (ASSERT): Likewise.
55407         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55408         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55409         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55410         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55411         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55412         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55413         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55414         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55415         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55416         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55417         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55418         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55419         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55420         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55421         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55422         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55423         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55424         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55425         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55426         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55427         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55428         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55429         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55430         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55431         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55432         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55433         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55434         * tests/unictype/test-combining.c (ASSERT): Likewise.
55435         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55436         * tests/unictype/test-digit.c (ASSERT): Likewise.
55437         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55438         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55439         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55440         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55441         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55442         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55443         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55444         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55445         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55446         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55447         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55448         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55449         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55450         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55451         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55452         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55453         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55454         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55455         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55456         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55457         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55458         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55459         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55460         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55461         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55462         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55463         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55464         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55465         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55466         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55467         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55468         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55469         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55470         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55471         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55472         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55473         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55474         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55475         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55476         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55477         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55478         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55479         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55480         Reported by Eric Blake.
55481
55482 2008-04-11  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/wchar.in.h: Tweak comment.
55485
55486 2008-04-11  Bruno Haible  <bruno@clisp.org>
55487
55488         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55489         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55490         gl_COMMON.
55491         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55492
55493 2008-04-11  Bruno Haible  <bruno@clisp.org>
55494
55495         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55496
55497 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55498
55499         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55500         of attempting to use non-existing /dev/*random.  Based on patch
55501         from Adam Strzelecki <ono@java.pl> in
55502         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55503
55504 2008-04-08  Bruno Haible  <bruno@clisp.org>
55505
55506         Add tentative support for emx+gcc.
55507         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55508         * lib/fpurge.c (fpurge): Likewise.
55509         * lib/freadable.c (freadable): Likewise.
55510         * lib/freadahead.c (freadahead): Likewise.
55511         * lib/freading.c (freading): Likewise.
55512         * lib/freadptr.c (freadptr): Likewise.
55513         * lib/freadseek.c (freadptrinc): Likewise.
55514         * lib/fseeko.c (rpl_fseeko): Likewise.
55515         * lib/fseterr.c (fseterr): Likewise.
55516         * lib/fwritable.c (fwritable): Likewise.
55517         * lib/fwriting.c (fwriting): Likewise.
55518         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55519
55520 2008-04-09  Eric Blake  <ebb9@byu.net>
55521
55522         Avoid some autoconf warnings.
55523         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55524         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55525         * m4/afs.m4 (gl_AFS): Likewise.
55526         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55527         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55529         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55530         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55531         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55532         (AC_CHECK_DECLS_ONCE): Likewise.
55533         Rename file...
55534         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55535         gnulib-tool requires autoconf 2.59 or better.
55536         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55537
55538 2008-04-08  Eric Blake  <ebb9@byu.net>
55539
55540         Use 'git describe --match' if present (added in git 1.5.5).
55541         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55542         if possible.
55543
55544 2008-04-08  Bruno Haible  <bruno@clisp.org>
55545
55546         Add tentative support for OpenServer.
55547         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55548         _ptr, _cnt.
55549         * lib/fpurge.c (fpurge): Likewise.
55550         * lib/freadable.c (freadable): Likewise.
55551         * lib/freadahead.c (freadahead): Likewise.
55552         * lib/freading.c (freading): Likewise.
55553         * lib/freadptr.c (freadptr): Likewise.
55554         * lib/freadseek.c (freadptrinc): Likewise.
55555         * lib/fseeko.c (rpl_fseeko): Likewise.
55556         * lib/fseterr.c (fseterr): Likewise.
55557         * lib/fwritable.c (fwritable): Likewise.
55558         * lib/fwriting.c (fwriting): Likewise.
55559         Reported by Roger Cornelius <rac@tenzing.org> and
55560         Brian K. White <brian@aljex.com>.
55561
55562 2008-04-06  Jim Meyering  <meyering@redhat.com>
55563
55564         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55565
55566 2008-04-06  Bruno Haible  <bruno@clisp.org>
55567
55568         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55569         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55570         * tests/test-printf-posix.sh: Likewise.
55571         * tests/test-vfprintf-posix.sh: Likewise.
55572         * tests/test-vprintf-posix.sh: Likewise.
55573         * tests/test-xprintf-posix.sh: Likewise.
55574
55575 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55576
55577         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55578         hide error from 'ls', needed on OS/2.
55579         Report by Elbert Pol <elbert.pol@gmail.com>.
55580
55581 2008-04-04  Eric Blake  <ebb9@byu.net>
55582
55583         Make test-fseeko.c failures meaningful.
55584         * tests/test-fseeko.c: Print line number on failure.
55585         * tests/test-fseek.c: Likewise.
55586         Reported by Nelson H. F. Beebe.
55587
55588         Improve strtod bug detection check.
55589         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55590         required for Solaris 10.
55591         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55592
55593 2008-04-04  Bruno Haible  <bruno@clisp.org>
55594
55595         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55596         by m4/setenv.m4.
55597
55598 2008-04-03  Eric Blake  <ebb9@byu.net>
55599
55600         Ensure sane .version contents.
55601         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55602         version string.
55603         * build-aux/git-version-gen: Improve documentation.
55604
55605         Make GNU make output nicer.
55606         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55607         MAKECMDGOALS to enforce message for all command line targets.  Set
55608         srcdir for use in maint.mk.
55609
55610         Another maintainer tweak.
55611         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55612         a target that regenerates version.
55613
55614 2008-04-03  Jim Meyering  <meyering@redhat.com>
55615
55616         vc-list-files: don't cause coreutils "make po-check" failure
55617         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55618
55619 2008-04-03  Eric Blake  <ebb9@byu.net>
55620
55621         Allow VPATH usage of vc-list-files.
55622         * build-aux/vc-list-files (scriptversion): Add timestamp.
55623         (options): Add --help, --version, -C.
55624         (CVS): Support installed cvsu.
55625
55626 2008-04-02  Bruno Haible  <bruno@clisp.org>
55627
55628         Avoid some "statement with no effect" warnings from gcc.
55629         * tests/test-wctype.c (main): Explicitly ignore unused values.
55630         Reported by Jim Meyering.
55631
55632 2008-04-02  Jim Meyering  <meyering@redhat.com>
55633
55634         Avoid some warnings from "gcc -Wshadow".
55635         * tests/test-frexp.c (exp): Define to a different identifier.
55636         * tests/test-frexpl.c (exp): Likewise.
55637
55638 2008-04-03  Jim Meyering  <meyering@redhat.com>
55639
55640         bootstrap: remove dangling *.[ch] symlinks from lib
55641         * build-aux/bootstrap [dangling symlink removal]: Move find's
55642         -depth option to precede all others, to avoid a warning.
55643         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55644
55645 2008-04-02  Bruno Haible  <bruno@clisp.org>
55646
55647         Avoid some warnings from "gcc -Wshadow".
55648         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55649         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55650         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55651         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55652         Reported by Jim Meyering.
55653
55654 2008-04-01  Bruno Haible  <bruno@clisp.org>
55655
55656         Fix test to work on IRIX 6.5 with cc.
55657         * tests/test-math.c (numeric_equal): New function.
55658         (main): Use it.
55659
55660 2008-04-01  Bruno Haible  <bruno@clisp.org>
55661
55662         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55663
55664 2008-04-01  Bruno Haible  <bruno@clisp.org>
55665
55666         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55667         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55668         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55669         (Depends-on): Remove math.
55670
55671         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55672         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55673         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55674         (Depends-on): Remove math.
55675
55676         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55677         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55678         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55679         (Depends-on): Remove math.
55680         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55681         (Depends-on): Remove math.
55682
55683         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55684         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55685         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55686         (Depends-on): Remove math.
55687         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55688         (Depends-on): Remove math.
55689
55690         * tests/test-round1.c: Include nan.h.
55691         (main): Use NaNd instead of NAN.
55692         * modules/round-tests (Files): Add tests/nan.h.
55693
55694         * tests/test-trunc1.c: Include nan.h.
55695         (main): Use NaNd instead of NAN.
55696         * modules/trunc-tests (Files): Add tests/nan.h.
55697
55698         * tests/test-roundf1.c: Include nan.h.
55699         (main): Use NaNf instead of NAN.
55700         * modules/roundf-tests (Files): Add tests/nan.h.
55701
55702         * tests/test-truncf1.c: Include nan.h.
55703         (main): Use NaNf instead of NAN.
55704         * modules/truncf-tests (Files): Add tests/nan.h.
55705
55706         * tests/test-ceilf1.c: Include nan.h.
55707         (main): Use NaNf instead of NAN.
55708         * modules/ceilf-tests (Files): Add tests/nan.h.
55709
55710         * tests/test-floorf1.c: Include nan.h.
55711         (main): Use NaNf instead of NAN.
55712         * modules/floorf-tests (Files): Add tests/nan.h.
55713
55714         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55715         (main): Use NaNf instead of NAN.
55716         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55717
55718         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55719         (main): Use NaNd instead of NAN.
55720         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55721
55722         * tests/test-frexp.c: Include nan.h.
55723         (main): Use NaNd instead of NAN.
55724         * modules/frexp-tests (Files): Add tests/nan.h.
55725
55726         * lib/isnan.c: Don't include <math.h>.
55727         (FUNC): Don't use NAN macro.
55728         * modules/isnand-nolibm (Depends-on): Remove math.
55729         * modules/isnanf-nolibm (Depends-on): Remove math.
55730         * modules/isnanl (Depends-on): Remove math.
55731         * modules/isnanl-nolibm (Depends-on): Remove math.
55732
55733         * tests/nan.h: New file.
55734
55735 2008-04-01  Eric Blake  <ebb9@byu.net>
55736
55737         Fix typos.
55738         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55739         values to be the right type.
55740
55741         For now, cater to gnulib strtod inaccuracies.
55742         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55743         fractional results.  While not as nice from a QoI perspective, it
55744         is a quicker patch than correctly implementing decimal to binary
55745         rounding.
55746
55747 2008-03-31  Eric Blake  <ebb9@byu.net>
55748
55749         Guarantee a definition of NAN.
55750         * lib/math.in.h (NAN): Define if missing.
55751         * tests/test-math.c (main): Test it.
55752         * doc/posix-headers/math.texi (math.h): Document this.
55753         * lib/isnan.c (rpl_isnand): Use it.
55754         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55755         * tests/test-floorf1.c (NaN): Likewise.
55756         * tests/test-frexp.c (NaN): Likewise.
55757         * tests/test-isnand.c (NaN): Likewise.
55758         * tests/test-isnanf.c (NaN): Likewise.
55759         * tests/test-round1.c (NaN): Likewise.
55760         * tests/test-roundf1.c (NaN): Likewise.
55761         * tests/test-snprintf-posix.h (NaN): Likewise.
55762         * tests/test-sprintf-posix.h (NaN): Likewise.
55763         * tests/test-trunc1.c (NaN): Likewise.
55764         * tests/test-truncf1.c (NaN): Likewise.
55765         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55766         * tests/test-vasprintf-posix.c (NaN): Likewise.
55767         * modules/isnand-nolibm (Depends-on): Add math.
55768         * modules/isnanf-nolibm (Depends-on): Likewise.
55769         * modules/isnanl (Depends-on): Likewise.
55770         * modules/isnanl-nolibm (Depends-on): Likewise.
55771         * modules/snprintf-posix-tests (Depends-on): Likewise.
55772         * modules/sprintf-posix-tests (Depends-on): Likewise.
55773         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55774         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55775         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55776         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55777
55778 2008-03-31  Bruno Haible  <bruno@clisp.org>
55779
55780         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55781         * doc/posix-functions/strtod.texi: Likewise.
55782
55783 2008-03-31  Bruno Haible  <bruno@clisp.org>
55784
55785         * tests/test-strtod.c (main): Don't use C99 syntax.
55786
55787 2008-03-31  Bruno Haible  <bruno@clisp.org>
55788
55789         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55790         Reported by Eric Blake.
55791
55792 2008-03-31  Jim Meyering  <meyering@redhat.com>
55793
55794         Don't compare actual signbit return values.
55795         * tests/test-strtod.c (main): Rather, compare only their
55796         zero/non-zero nature.
55797
55798 2008-03-31  Eric Blake  <ebb9@byu.net>
55799
55800         More strtod documentation.
55801         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55802         failures as distinct bugs.
55803
55804 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55807         Problem reported by Erik Benada in
55808         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55809
55810 2008-03-30  Bruno Haible  <bruno@clisp.org>
55811
55812         * tests/test-strtod.c: Add comments about which assertion fails on which
55813         platform.
55814         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55815
55816 2008-03-30  Eric Blake  <ebb9@byu.net>
55817
55818         Test signbit behavior on zeros.
55819         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55820         (test_signbitd, test_signbitl): Likewise.
55821
55822         More strtod touchups.
55823         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55824         sign of negative underflow, for now.  Use .5, not .1.
55825         * doc/posix-functions/strtod.texi (strtod): Mention these
55826         limitations.
55827         Reported by Jim Meyering.
55828
55829 2008-03-30  Bruno Haible  <bruno@clisp.org>
55830
55831         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55832         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55833
55834 2008-03-30  Bruno Haible  <bruno@clisp.org>
55835
55836         Avoid failure when attempting to return empty iconv results on some
55837         platforms.
55838         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55839         allocation, don't report ENOMEM when the resulting string is empty.
55840
55841 2008-03-30  Bruno Haible  <bruno@clisp.org>
55842
55843         Fix buffer overrun.
55844         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55845         Don't consider the width for tmp_length. Check count against tmp_length
55846         before doing the padding. Ensure enough allocation during padding.
55847
55848 2008-03-30  Eric Blake  <ebb9@byu.net>
55849
55850         strtod touchups.
55851         * lib/strtod.c (strtod): Avoid compiler warnings.
55852         Reported by Jim Meyering.
55853
55854 2008-03-30  Bruno Haible  <bruno@clisp.org>
55855
55856         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55857         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55858         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55859         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55860         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55861         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55862         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55863         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55864
55865         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55866         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55867         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55868         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55869         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55870         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55871         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55872         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55873
55874         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55875         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55876         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55877         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55878         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55879         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55880         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55881         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55882
55883         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55884         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55885
55886         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55887         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55888
55889         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55890         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55891
55892         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55893         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55894         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55895
55896         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55898         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55899
55900         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55901         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55902         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55903
55904         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55905         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55906         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55907
55908         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55909         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55911         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55912         (Depends-on): Add EOVERFLOW.
55913         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55914         (Depends-on): Add EOVERFLOW.
55915         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55916         (Depends-on): Add EOVERFLOW.
55917         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55918         (Depends-on): Add EOVERFLOW.
55919         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55920         (Depends-on): Add EOVERFLOW.
55921         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55922         (Depends-on): Add EOVERFLOW.
55923         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55924         (Depends-on): Add EOVERFLOW.
55925         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55926         (Depends-on): Add EOVERFLOW.
55927
55928         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55930         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55931
55932         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55934         * modules/snprintf (Depends-on): Add EOVERFLOW.
55935
55936         * lib/poll.c (EOVERFLOW): Remove fallback.
55937         * modules/poll (Depends-on): Add EOVERFLOW.
55938
55939         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55940         * modules/getugroups (Depends-on): Add EOVERFLOW.
55941
55942         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55943         * modules/getdelim (Depends-on): Add EOVERFLOW.
55944
55945         * lib/ftell.c (EOVERFLOW): Remove fallback.
55946         * modules/ftell (Depends-on): Add EOVERFLOW.
55947
55948         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55949         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55950         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55951
55952         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55953
55954         * modules/EOVERFLOW-tests: New file.
55955         * tests/test-EOVERFLOW.c: New file.
55956
55957         * modules/EOVERFLOW: New file.
55958         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55959
55960 2008-03-30  Bruno Haible  <bruno@clisp.org>
55961
55962         Fix bug introduced on 2007-06-10.
55963         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55964         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55965
55966 2008-03-30  Bruno Haible  <bruno@clisp.org>
55967
55968         Improve freadseek's efficiency after ungetc.
55969         * lib/freadseek.c: Include freadahead.h.
55970         (freadptrinc): New function, extracted from freadseek.
55971         (freadseek): Use it in a loop. Use freadahead to determine the number
55972         of loop iterations.
55973         * modules/freadseek (Depends-on): Add freadahead.
55974         (configure.ac): Require AC_C_INLINE.
55975
55976 2008-03-30  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/freadseek.c (freadseek): Don't ignore the return value of
55979         freadptr.
55980
55981 2008-03-29  Eric Blake  <ebb9@byu.net>
55982
55983         Add hex float support.
55984         * modules/strtod (Depends-on): Add c-ctype.
55985         (Link): Mention POW_LIB.
55986         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55987         whitespace between 'e' and exponent.
55988         * tests/test-strtod.c (main): Enable hex float tests.
55989         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55990         now provides.
55991
55992         Document various strtod bugs, with some fixes.
55993         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55994         "-0x", "inf", "nan", and hex constants.
55995         * doc/posix-functions/atof.texi (atof): Likewise.
55996         * modules/stdlib (Makefile.am): Support strtod.
55997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55998         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55999         detect additional strtod bugs.
56000         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56001         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56002         bool where appropriate.  Parse 'inf' and 'nan'.
56003         * tests/test-strtod.c: New file.
56004         * modules/strtod (Depends-on): Add stdbool, stdlib.
56005         (configure.ac): Turn on module indicator.
56006         * modules/strtod-tests: New module.
56007
56008 2008-03-29  Eric Blake  <ebb9@byu.net>
56009
56010         Fix ftell on mingw.
56011         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56012         * modules/ftell-tests (Depends-on): Add binary-io.
56013         * modules/ftello-tests (Depends-on): Likewise.
56014         * tests/test-ftell.c (main): Enhance test to cover behavior after
56015         ungetc.  Enforce binary mode.
56016         * tests/test-ftello.c (main): Likewise.
56017
56018         Pass test-freadseek on cygwin.
56019         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56020         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56021         ungetc buffer.
56022
56023         * tests/test-fflush2.c (main): Fix typo.
56024
56025 2008-03-29  Bruno Haible  <bruno@clisp.org>
56026
56027         * tests/test-fflush2.c (main): Temporarily disable the contents of
56028         this test.
56029         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56030         Reported by Eric Blake.
56031
56032 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56033
56034         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56035         (GC_SHA224_DIGEST_SIZE): Add.
56036
56037         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56038         (gc_hash_digest_length): Likewise.
56039         (gc_hash_buffer): Likewise.
56040
56041 2008-03-25  Bruno Haible  <bruno@clisp.org>
56042
56043         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56044         detail which gettext release to use.
56045         Reported by Simon Josefsson.
56046
56047 2008-03-26  Jim Meyering  <meyering@redhat.com>
56048
56049         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56050         * modules/gnumakefile (clean-GNUmakefile): Also, use
56051         test ... && ... || : syntax rather than if-then ... fi.
56052
56053         gnumakefile: Don't double-quote-expand $(VPATH) value.
56054         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56055
56056 2008-03-24  Eric Blake  <ebb9@byu.net>
56057
56058         Alter GNUmakefile to install into top directory.
56059         * modules/maintainer-makefile: Split, and add dependency...
56060         * modules/gnumakefile: to this new module.
56061         * build-aux/GNUmakefile: Move...
56062         * top/GNUmakefile: ...here.
56063         * build-aux/maint.mk: Move...
56064         * top/maint.mk: ...here.
56065         * MODULES.html.sh (Support for maintaining...): Document new
56066         module.
56067
56068 2008-03-23  Bruno Haible  <bruno@clisp.org>
56069
56070         * gnulib-tool: New options --vc-files, --no-vc-files.
56071         (func_usage): Document them.
56072         (vc_files): New variable.
56073         (func_import): Consider vc_files.
56074         (func_create_testdir): Set vc_files to empty.
56075         Suggested by Jim Meyering and Karl Berry.
56076
56077 2008-03-23  Bruno Haible  <bruno@clisp.org>
56078
56079         Fix regex compilation error on HP-UX 11.
56080         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56081         * modules/regex (Files): Add m4/mbstate_t.m4.
56082         Reported by Ton Voon <ton.voon@altinity.com>.
56083
56084 2008-03-23  Bruno Haible  <bruno@clisp.org>
56085
56086         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56087
56088 2008-03-23  Eric Blake  <ebb9@byu.net>
56089             Bruno Haible  <bruno@clisp.org>
56090
56091         Install files from top/ in the destination directory.
56092         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56093         augmentation also for the files from top/.
56094         (func_import, func_create_testdir): Rewrite file names:
56095         top/filename -> filename.
56096
56097 2008-03-23  Bruno Haible  <bruno@clisp.org>
56098
56099         Tweak "gnulib --version" output.
56100         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56101
56102 2008-03-23  Bruno Haible  <bruno@clisp.org>
56103
56104         Tweak "gnulib --version" output.
56105         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56106         rather than contents of ChangeLog, when possible.
56107
56108 2008-03-21  Eric Blake  <ebb9@byu.net>
56109
56110         More --version tweaks.
56111         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56112         date of last ChangeLog entry.
56113
56114 2008-03-21  Jim Meyering  <meyering@redhat.com>
56115
56116         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56117
56118 2008-03-20  Eric Blake  <ebb9@byu.net>
56119
56120         VPATH fix.
56121         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56122
56123 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56124
56125         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56126         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56127
56128 2008-03-20  Eric Blake  <ebb9@byu.net>
56129
56130         Sync GNUmakefile with coreutils.
56131         * build-aux/GNUmakefile (have-Makefile): Rename...
56132         (_have-Makefile): ...to this, for namespace consideration.
56133         (GNUmakefile.cfg): Include, if present.
56134         (_autoreconf): Define a default.
56135         (_is-dist-target): New rule for rebuilds to pick up intra-release
56136         version.
56137         (maint-cfg.mk): Rename...
56138         (cfg.mk): ...to this.
56139
56140 2008-03-18  Jim Meyering  <meyering@redhat.com>
56141
56142         New script and module: mktempd
56143         * MODULES.html.sh (maint+release support): Add mktempd.
56144         * build-aux/mktempd: New file.
56145         * modules/mktempd: New file.
56146
56147 2008-03-15  Jim Meyering  <meyering@redhat.com>
56148
56149         Undo last change.
56150         * lib/sha1.c, lib/md5.c: 63 != ~63.
56151         Reported by Andreas Schwab.
56152
56153         sha1.c, md5.c: Hoist a redundant expression.
56154         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56155         "ctx->buflen" only once, before calling *_process_block.
56156         * lib/md5.c (md5_process_bytes): Likewise.
56157
56158 2008-03-14  Eric Blake  <ebb9@byu.net>
56159
56160         Bump copyright year in files generated by gnulib-tool.
56161         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56162         gnulib-tool, rather than hard-coding it.
56163
56164         Fix 'gnulib-tool --version' output to work with git.
56165         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56166         (startup): ...here.
56167         (func_version): Use it to invoke git-version-gen, rather than
56168         relying on CVS keyword expansion.  Modernize wording.
56169         (cvsdatestamp, last_checkin_date, version): Kill unused
56170         variables.
56171
56172 2008-03-12  Jim Meyering  <meyering@redhat.com>
56173
56174         Recognize optional cast of the argument to free.
56175         * build-aux/useless-if-before-free: Update regexps.
56176
56177         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56178
56179 2008-03-11  Bruno Haible  <bruno@clisp.org>
56180
56181         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56182         by a single package.
56183         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56184         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56185         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56186         Reported by Sam Steingold <sds@gnu.org>.
56187
56188 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56189
56190         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56191         repositories.
56192
56193 2008-03-11  Bruno Haible  <bruno@clisp.org>
56194
56195         Avoid conflicts between local macro definitions.
56196         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56197         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56198
56199 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56200             Bruno Haible  <bruno@clisp.org>
56201
56202         Make va_copy work with some version of xlc on AIX 5.1.
56203         * lib/stdarg.in.h: New file.
56204         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56205         On AIX, use a <stdarg.h> file substitute.
56206         * modules/stdarg (Files): Add lib/stdarg.in.h.
56207         (Depends-on): Add include_next.
56208         (Makefile.am): Build a stdarg.h substitute if requested.
56209         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56210
56211 2008-03-10  Bruno Haible  <bruno@clisp.org>
56212
56213         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56215         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56216
56217 2008-03-10  Bruno Haible  <bruno@clisp.org>
56218
56219         * modules/stdlib (Depends-on): Add include_next, remove
56220         absolute-header.
56221
56222 2008-03-09  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/freadahead.h (freadahead): Document more precisely.
56225         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56226         the sum of both buffer sizes.
56227         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56228         * NEWS: Document the change.
56229
56230 2008-03-09  Bruno Haible  <bruno@clisp.org>
56231
56232         Extend freadptr to return also the buffer size.
56233         * lib/freadptr.h (freadptr): Add sizep argument.
56234         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56235         (freadptr): Add sizep argument. Determine buffer size like freadahead
56236         does.
56237         * tests/test-freadptr.c: Don't include freadahead.h.
56238         (main): Adapt for new calling convention of freadptr.
56239         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56240         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56241         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56242         tests/test-freadptr2.sh.
56243         (Depends): Remove freadahead.
56244         (TESTS): Add test-freadptr2.sh.
56245         (check_PROGRAMS): Add test-freadptr2.
56246
56247 2008-03-09  Bruno Haible  <bruno@clisp.org>
56248
56249         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56250         Report and solution by Simon Josefsson.
56251
56252 2008-03-06  Bruno Haible  <bruno@clisp.org>
56253
56254         Make fflush after ungetc work on BSD platforms.
56255         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56256         * tests/test-fflush2.c: New file.
56257         * tests/test-fflush2.sh: New file.
56258         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56259         tests/test-fflush2.c.
56260         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56261         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56262
56263 2008-03-06  Eric Blake  <ebb9@byu.net>
56264
56265         Likewise for ftello.
56266         * modules/ftello (Dependencies): Add extensions.
56267         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56268
56269 2008-03-06  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/fseeko (Dependencies): Add extensions.
56272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56273         Needed on glibc systems.
56274
56275 2008-03-06  Bruno Haible  <bruno@clisp.org>
56276
56277         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56278         email address.
56279         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56280
56281 2008-03-06  Bruno Haible  <bruno@clisp.org>
56282
56283         * users.txt: Add libgnupdf.
56284
56285 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56286
56287         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56288         (Header File Substitutes, Function Substitutes,
56289         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56290         (Build robot for gnulib): Fix typo.
56291
56292 2008-03-06  Bruno Haible  <bruno@clisp.org>
56293
56294         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56295         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56296
56297 2008-03-06  Bruno Haible  <bruno@clisp.org>
56298
56299         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56300         * doc/gnulib.texi: Include it.
56301
56302 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56303
56304         * modules/func (License): Change license to unlimited; there was
56305         no LGPL parts in the module anyway.
56306
56307 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56308
56309         * modules/__func__: Renamed to modules/func.
56310         * modules/__func__-tests: Renamed to modules/func-tests.
56311         * tests/test-__func__.c: Renamed to tests/test-func.c.
56312         * m4/__func__.m4: Renamed to m4/func.m4.
56313         * doc/gnulib.texi (__func__): Section renamed to func.
56314         Suggested by Eric Blake <ebb9@byu.net>.
56315
56316 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56317
56318         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56319         about __func__.  Make example self-contained.  Suggested by Eric
56320         Blake <ebb9@byu.net>.
56321
56322         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56323         Suggested by Eric Blake <ebb9@byu.net>.
56324
56325 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56326
56327         * modules/__func__: New file.
56328         * modules/__func__-tests: New file.
56329         * tests/test-__func__.c: New file.
56330         * m4/__func__.m4: New file.
56331         * doc/gnulib.texi (__func__): Document __func__ module.
56332
56333 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56334
56335         * modules/byteswap (License): Re-license as LGPLv2+.
56336
56337 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56338
56339         * doc/Makefile: Add pdf target.
56340
56341 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56342
56343         * modules/inline (License): Use 'unlimited', since there are only
56344         *.m4 files in this module.
56345
56346 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56347             Bruno Haible  <bruno@clisp.org>
56348
56349         Add support for HP C 7.1 on OpenVMS 8.3.
56350         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56351
56352 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56353
56354         Update VMS specifics.
56355         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56356
56357 2008-03-02  Jim Meyering  <meyering@redhat.com>
56358
56359         Remove the last dependency on the "free" module.
56360         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56361         Reported by Bob Proulx.
56362
56363         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56364
56365         Remove useless "if" tests before free.  Deprecate "free" module.
56366         * doc/posix-functions/free.texi: Mention that this
56367         module is no longer useful.
56368         * modules/free (Notice): Say this module is obsolete.
56369         * modules/readutmp (Depends-on): Remove free.
56370         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56371         * lib/putenv.c (putenv): Likewise.
56372         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56373         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56374         * tests/test-c-strcasestr.c (main): Likewise.
56375         * tests/test-c-strstr.c (main): Likewise.
56376         * tests/test-mbscasestr1.c (main): Likewise.
56377         * tests/test-mbscasestr2.c (main): Likewise.
56378         * tests/test-mbsstr1.c (main): Likewise.
56379         * tests/test-mbsstr2.c (main): Likewise.
56380         * tests/test-memmem.c (main): Likewise.
56381         * tests/test-strcasestr.c (main): Likewise.
56382         * tests/test-striconv.c (main): Likewise.
56383         * tests/test-striconveh.c (main): Likewise.
56384         * tests/test-striconveha.c (main): Likewise.
56385         * tests/test-strstr.c (main): Likewise.
56386
56387         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56388
56389         bootstrap: sync from coreutils again
56390         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56391
56392 2008-03-01  Jim Meyering  <meyering@redhat.com>
56393
56394         bootstrap: sync from coreutils
56395         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56396         also when the target doesn't exist.
56397
56398 2008-03-01  Eric Blake  <ebb9@byu.net>
56399
56400         Fix bugs in last patch.
56401         * lib/memchr2.c (memchr2): Fix typo.
56402         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56403         extension.
56404         Reported by Bruce Korb.
56405
56406         New module 'memchr2'.
56407         * modules/memchr2: New file.
56408         * modules/memchr2-tests: Likewise.
56409         * lib/memchr2.h: Likewise.
56410         * lib/memchr2.c: Likewise, based on memchr.c.
56411         * tests/test-memchr2.c: New test.
56412         * MODULES.html.sh (String handling): Add memchr2.
56413
56414 2008-02-29  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/freadseek-tests: New file.
56417         * tests/test-freadseek.sh: New file.
56418         * tests/test-freadseek.c: New file.
56419
56420         New module 'freadseek'.
56421         * modules/freadseek: New file.
56422         * lib/freadseek.h: New file.
56423         * lib/freadseek.c: New file.
56424         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56425
56426 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56427
56428         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56429         wydawca.
56430
56431         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56432         program_invocation_name and program_invocation_short_name are
56433         present.
56434
56435 2008-02-28  Bruno Haible  <bruno@clisp.org>
56436
56437         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56438         * tests/test-freadptr.sh: Also test non-seekable stdin.
56439
56440 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56441
56442         * build-aux/bootstrap (source_base, m4_base)
56443         (doc_base, tests_base): New variables.
56444         (gnulib_tool_options): Do not hardcode base directories, use
56445         the above variables instead.
56446
56447 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56448
56449         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56450
56451 2008-02-28  Bruno Haible  <bruno@clisp.org>
56452
56453         * modules/freadptr-tests: New file.
56454         * tests/test-freadptr.sh: New file.
56455         * tests/test-freadptr.c: New file.
56456
56457         New module 'freadptr'.
56458         * modules/freadptr: New file.
56459         * lib/freadptr.h: New file.
56460         * lib/freadptr.c: New file.
56461         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56462
56463 2008-02-26  Karl Berry  <karl@freefriends.org>
56464
56465         Sync from Libtool:
56466         * libltdl/argz.c (argz_add, argz_count): New functions.
56467         * libltdl/argz.in.h: Declare them.
56468         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56469
56470 2008-02-22  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56473         is a pointer type.  Needed for HP-UX 10.
56474         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56475         * doc/posix-functions/gmtime_r.texi: Likewise.
56476         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56477
56478 2008-02-24  Bruno Haible  <bruno@clisp.org>
56479
56480         * modules/environ-tests: New file.
56481         * tests/test-environ.c: New file.
56482
56483         New module 'environ'.
56484         * modules/environ: New file.
56485         * lib/unistd.in.h (environ): New declaration.
56486         * m4/environ.m4: New file.
56487         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56488         after use.
56489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56490         HAVE_DECL_ENVIRON.
56491         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56492         HAVE_DECL_ENVIRON.
56493         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56494         wrong claim that 'environ' is missing on some systems.
56495         * modules/execute (Depends-on): Add environ.
56496         * lib/execute.c (environ): Remove fallback declaration.
56497         * modules/pipe (Depends-on): Add environ.
56498         * lib/pipe.c (environ): Remove fallback declaration.
56499         * modules/setenv (Depends-on): Add environ.
56500         * lib/setenv.c (environ): Remove fallback declaration.
56501         * modules/unsetenv (Depends-on): Add environ.
56502         * lib/unsetenv.c (environ): Remove fallback declaration.
56503         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56504         m4/environ.m4.
56505         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56506         (gl_PREREQ_UNSETENV): Likewise.
56507
56508 2008-02-24  Bruno Haible  <bruno@clisp.org>
56509
56510         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56511
56512 2008-02-20  Bob Proulx  <bob@proulx.com>
56513
56514         Enable use of older two part flavor 'git describe'.
56515         * build-aux/git-version-gen: If using the older two part flavor of
56516         git version then recreate the third part now present in the
56517         newer three part flavor of git describe.
56518
56519 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56520
56521         * lib/fts.c (fts_build): Typo correction to comment.
56522
56523 2008-02-17  Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56526         generating no-op conflicts.
56527
56528 2008-02-17  Bruno Haible  <bruno@clisp.org>
56529
56530         Speed up by 10%.
56531         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56532         result_entries, rather than an index-based loop.
56533
56534 2008-02-17  Bruno Haible  <bruno@clisp.org>
56535
56536         Speed up by 25%.
56537         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56538         'hashcode_cached'.
56539         (entry_create): New function.
56540         (entry_hashcode): Use the cached hashcode if possible.
56541         (read_changelog_file, try_split_merged_entry): Use entry_create.
56542
56543 2008-02-17  Bruno Haible  <bruno@clisp.org>
56544
56545         Speed up from O(n^2) to O(n) for long ChangeLog files.
56546         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56547         (read_changelog_file): Change implementation of entries_reversed list
56548         to rbtreehash.
56549         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56550
56551 2008-02-17  Bruno Haible  <bruno@clisp.org>
56552
56553         New option --split-merged-entry.
56554         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56555         (find_paragraph_end, try_split_merged_entry): New functions.
56556         (long_options): Add option --split-merged-entry.
56557         (usage): Document option --split-merged-entry.
56558         (main): Implement option --split-merged-entry.
56559         Reported by Eric Blake.
56560
56561 2008-02-17  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/git-merge-changelog.c: Include c-strstr.h.
56564         (main): Support the "git pull --rebase" situation.
56565         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56566         Reported by Eric Blake.
56567
56568 2008-02-16  Eric Blake  <ebb9@byu.net>
56569
56570         Avoid doubling \ in common case of "c-maybe" quoting style.
56571         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56572         eliding outer quotes.
56573         * lib/quotearg.h: Document this.
56574         * tests/test-quotearg.c (result_strings, inputs, results_g)
56575         (flag_results, locale_results): Test it by adding a new string to
56576         each test group.
56577         (compare_strings): Test new string.
56578
56579 2008-02-13  Eric Blake  <ebb9@byu.net>
56580
56581         Avoid trigraph quoting in default output.
56582         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56583         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56584         unless explicitly requested.
56585         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56586
56587 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56588
56589         Don't rely on signed integer overflowing to negative value.
56590         * lib/getugroups.c (getugroups): Include <limits.h>.
56591         Instead, compare against INT_MAX, and increment only if the test passes.
56592
56593 2008-02-13  Jim Meyering  <meyering@redhat.com>
56594         and Eric Blake  <ebb9@byu.net>
56595
56596         Avoid shadowing warning and compile errors on Linux.
56597         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56598         forwarding macros on Linux.
56599         (dcgettext): Define a stub, for Linux.
56600         (results_g, main): Avoid warnings.
56601
56602 2008-02-12  Eric Blake  <ebb9@byu.net>
56603
56604         Silence warning in last patch.
56605         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56606
56607         Quotearg part 4: add tests, fix c-maybe colon quoting.
56608         * lib/quotearg.h: Improve documentation.
56609         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56610         escapes when adding outer quotes.  When quoting trigraphs, use
56611         valid C notation.  When quoting NUL, omit extra characters if next
56612         character is not digit.  Alter prototype.
56613         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56614         callers.
56615         * modules/quotearg-tests: New module.
56616         * tests/test-quotearg.c: New test.
56617
56618 2008-02-07  Eric Blake  <ebb9@byu.net>
56619
56620         Quotearg part 3: add flag to control outer quote elision.
56621         * lib/quotearg.h (c_maybe_quoting_style): New style.
56622         (enum quoting_flags): Better documentation of flags.
56623         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56624         c-maybe style.
56625         (quotearg_buffer_restyled): Handle new flag to elide outer
56626         quotes.
56627
56628         Quotearg part 2: add flag that can control NUL elision.
56629         * lib/quotearg.h (set_quoting_flags): New prototype.
56630         * lib/quotearg.c (struct quoting_options): Add flag field.
56631         (set_quoting_flags): New function.
56632         (quotearg_buffer_restyled): Add flags parameter.
56633         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56634         (quotearg_n_options): Set the flag, since length cannot be
56635         returned.
56636         (quoting_options_from_style): Default flags correctly.
56637
56638         Quotearg part 1: more wrappers, restore quotearg_char state.
56639         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56640         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56641         (quotearg_colon_mem): New wrappers.
56642         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56643         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56644         functions.
56645         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56646         (quotearg_colon_mem): New functions.
56647
56648 2008-02-11  Bruno Haible  <bruno@clisp.org>
56649
56650         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56651         library in the current directory: it does not work with parallel make.
56652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56653
56654 2008-02-11  Bruno Haible  <bruno@clisp.org>
56655
56656         * .gitattributes: New file.
56657
56658 2008-02-11  Jim Meyering  <meyering@redhat.com>
56659
56660         useless-if-before-free: Fix reversed exit values.
56661         * build-aux/useless-if-before-free: Use correct values
56662         for EXIT_MATCH and EXIT_NO_MATCH.
56663
56664         * build-aux/useless-if-before-free: Close stdout carefully.
56665
56666 2008-02-10  Bruno Haible  <bruno@clisp.org>
56667
56668         New module 'git-merge-changelog'.
56669         * modules/git-merge-changelog: New file.
56670         * lib/git-merge-changelog.c: New file.
56671
56672 2008-02-10  Jim Meyering  <meyering@redhat.com>
56673
56674         useless-if-before-free: New option: --list (-l).
56675
56676         useless-if-before-free: Don't exit immediately upon open failure.
56677         * build-aux/useless-if-before-free: Exit 2 for errors.
56678         Upon failure to open a file, don't exit immediately.
56679         Rather, just warn and continue with any remaining files.
56680
56681 2008-02-10  Bruno Haible  <bruno@clisp.org>
56682
56683         New abstract list operation 'node_set_value'.
56684         * lib/gl_list.h (gl_list_node_set_value): New function.
56685         (struct gl_list_implementation): New field node_set_value.
56686         * lib/gl_list.c (gl_list_node_set_value): New function.
56687         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56688         (gl_array_list_implementation): Update.
56689         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56690         (gl_carray_list_implementation): Update.
56691         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56692         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56693         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56694         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56695         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56696         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56697         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56698         Update.
56699         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56700         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56701         (gl_sublist_list_implementation): Update.
56702
56703 2008-02-10  Bruno Haible  <bruno@clisp.org>
56704
56705         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56706         Needed when ELEMENT is #defined to 'some_type *'.
56707
56708 2008-02-10  Jim Meyering  <meyering@redhat.com>
56709
56710         New script and module: useless-if-before-free
56711         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56712         * build-aux/useless-if-before-free: New file.
56713         * modules/useless-if-before-free: New file.
56714
56715         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56716
56717         xstrtol_error: Fix typo.
56718         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56719         s/exit_failure/exit_status/.
56720
56721 2008-02-09  Jim Meyering  <meyering@redhat.com>
56722
56723         New script and module: gitlog-to-changelog
56724         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56725         * modules/gitlog-to-changelog: New file.
56726         * build-aux/gitlog-to-changelog: New file.
56727
56728 2008-02-08  Jim Meyering  <meyering@redhat.com>
56729
56730         Avoid two "parameter unused" warnings.
56731         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56732         Mark "st" as used.
56733
56734         Use "git COMMAND", not "git-COMMAND".
56735         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56736         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56737         * build-aux/git-version-gen: Use "git status", not "git-status".
56738
56739 2008-02-07  Bruno Haible  <bruno@clisp.org>
56740
56741         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56742         Avoids a crash on Windows Vista.
56743         Reported by Adam Strzelecki <ono@java.pl> via
56744         Simon Josefsson <simon@josefsson.org>.
56745
56746 2008-02-06  Bruno Haible  <bruno@clisp.org>
56747
56748         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56749         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56750         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56752         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56753         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56754         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56755         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56763         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56764         left-adjust flag.
56765         * tests/test-snprintf-posix.h (test_function): Likewise.
56766         * tests/test-sprintf-posix.h (test_function): Likewise.
56767         * tests/test-vasprintf-posix.c (test_function): Likewise.
56768         * doc/posix-functions/fprintf.texi: Update.
56769         * doc/posix-functions/printf.texi: Update.
56770         * doc/posix-functions/snprintf.texi: Update.
56771         * doc/posix-functions/sprintf.texi: Update.
56772         * doc/posix-functions/vfprintf.texi: Update.
56773         * doc/posix-functions/vprintf.texi: Update.
56774         * doc/posix-functions/vsnprintf.texi: Update.
56775         * doc/posix-functions/vsprintf.texi: Update.
56776         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56777
56778 2008-02-06  Bruno Haible  <bruno@clisp.org>
56779
56780         Fix bug introduced on 2008-01-26.
56781         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56782
56783 2008-02-06  Bruno Haible  <bruno@clisp.org>
56784
56785         Fix bug introduced on 2007-06-10.
56786         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56787         !NEED_PRINTF_FLAG_ZERO.
56788
56789 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56790
56791         getloadavg: use libperfstat on AIX5
56792         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56793
56794 2008-02-03  Bruno Haible  <bruno@clisp.org>
56795
56796         * lib/diffseq.h: Add comments about required #includes.
56797         Reported by Michael Biggs <gnulib@doubleplum.net>.
56798
56799 2008-02-01  Bruno Haible  <bruno@clisp.org>
56800
56801         * users.txt: Add gnuit.
56802
56803 2008-01-31  Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/md4.c (set_uint32): Mark as inline.
56806         * lib/md5.c (set_uint32): Likewise.
56807         * lib/sha1.c (set_uint32): Likewise.
56808         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56809         * m4/md5.m4 (gl_MD5): Likewise.
56810         * m4/sha1.m4 (gl_SHA1): Likewise.
56811
56812 2008-01-31  Jim Meyering  <meyering@redhat.com>
56813
56814         Use "sizeof VAR", rather than a literal "4".
56815         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56816         * lib/md4.c (md4_read_ctx): Likewise.
56817         * lib/sha1.c (sha1_read_ctx): Likewise.
56818
56819 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56820
56821         * tests/test-sha1.c: New file, based on test-md5.c.
56822
56823         * modules/crypto/sha1-tests: New file.
56824
56825 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56826
56827         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56828
56829 2008-01-31  Jim Meyering  <meyering@redhat.com>
56830
56831         Prefer "sizeof v" over the equivalent "4".
56832         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56833         * lib/md5.c (set_uint32): Likewise.
56834         * lib/sha1.c (set_uint32): Likewise.
56835
56836 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56837
56838         * lib/sha1.c (set_uint32): Mark function as static.
56839
56840 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56841
56842         md2: clarify comments to say that alignment is not required.
56843         * lib/md2.h: Remove warning about alignment in comment.
56844         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56845         never been required.
56846
56847 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56848
56849         md4: adapt alignment constraint fix from sha1.
56850         * lib/md4.c (set_uint32): New function, from sha1.c
56851         (md4_read_ctx): Use it.
56852         (md4_finish_ctx): Doc fix.
56853         * lib/md4.h: Doc fix.
56854
56855 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56856
56857         md5: adapt alignment constraint fix from sha1.
56858         * lib/md5.c (set_uint32): New function, from sha1.c
56859         (md5_read_ctx): Use it.
56860         (md5_finish_ctx): Doc fix.
56861         * lib/md5.h: Doc fix.
56862
56863 2008-01-30  Peter Palfrader  <weasel@debian.org>
56864
56865         sha1: remove the result buffer alignment constraint
56866         * lib/sha1.c (set_uint32): New function.
56867         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56868         constraint.
56869         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56870         * lib/sha1.h: Likewise.
56871
56872 2008-01-30  Andreas Schwab  <schwab@suse.de>
56873             Bruno Haible  <bruno@clisp.org>
56874
56875         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56876         correct definition of LDBL_MIN_EXP.
56877
56878 2008-01-30  Karl Berry  <karl@gnu.org>
56879
56880         * config/srclist-update: try to preserve x bit on updates.
56881         * config/srclistvars.sh: update for karl.
56882
56883 2008-01-29  Jim Meyering  <meyering@redhat.com>
56884
56885         vasnprintf.c: Avoid warning about unused label
56886         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56887         "overflow" label definition and associated code with the
56888         same cpp condition that guards the sole use of that label.
56889
56890 2008-01-26  Bruno Haible  <bruno@clisp.org>
56891
56892         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56893         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56894         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56895         * lib/isnanl-nolibm.h (isnanl): Likewise.
56896         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56897
56898 2008-01-26  Bruno Haible  <bruno@clisp.org>
56899
56900         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56901         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56902
56903 2008-01-26  Bruno Haible  <bruno@clisp.org>
56904
56905         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56906         GCC >= 4.0 built-in.
56907         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56908
56909 2008-01-26  Bruno Haible  <bruno@clisp.org>
56910
56911         Rename isnan, applicable to 'double' only, to isnand.
56912         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56913         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56914         (configure.ac): Update.
56915         (Include): Replace "isnan.h" with "isnand.h".
56916         * m4/isnand.m4: Renamed from m4/isnan.m4.
56917         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56918         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56919         instead of isnan.c.
56920         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56921         instead of HAVE_ISNAN_IN_LIBC.
56922         (isnand): Renamed from isnan.
56923         * lib/isnand.c: New file.
56924         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56925         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56926         (Makefile.am): Update.
56927         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56928         Include isnand.h instead of isnan.h.
56929         (main): Test isnand instead of isnan.
56930         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56931         isnan-nolibm.
56932         * modules/frexp (Depends-on): Likewise.
56933         * modules/frexp-tests (Depends-on): Likewise.
56934         * modules/frexp-nolibm (Depends-on): Likewise.
56935         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56936         * modules/isfinite (Depends-on): Likewise.
56937         * modules/round-tests (Depends-on): Likewise.
56938         * modules/signbit (Depends-on): Likewise.
56939         * modules/signbit-tests (Depends-on): Likewise.
56940         * modules/snprintf-posix (Depends-on): Likewise.
56941         * modules/sprintf-posix (Depends-on): Likewise.
56942         * modules/trunc-tests (Depends-on): Likewise.
56943         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56944         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56945         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56946         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56947         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56948         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56949         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56950         * modules/vasnprintf-posix (Depends-on): Likewise.
56951         * modules/vasprintf-posix (Depends-on): Likewise.
56952         * modules/vfprintf-posix (Depends-on): Likewise.
56953         * modules/vsnprintf-posix (Depends-on): Likewise.
56954         * modules/vsprintf-posix (Depends-on): Likewise.
56955         * lib/frexp.c: Include isnand.h instead of isnan.h.
56956         (ISNAN): Set to isnand instead of isnan.
56957         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56958         (gl_isfinited): Use isnand instead of isnan.
56959         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56960         (gl_signbitd): Use isnand instead of isnan.
56961         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56962         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56963         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56964         (main): Use isnand instead of isnan.
56965         * tests/test-round1.c: Include isnand.h.
56966         (main): Use isnand instead of isnan.
56967         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56968         (ISNAN): Set to isnand instead of isnan.
56969         * tests/test-trunc1.c: Include isnand.h.
56970         (main): Use isnand instead of isnan.
56971         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56972         (equal): Use isnand instead of isnan.
56973         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56974         isnand-nolibm.
56975         * NEWS: Mention the change.
56976
56977 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56978             Bruno Haible  <bruno@clisp.org>
56979
56980         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56981         the GCC builtins for signbits are present and set
56982         REPLACE_SIGNBIT_USING_GCC if so.
56983         * lib/math.in.h (signbit): Define using GCC builtins if
56984         REPLACE_SIGNBIT_USING_GCC is set.
56985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56986         REPLACE_SIGNBIT_USING_GCC.
56987         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56988
56989 2008-01-25  Jim Meyering  <meyering@redhat.com>
56990
56991         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56992         * lib/poll.c: Include <config.h>, not "config.h".
56993         * tests/test-getaddrinfo.c: Likewise.
56994
56995 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56996
56997         * modules/sockets-tests: New file.
56998
56999 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57000
57001         * modules/sockets: New module, can be used to call WSA_Startup and
57002         WSA_Cleanup when needed.
57003
57004         * lib/sockets.h, lib/sockets.c: New files.
57005
57006         * m4/sockets.m4: New file.
57007
57008         * tests/test-sockets.c: New file.
57009
57010 2008-01-19  Bruno Haible  <bruno@clisp.org>
57011
57012         * doc/posix-headers: Renamed from doc/headers.
57013         * doc/posix-functions: Renamed from doc/functions.
57014         * doc/gnulib.texi: Update.
57015
57016 2008-01-19  Bruno Haible  <bruno@clisp.org>
57017
57018         * doc/glibc-functions/strcasestr.texi: Include contents of
57019         doc/functions/strcasestr.texi, fixing the list of platforms.
57020         * doc/functions/strcasestr.texi: Remove file.
57021
57022 2008-01-19  Bruno Haible  <bruno@clisp.org>
57023
57024         * doc/glibc-functions/memmem.texi: Include contents of
57025         doc/functions/memmem.texi.
57026         * doc/functions/memmem.texi: Remove file.
57027
57028 2008-01-18  Bruno Haible  <bruno@clisp.org>
57029
57030         * doc/glibc-functions/*.texi: New files.
57031         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57032         to use the new files.
57033
57034 2008-01-17  Bruno Haible  <bruno@clisp.org>
57035
57036         * tests/test-gethostname.c (main): Fix printf statement.
57037
57038 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57039
57040         * modules/gethostname-tests: New file.
57041
57042         * tests/test-gethostname.c: New file.
57043
57044 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57045
57046         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57047         used by the UNAME case.  Reported by Bruno Haible
57048         <bruno@clisp.org>.
57049
57050 2008-01-17  Eric Blake  <ebb9@byu.net>
57051
57052         Convert c-strcasestr to be more efficient.
57053         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57054         (Depends-on): Add c-strcase, remove malloca, strnlen.
57055         * tests/test-c-strcasestr.c (main): Enhance test.
57056         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57057
57058 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57059
57060         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57061         Use it in creating po/Makevars.
57062
57063 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57064
57065         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57066         Applications that requires it should initialize libgcrypt
57067         manually.
57068
57069 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57070
57071         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57072
57073 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         Fix problem with getdate on mingw32 reported by Simon Josefsson
57076         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57077         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57078         tzname", when deciding whether to declare tzname.
57079         * lib/strftime.c (tzname): Likewise.
57080
57081 2008-01-15  Bruno Haible  <bruno@clisp.org>
57082
57083         Work around a MacOS X 10.5 bug in frexpl().
57084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57085         * doc/functions/frexpl.texi: Document the bug.
57086         Reported by Elias Pipping <pipping@gentoo.org>.
57087
57088 2008-01-14  Eric Blake  <ebb9@byu.net>
57089
57090         Touch up previous patch.
57091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57092         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57093
57094         Convert strcasestr module to use Two-Way algorithm.
57095         * modules/strcasestr-simple: New module, based on the old
57096         strcasestr, but with Two-Way rather than KMP.
57097         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57098         * lib/string.in.h (rpl_strcasestr): Declare.
57099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57100         performance.
57101         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57102         * modules/string (Makefile.am): Support strcasestr.
57103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57104         * modules/strcasestr-tests (Depends-on): Check for alarm.
57105         * tests/test-strcasestr.c: Augment test.
57106         * lib/str-two-way.h: Clean up stray macro.
57107         * NEWS: Document new module.
57108         * MODULES.html.sh (string handling): Likewise.
57109         * doc/functions/strcasestr.texi: New file.
57110         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57111         here, since it is not a POSIX function.
57112
57113 2008-01-14  Colin Watson  <cjwatson@debian.org>
57114             Bruno Haible  <bruno@clisp.org>
57115
57116         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57117         works fine; if not, set REPLACE_STRSIGNAL.
57118         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57120         REPLACE_STRSIGNAL.
57121         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57122         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57123         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57124
57125 2008-01-14  Bruno Haible  <bruno@clisp.org>
57126
57127         * modules/strsignal (Include): Change to <string.h>.
57128
57129 2008-01-14  Colin Watson  <cjwatson@debian.org>
57130
57131         * modules/argp (Notice): Add a notice recommending to change
57132         XGETTEXT_OPTIONS.
57133         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57134
57135 2008-01-13  Colin Watson  <cjwatson@debian.org>
57136
57137         * modules/strsignal-tests: New file.
57138         * tests/test-strsignal.c: New file.
57139
57140         * lib/strsignal.c: New file, from glibc with modifications.
57141         * lib/siglist.h: New file, from glibc with modifications.
57142         * lib/string.in.h (strsignal): New declaration.
57143         * m4/strsignal.m4: New file.
57144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57145         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57146         * modules/strsignal: New file.
57147         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57148         HAVE_DECL_STRSIGNAL.
57149
57150 2008-01-13  Bruno Haible  <bruno@clisp.org>
57151
57152         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57153         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57154         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57155         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57156
57157 2008-01-13  Bruno Haible  <bruno@clisp.org>
57158
57159         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57160         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57161         * lib/argp.h (__attribute__): Likewise.
57162         * lib/c-stack.c (__attribute__): Likewise.
57163         * lib/error.h (__attribute__): Likewise.
57164         * lib/fts.c (__attribute__): Likewise.
57165         * lib/openat.h (__attribute__): Likewise.
57166         * lib/stdio.in.h (__attribute__): Likewise.
57167         * lib/string.in.h (__attribute__): Likewise.
57168         * lib/utimens.c (__attribute__): Likewise.
57169         * lib/vasnprintf.h (__attribute__): Likewise.
57170         * lib/xalloc.h (__attribute__): Likewise.
57171         * lib/xprintf.h (__attribute__): Likewise.
57172         * lib/xstrtol.h (__attribute__): Likewise.
57173         * lib/xvasprintf.h (__attribute__): Likewise.
57174
57175 2008-01-12  Bruno Haible  <bruno@clisp.org>
57176
57177         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57178         * doc/glibc-headers/a.out.texi: New file.
57179         * doc/glibc-headers/aliases.texi: New file.
57180         * doc/glibc-headers/alloca.texi: New file.
57181         * doc/glibc-headers/ar.texi: New file.
57182         * doc/glibc-headers/argp.texi: New file.
57183         * doc/glibc-headers/argz.texi: New file.
57184         * doc/glibc-headers/byteswap.texi: New file.
57185         * doc/glibc-headers/crypt.texi: New file.
57186         * doc/glibc-headers/endian.texi: New file.
57187         * doc/glibc-headers/envz.texi: New file.
57188         * doc/glibc-headers/err.texi: New file.
57189         * doc/glibc-headers/error.texi: New file.
57190         * doc/glibc-headers/execinfo.texi: New file.
57191         * doc/glibc-headers/fpu_control.texi: New file.
57192         * doc/glibc-headers/fstab.texi: New file.
57193         * doc/glibc-headers/fts.texi: New file.
57194         * doc/glibc-headers/getopt.texi: New file.
57195         * doc/glibc-headers/ieee754.texi: New file.
57196         * doc/glibc-headers/ifaddrs.texi: New file.
57197         * doc/glibc-headers/libintl.texi: New file.
57198         * doc/glibc-headers/mcheck.texi: New file.
57199         * doc/glibc-headers/mntent.texi: New file.
57200         * doc/glibc-headers/obstack.texi: New file.
57201         * doc/glibc-headers/paths.texi: New file.
57202         * doc/glibc-headers/printf.texi: New file.
57203         * doc/glibc-headers/pty.texi: New file.
57204         * doc/glibc-headers/resolv.texi: New file.
57205         * doc/glibc-headers/shadow.texi: New file.
57206         * doc/glibc-headers/sysexits.texi: New file.
57207         * doc/glibc-headers/ttyent.texi: New file.
57208
57209 2008-01-12  Jim Meyering  <meyering@redhat.com>
57210
57211         announce-gen: emit Gnulib's git-based version string.
57212         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57213         New option --gnulib-version=V, where V is expected to be
57214         the output of running git describe in the gnulib directory.
57215         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57216         not useful, and plan to stop publishing an xdelta file with each
57217         coreutils release.
57218
57219         * build-aux/announce-gen: Also check for lzma-compressed files.
57220
57221 2008-01-11  Bruno Haible  <bruno@clisp.org>
57222
57223         * tests/test-memmem.c (main): Increase maximum allowed time.
57224         * tests/test-strstr.c (main): Likewise.
57225
57226 2008-01-11  Bruno Haible  <bruno@clisp.org>
57227
57228         * doc/functions/memmem.texi: Add more precisions about platforms.
57229         * doc/functions/strstr.texi: Likewise.
57230
57231 2008-01-10  Eric Blake  <ebb9@byu.net>
57232
57233         * m4/strstr.m4: Delete cruft from copy-n-paste.
57234         Reported by Bruno Haible.
57235
57236 2008-01-10  Bruno Haible  <bruno@clisp.org>
57237
57238         Make c-strstr rely on strstr.
57239         * lib/c-strstr.c: Don't include str-kmp.h.
57240         (c_strstr): Define in terms of strstr.
57241         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57242         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57243
57244 2008-01-10  Bruno Haible  <bruno@clisp.org>
57245
57246         * doc/gnulib.texi (String Functions in C Locale): New section.
57247         * doc/c-ctype.texi: New file.
57248         * doc/c-strcase.texi: New file.
57249         * doc/c-strcaseeq.texi: New file.
57250         * doc/c-strcasestr.texi: New file.
57251         * doc/c-strstr.texi: New file.
57252         * doc/c-strtod.texi: New file.
57253         * doc/c-strtold.texi: New file.
57254
57255 2008-01-10  Eric Blake  <ebb9@byu.net>
57256
57257         * lib/relocatable.h: Fix a comment.
57258
57259 2008-01-10  Eric Blake  <ebb9@byu.net>
57260
57261         Share two-way algorithm.
57262         * lib/str-two-way.h: New file, merged from...
57263         * lib/memmem.c: ...here...
57264         * lib/strstr.c: ...and here.
57265         * modules/memmem (Files): Use it.
57266         * modules/strstr (Files): Likewise.
57267
57268         Avoid quadratic strstr implementations.
57269         * lib/strstr.c: New file.
57270         * m4/strstr.m4: Likewise.
57271         * modules/strstr: Likewise.
57272         * modules/strstr-tests: Likewise.
57273         * tests/test-strstr.c: Likewise.
57274         * lib/string.in.h (rpl_strstr): Declare.
57275         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57277         * modules/string (Makefile.am): Likewise.
57278         * MODULES.html.sh (string handling): Mention new module.
57279         * doc/functions/strstr.texi (strstr): Document the bug.
57280
57281 2008-01-10  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/relocatable.h (relocate): State whether result is freshly
57284         allocated or not.
57285         * lib/relocatable.c (relocate): Return a freshly allocated string
57286         instead of a pointer to a privately held string.
57287         Reported by Sylvain Beucler <beuc@gnu.org>.
57288
57289 2008-01-10  Colin Watson  <cjwatson@debian.org>
57290
57291         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57292         s/S_ISNLK/S_ISLNK/.
57293
57294 2008-01-09  Bruno Haible  <bruno@clisp.org>
57295
57296         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57297         and other files.
57298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57299         if it's only a guess.
57300         * modules/memmem: Simplify by depending on memmem-simple.
57301
57302 2008-01-09  Bruno Haible  <bruno@clisp.org>
57303
57304         Work around OpenBSD 4.0 tdelete() bug.
57305         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57306         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57307         macros and don't redefine the enum values.
57308         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57309         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57310         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57311
57312 2008-01-09  Bruno Haible  <bruno@clisp.org>
57313
57314         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57315         (main): Don't perform the tests if setlocale did not install a UTF-8
57316         locale. Needed on OpenBSD 4.0.
57317         * modules/wcwidth-tests (Depends-on): Add localcharset.
57318
57319 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57322         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57323         * NEWS: announce this.
57324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57325
57326 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57327         and Eric Blake  <ebb9@byu.net>
57328
57329         Add memmem-simple module.
57330         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57331         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57332         * modules/memmem-simple: New file.
57333         * modules/memmem (Description): Tweak.
57334         * MODULES.html.sh (string handling): Mention new module.
57335         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57336         addressed by memmem-simple.
57337         * NEWS: Document the difference.
57338
57339 2008-01-09  Eric Blake  <ebb9@byu.net>
57340
57341         Give gcc some memmem optimization hints.
57342         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57343         (strcasestr): Declare as pure.
57344         * modules/memmem (Maintainer): Claim my implementation.
57345
57346 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57347
57348         Support AIX 6.1 and higher.
57349         * build-aux/config.libpath: Likewise.
57350         * build-aux/config.rpath: Likewise.
57351
57352 2008-01-08  Jim Meyering  <meyering@redhat.com>
57353             Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57356         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57357         Reported by Peter Fales in
57358         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57359
57360 2008-01-08  Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/unictype/category-of (Depends-on): Add
57363         unictype/category-none.
57364         * modules/unictype/category-and-tests (Depends-on): Add
57365         unictype/category-{L,N,Lu,Nd}.
57366         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57367         * modules/unictype/category-or-tests (Depends-on): Add
57368         unictype/category-{L,N}.
57369         * modules/unictype/category-name-tests (Depends-on): Add
57370         unictype/category-{Z,Nl}.
57371         Reported by Simon Josefsson.
57372
57373 2008-01-08  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57376         convention better.
57377         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57378         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57379         Reported by Peter Miller <millerp@canb.auug.org.au>.
57380
57381 2008-01-08  Eric Blake  <ebb9@byu.net>
57382
57383         Rewrite memmem to guarantee linear complexity without malloc.
57384         * lib/memmem.c (memmem): Use Two-Way rather than
57385         Knuth-Morris-Pratt, to allow O(1) space usage.
57386         (critical_factorization, two_way_short_needle)
57387         (two_way_long_needle): New functions.
57388         (knuth_morris_pratt): Delete.
57389         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57390         Add stdint.
57391         * tests/test-memmem.c (main): Add tests for periodic needle and
57392         sublinear performance.
57393         * doc/functions/memmem.texi (memmem): Document other deficiencies
57394         in cygwin and older glibc.
57395
57396 2008-01-08  Bruno Haible  <bruno@clisp.org>
57397
57398         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57399         augmentation.
57400
57401 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57402
57403         Add a configure time option: --disable-acl.
57404         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57405         AC_ARG_ENABLE(acl).
57406
57407 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57408
57409         * tests/test-localename.c: Don't include obsolete "setenv.h".
57410
57411         * modules/localename-tests (Depends-on): Need unsetenv.
57412
57413 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57414
57415         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57416
57417 2008-01-06  Colin Watson  <cjwatson@debian.org>
57418
57419         * users.txt: Add man-db.
57420
57421 2008-01-07  Bruno Haible  <bruno@clisp.org>
57422
57423         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57424         previous section name.
57425
57426 2008-01-07  Bruno Haible  <bruno@clisp.org>
57427
57428         * lib/progname.c (set_program_name): Don't strip off a leading
57429         "lt-" prefix outside a .libs directory.
57430         Suggested by Paul Eggert.
57431
57432 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57433             Bruno Haible  <bruno@clisp.org>
57434
57435         Improve memory cleanup in 'relocatable' module.
57436         * lib/relocatable.h (compute_curr_prefix): Change return type to
57437         'char *'.
57438         * lib/relocatable.c (compute_curr_prefix): Change return type to
57439         'char *'. Free curr_installdir after use.
57440         (relocate): Free curr_prefix_better after use.
57441         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57442
57443 2008-01-01  Bruno Haible  <bruno@clisp.org>
57444
57445         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57446         failure on older glibc systems.
57447         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57448
57449 2008-01-05  Eric Blake  <ebb9@byu.net>
57450
57451         Avoid quadratic system memmem.
57452         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57453         Reported by Ralf Wildenhues.
57454
57455         Fix memmem test for mingw.
57456         * modules/memmem-tests (configure.ac): Check for alarm.
57457         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57458         it.
57459         * doc/functions/memmem.texi: New file.
57460         * doc/gnulib.texi (Function Substitutes): Add memmem.
57461         Reported by Bruno Haible.
57462
57463 2008-01-04  Bruno Haible  <bruno@clisp.org>
57464
57465         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57466         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57467         gl_HEADER_STRING_H_DEFAULTS.
57468
57469 2008-01-04  Eric Blake  <ebb9@byu.net>
57470
57471         Shorten duration of memmem test.
57472         * tests/test-memmem.c (main): Use alarm to declare failure if test
57473         is taking too long.
57474         Reported by Ralf Wildenhues.
57475
57476 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57477
57478         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57479         string, needed by strerror.
57480
57481 2008-01-03  Colin Watson  <cjwatson@debian.org>
57482             Bruno Haible  <bruno@clisp.org>
57483
57484         * doc/gnulib-tool.texi (Localization): New section.
57485
57486 2008-01-02  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57489         variables to 'unsigned char *' type.
57490         Reported by Paul Eggert.
57491
57492 2008-01-02  Jim Meyering  <jim@meyering.net>
57493
57494         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57495
57496 2007-12-31  Jim Meyering  <jim@meyering.net>
57497
57498         Avoid use of private FTS type name.
57499         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57500
57501 2007-12-30  Karl Berry  <karl@gnu.org>
57502
57503         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57504         work around defect in Texinfo and/or the standalone Info browser.
57505
57506 2007-12-30  Bruno Haible  <bruno@clisp.org>
57507
57508         Unify 5 copies of the KMP code.
57509         * lib/str-kmp.h: New file.
57510         * lib/c-strcasestr.c: Include str-kmp.h.
57511         (knuth_morris_pratt): Remove function.
57512         (c_strcasestr): Update.
57513         * lib/c-strstr.c: Include str-kmp.h.
57514         (knuth_morris_pratt): Remove function.
57515         (c_strcasestr): Update.
57516         * lib/mbscasestr.c: Include str-kmp.h.
57517         (knuth_morris_pratt_unibyte): Remove function.
57518         * lib/mbsstr.c: Include str-kmp.h.
57519         (knuth_morris_pratt_unibyte): Remove function.
57520         * lib/strcasestr.c: Include str-kmp.h.
57521         (knuth_morris_pratt): Remove function.
57522         (strcasestr): Update.
57523         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57524         * modules/c-strstr (Files): Likewise.
57525         * modules/mbscasestr (Files): Likewise.
57526         * modules/mbsstr (Files): Likewise.
57527         * modules/strcasestr (Files): Likewise.
57528         Suggested by Paul Eggert.
57529
57530 2007-12-30  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57533         defined.
57534
57535 2007-12-30  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/xmalloca.h: Include xalloc.h.
57538         (xnmalloca): New macro.
57539
57540 2007-12-30  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/malloca.h (nmalloca): New macro.
57543         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57544         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57545         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57546         knuth_morris_pratt_multibyte): Likewise.
57547         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57548         knuth_morris_pratt_multibyte): Likewise.
57549         * lib/memmem.c (knuth_morris_pratt): Likewise.
57550         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57551
57552 2007-12-25  Bruno Haible  <bruno@clisp.org>
57553
57554         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57555         * lib/glob.c: Don't include openat.h.
57556         (link_exists2_p): Add back the code that deals with the
57557         !GLOB_ALTDIRFUNC case.
57558         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57559         let it do the filename concatenation.
57560         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57561         * modules/glob (Depends-on): Remove openat.
57562
57563 2007-12-31  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/dirfd (License): Change to LGPLv2+.
57566         Approved by Jim Meyering.
57567
57568 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57571         when multiplying M by sizeof (size_t).
57572
57573 2007-12-10  Martin Lambers  <marlam@marlam.de>
57574
57575         Override getpagesize on mingw.
57576         * lib/getpagesize.c: New file.
57577         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57578         * modules/getpagesize (Files): Add lib/getpagesize.c.
57579         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57581         REPLACE_GETPAGESIZE.
57582         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57583
57584 2007-12-25  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/localcharset (Notice): New field.
57587         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57588         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57589
57590 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57591             Bruno Haible  <bruno@clisp.org>
57592
57593         Avoid using the syntax symbol() in formatted documentation.
57594         * MODULES.html.sh (func_module): When replacing symbol() with a
57595         hyperlink, remove the parentheses. Show an error if some remain.
57596         Recognize and render the '...' syntax.
57597         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57598         Rework. Add paragraph about GCC's inlining.
57599         * doc/alloca.texi: Likewise.
57600         * doc/error.texi: Remove parentheses from symbol reference.
57601         * doc/gnulib-intro.texi: Likewise.
57602         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57603         * modules/fnmatch (Description): Reword to say "the ... function".
57604         * modules/full-read (Description): Likewise.
57605         * modules/full-write (Description): Likewise.
57606         * modules/safe-read (Description): Likewise.
57607         * modules/safe-write (Description): Likewise.
57608         * modules/strchrnul (Description): Likewise.
57609         * modules/trim (Description): Likewise.
57610         * modules/error (Description): Remove parentheses from symbol
57611         references.
57612         * modules/verror (Description): Likewise.
57613         Reported by Karl Berry.
57614
57615 2007-12-25  Bruno Haible  <bruno@clisp.org>
57616
57617         Fixup after 2007-10-16 commit.
57618         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57619
57620 2007-12-24  Bruno Haible  <bruno@clisp.org>
57621
57622         Make --enable-relocatable work with DESTDIR.
57623         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57624         to compute installdir from destprog.
57625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57626         also set the RELOC_DESTDIR variable.
57627         Reported by Левашев Иван <octagram@bluebottle.com>.
57628
57629 2007-12-24  Bruno Haible  <bruno@clisp.org>
57630
57631         Fix link error due to xalloc_die().
57632         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57633         of xreadlink.
57634         * lib/relocwrapper.c: Update comments.
57635         * build-aux/install-reloc: Remove xreadlink.c from file list.
57636         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57637         xreadlink.c.
57638         Reported by Левашев Иван <octagram@bluebottle.com>.
57639
57640 2007-12-24  Bruno Haible  <bruno@clisp.org>
57641
57642         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57643         * lib/setenv.h: Remove file.
57644         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57645         lib/setenv.h.
57646         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57647         (Depends-on): Add stdlib.
57648         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57649         gl_FUNC_UNSETENV.
57650         (Include): Replace setenv.h with <stdlib.h>.
57651         * modules/unsetenv: New file.
57652         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57653         * lib/unsetenv.c: Include <stdlib.h> first.
57654         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57655         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57656         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57657         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57658         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57659         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57661         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57662         * doc/functions/unsetenv.texi: Update.
57663         * modules/xsetenv (Depends-on): Add unsetenv.
57664         * modules/getdate (Depends-on): Likewise.
57665         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57666         * lib/xsetenv.c: Don't include setenv.h.
57667         * lib/getdate.y: Likewise.
57668         * lib/relocwrapper.c: Likewise.
57669         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57670         (Depends-on): Add stdlib.
57671         * NEWS: Mention the changes.
57672         Reported by Левашев Иван <octagram@bluebottle.com>.
57673
57674 2007-12-23  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57677         indentation.
57678
57679 2007-12-23  Bruno Haible  <bruno@clisp.org>
57680
57681         * lib/c-strcasestr.c: Add more comments.
57682         * lib/c-strstr.c: Likewise.
57683         * lib/mbscasestr.c: Likewise.
57684         * lib/mbsstr.c: Likewise.
57685         * lib/strcasestr.c: Likewise.
57686         * lib/memmem.c: Likewise.
57687
57688 2007-12-23  Bruno Haible  <bruno@clisp.org>
57689
57690         * tests/test-memmem.c: Include <string.h> first.
57691
57692 2007-12-22  Bruno Haible  <bruno@clisp.org>
57693
57694         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57695         the contents of $testsbase.
57696         Reported by Ralf Wildenhues.
57697
57698 2007-12-22  Bruno Haible  <bruno@clisp.org>
57699
57700         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57701         two variables local_ldadd_before, local_ldadd_last.
57702
57703 2007-12-20  Eric Blake  <ebb9@byu.net>
57704
57705         Work around circular library issue when cross-compiling.
57706         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57707         that progname.o does not need to pull in rpl_memcmp.
57708
57709 2007-12-19  Eric Blake  <ebb9@byu.net>
57710
57711         Fix memmem to avoid O(n^2) worst-case complexity.
57712         * lib/memmem.c (knuth_morris_pratt): New function.
57713         (memmem): Use it if first few naive iterations fail.
57714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57715         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57716         * modules/memchr (License): Likewise.
57717         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57718         malloca.
57719         * tests/test-memmem.c: Rewrite, borrowing ideas from
57720         test-mbsstr1.c; the old version wouldn't even compile!
57721         * modules/memmem-tests: New file.
57722         * lib/string.in.h (rpl_memmem): Add declaration.
57723         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57725         REPLACE_MEMMEM.
57726
57727 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57728
57729         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57730         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57731         before any system include files, and undef after them all.  This
57732         should fix a problem on VMS reported by John E. Malmberg in
57733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57734
57735 2007-12-17  Eric Blake  <ebb9@byu.net>
57736
57737         Revert addition of verify, for BSD/OS.
57738         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57739         can't handle large files, for the sake of obsolete platforms.
57740         * modules/fseeko (Depends-on): Remove verify.
57741         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57742         * doc/functions/ftello.texi (ftello): Likewise.
57743         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57744         Reported by Larry Jones.
57745
57746 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57747
57748         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57749         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57750
57751 2007-12-17  Jim Meyering  <meyering@redhat.com>
57752
57753         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57754         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57755         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57756         * modules/getcwd (Depends-on): Add openat.
57757         Reported by Petr Salinger.
57758
57759 2007-12-17  Bruno Haible  <bruno@clisp.org>
57760
57761         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57762         avoid a segmentation fault of the configure test on x86_64 systems.
57763
57764 2007-12-15  Jim Meyering  <meyering@redhat.com>
57765
57766         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57767
57768 2007-12-13  Eric Blake  <ebb9@byu.net>
57769
57770         Another fseek test.
57771         * tests/test-fseek.c (main): Also test ungetc handling.
57772         * tests/test-fseeko.c (main): Likewise.
57773         * modules/fseeko (Depends-on): Add verify.
57774         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57775         large.
57776         Reported by Larry Jones.
57777
57778         Fix fseeko on mingw.
57779         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57780         seek.
57781
57782         Beef up fseek tests.
57783         * tests/test-fseek.c (main): Also test eof handling.
57784         * tests/test-fseeko.c (main): Likewise.
57785         Reported by Larry Jones.
57786
57787 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57788
57789         Fix fseeko on BSD-based platforms.
57790         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57791         successful seek.
57792
57793 2007-12-12  Eric Blake  <ebb9@byu.net>
57794
57795         Allow circular dependency of separate libtests.a
57796         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57797         when use_libtests.
57798
57799 2007-12-11  Eric Blake  <ebb9@byu.net>
57800
57801         Fix bug with -0.0L in previous patch.
57802         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57803         * tests/test-isnan.c (main): Also test on zeroes.
57804         * tests/test-isnanf.c (main): Likewise.
57805         * tests/test-isnanl.h (main): Likewise.
57806
57807         Detect pseudo-denormals on x86 even when cross-compiling.
57808         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57809         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57810         invalid bit patterns that happen to satisfy ==.
57811
57812         Avoid link failures with separate libtests.a.
57813         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57814         last, to satisfy circular dependencies.
57815
57816 2007-12-11  Eric Blake  <ebb9@byu.net>
57817         and Bruno Haible  <bruno@clisp.org>
57818
57819         Fix OpenBSD 4.0 <float.h> handling of long double.
57820         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57821         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57822         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57823
57824 2007-12-11  Jim Meyering  <meyering@redhat.com>
57825
57826         * users.txt: Add libvirt.
57827
57828         Support versions of autoconf prior to 2.59c.
57829         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57830         if it is not already defined.
57831
57832 2007-12-09  Bruno Haible  <bruno@clisp.org>
57833
57834         Let 'gnulib-tool --import' collect sources needed for the tests in
57835         tests/ rather than in lib/.
57836         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57837         argument. If true, add rules to generate libtests.a, and put libtests.a
57838         into $(LDADD). Consider source files in subdirectories and set
57839         uses_subdirs.
57840         (func_emit_initmacro_start, func_emit_initmacro_end,
57841         func_emit_initmacro_done): Pass all arguments explicitly.
57842         (func_import): Determine two module lists main_modules,
57843         testsrelated_modules. Determine use_libtests. Determine two variables
57844         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57845         instead of just sed_transform_lib_file. Determine two variables
57846         main_files and testsrelated_files. Compute 'files' as the union of
57847         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57848         func_add_or_update. In the generated gnulib-comp.m4, collect the
57849         object files for tests/ in different variables than those for lib/.
57850         Substitute LIBTESTS_LIBDEPS.
57851         (func_create_testdir): Combine the uses_subdirs results from
57852         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57853
57854 2007-12-09  Bruno Haible  <bruno@clisp.org>
57855
57856         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57857         the build-aux directory.
57858
57859 2007-12-09  Bruno Haible  <bruno@clisp.org>
57860
57861         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57862         introduced on 2006-09-09.
57863
57864 2007-12-07  Jim Meyering  <meyering@redhat.com>
57865
57866         Let these macros work also with autoconf-2.59.
57867         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57868         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57869         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57870
57871 2007-12-06  Jim Meyering  <meyering@redhat.com>
57872
57873         Avoid a configure-time syntax error in gl_FUNC_ACL.
57874         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57875         function in each branch, before testing the cache variable.
57876
57877 2007-12-04  Eric Blake  <ebb9@byu.net>
57878
57879         Make scripts executable.
57880         * build-aux/config.guess: Add execute permissions.
57881         * build-aux/config.sub: Likewise.
57882         * build-aux/gendocs.sh: Likewise.
57883
57884         Fix frexp on mingw.
57885         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57886         cross-compiling.
57887         * doc/functions/frexp.texi (frexp): Document the bug.
57888
57889         Make cygwin fseeko check more reliable.
57890         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57891         version numbers, rather than unrelated feature check.
57892         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57893         * doc/functions/ftello.texi (ftello): Likewise.
57894         Reported by Bruno Haible.
57895
57896         * m4/strerror.m4: Bump version number.
57897
57898 2007-12-03  Bruno Haible  <bruno@clisp.org>
57899
57900         * doc/functions/mprotect.texi: Mention the mingw problem.
57901
57902 2007-12-03  Eric Blake  <ebb9@byu.net>
57903
57904         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57905         REPLACE_STRERROR is initialized before this macro.
57906
57907 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57908
57909         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57910         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57911         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57912         put -lsec in even for programs other than 'ls'.  This fixes a problem
57913         for gettext reported by Bruno Haible in
57914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57915         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57916         Add support for Solaris 10.  This isn't efficient, but should get the
57917         job done for now.
57918
57919 2007-12-03  James Youngman  <jay@gnu.org>
57920
57921         * doc/regexprops-generic.texi: change "an close-group" to "a
57922         close-group" and "illegal" to "not allowed".
57923
57924 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57925
57926         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57927         pr_byname.h. Needed for the rare case when the maintainer has done
57928         "make maintainer-clean" in the source directory and then attempts a
57929         build outside the source directory.
57930         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57931         scripts_byname.h.
57932
57933 2007-12-02  Martin Lambers <marlam@marlam.de>
57934             Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/getpagesize.h: Remove file.
57937         * lib/unistd.in.h: Include declaration of getpagesize here.
57938         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57939         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57940         HAVE_SYS_PARAM_H.
57941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57942         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57943         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57944         (Depends-on): Add unistd.
57945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57946         (Include): Use <unistd.h> instead of getpagesize.h.
57947         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57948         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57949         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57950         gl_GETPAGESIZE invocation, already handled by module dependency.
57951         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57952
57953 2007-12-02  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/strings-tests: New file.
57956         * tests/test-strings.c: New file.
57957
57958         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57959         * lib/strings.in.h: New file.
57960         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57961         * m4/strings_h.m4: New file.
57962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57963         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57964         * modules/strings: New file.
57965         * modules/string (Makefile.am): Update.
57966         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57967         Reported by Karl Berry.
57968
57969 2007-12-01  Eric Blake  <ebb9@byu.net>
57970
57971         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57972         accomodate fix in cygwin 1.5.25.
57973
57974 2007-12-01  Jim Meyering  <meyering@redhat.com>
57975
57976         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57977         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57978         that would inhibit utf8-optimization of a regexp containing line-
57979         or buffer-anchors, e.g., `^', `$'.
57980
57981 2007-11-30  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57984         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57985         glthread_recursive_lock_init.
57986         * lib/lock.c (glthread_recursive_lock_init)
57987         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57989
57990 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         New function qset_acl, like set_acl but with syscall semantics.
57993         * lib/acl.h (qset_acl): New decl.
57994         * lib/acl.c (qset_acl): New function.
57995         (set_acl): Use new function.  Use more-consistent diagnostics.
57996
57997 2007-11-28  Jim Meyering  <meyering@redhat.com>
57998
57999         * modules/physmem (License): Change from GPL to LGPLv2+.
58000
58001 2007-11-26  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58004         'long double' type has excess precision.
58005         Reported by Jim Meyering in
58006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58007
58008 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58009
58010         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58011         Sync from <http://gnu.org/licenses>.
58012         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58013         with license text from same location.
58014         * doc/maintain.texi, doc/standards.texi:  Sync from
58015         <http://savannah.gnu.org/projects/gnustandards>.
58016
58017 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
58018         and Jim Meyering  <meyering@redhat.com>
58019
58020         Adjust getdate' grammar to accept a slightly more regular language.
58021         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58022         Before, the former was rejected.
58023         * lib/getdate.y (digits_to_date_time): New function, factored
58024         out of ...
58025         (number): ...here.  Just call digits_to_date_time.
58026         (hybrid): New non-terminal to handle an <unsigned number,
58027         signed relative offset> sequence consistently.
58028
58029 2007-11-18  Jim Meyering  <meyering@redhat.com>
58030
58031         Pull my changes from coreutils:
58032         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58033         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58034         use of $gnulib_tool_option_extras, so that it's separated from the
58035         preceding argument.
58036
58037         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58038         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58039         parent destination directories before copying a file into place.
58040
58041 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58042
58043         bootstrap: work also with 4-argument variant of AC_INIT
58044         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58045
58046 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58047
58048         Port test-getaddrinfo to Solaris.
58049         Problem reported by Bruno Haible in
58050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58051         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58052         explanation of setting 'hints'.
58053         Don't reject an implementation merely because it returns EAI_SERVICE.
58054         (EAI_SERVICE): Define to 0 if not defined.
58055
58056 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58057
58058         The license of gnu-make and posix-shell is now "GPLed build tool".
58059         * modules/gnu-make (License): Likewise.
58060         * modules/posix-shell (License): Likewise.
58061
58062         New module posix-shell, for determining a POSIX shell
58063         or perhaps something that is close enough to a POSIX shell.
58064         * m4/posix-shell.m4: New file.
58065         * modules/posix-shell: New file.
58066
58067         * MODULES.html.sh: Mention new module.
58068
58069         New module gnu-make, for determining whether we're using GNU Make.
58070         * m4/gnu-make.m4: New file.
58071         * modules/gnu-make: New file.
58072         * MODULES.html.sh: Mention new module.
58073
58074 2007-11-14  Jim Meyering  <meyering@redhat.com>
58075
58076         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58077         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58078         use this macro to create a function _definition_.
58079         Remove useless "#undef ARGMATCH_DIE".
58080
58081 2007-11-14  Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/config.charset: Update for OpenBSD 4.1.
58084         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58085
58086 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         Document 64-bit #if problems in stdint.texi.
58089         * doc/headers/stdint.texi (stdint.h): Mention problems with
58090         64-bit-#if, and how to work around them.
58091
58092         Don't insist on 'long long int' support in the preprocessor.  It
58093         breaks too many things.  For example, PRIdMAX still uses a 'long
58094         long int' format with the latest Sun compiler, even though
58095         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58096         preprocessor problem.  This causes the latest coreutils to dump
58097         core on Solaris 10 sparc with the Sun C compiler.
58098         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58099         the troublesome expressions at configure-time, not at #if-time.
58100         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58101         preprocessor.
58102         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58103         compile-time C checks, done at 'configure'-time.
58104         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58105         * modules/inttypes (Makefile): Substitute the new symbols that
58106         gl_INTTYPES_H now generates.
58107         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58108
58109 2007-11-12  Bruno Haible  <bruno@clisp.org>
58110
58111         Tests for Unicode character classification functions.
58112
58113         * modules/unictype/bidicategory-byname-tests: New file.
58114         * modules/unictype/bidicategory-name-tests: New file.
58115         * modules/unictype/bidicategory-of-tests: New file.
58116         * modules/unictype/bidicategory-test-tests: New file.
58117         * modules/unictype/block-list-tests: New file.
58118         * modules/unictype/block-of-tests: New file.
58119         * modules/unictype/block-test-tests: New file.
58120         * modules/unictype/category-C-tests: New file.
58121         * modules/unictype/category-Cc-tests: New file.
58122         * modules/unictype/category-Cf-tests: New file.
58123         * modules/unictype/category-Cn-tests: New file.
58124         * modules/unictype/category-Co-tests: New file.
58125         * modules/unictype/category-Cs-tests: New file.
58126         * modules/unictype/category-L-tests: New file.
58127         * modules/unictype/category-Ll-tests: New file.
58128         * modules/unictype/category-Lm-tests: New file.
58129         * modules/unictype/category-Lo-tests: New file.
58130         * modules/unictype/category-Lt-tests: New file.
58131         * modules/unictype/category-Lu-tests: New file.
58132         * modules/unictype/category-M-tests: New file.
58133         * modules/unictype/category-Mc-tests: New file.
58134         * modules/unictype/category-Me-tests: New file.
58135         * modules/unictype/category-Mn-tests: New file.
58136         * modules/unictype/category-N-tests: New file.
58137         * modules/unictype/category-Nd-tests: New file.
58138         * modules/unictype/category-Nl-tests: New file.
58139         * modules/unictype/category-No-tests: New file.
58140         * modules/unictype/category-P-tests: New file.
58141         * modules/unictype/category-Pc-tests: New file.
58142         * modules/unictype/category-Pd-tests: New file.
58143         * modules/unictype/category-Pe-tests: New file.
58144         * modules/unictype/category-Pf-tests: New file.
58145         * modules/unictype/category-Pi-tests: New file.
58146         * modules/unictype/category-Po-tests: New file.
58147         * modules/unictype/category-Ps-tests: New file.
58148         * modules/unictype/category-S-tests: New file.
58149         * modules/unictype/category-Sc-tests: New file.
58150         * modules/unictype/category-Sk-tests: New file.
58151         * modules/unictype/category-Sm-tests: New file.
58152         * modules/unictype/category-So-tests: New file.
58153         * modules/unictype/category-Z-tests: New file.
58154         * modules/unictype/category-Zl-tests: New file.
58155         * modules/unictype/category-Zp-tests: New file.
58156         * modules/unictype/category-Zs-tests: New file.
58157         * modules/unictype/category-and-not-tests: New file.
58158         * modules/unictype/category-and-tests: New file.
58159         * modules/unictype/category-byname-tests: New file.
58160         * modules/unictype/category-name-tests: New file.
58161         * modules/unictype/category-none-tests: New file.
58162         * modules/unictype/category-of-tests: New file.
58163         * modules/unictype/category-or-tests: New file.
58164         * modules/unictype/category-test-withtable-tests: New file.
58165         * modules/unictype/combining-class-tests: New file.
58166         * modules/unictype/ctype-alnum-tests: New file.
58167         * modules/unictype/ctype-alpha-tests: New file.
58168         * modules/unictype/ctype-blank-tests: New file.
58169         * modules/unictype/ctype-cntrl-tests: New file.
58170         * modules/unictype/ctype-digit-tests: New file.
58171         * modules/unictype/ctype-graph-tests: New file.
58172         * modules/unictype/ctype-lower-tests: New file.
58173         * modules/unictype/ctype-print-tests: New file.
58174         * modules/unictype/ctype-punct-tests: New file.
58175         * modules/unictype/ctype-space-tests: New file.
58176         * modules/unictype/ctype-upper-tests: New file.
58177         * modules/unictype/ctype-xdigit-tests: New file.
58178         * modules/unictype/decimal-digit-tests: New file.
58179         * modules/unictype/digit-tests: New file.
58180         * modules/unictype/mirror-tests: New file.
58181         * modules/unictype/numeric-tests: New file.
58182         * modules/unictype/property-alphabetic-tests: New file.
58183         * modules/unictype/property-ascii-hex-digit-tests: New file.
58184         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58185         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58186         * modules/unictype/property-bidi-block-separator-tests: New file.
58187         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58188         * modules/unictype/property-bidi-common-separator-tests: New file.
58189         * modules/unictype/property-bidi-control-tests: New file.
58190         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58191         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58192         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58193         * modules/unictype/property-bidi-european-digit-tests: New file.
58194         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58195         * modules/unictype/property-bidi-left-to-right-tests: New file.
58196         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58197         * modules/unictype/property-bidi-other-neutral-tests: New file.
58198         * modules/unictype/property-bidi-pdf-tests: New file.
58199         * modules/unictype/property-bidi-segment-separator-tests: New file.
58200         * modules/unictype/property-bidi-whitespace-tests: New file.
58201         * modules/unictype/property-byname-tests: New file.
58202         * modules/unictype/property-combining-tests: New file.
58203         * modules/unictype/property-composite-tests: New file.
58204         * modules/unictype/property-currency-symbol-tests: New file.
58205         * modules/unictype/property-dash-tests: New file.
58206         * modules/unictype/property-decimal-digit-tests: New file.
58207         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58208         * modules/unictype/property-deprecated-tests: New file.
58209         * modules/unictype/property-diacritic-tests: New file.
58210         * modules/unictype/property-extender-tests: New file.
58211         * modules/unictype/property-format-control-tests: New file.
58212         * modules/unictype/property-grapheme-base-tests: New file.
58213         * modules/unictype/property-grapheme-extend-tests: New file.
58214         * modules/unictype/property-grapheme-link-tests: New file.
58215         * modules/unictype/property-hex-digit-tests: New file.
58216         * modules/unictype/property-hyphen-tests: New file.
58217         * modules/unictype/property-id-continue-tests: New file.
58218         * modules/unictype/property-id-start-tests: New file.
58219         * modules/unictype/property-ideographic-tests: New file.
58220         * modules/unictype/property-ids-binary-operator-tests: New file.
58221         * modules/unictype/property-ids-trinary-operator-tests: New file.
58222         * modules/unictype/property-ignorable-control-tests: New file.
58223         * modules/unictype/property-iso-control-tests: New file.
58224         * modules/unictype/property-join-control-tests: New file.
58225         * modules/unictype/property-left-of-pair-tests: New file.
58226         * modules/unictype/property-line-separator-tests: New file.
58227         * modules/unictype/property-logical-order-exception-tests: New file.
58228         * modules/unictype/property-lowercase-tests: New file.
58229         * modules/unictype/property-math-tests: New file.
58230         * modules/unictype/property-non-break-tests: New file.
58231         * modules/unictype/property-not-a-character-tests: New file.
58232         * modules/unictype/property-numeric-tests: New file.
58233         * modules/unictype/property-other-alphabetic-tests: New file.
58234         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58235         * modules/unictype/property-other-grapheme-extend-tests: New file.
58236         * modules/unictype/property-other-id-continue-tests: New file.
58237         * modules/unictype/property-other-id-start-tests: New file.
58238         * modules/unictype/property-other-lowercase-tests: New file.
58239         * modules/unictype/property-other-math-tests: New file.
58240         * modules/unictype/property-other-uppercase-tests: New file.
58241         * modules/unictype/property-paired-punctuation-tests: New file.
58242         * modules/unictype/property-paragraph-separator-tests: New file.
58243         * modules/unictype/property-pattern-syntax-tests: New file.
58244         * modules/unictype/property-pattern-white-space-tests: New file.
58245         * modules/unictype/property-private-use-tests: New file.
58246         * modules/unictype/property-punctuation-tests: New file.
58247         * modules/unictype/property-quotation-mark-tests: New file.
58248         * modules/unictype/property-radical-tests: New file.
58249         * modules/unictype/property-sentence-terminal-tests: New file.
58250         * modules/unictype/property-soft-dotted-tests: New file.
58251         * modules/unictype/property-space-tests: New file.
58252         * modules/unictype/property-terminal-punctuation-tests: New file.
58253         * modules/unictype/property-test-tests: New file.
58254         * modules/unictype/property-titlecase-tests: New file.
58255         * modules/unictype/property-unassigned-code-value-tests: New file.
58256         * modules/unictype/property-unified-ideograph-tests: New file.
58257         * modules/unictype/property-uppercase-tests: New file.
58258         * modules/unictype/property-variation-selector-tests: New file.
58259         * modules/unictype/property-white-space-tests: New file.
58260         * modules/unictype/property-xid-continue-tests: New file.
58261         * modules/unictype/property-xid-start-tests: New file.
58262         * modules/unictype/property-zero-width-tests: New file.
58263         * modules/unictype/scripts-tests: New file.
58264         * modules/unictype/syntax-c-ident-tests: New file.
58265         * modules/unictype/syntax-c-whitespace-tests: New file.
58266         * modules/unictype/syntax-java-ident-tests: New file.
58267         * modules/unictype/syntax-java-whitespace-tests: New file.
58268         * tests/unictype/test-bidi_byname.c: New file.
58269         * tests/unictype/test-bidi_name.c: New file.
58270         * tests/unictype/test-bidi_of.c: New file.
58271         * tests/unictype/test-bidi_test.c: New file.
58272         * tests/unictype/test-block_list.c: New file.
58273         * tests/unictype/test-block_of.c: New file.
58274         * tests/unictype/test-block_test.c: New file.
58275         * tests/unictype/test-categ_and.c: New file.
58276         * tests/unictype/test-categ_and_not.c: New file.
58277         * tests/unictype/test-categ_byname.c: New file.
58278         * tests/unictype/test-categ_name.c: New file.
58279         * tests/unictype/test-categ_none.c: New file.
58280         * tests/unictype/test-categ_of.c: New file.
58281         * tests/unictype/test-categ_or.c: New file.
58282         * tests/unictype/test-categ_test_withtable.c: New file.
58283         * tests/unictype/test-combining.c: New file.
58284         * tests/unictype/test-decdigit.c: New file.
58285         * tests/unictype/test-digit.c: New file.
58286         * tests/unictype/test-mirror.c: New file.
58287         * tests/unictype/test-numeric.c: New file.
58288         * tests/unictype/test-pr_byname.c: New file.
58289         * tests/unictype/test-pr_test.c: New file.
58290         * tests/unictype/test-predicate-part1.h: New file.
58291         * tests/unictype/test-predicate-part2.h: New file.
58292         * tests/unictype/test-scripts.c: New file.
58293         * tests/unictype/test-sy_c_ident.c: New file.
58294         * tests/unictype/test-sy_java_ident.c: New file.
58295
58296         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58297         for Unicode 5.0.0.
58298         * tests/unictype/test-categ_Cc.c: Likewise.
58299         * tests/unictype/test-categ_Cf.c: Likewise.
58300         * tests/unictype/test-categ_Cn.c: Likewise.
58301         * tests/unictype/test-categ_Co.c: Likewise.
58302         * tests/unictype/test-categ_Cs.c: Likewise.
58303         * tests/unictype/test-categ_L.c: Likewise.
58304         * tests/unictype/test-categ_Ll.c: Likewise.
58305         * tests/unictype/test-categ_Lm.c: Likewise.
58306         * tests/unictype/test-categ_Lo.c: Likewise.
58307         * tests/unictype/test-categ_Lt.c: Likewise.
58308         * tests/unictype/test-categ_Lu.c: Likewise.
58309         * tests/unictype/test-categ_M.c: Likewise.
58310         * tests/unictype/test-categ_Mc.c: Likewise.
58311         * tests/unictype/test-categ_Me.c: Likewise.
58312         * tests/unictype/test-categ_Mn.c: Likewise.
58313         * tests/unictype/test-categ_N.c: Likewise.
58314         * tests/unictype/test-categ_Nd.c: Likewise.
58315         * tests/unictype/test-categ_Nl.c: Likewise.
58316         * tests/unictype/test-categ_No.c: Likewise.
58317         * tests/unictype/test-categ_P.c: Likewise.
58318         * tests/unictype/test-categ_Pc.c: Likewise.
58319         * tests/unictype/test-categ_Pd.c: Likewise.
58320         * tests/unictype/test-categ_Pe.c: Likewise.
58321         * tests/unictype/test-categ_Pf.c: Likewise.
58322         * tests/unictype/test-categ_Pi.c: Likewise.
58323         * tests/unictype/test-categ_Po.c: Likewise.
58324         * tests/unictype/test-categ_Ps.c: Likewise.
58325         * tests/unictype/test-categ_S.c: Likewise.
58326         * tests/unictype/test-categ_Sc.c: Likewise.
58327         * tests/unictype/test-categ_Sk.c: Likewise.
58328         * tests/unictype/test-categ_Sm.c: Likewise.
58329         * tests/unictype/test-categ_So.c: Likewise.
58330         * tests/unictype/test-categ_Z.c: Likewise.
58331         * tests/unictype/test-categ_Zl.c: Likewise.
58332         * tests/unictype/test-categ_Zp.c: Likewise.
58333         * tests/unictype/test-categ_Zs.c: Likewise.
58334         * tests/unictype/test-ctype_alnum.c: Likewise.
58335         * tests/unictype/test-ctype_alpha.c: Likewise.
58336         * tests/unictype/test-ctype_blank.c: Likewise.
58337         * tests/unictype/test-ctype_cntrl.c: Likewise.
58338         * tests/unictype/test-ctype_digit.c: Likewise.
58339         * tests/unictype/test-ctype_graph.c: Likewise.
58340         * tests/unictype/test-ctype_lower.c: Likewise.
58341         * tests/unictype/test-ctype_print.c: Likewise.
58342         * tests/unictype/test-ctype_punct.c: Likewise.
58343         * tests/unictype/test-ctype_space.c: Likewise.
58344         * tests/unictype/test-ctype_upper.c: Likewise.
58345         * tests/unictype/test-ctype_xdigit.c: Likewise.
58346         * tests/unictype/test-decdigit.h: Likewise.
58347         * tests/unictype/test-digit.h: Likewise.
58348         * tests/unictype/test-numeric.h: Likewise.
58349         * tests/unictype/test-pr_alphabetic.c: Likewise.
58350         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58351         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58352         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58353         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58354         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58355         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58356         * tests/unictype/test-pr_bidi_control.c: Likewise.
58357         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58358         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58359         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58360         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58361         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58362         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58363         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58364         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58365         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58366         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58367         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58368         * tests/unictype/test-pr_combining.c: Likewise.
58369         * tests/unictype/test-pr_composite.c: Likewise.
58370         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58371         * tests/unictype/test-pr_dash.c: Likewise.
58372         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58373         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58374         * tests/unictype/test-pr_deprecated.c: Likewise.
58375         * tests/unictype/test-pr_diacritic.c: Likewise.
58376         * tests/unictype/test-pr_extender.c: Likewise.
58377         * tests/unictype/test-pr_format_control.c: Likewise.
58378         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58379         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58380         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58381         * tests/unictype/test-pr_hex_digit.c: Likewise.
58382         * tests/unictype/test-pr_hyphen.c: Likewise.
58383         * tests/unictype/test-pr_id_continue.c: Likewise.
58384         * tests/unictype/test-pr_id_start.c: Likewise.
58385         * tests/unictype/test-pr_ideographic.c: Likewise.
58386         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58387         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58388         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58389         * tests/unictype/test-pr_iso_control.c: Likewise.
58390         * tests/unictype/test-pr_join_control.c: Likewise.
58391         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58392         * tests/unictype/test-pr_line_separator.c: Likewise.
58393         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58394         * tests/unictype/test-pr_lowercase.c: Likewise.
58395         * tests/unictype/test-pr_math.c: Likewise.
58396         * tests/unictype/test-pr_non_break.c: Likewise.
58397         * tests/unictype/test-pr_not_a_character.c: Likewise.
58398         * tests/unictype/test-pr_numeric.c: Likewise.
58399         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58400         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58401         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58402         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58403         * tests/unictype/test-pr_other_id_start.c: Likewise.
58404         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58405         * tests/unictype/test-pr_other_math.c: Likewise.
58406         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58407         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58408         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58409         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58410         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58411         * tests/unictype/test-pr_private_use.c: Likewise.
58412         * tests/unictype/test-pr_punctuation.c: Likewise.
58413         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58414         * tests/unictype/test-pr_radical.c: Likewise.
58415         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58416         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58417         * tests/unictype/test-pr_space.c: Likewise.
58418         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58419         * tests/unictype/test-pr_titlecase.c: Likewise.
58420         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58421         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58422         * tests/unictype/test-pr_uppercase.c: Likewise.
58423         * tests/unictype/test-pr_variation_selector.c: Likewise.
58424         * tests/unictype/test-pr_white_space.c: Likewise.
58425         * tests/unictype/test-pr_xid_continue.c: Likewise.
58426         * tests/unictype/test-pr_xid_start.c: Likewise.
58427         * tests/unictype/test-pr_zero_width.c: Likewise.
58428         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58429         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58430
58431 2007-11-12  Bruno Haible  <bruno@clisp.org>
58432
58433         Unicode character classification functions.
58434         * lib/unictype.h: New file.
58435         * modules/unictype/base: New file.
58436         * modules/unictype/category-L: New file.
58437         * modules/unictype/category-Lu: New file.
58438         * modules/unictype/category-Ll: New file.
58439         * modules/unictype/category-Lt: New file.
58440         * modules/unictype/category-Lm: New file.
58441         * modules/unictype/category-Lo: New file.
58442         * modules/unictype/category-M: New file.
58443         * modules/unictype/category-Mn: New file.
58444         * modules/unictype/category-Mc: New file.
58445         * modules/unictype/category-Me: New file.
58446         * modules/unictype/category-N: New file.
58447         * modules/unictype/category-Nd: New file.
58448         * modules/unictype/category-Nl: New file.
58449         * modules/unictype/category-No: New file.
58450         * modules/unictype/category-P: New file.
58451         * modules/unictype/category-Pc: New file.
58452         * modules/unictype/category-Pd: New file.
58453         * modules/unictype/category-Ps: New file.
58454         * modules/unictype/category-Pe: New file.
58455         * modules/unictype/category-Pi: New file.
58456         * modules/unictype/category-Pf: New file.
58457         * modules/unictype/category-Po: New file.
58458         * modules/unictype/category-S: New file.
58459         * modules/unictype/category-Sm: New file.
58460         * modules/unictype/category-Sc: New file.
58461         * modules/unictype/category-Sk: New file.
58462         * modules/unictype/category-So: New file.
58463         * modules/unictype/category-Z: New file.
58464         * modules/unictype/category-Zs: New file.
58465         * modules/unictype/category-Zl: New file.
58466         * modules/unictype/category-Zp: New file.
58467         * modules/unictype/category-C: New file.
58468         * modules/unictype/category-Cc: New file.
58469         * modules/unictype/category-Cf: New file.
58470         * modules/unictype/category-Cs: New file.
58471         * modules/unictype/category-Co: New file.
58472         * modules/unictype/category-Cn: New file.
58473         * modules/unictype/category-or: New file.
58474         * modules/unictype/category-of: New file.
58475         * modules/unictype/category-test: New file.
58476         * modules/unictype/category-test-withtable: New file.
58477         * modules/unictype/category-byname: New file.
58478         * modules/unictype/category-none: New file.
58479         * modules/unictype/category-and: New file.
58480         * modules/unictype/category-and-not: New file.
58481         * modules/unictype/category-name: New file.
58482         * modules/unictype/combining-class: New file.
58483         * modules/unictype/category-all: New file.
58484         * modules/unictype/bidicategory-all: New file.
58485         * modules/unictype/bidicategory-byname: New file.
58486         * modules/unictype/bidicategory-name: New file.
58487         * modules/unictype/bidicategory-of: New file.
58488         * modules/unictype/bidicategory-test: New file.
58489         * modules/unictype/decimal-digit: New file.
58490         * modules/unictype/digit: New file.
58491         * modules/unictype/numeric: New file.
58492         * modules/unictype/mirror: New file.
58493         * modules/unictype/property-white-space: New file.
58494         * modules/unictype/property-alphabetic: New file.
58495         * modules/unictype/property-other-alphabetic: New file.
58496         * modules/unictype/property-not-a-character: New file.
58497         * modules/unictype/property-default-ignorable-code-point: New file.
58498         * modules/unictype/property-other-default-ignorable-code-point: New
58499         file.
58500         * modules/unictype/property-deprecated: New file.
58501         * modules/unictype/property-logical-order-exception: New file.
58502         * modules/unictype/property-variation-selector: New file.
58503         * modules/unictype/property-private-use: New file.
58504         * modules/unictype/property-unassigned-code-value: New file.
58505         * modules/unictype/property-uppercase: New file.
58506         * modules/unictype/property-other-uppercase: New file.
58507         * modules/unictype/property-lowercase: New file.
58508         * modules/unictype/property-other-lowercase: New file.
58509         * modules/unictype/property-titlecase: New file.
58510         * modules/unictype/property-soft-dotted: New file.
58511         * modules/unictype/property-id-start: New file.
58512         * modules/unictype/property-other-id-start: New file.
58513         * modules/unictype/property-id-continue: New file.
58514         * modules/unictype/property-other-id-continue: New file.
58515         * modules/unictype/property-xid-start: New file.
58516         * modules/unictype/property-xid-continue: New file.
58517         * modules/unictype/property-pattern-white-space: New file.
58518         * modules/unictype/property-pattern-syntax: New file.
58519         * modules/unictype/property-join-control: New file.
58520         * modules/unictype/property-grapheme-base: New file.
58521         * modules/unictype/property-grapheme-extend: New file.
58522         * modules/unictype/property-other-grapheme-extend: New file.
58523         * modules/unictype/property-grapheme-link: New file.
58524         * modules/unictype/property-bidi-control: New file.
58525         * modules/unictype/property-bidi-left-to-right: New file.
58526         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58527         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58528         * modules/unictype/property-bidi-european-digit: New file.
58529         * modules/unictype/property-bidi-eur-num-separator: New file.
58530         * modules/unictype/property-bidi-eur-num-terminator: New file.
58531         * modules/unictype/property-bidi-arabic-digit: New file.
58532         * modules/unictype/property-bidi-common-separator: New file.
58533         * modules/unictype/property-bidi-block-separator: New file.
58534         * modules/unictype/property-bidi-segment-separator: New file.
58535         * modules/unictype/property-bidi-whitespace: New file.
58536         * modules/unictype/property-bidi-non-spacing-mark: New file.
58537         * modules/unictype/property-bidi-boundary-neutral: New file.
58538         * modules/unictype/property-bidi-pdf: New file.
58539         * modules/unictype/property-bidi-embedding-or-override: New file.
58540         * modules/unictype/property-bidi-other-neutral: New file.
58541         * modules/unictype/property-hex-digit: New file.
58542         * modules/unictype/property-ascii-hex-digit: New file.
58543         * modules/unictype/property-ideographic: New file.
58544         * modules/unictype/property-unified-ideograph: New file.
58545         * modules/unictype/property-radical: New file.
58546         * modules/unictype/property-ids-binary-operator: New file.
58547         * modules/unictype/property-ids-trinary-operator: New file.
58548         * modules/unictype/property-zero-width: New file.
58549         * modules/unictype/property-space: New file.
58550         * modules/unictype/property-non-break: New file.
58551         * modules/unictype/property-iso-control: New file.
58552         * modules/unictype/property-format-control: New file.
58553         * modules/unictype/property-dash: New file.
58554         * modules/unictype/property-hyphen: New file.
58555         * modules/unictype/property-punctuation: New file.
58556         * modules/unictype/property-line-separator: New file.
58557         * modules/unictype/property-paragraph-separator: New file.
58558         * modules/unictype/property-quotation-mark: New file.
58559         * modules/unictype/property-sentence-terminal: New file.
58560         * modules/unictype/property-terminal-punctuation: New file.
58561         * modules/unictype/property-currency-symbol: New file.
58562         * modules/unictype/property-math: New file.
58563         * modules/unictype/property-other-math: New file.
58564         * modules/unictype/property-paired-punctuation: New file.
58565         * modules/unictype/property-left-of-pair: New file.
58566         * modules/unictype/property-combining: New file.
58567         * modules/unictype/property-composite: New file.
58568         * modules/unictype/property-decimal-digit: New file.
58569         * modules/unictype/property-numeric: New file.
58570         * modules/unictype/property-diacritic: New file.
58571         * modules/unictype/property-extender: New file.
58572         * modules/unictype/property-ignorable-control: New file.
58573         * modules/unictype/property-test: New file.
58574         * modules/unictype/property-byname: New file.
58575         * modules/unictype/property-all: New file.
58576         * modules/unictype/scripts: New file.
58577         * modules/unictype/scripts-all: New file.
58578         * modules/unictype/block-of: New file.
58579         * modules/unictype/block-test: New file.
58580         * modules/unictype/block-list: New file.
58581         * modules/unictype/block-all: New file.
58582         * modules/unictype/syntax-c-whitespace: New file.
58583         * modules/unictype/syntax-java-whitespace: New file.
58584         * modules/unictype/syntax-c-ident: New file.
58585         * modules/unictype/syntax-java-ident: New file.
58586         * modules/unictype/ctype-alnum: New file.
58587         * modules/unictype/ctype-alpha: New file.
58588         * modules/unictype/ctype-cntrl: New file.
58589         * modules/unictype/ctype-digit: New file.
58590         * modules/unictype/ctype-graph: New file.
58591         * modules/unictype/ctype-lower: New file.
58592         * modules/unictype/ctype-print: New file.
58593         * modules/unictype/ctype-punct: New file.
58594         * modules/unictype/ctype-space: New file.
58595         * modules/unictype/ctype-upper: New file.
58596         * modules/unictype/ctype-xdigit: New file.
58597         * modules/unictype/ctype-blank: New file.
58598         * lib/unictype/bidi_byname.c: New file.
58599         * lib/unictype/bidi_name.c: New file.
58600         * lib/unictype/bidi_of.c: New file.
58601         * lib/unictype/bidi_test.c: New file.
58602         * lib/unictype/bitmap.h: New file.
58603         * lib/unictype/block_test.c: New file.
58604         * lib/unictype/blocks.c: New file.
58605         * lib/unictype/categ_C.c: New file.
58606         * lib/unictype/categ_Cc.c: New file.
58607         * lib/unictype/categ_Cf.c: New file.
58608         * lib/unictype/categ_Cn.c: New file.
58609         * lib/unictype/categ_Co.c: New file.
58610         * lib/unictype/categ_Cs.c: New file.
58611         * lib/unictype/categ_L.c: New file.
58612         * lib/unictype/categ_Ll.c: New file.
58613         * lib/unictype/categ_Lm.c: New file.
58614         * lib/unictype/categ_Lo.c: New file.
58615         * lib/unictype/categ_Lt.c: New file.
58616         * lib/unictype/categ_Lu.c: New file.
58617         * lib/unictype/categ_M.c: New file.
58618         * lib/unictype/categ_Mc.c: New file.
58619         * lib/unictype/categ_Me.c: New file.
58620         * lib/unictype/categ_Mn.c: New file.
58621         * lib/unictype/categ_N.c: New file.
58622         * lib/unictype/categ_Nd.c: New file.
58623         * lib/unictype/categ_Nl.c: New file.
58624         * lib/unictype/categ_No.c: New file.
58625         * lib/unictype/categ_P.c: New file.
58626         * lib/unictype/categ_Pc.c: New file.
58627         * lib/unictype/categ_Pd.c: New file.
58628         * lib/unictype/categ_Pe.c: New file.
58629         * lib/unictype/categ_Pf.c: New file.
58630         * lib/unictype/categ_Pi.c: New file.
58631         * lib/unictype/categ_Po.c: New file.
58632         * lib/unictype/categ_Ps.c: New file.
58633         * lib/unictype/categ_S.c: New file.
58634         * lib/unictype/categ_Sc.c: New file.
58635         * lib/unictype/categ_Sk.c: New file.
58636         * lib/unictype/categ_Sm.c: New file.
58637         * lib/unictype/categ_So.c: New file.
58638         * lib/unictype/categ_Z.c: New file.
58639         * lib/unictype/categ_Zl.c: New file.
58640         * lib/unictype/categ_Zp.c: New file.
58641         * lib/unictype/categ_Zs.c: New file.
58642         * lib/unictype/categ_and.c: New file.
58643         * lib/unictype/categ_and_not.c: New file.
58644         * lib/unictype/categ_byname.c: New file.
58645         * lib/unictype/categ_name.c: New file.
58646         * lib/unictype/categ_none.c: New file.
58647         * lib/unictype/categ_of.c: New file.
58648         * lib/unictype/categ_or.c: New file.
58649         * lib/unictype/categ_test.c: New file.
58650         * lib/unictype/combining.c: New file.
58651         * lib/unictype/ctype_alnum.c: New file.
58652         * lib/unictype/ctype_alpha.c: New file.
58653         * lib/unictype/ctype_blank.c: New file.
58654         * lib/unictype/ctype_cntrl.c: New file.
58655         * lib/unictype/ctype_digit.c: New file.
58656         * lib/unictype/ctype_graph.c: New file.
58657         * lib/unictype/ctype_lower.c: New file.
58658         * lib/unictype/ctype_print.c: New file.
58659         * lib/unictype/ctype_punct.c: New file.
58660         * lib/unictype/ctype_space.c: New file.
58661         * lib/unictype/ctype_upper.c: New file.
58662         * lib/unictype/ctype_xdigit.c: New file.
58663         * lib/unictype/decdigit.c: New file.
58664         * lib/unictype/digit.c: New file.
58665         * lib/unictype/identsyntaxmap.h: New file.
58666         * lib/unictype/mirror.c: New file.
58667         * lib/unictype/numeric.c: New file.
58668         * lib/unictype/pr_alphabetic.c: New file.
58669         * lib/unictype/pr_ascii_hex_digit.c: New file.
58670         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58671         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58672         * lib/unictype/pr_bidi_block_separator.c: New file.
58673         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58674         * lib/unictype/pr_bidi_common_separator.c: New file.
58675         * lib/unictype/pr_bidi_control.c: New file.
58676         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58677         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58678         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58679         * lib/unictype/pr_bidi_european_digit.c: New file.
58680         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58681         * lib/unictype/pr_bidi_left_to_right.c: New file.
58682         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58683         * lib/unictype/pr_bidi_other_neutral.c: New file.
58684         * lib/unictype/pr_bidi_pdf.c: New file.
58685         * lib/unictype/pr_bidi_segment_separator.c: New file.
58686         * lib/unictype/pr_bidi_whitespace.c: New file.
58687         * lib/unictype/pr_byname.c: New file.
58688         * lib/unictype/pr_byname.gperf: New file.
58689         * lib/unictype/pr_combining.c: New file.
58690         * lib/unictype/pr_composite.c: New file.
58691         * lib/unictype/pr_currency_symbol.c: New file.
58692         * lib/unictype/pr_dash.c: New file.
58693         * lib/unictype/pr_decimal_digit.c: New file.
58694         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58695         * lib/unictype/pr_deprecated.c: New file.
58696         * lib/unictype/pr_diacritic.c: New file.
58697         * lib/unictype/pr_extender.c: New file.
58698         * lib/unictype/pr_format_control.c: New file.
58699         * lib/unictype/pr_grapheme_base.c: New file.
58700         * lib/unictype/pr_grapheme_extend.c: New file.
58701         * lib/unictype/pr_grapheme_link.c: New file.
58702         * lib/unictype/pr_hex_digit.c: New file.
58703         * lib/unictype/pr_hyphen.c: New file.
58704         * lib/unictype/pr_id_continue.c: New file.
58705         * lib/unictype/pr_id_start.c: New file.
58706         * lib/unictype/pr_ideographic.c: New file.
58707         * lib/unictype/pr_ids_binary_operator.c: New file.
58708         * lib/unictype/pr_ids_trinary_operator.c: New file.
58709         * lib/unictype/pr_ignorable_control.c: New file.
58710         * lib/unictype/pr_iso_control.c: New file.
58711         * lib/unictype/pr_join_control.c: New file.
58712         * lib/unictype/pr_left_of_pair.c: New file.
58713         * lib/unictype/pr_line_separator.c: New file.
58714         * lib/unictype/pr_logical_order_exception.c: New file.
58715         * lib/unictype/pr_lowercase.c: New file.
58716         * lib/unictype/pr_math.c: New file.
58717         * lib/unictype/pr_non_break.c: New file.
58718         * lib/unictype/pr_not_a_character.c: New file.
58719         * lib/unictype/pr_numeric.c: New file.
58720         * lib/unictype/pr_other_alphabetic.c: New file.
58721         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58722         * lib/unictype/pr_other_grapheme_extend.c: New file.
58723         * lib/unictype/pr_other_id_continue.c: New file.
58724         * lib/unictype/pr_other_id_start.c: New file.
58725         * lib/unictype/pr_other_lowercase.c: New file.
58726         * lib/unictype/pr_other_math.c: New file.
58727         * lib/unictype/pr_other_uppercase.c: New file.
58728         * lib/unictype/pr_paired_punctuation.c: New file.
58729         * lib/unictype/pr_paragraph_separator.c: New file.
58730         * lib/unictype/pr_pattern_syntax.c: New file.
58731         * lib/unictype/pr_pattern_white_space.c: New file.
58732         * lib/unictype/pr_private_use.c: New file.
58733         * lib/unictype/pr_punctuation.c: New file.
58734         * lib/unictype/pr_quotation_mark.c: New file.
58735         * lib/unictype/pr_radical.c: New file.
58736         * lib/unictype/pr_sentence_terminal.c: New file.
58737         * lib/unictype/pr_soft_dotted.c: New file.
58738         * lib/unictype/pr_space.c: New file.
58739         * lib/unictype/pr_terminal_punctuation.c: New file.
58740         * lib/unictype/pr_test.c: New file.
58741         * lib/unictype/pr_titlecase.c: New file.
58742         * lib/unictype/pr_unassigned_code_value.c: New file.
58743         * lib/unictype/pr_unified_ideograph.c: New file.
58744         * lib/unictype/pr_uppercase.c: New file.
58745         * lib/unictype/pr_variation_selector.c: New file.
58746         * lib/unictype/pr_white_space.c: New file.
58747         * lib/unictype/pr_xid_continue.c: New file.
58748         * lib/unictype/pr_xid_start.c: New file.
58749         * lib/unictype/pr_zero_width.c: New file.
58750         * lib/unictype/scripts.c: New file.
58751         * lib/unictype/sy_c_ident.c: New file.
58752         * lib/unictype/sy_c_whitespace.c: New file.
58753         * lib/unictype/sy_java_ident.c: New file.
58754         * lib/unictype/sy_java_whitespace.c: New file.
58755
58756         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58757         Unicode 5.0.0.
58758         * lib/unictype/blocks.h: Likewise.
58759         * lib/unictype/categ_C.h: Likewise.
58760         * lib/unictype/categ_Cc.h: Likewise.
58761         * lib/unictype/categ_Cf.h: Likewise.
58762         * lib/unictype/categ_Cn.h: Likewise.
58763         * lib/unictype/categ_Co.h: Likewise.
58764         * lib/unictype/categ_Cs.h: Likewise.
58765         * lib/unictype/categ_L.h: Likewise.
58766         * lib/unictype/categ_Ll.h: Likewise.
58767         * lib/unictype/categ_Lm.h: Likewise.
58768         * lib/unictype/categ_Lo.h: Likewise.
58769         * lib/unictype/categ_Lt.h: Likewise.
58770         * lib/unictype/categ_Lu.h: Likewise.
58771         * lib/unictype/categ_M.h: Likewise.
58772         * lib/unictype/categ_Mc.h: Likewise.
58773         * lib/unictype/categ_Me.h: Likewise.
58774         * lib/unictype/categ_Mn.h: Likewise.
58775         * lib/unictype/categ_N.h: Likewise.
58776         * lib/unictype/categ_Nd.h: Likewise.
58777         * lib/unictype/categ_Nl.h: Likewise.
58778         * lib/unictype/categ_No.h: Likewise.
58779         * lib/unictype/categ_P.h: Likewise.
58780         * lib/unictype/categ_Pc.h: Likewise.
58781         * lib/unictype/categ_Pd.h: Likewise.
58782         * lib/unictype/categ_Pe.h: Likewise.
58783         * lib/unictype/categ_Pf.h: Likewise.
58784         * lib/unictype/categ_Pi.h: Likewise.
58785         * lib/unictype/categ_Po.h: Likewise.
58786         * lib/unictype/categ_Ps.h: Likewise.
58787         * lib/unictype/categ_S.h: Likewise.
58788         * lib/unictype/categ_Sc.h: Likewise.
58789         * lib/unictype/categ_Sk.h: Likewise.
58790         * lib/unictype/categ_Sm.h: Likewise.
58791         * lib/unictype/categ_So.h: Likewise.
58792         * lib/unictype/categ_Z.h: Likewise.
58793         * lib/unictype/categ_Zl.h: Likewise.
58794         * lib/unictype/categ_Zp.h: Likewise.
58795         * lib/unictype/categ_Zs.h: Likewise.
58796         * lib/unictype/categ_of.h: Likewise.
58797         * lib/unictype/combining.h: Likewise.
58798         * lib/unictype/ctype_alnum.h: Likewise.
58799         * lib/unictype/ctype_alpha.h: Likewise.
58800         * lib/unictype/ctype_blank.h: Likewise.
58801         * lib/unictype/ctype_cntrl.h: Likewise.
58802         * lib/unictype/ctype_digit.h: Likewise.
58803         * lib/unictype/ctype_graph.h: Likewise.
58804         * lib/unictype/ctype_lower.h: Likewise.
58805         * lib/unictype/ctype_print.h: Likewise.
58806         * lib/unictype/ctype_punct.h: Likewise.
58807         * lib/unictype/ctype_space.h: Likewise.
58808         * lib/unictype/ctype_upper.h: Likewise.
58809         * lib/unictype/ctype_xdigit.h: Likewise.
58810         * lib/unictype/decdigit.h: Likewise.
58811         * lib/unictype/digit.h: Likewise.
58812         * lib/unictype/mirror.h: Likewise.
58813         * lib/unictype/numeric.h: Likewise.
58814         * lib/unictype/pr_alphabetic.h: Likewise.
58815         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58816         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58817         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58818         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58819         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58820         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58821         * lib/unictype/pr_bidi_control.h: Likewise.
58822         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58823         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58824         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58825         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58826         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58827         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58828         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58829         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58830         * lib/unictype/pr_bidi_pdf.h: Likewise.
58831         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58832         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58833         * lib/unictype/pr_combining.h: Likewise.
58834         * lib/unictype/pr_composite.h: Likewise.
58835         * lib/unictype/pr_currency_symbol.h: Likewise.
58836         * lib/unictype/pr_dash.h: Likewise.
58837         * lib/unictype/pr_decimal_digit.h: Likewise.
58838         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58839         * lib/unictype/pr_deprecated.h: Likewise.
58840         * lib/unictype/pr_diacritic.h: Likewise.
58841         * lib/unictype/pr_extender.h: Likewise.
58842         * lib/unictype/pr_format_control.h: Likewise.
58843         * lib/unictype/pr_grapheme_base.h: Likewise.
58844         * lib/unictype/pr_grapheme_extend.h: Likewise.
58845         * lib/unictype/pr_grapheme_link.h: Likewise.
58846         * lib/unictype/pr_hex_digit.h: Likewise.
58847         * lib/unictype/pr_hyphen.h: Likewise.
58848         * lib/unictype/pr_id_continue.h: Likewise.
58849         * lib/unictype/pr_id_start.h: Likewise.
58850         * lib/unictype/pr_ideographic.h: Likewise.
58851         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58852         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58853         * lib/unictype/pr_ignorable_control.h: Likewise.
58854         * lib/unictype/pr_iso_control.h: Likewise.
58855         * lib/unictype/pr_join_control.h: Likewise.
58856         * lib/unictype/pr_left_of_pair.h: Likewise.
58857         * lib/unictype/pr_line_separator.h: Likewise.
58858         * lib/unictype/pr_logical_order_exception.h: Likewise.
58859         * lib/unictype/pr_lowercase.h: Likewise.
58860         * lib/unictype/pr_math.h: Likewise.
58861         * lib/unictype/pr_non_break.h: Likewise.
58862         * lib/unictype/pr_not_a_character.h: Likewise.
58863         * lib/unictype/pr_numeric.h: Likewise.
58864         * lib/unictype/pr_other_alphabetic.h: Likewise.
58865         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58866         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58867         * lib/unictype/pr_other_id_continue.h: Likewise.
58868         * lib/unictype/pr_other_id_start.h: Likewise.
58869         * lib/unictype/pr_other_lowercase.h: Likewise.
58870         * lib/unictype/pr_other_math.h: Likewise.
58871         * lib/unictype/pr_other_uppercase.h: Likewise.
58872         * lib/unictype/pr_paired_punctuation.h: Likewise.
58873         * lib/unictype/pr_paragraph_separator.h: Likewise.
58874         * lib/unictype/pr_pattern_syntax.h: Likewise.
58875         * lib/unictype/pr_pattern_white_space.h: Likewise.
58876         * lib/unictype/pr_private_use.h: Likewise.
58877         * lib/unictype/pr_punctuation.h: Likewise.
58878         * lib/unictype/pr_quotation_mark.h: Likewise.
58879         * lib/unictype/pr_radical.h: Likewise.
58880         * lib/unictype/pr_sentence_terminal.h: Likewise.
58881         * lib/unictype/pr_soft_dotted.h: Likewise.
58882         * lib/unictype/pr_space.h: Likewise.
58883         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58884         * lib/unictype/pr_titlecase.h: Likewise.
58885         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58886         * lib/unictype/pr_unified_ideograph.h: Likewise.
58887         * lib/unictype/pr_uppercase.h: Likewise.
58888         * lib/unictype/pr_variation_selector.h: Likewise.
58889         * lib/unictype/pr_white_space.h: Likewise.
58890         * lib/unictype/pr_xid_continue.h: Likewise.
58891         * lib/unictype/pr_xid_start.h: Likewise.
58892         * lib/unictype/pr_zero_width.h: Likewise.
58893         * lib/unictype/scripts.h: Likewise.
58894         * lib/unictype/scripts_byname.gperf: Likewise.
58895         * lib/unictype/sy_c_ident.h: Likewise.
58896         * lib/unictype/sy_c_whitespace.h: Likewise.
58897         * lib/unictype/sy_java_ident.h: Likewise.
58898         * lib/unictype/sy_java_whitespace.h: Likewise.
58899
58900         * lib/unictype/Makefile: New file.
58901         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58902         glibc.
58903         * lib/unictype/3level.h: New file, copied from glibc.
58904         * lib/unictype/3levelbit.h: New file.
58905
58906 2007-11-11  Bruno Haible  <bruno@clisp.org>
58907
58908         * modules/gperf: New file.
58909         * modules/iconv_open (Depends-on): Add it.
58910         (Makefile.am): Remove the GPERF definition.
58911
58912 2007-11-11  Bruno Haible  <bruno@clisp.org>
58913
58914         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58915         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58916
58917 2007-11-11  Bruno Haible  <bruno@clisp.org>
58918
58919         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58920         (usage): Remove function.
58921
58922 2007-11-11  Bruno Haible  <bruno@clisp.org>
58923
58924         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58925         gl_FUNC_CEILF_LIBS.
58926         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58927         gl_FUNC_CEIL_LIBS.
58928         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58929         gl_FUNC_CEILL_LIBS.
58930         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58931         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58932         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58933
58934 2007-11-11  Bruno Haible  <bruno@clisp.org>
58935
58936         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58937         roundf were declared but do not exist on functions.
58938         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58939         roundl were declared but do not exist on functions.
58940         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58941         HAVE_FLOORL_AND_CEILL, respectively.
58942         Needed for Sun C on Solaris 10.
58943
58944 2007-11-11  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58947         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58948         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58949         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58951         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58952         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58953         HAVE_DECL_ROUNDF.
58954         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58955         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58957         of HAVE_DECL_ROUND*.
58958         * modules/math (Makefile.am): Update.
58959
58960 2007-11-10  Bruno Haible  <bruno@clisp.org>
58961
58962         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58963         ptrdiff_t as m4/intl.m4.
58964
58965 2007-11-10  Jim Meyering  <meyering@redhat.com>
58966
58967         Avoid link failure for the argmatch test.
58968         * tests/test-argmatch.c (usage): Define function to avoid a link
58969         failure: argmatch_die requires a usage function.
58970
58971 2007-11-09  Bruno Haible  <bruno@clisp.org>
58972
58973         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58974         * doc/functions/vsnprintf.texi: Likewise.
58975         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58976         with a size argument < 2.
58977
58978 2007-11-09  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58981         buffer. Fixes an inefficiency introduced on 2007-11-03.
58982
58983 2007-11-09  Bruno Haible  <bruno@clisp.org>
58984
58985         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58986         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58987
58988 2007-11-08  Jim Meyering  <meyering@redhat.com>
58989
58990         Change cache variable name prefix "jm_" to "gl_" everywhere.
58991         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58992         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58993         * m4/uptime.m4: s/gl_/jm_/
58994
58995 2007-11-07  Bruno Haible  <bruno@clisp.org>
58996
58997         Update to GNU gettext 0.17.
58998         * m4/intl.m4: Update to GNU gettext 0.17.
58999         * m4/po.m4: Likewise.
59000         * modules/gettext (Files): Remove m4/ulonglong.m4.
59001         (configure.ac): Require gettext infrastructure from version 0.17.
59002
59003 2007-11-06  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59006         symbolic values are not defined in a public header.
59007         * lib/freadable.c (freadable) [QNX]: Likewise.
59008         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59009         * lib/freading.c (freading) [QNX]: Likewise.
59010         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59011         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59012         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59013         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59014         Reported by Alain Magloire.
59015
59016         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59017
59018 2007-11-05  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59021         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59022         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59023         Reported by Eric Blake.
59024
59025 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59026             Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59029         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59030         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59031         (malloc): Undefine also before including <stdlib.h>.
59032         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59033         Needed on OSF/1 4.0.
59034
59035 2007-11-05  Jim Meyering  <meyering@redhat.com>
59036
59037         git-version-gen: sync from coreutils.
59038         * build-aux/git-version-gen: Add comments.
59039         Change the first '-' to '.' in the snapshot version string,
59040         e.g., 6.9-377-08144 -> 6.9.377-08144
59041         Remove first parameter.
59042         Don't declare a version "-dirty" merely because a time
59043         stamp has changed.
59044
59045 2007-11-04  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/lock.h: Protect all macro definitions containing an 'if'
59048         statement through a "do { ... } while (0)".
59049         * lib/tls.h: Likewise.
59050
59051 2007-11-04  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59054
59055 2007-11-04  Bruno Haible  <bruno@clisp.org>
59056
59057         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59058         * modules/fprintf-posix (Depends-on): Add nocrash.
59059         * modules/snprintf-posix (Depends-on): Likewise.
59060         * modules/sprintf-posix (Depends-on): Likewise.
59061         * modules/vasnprintf-posix (Depends-on): Likewise.
59062         * modules/vasprintf-posix (Depends-on): Likewise.
59063         * modules/vfprintf-posix (Depends-on): Likewise.
59064         * modules/vsnprintf-posix (Depends-on): Likewise.
59065         * modules/vsprintf-posix (Depends-on): Likewise.
59066         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59067         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59068         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59069         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59070         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59071         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59072         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59073
59074 2007-11-04  Bruno Haible  <bruno@clisp.org>
59075
59076         * modules/nocrash: New file.
59077         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59078         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59079
59080 2007-11-04  Bruno Haible  <bruno@clisp.org>
59081
59082         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59083         precision handling.
59084         * tests/test-vasprintf-posix.c (test_function): Likewise.
59085         * tests/test-snprintf-posix.h (test_function): Likewise.
59086         * tests/test-sprintf-posix.h (test_function): Likewise.
59087
59088         Fix *printf behaviour for large precisions on mingw and BeOS.
59089         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59090         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59092         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59093         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59094         gl_PRINTF_PRECISION and test its result. Invoke
59095         gl_PREREQ_VASNPRINTF_PRECISION.
59096         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59097         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59099         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59101         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59102         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59103         * doc/functions/fprintf.texi: Update.
59104         * doc/functions/printf.texi: Update.
59105         * doc/functions/snprintf.texi: Update.
59106         * doc/functions/sprintf.texi: Update.
59107         * doc/functions/vfprintf.texi: Update.
59108         * doc/functions/vprintf.texi: Update.
59109         * doc/functions/vsnprintf.texi: Update.
59110         * doc/functions/vsprintf.texi: Update.
59111
59112 2007-11-04  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59115
59116 2007-11-04  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59119         Reported by Sylvain Beucler <beuc@gnu.org>.
59120
59121 2007-11-03  Bruno Haible  <bruno@clisp.org>
59122
59123         * tests/test-fprintf-posix2.sh: New file.
59124         * tests/test-fprintf-posix2.c: New file.
59125         * modules/fprintf-posix-tests (Files): Add them.
59126         (TESTS): Add test-fprintf-posix2.sh.
59127         (configure.ac): Check for getrlimit and setrlimit.
59128         (check_PROGRAMS): Add test-fprintf-posix2.
59129
59130         * tests/test-printf-posix2.sh: New file.
59131         * tests/test-printf-posix2.c: New file.
59132         * modules/printf-posix-tests (Files): Add them.
59133         (TESTS): Add test-printf-posix2.sh.
59134         (configure.ac): Check for getrlimit and setrlimit.
59135         (check_PROGRAMS): Add test-printf-posix2.
59136
59137         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59138         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59139         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59140         (decode_double): New function, copied from decode_long_double.
59141         (scale10_round_decimal_decoded): New function, extracted from
59142         scale10_round_decimal_long_double.
59143         (scale10_round_decimal_long_double): Use it.
59144         (scale10_round_decimal_double): New function.
59145         (floorlog10): New function.
59146         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59148         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59150         gl_PRINTF_ENOMEM and test its result. Invoke
59151         gl_PREREQ_VASNPRINTF_ENOMEM.
59152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59159         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59160         * modules/snprintf-posix (Depends-on): Likewise.
59161         * modules/sprintf-posix (Depends-on): Likewise.
59162         * modules/vasnprintf-posix (Depends-on): Likewise.
59163         * modules/vasprintf-posix (Depends-on): Likewise.
59164         * modules/vfprintf-posix (Depends-on): Likewise.
59165         * modules/vsnprintf-posix (Depends-on): Likewise.
59166         * modules/vsprintf-posix (Depends-on): Likewise.
59167         * doc/functions/fprintf.texi: Update.
59168         * doc/functions/printf.texi: Update.
59169         * doc/functions/snprintf.texi: Update.
59170         * doc/functions/sprintf.texi: Update.
59171         * doc/functions/vfprintf.texi: Update.
59172         * doc/functions/vprintf.texi: Update.
59173         * doc/functions/vsnprintf.texi: Update.
59174         * doc/functions/vsprintf.texi: Update.
59175
59176 2007-11-03  Bruno Haible  <bruno@clisp.org>
59177
59178         * modules/frexp-nolibm-tests: New file.
59179
59180         * modules/frexp-nolibm: New file.
59181         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59182
59183 2007-11-03  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59186         value is C99 compliant.
59187         Needed for OSF/1 5.1.
59188
59189 2007-11-03  Bruno Haible  <bruno@clisp.org>
59190
59191         Fix out-of-memory handling of vasnprintf.
59192         * lib/printf-parse.c: Include <errno.h>.
59193         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59194         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59195         is already set.
59196
59197 2007-11-02  Eric Blake  <ebb9@byu.net>
59198
59199         Fix tests on cygwin.
59200         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59201
59202 2007-11-01  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59205         warning.
59206         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59207         needed for POSIX compatibility.
59208
59209 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59210
59211         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59212         for compatibility with GNU.
59213
59214 2007-11-01  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59217         (putenv): Renamed from rpl_putenv. Change argument type from
59218         'const char *' to 'char *'.
59219         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59220         of defining putenv in config.h, just set REPLACE_PUTENV.
59221         * modules/putenv (Depends-on): Add stdlib.
59222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59223         (Include): Use <stdlib.h>.
59224         * lib/stdlib.in.h (putenv): New declaration.
59225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59226         REPLACE_PUTENV.
59227         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59228         REPLACE_PUTENV.
59229         Needed for MacOS X 10.5.0.
59230         Reported by Peter O'Gorman <peter@pogma.com>.
59231
59232 2007-11-01  Jim Meyering  <meyering@redhat.com>
59233
59234         Treat an empty date string exactly like "0".
59235         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59236         if the remaining date string (to be parsed) is empty, use "0".
59237         Reported by Mischa Molhoek and discussed in this thread:
59238         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59239
59240 2007-10-31  Bruno Haible  <bruno@clisp.org>
59241
59242         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59243         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59244         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59245         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59246         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59247         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59248
59249 2007-10-31  Bruno Haible  <bruno@clisp.org>
59250
59251         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59252         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59253         (AC_TYPE_LONG_LONG_INT): Use it.
59254         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59255         it as well.
59256         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59257         to m4/longlong.m4.
59258         * modules/stdint (Files): Remove m4/ulonglong.m4.
59259         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59260         m4/ulonglong.m4.
59261         * modules/strtoumax (Files): Likewise.
59262
59263 2007-10-30  Bruno Haible  <bruno@clisp.org>
59264
59265         * modules/xvasprintf-posix: New file.
59266         Suggested by Eric Blake.
59267
59268 2007-10-30  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/xprintf-posix-tests: New file.
59271         * tests/test-xprintf-posix.sh: New file.
59272         * tests/test-xprintf-posix.c: New file.
59273         * tests/test-xfprintf-posix.c: New file.
59274
59275         * modules/xprintf-posix: New file.
59276
59277 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59278
59279         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59280         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59281         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59282
59283 2007-10-29  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59286         contain the special marker '_cv_'.
59287         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59288         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59289         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59290         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59291         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59292         Reported by Ralf Wildenhues.
59293
59294 2007-10-29  Bruno Haible  <bruno@clisp.org>
59295
59296         * gnulib-tool (func_import): When --lgpl is not specified, set
59297         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59298         GPLv3.
59299         Reported by Simon Josefsson.
59300
59301 2007-10-28  Bruno Haible  <bruno@clisp.org>
59302
59303         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59304         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59305         HAVE_DECL_ISFINITE.
59306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59307         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59308         HAVE_DECL_ISFINITE.
59309
59310 2007-10-28  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59313         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59314
59315 2007-10-28  Bruno Haible  <bruno@clisp.org>
59316
59317         Fix link errors with Sun C 5.0 on Solaris 10.
59318         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59319         function is declared but not present in the compiler's libm.
59320         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59321         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59322         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59323         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59324         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59325         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59326         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59328         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59329         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59330         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59331         HAVE_DECL_FLOORL.
59332
59333 2007-10-28  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59336         gl_FUNC_FLOORL. Cache the result.
59337         (gl_FUNC_FLOORL): Use it.
59338         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59339         gl_FUNC_CEILL. Cache the result.
59340         (gl_FUNC_CEILL): Use it.
59341
59342         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59343         gl_FUNC_FLOOR. Cache the result.
59344         (gl_FUNC_FLOOR): Use it.
59345         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59346         gl_FUNC_CEIL. Cache the result.
59347         (gl_FUNC_CEIL): Use it.
59348
59349         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59350         gl_FUNC_FLOORF. Cache the result.
59351         (gl_FUNC_FLOORF): Use it.
59352         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59353         gl_FUNC_CEILF. Cache the result.
59354         (gl_FUNC_CEILF): Use it.
59355
59356 2007-10-28  Bruno Haible  <bruno@clisp.org>
59357
59358         * gnulib-tool: Allow specifying the LGPL version number through
59359         --lgpl=2 or --lgpl=3.
59360         (func_usage): Document --lgpl with argument.
59361         Handle --lgpl=... arguments.
59362         (func_import): Recognize also gl_LGPL calls with an argument. When
59363         --lgpl=2 is used and the module's license is just LGPL, report an
59364         error. Set sed_transform_lib_file according to the lgpl variable. In
59365         the generated files, use --lgpl or gl_LGPL invocations with argument,
59366         if necessary.
59367         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59368         an LGPv2+ license.
59369         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59370         gl_LGPL macro.
59371
59372 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59373             Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59376         (u16_uctomb_aux): Likewise.
59377         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59378         !HAVE_INLINE.
59379         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59380
59381 2007-10-28  Bruno Haible  <bruno@clisp.org>
59382
59383         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59384         Invoke AM_GETTEXT_OPTION if it exists.
59385         * modules/vasprintf: Likewise.
59386         * modules/verror: Likewise.
59387         * modules/xprintf: Likewise.
59388         * modules/xvasprintf: Likewise.
59389
59390 2007-10-27  Ben Pfaff  <blp@gnu.org>
59391
59392         * lib/math.in.h: Define isfinite macro and prototypes for
59393         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59394         implementations.
59395         * m4/math_h.m4: New substitutions for isfinite module.
59396         * lib/isfinite.c: New file.
59397         * m4/isfinite.m4: New file.
59398         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59399         * modules/isfinite: New file.
59400         * modules/isfinite-tests: New file.
59401         * tests/tests-isfinite.c: New file.
59402         * doc/functions/isfinite.texi: Mention isfinite module.
59403         * MODULES.html.sh: Mention new module.
59404
59405 2007-10-27  Ben Pfaff  <blp@gnu.org>
59406
59407         Ralf Wildenhues reported that Tru64 4.0D declares the round
59408         functions but does not have definitions.
59409         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59410         cannot be found in any library, set the output variable to
59411         "missing" instead of "".
59412         * m4/round.m4: Also use our substitute if we cannot find round in
59413         any library, even if it is declared.
59414         * m4/roundf.m4: Likewise for roundf.
59415         * m4/roundl.m4: Likewise for roundl.
59416         * lib/math.in.h: Undefine roundf, round, roundl before defining
59417         their replacements, to allow for hypothetical systems where these
59418         may be defined as macros but not available in libraries.
59419
59420 2007-10-27  Bruno Haible  <bruno@clisp.org>
59421
59422         * doc/gnulib.texi: Invoke @firstparagraphindent.
59423         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59424         changes in gnulib.
59425         (Source changes): New section.
59426
59427 2007-10-26  Bruno Haible  <bruno@clisp.org>
59428
59429         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59430         borrowed from autoconf.
59431
59432 2007-10-26  Bruno Haible  <bruno@clisp.org>
59433
59434         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59435         strerror returned the empty string. Needed on HP-UX 11.00.
59436
59437 2007-10-24  Micah Cowan  <micah@cowan.name>
59438
59439         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59440         * build-aux/bootstrap: Remove support for now-unnecessary option,
59441         --cvs-user, and envvars CVS_USER, CVS_RSH.
59442
59443 2007-10-24  Jim Meyering  <meyering@redhat.com>
59444
59445         Avoid diagnostics from sha1sum when there is no cached checksum.
59446         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59447         if the po.s1 file hasn't been created yet.
59448
59449         * build-aux/bootstrap: Sync from coreutils:
59450         2007-10-24  Jim Meyering  <meyering@redhat.com>
59451         Get gnulib from the git repository, not from an obsolete cvs one.
59452         * build-aux/bootstrap: Suggestion from Micah Cowan.
59453         2007-10-04  Jim Meyering  <jim@meyering.net>
59454         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59455         (update_po_files): Work also when there are no .po files in po/.
59456
59457 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * README: Append ".git" to git and cg examples.
59460         Problem reported by Benoit Sigoure.
59461
59462 2007-10-23  Micah Cowan  <micah@cowan.name>
59463
59464         * users.txt: Add wget.
59465
59466 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59467
59468         Fix linking of some unistdio tests on FreeBSD.
59469         * modules/unistdio/u16-vsnprintf-tests
59470         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59471         * modules/unistdio/u16-vsprintf-tests
59472         (test_u16_vsnprintf1_LDADD): Likewise.
59473         * modules/unistdio/u32-vsnprintf-tests
59474         (test_u32_vsnprintf1_LDADD): Likewise.
59475         * modules/unistdio/u32-vsprintf-tests
59476         (test_u32_vsprintf1_LDADD): Likewise.
59477         * modules/unistdio/u8-vsnprintf-tests
59478         (test_u8_vsnprintf1_LDADD): Likewise.
59479         * modules/unistdio/u8-vsprintf-tests
59480         (test_u8_vsprintf1_LDADD): Likewise.
59481         * modules/unistdio/ulc-vsnprintf-tests
59482         (test_ulc_vsnprintf1_LDADD): Likewise.
59483         * modules/unistdio/ulc-vsprintf-tests
59484         (test_ulc_vsprintf1_LDADD): Likewise.
59485
59486         Fix linking of some uniconv tests on FreeBSD.
59487         * modules/uniconv/u16-conv-from-enc-tests
59488         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59489         * modules/uniconv/u16-conv-to-enc-tests
59490         (test_u16_conv_to_enc_LDADD): Likewise.
59491         * modules/uniconv/u16-strconv-from-enc-tests
59492         (test_u16_strconv_from_enc_LDADD): Likewise.
59493         * modules/uniconv/u16-strconv-to-enc-tests
59494         (test_u16_strconv_to_enc_LDADD): Likewise.
59495         * modules/uniconv/u32-conv-from-enc-tests
59496         (test_u32_conv_from_enc_LDADD): Likewise.
59497         * modules/uniconv/u32-conv-to-enc-tests
59498         (test_u32_conv_to_enc_LDADD): Likewise.
59499         * modules/uniconv/u32-strconv-from-enc-tests
59500         (test_u32_strconv_from_enc_LDADD): Likewise.
59501         * modules/uniconv/u32-strconv-to-enc-tests
59502         (test_u32_strconv_to_enc_LDADD): Likewise.
59503         * modules/uniconv/u8-conv-from-enc-tests
59504         (test_u8_conv_from_enc_LDADD): Likewise.
59505         * modules/uniconv/u8-conv-to-enc-tests
59506         (test_u8_conv_to_enc_LDADD): Likewise.
59507         * modules/uniconv/u8-strconv-from-enc-tests
59508         (test_u8_strconv_from_enc_LDADD): Likewise.
59509         * modules/uniconv/u8-strconv-to-enc-tests
59510         (test_u8_strconv_to_enc_LDADD): Likewise.
59511
59512 2007-10-22  Bruno Haible  <bruno@clisp.org>
59513
59514         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59515         size.
59516
59517 2007-10-22  Eric Blake  <ebb9@byu.net>
59518
59519         Tweak x*printf documentation.
59520         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59521         variable name and comments.
59522         Suggested by Bruno Haible.
59523
59524 2007-10-22  Bruno Haible  <bruno@clisp.org>
59525
59526         * lib/acl.c (copy_acl): Fix file name in comment.
59527
59528 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         Fix Tru64 problem with stdbool.h.
59531         * lib/stdbool.in.h (false, true):
59532         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59533         Don't declare as an enum in this situation; it runs afoul of Tru64.
59534         Problem reported by Steven M. Schweda in
59535         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59536
59537 2007-10-22  Eric Blake  <ebb9@byu.net>
59538
59539         Also wrap vf?printf.
59540         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59541         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59542         (xvprintf, xvfprintf): New functions.
59543
59544 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59545
59546         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59547         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59548
59549         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59550         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59551
59552 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59553
59554         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59555         by Bruno Haible.
59556
59557 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59558
59559         * lib/getloadavg.c
59560         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59561         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59562
59563         * tests/test-i-ring.c: Work for C89.
59564
59565 2007-10-22  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59568         -1u, in preprocessor expression, so that we don't test for the bug
59569         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59571
59572 2007-10-22  Eric Blake  <ebb9@byu.net>
59573
59574         * tests/test-yesno.sh: Silence stderr during test.
59575
59576 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59577
59578         * modules/crypto/gc-camellia: New file.
59579
59580         * m4/gc-camellia.m4: New file.
59581
59582         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59583
59584         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59585
59586 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59587
59588         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59589         --help to stdout.  Reported by sms@antinode.org (Steven
59590         M. Schweda).
59591
59592 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59593
59594         * users.txt: Fix link to libksba.
59595
59596 2007-10-21  Ben Pfaff  <blp@gnu.org>
59597
59598         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59599         round.c roundf implementation that depends on floorf and ceilf to
59600         be tested unconditionally.
59601
59602 2007-10-21  Ben Pfaff  <blp@gnu.org>
59603
59604         * m4/check-libm-func.m4: Removed.
59605         * m4/check-math-lib.m4: New file.
59606         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59607         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59608         definition and lack of AC_LIBOBJ([roundf]).
59609         * m4/roundl.m4: Ditto, and similarly for roundl.
59610         * modules/round: Reference new m4 file.
59611         * modules/roundf: Ditto.
59612         * modules/roundl: Ditto.
59613         * tests/test-round2.c (main): Use ROUND instead of round.
59614         Bug report from Bruno Haible.
59615
59616 2007-10-21  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59619         context.
59620
59621 2007-10-21  Bruno Haible  <bruno@clisp.org>
59622
59623         * tests/test-wcwidth.c (main): Allow negative result for some control
59624         characters.
59625
59626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59627         Needed on OSF/1 5.1.
59628
59629 2007-10-21  Bruno Haible  <bruno@clisp.org>
59630
59631         * tests/test-floorf1.c: Include isnanf.h.
59632         (main): Use isnanf() instead of isnan().
59633         * tests/test-ceilf1.c: Include isnanf.h.
59634         (main): Use isnanf() instead of isnan().
59635         * tests/test-truncf1.c: Include isnanf.h.
59636         (main): Use isnanf() instead of isnan().
59637         * tests/test-roundf1.c: Include isnanf.h.
59638         (main): Use isnanf() instead of isnan().
59639
59640 2007-10-21  Eric Blake  <ebb9@byu.net>
59641
59642         * users.txt: Update URL for m4.
59643
59644 2007-10-21  Bruno Haible  <bruno@clisp.org>
59645
59646         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59647
59648 2007-10-21  Bruno Haible  <bruno@clisp.org>
59649
59650         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59651         Git's management files if the CVS files are not present.
59652
59653 2007-10-20  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59656         gcc-3.4.x.
59657
59658 2007-10-20  Ben Pfaff  <blp@gnu.org>
59659
59660         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59661         implementations.
59662         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59663         * lib/round.c: New file.
59664         * lib/roundf.c: New file.
59665         * lib/roundl.c: New file.
59666         * m4/round.m4: New file.
59667         * m4/roundf.m4: New file.
59668         * m4/roundl.m4: New file.
59669         * m4/check-libm-func-m4: New file.
59670         * modules/math: Replace round, roundf, roundl related @VARS@ in
59671         math.in.h.
59672         * modules/round: New file.
59673         * modules/round-tests: New file.
59674         * modules/roundf: New file.
59675         * modules/roundf-tests: New file.
59676         * modules/roundl: New file.
59677         * modules/roundl-tests: New file.
59678         * tests/test-round1.c: New file.
59679         * tests/test-round2.c: New file.
59680         * tests/test-roundf1.c: New file.
59681         * tests/test-roundf2.c: New file.
59682         * tests/test-roundl.c: New file.
59683         * doc/functions/round.texi: Mention round module.
59684         * doc/functions/roundf.texi: Mention roundf module.
59685         * doc/functions/roundl.texi: Mention roundl module.
59686         * MODULES.html.sh: Mention new modules.
59687         Thanks to Bruno Haible for suggestions.
59688
59689 2007-10-20  Jim Meyering  <meyering@redhat.com>
59690
59691         * lib/xprintf.c: Include <config.h> unconditionally.
59692
59693         Change xprintf's license to GPL.
59694         * modules/xprintf (License): s/LGPL/GPL/, since this module
59695         depends on modules (exit and exitfail) which are GPL.
59696         Suggestion from Bruno Haible.
59697
59698         xprintf fixes.
59699         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59700         Use a clearer diagnostic.
59701         Patch from Bruno Haible.
59702
59703 2007-10-20  Bruno Haible  <bruno@clisp.org>
59704
59705         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59706         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59707         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59708
59709 2007-10-20  Bruno Haible  <bruno@clisp.org>
59710
59711         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59712         precision in the comparison result > x - 1 or similar.
59713         * tests/test-ceilf2.c (correct_result_p): Likewise.
59714         * tests/test-truncf2.c (correct_result_p): Likewise.
59715         * tests/test-trunc2.c (correct_result_p): Likewise.
59716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59717
59718 2007-10-20  Bruno Haible  <bruno@clisp.org>
59719
59720         * modules/ceil: New file.
59721         * m4/ceil.m4: New file.
59722         * doc/functions/ceil.texi: Mention the 'ceil' module.
59723
59724 2007-10-20  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/floor: New file.
59727         * m4/floor.m4: New file.
59728         * doc/functions/floor.texi: Mention the 'floor' module.
59729
59730 2007-10-20  Bruno Haible  <bruno@clisp.org>
59731
59732         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59733         of %a.
59734         * modules/floorf-tests (Depends-on): Likewise.
59735         * modules/truncf-tests (Depends-on): Likewise.
59736         * modules/trunc-tests (Depends-on): Likewise.
59737         Reported by Ben Pfaff.
59738
59739 2007-10-19  Jim Meyering  <meyering@redhat.com>
59740
59741         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59742         Don't bother testing specific errno values.  Just test ferror.
59743
59744         New module: xprintf
59745         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59746
59747 2007-10-19  Bruno Haible  <bruno@clisp.org>
59748
59749         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59750         syntax.
59751         * modules/javaexec (Makefile.am): Likewise.
59752         * modules/relocatable-prog (Makefile.am): Likewise.
59753         Suggested by Jim Meyering.
59754
59755 2007-10-18  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59758         Reported by Jim Meyering.
59759
59760 2007-10-18  Eric Blake  <ebb9@byu.net>
59761
59762         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59763
59764 2007-10-18  Bruno Haible  <bruno@clisp.org>
59765
59766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59767         the format string into writable memory. Needed in Fortify conditions.
59768
59769 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59770             Bruno Haible  <bruno@clisp.org>
59771
59772         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59773         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59774         * modules/trim (Depends-on): Add mbchar.
59775         (configure.ac): Add gl_FUNC_MBRTOWC.
59776         (Makefile.am): Augment lib_SOURCES.
59777
59778 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         Modify glob.c to use fstatat and dirfd, to simplify it.
59781         Suggested by Eric Blake.
59782         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59783         Don't include <stdbool.h>; not used.
59784         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59785         (link_exists_p): Simplify implementation, since we can now assume
59786         dirfd and fstatat.
59787         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59788
59789 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59790
59791         * gnulib-tool (func_get_dependencies): Fix sed script to
59792         match only tests.
59793
59794 2007-10-17  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59797         allow locale names without encoding suffix.
59798         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59799         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59800
59801 2007-10-16  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59804         * lib/getgroups.c (getgroups): Likewise.
59805         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59806
59807 2007-10-16  Bruno Haible  <bruno@clisp.org>
59808
59809         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59810         * modules/malloc-posix (License): Likewise.
59811         * modules/realloc-posix (License): Likewise.
59812         * modules/calloc-posix (License): Likewise.
59813         * modules/intprops (License): Change from GPL to LGPL, with
59814         Paul Eggert's approval.
59815
59816 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         Merge glibc changes into lib/glob.c.
59819
59820         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59821         2007-10-15 04:59:03 UTC.  Here are the changes:
59822
59823         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59824
59825         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59826
59827         * lib/glob.c: Add some branch prediction throughout.
59828
59829         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59830
59831         [BZ #5103]
59832         * lib/glob.c (glob): Recognize patterns starting \/.
59833
59834         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59835
59836         [BZ #3996]
59837         * lib/glob.c (attribute_hidden): Define if not defined.
59838         (glob): Unescape dirname, filename or username when needed and not
59839         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59840         is NULL.  Handle unescaped [ in pattern without closing ].
59841         Don't pass GLOB_CHECK down to recursive glob for directories.
59842         (__glob_pattern_type): New function.
59843         (__glob_pattern_p): Implement using __glob_pattern_type.
59844         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59845         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59846         Remove unreachable code.
59847
59848         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59849
59850         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59851         explain why there are no leaks.
59852
59853         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59854
59855         [BZ #3253]
59856         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59857         time, rather allocate increasingly bigger arrays of pointers, if
59858         possible with alloca, if too large with malloc.
59859
59860 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59861
59862         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59863         Problem reported by H.Merijn Brand in
59864         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59865         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59866         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59867
59868 2007-10-15  Bruno Haible  <bruno@clisp.org>
59869
59870         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59871         with explicit rpl_ prefix.
59872         * lib/fopen.c (fopen): Likewise.
59873         * lib/freopen.c (freopen): Likewise.
59874         * lib/iconv.c (iconv): Likewise.
59875         * lib/iconv_close.c (iconv_close): Likewise.
59876
59877 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59878
59879         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59880
59881 2007-10-15  Bruno Haible  <bruno@clisp.org>
59882
59883         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59884         <stddef.h> instead of <stdlib.h> since we only need NULL.
59885         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59886
59887 2007-10-15  Bruno Haible  <bruno@clisp.org>
59888
59889         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59890         Replace paragraph talking about LIBOBJS.
59891         Reported by Colin Watson <cjwatson@debian.org>.
59892
59893 2007-10-15  Bruno Haible  <bruno@clisp.org>
59894
59895         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59896         <stdlib.h> before using NULL.
59897
59898 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59899
59900         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59901         Reported by Albert Chin <china@thewrittenword.com>.
59902
59903 2007-10-14  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/iconv_open-utf-tests: New file.
59906         * tests/test-iconv-utf.c: New file.
59907
59908         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59909         * modules/iconv_open-utf: New file.
59910         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59911         (iconv, iconv_close): New declarations.
59912         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59913         be defined.
59914         (iconv_open): Add special handling of conversion between UTF-8 and
59915         UTF-{16,32}{BE,LE}.
59916         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59917         * lib/iconv_close.c: New file.
59918         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59919         gl_FUNC_ICONV_OPEN.
59920         (gl_FUNC_ICONV_OPEN): Use it.
59921         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59922         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59923         and REPLACE_ICONV_UTF.
59924         * modules/iconv_open (Depends-on): Add c-strcase.
59925         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59926         ICONV_CONST.
59927         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59928
59929 2007-10-13  Albert Chin  <china@thewrittenword.com>
59930             Bruno Haible  <bruno@clisp.org>
59931
59932         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59933         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59934
59935 2007-10-13  Bruno Haible  <bruno@clisp.org>
59936
59937         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59938         defined, use the ISO C99 inline semantics.
59939         * lib/argp.h (ARGP_EI): Likewise.
59940
59941 2007-10-13  Bruno Haible  <bruno@clisp.org>
59942
59943         Handle 'inline' change in gcc 4.3.0.
59944         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59945         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59946         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59947         argp_fmtstream_point): Disable 'extern' declaration if the function
59948         definition is going to be provided inline.
59949         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59950         semantics, not the ISO C99 inline semantics.
59951         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59952         'extern' declaration if the function definition is going to be provided
59953         inline.
59954         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59955         the GNU C inline semantics, not the ISO C99 inline semantics. With
59956         GCC 4.2, avoid a warning.
59957
59958 2007-10-13  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/freading.h (freading): Enable the use of __freading for
59961         glibc >= 2.7.
59962         * lib/freading.c (freading): Likewise.
59963
59964 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59967         "warning: C99 inline functions are not supported; using GNU89".
59968
59969 2007-10-12  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59972         of 2.
59973         * tests/test-ceilf2.c: New file.
59974         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59975
59976         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59977         * modules/ceilf-tests: Update.
59978
59979 2007-10-12  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59982         of 2.
59983         * tests/test-floorf2.c: New file.
59984         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59985
59986         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59987         * modules/floorf-tests: Update.
59988
59989 2007-10-12  Bruno Haible  <bruno@clisp.org>
59990
59991         * tests/test-trunc2.c: New file.
59992         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59993
59994         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59995         * modules/trunc-tests: Update.
59996
59997 2007-10-12  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60000         of 2.
60001         * tests/test-truncf2.c: New file.
60002         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60003
60004         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60005         * modules/truncf-tests: Update.
60006
60007 2007-10-11  Eric Blake  <ebb9@byu.net>
60008
60009         Don't claim strerror is broken on Interix.
60010         * doc/functions/strerror.texi (strerror): Known broken systems are
60011         now Solaris 8, and not Interix.
60012         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60013         Interix on cross-compile.
60014         Reported by Martin Koeppe in
60015         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60016
60017 2007-10-11  Bruno Haible  <bruno@clisp.org>
60018
60019         * modules/i-ring-tests: New file.
60020         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60021         instead of assert.
60022
60023 2007-10-11  Bruno Haible  <bruno@clisp.org>
60024
60025         * modules/filenamecat-tests: New file.
60026         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60027         * lib/filenamecat.c: Remove test code.
60028
60029 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60032
60033         * lib/strerror.c: Include <string.h> always, to test interface,
60034         and to remove the need for the dummy.
60035         Include intprops.h to compute width instead of doing it ourselves
60036         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60037         (strerror): Define it to return NULL if there's no system strerror.
60038         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60039         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60040         ancient pre-strerror Unix systems well any more.  Saying "unknown
60041         system error" is enough.
60042         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60043         simpler strerror.c implementation.
60044         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60045         Simplify the tests to reflect the simpler strerror implementation.
60046         * modules/strerror (Depends-on): Add intprops.
60047
60048 2007-10-09  Eric Blake  <ebb9@byu.net>
60049
60050         Silence test-fpending.
60051         * modules/fpending-tests (Files): Add wrapper script.
60052         * tests/test-fpending.sh: New file.
60053
60054 2007-10-09  Bruno Haible  <bruno@clisp.org>
60055
60056         * MODULES.html.sh (func_module): Don't create a hyperlink for
60057         function names like 'printf_frexp'.
60058         (Misc): Add crc, memxor.
60059         (Characteristics of floating types): New section.
60060         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60061         isnanf-nolibm, signbit, trunc, truncf, truncl.
60062         (Enhancements for ISO C 99 functions): New subsection Input/output.
60063         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60064         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60065         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60066         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60067         (Enhancements for POSIX:2001 functions): Add chdir-long.
60068         (File system functions): Add areadlink, chdir-safer, read-file.
60069         Remove cycle-check.
60070         (File system as inode set): New section.
60071         (Date and time): Add gethrxtime.
60072         (Multithreading): Add openmp.
60073         (Internationalization functions): Add localename.
60074         (Unicode string functions): Add unistr/u*-mbsnlen.
60075         (Support for maintaining and releasing projects): Add git-version-gen.
60076         (Lone files): Remove directories.
60077
60078 2007-10-08  Ben Pfaff  <blp@gnu.org>
60079
60080         * lib/xmalloca.h: Fix typo in comment.
60081
60082 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60085         when avoiding problems with integer overflow.  Use a portable test
60086         instead.
60087
60088 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60089
60090         * modules/dummy (License): Change to LGPLv2+.
60091         * modules/float (License): Likewise
60092         * modules/realloc (License): Likewise
60093         * modules/stdlib (License): Likewise
60094
60095 2007-10-07  Bruno Haible  <bruno@clisp.org>
60096
60097         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60098         * floor.c (TWO_MANT_DIG): Likewise.
60099         * ceil.c (TWO_MANT_DIG): Likewise.
60100         Reported by Ben Pfaff.
60101
60102 2007-10-07  Bruno Haible  <bruno@clisp.org>
60103
60104         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60105         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60106         * lib/frexp.c (FUNC): Likewise.
60107         * lib/printf-frexp.h (printf_frexp): Likewise.
60108         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60109         * lib/printf-frexp.c (FUNC): Likewise.
60110         Suggested by Jim Meyering.
60111
60112 2007-10-07  Jim Meyering  <meyering@redhat.com>
60113
60114         Make xnanosleep's integer overflow test more robust.
60115         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60116         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60117
60118 2007-10-07  Bruno Haible  <bruno@clisp.org>
60119
60120         * NEWS: Mention the license change.
60121
60122         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60123         abbreviations in the modules files.
60124
60125         Change copyright notice from GPLv2+ to GPLv3+.
60126         * README: Change copyright notice.
60127         * MODULES.html.sh: Likewise.
60128         * build-aux/bootstrap.conf: Likewise.
60129         * build-aux/config.libpath: Likewise.
60130         * build-aux/csharpcomp.sh.in: Likewise.
60131         * build-aux/csharpexec.sh.in: Likewise.
60132         * build-aux/install-reloc: Likewise.
60133         * build-aux/javacomp.sh.in: Likewise.
60134         * build-aux/javaexec.sh.in: Likewise.
60135         * build-aux/ldd.sh.in: Likewise.
60136         * build-aux/reloc-ldflags: Likewise.
60137         * build-aux/relocatable.sh.in: Likewise.
60138         * build-aux/x-to-1.in: Likewise.
60139         * check-module: Likewise.
60140         * config/srclistvars.sh: Likewise.
60141         * gnulib-tool: Likewise.
60142         * lib/acl-internal.h: Likewise.
60143         * lib/acl.c: Likewise.
60144         * lib/acl.h: Likewise.
60145         * lib/acl_entries.c: Likewise.
60146         * lib/areadlink-with-size.c: Likewise.
60147         * lib/areadlink.c: Likewise.
60148         * lib/areadlink.h: Likewise.
60149         * lib/argmatch.c: Likewise.
60150         * lib/argmatch.h: Likewise.
60151         * lib/argp-ba.c: Likewise.
60152         * lib/argp-eexst.c: Likewise.
60153         * lib/argp-fmtstream.c: Likewise.
60154         * lib/argp-fmtstream.h: Likewise.
60155         * lib/argp-fs-xinl.c: Likewise.
60156         * lib/argp-help.c: Likewise.
60157         * lib/argp-namefrob.h: Likewise.
60158         * lib/argp-parse.c: Likewise.
60159         * lib/argp-pin.c: Likewise.
60160         * lib/argp-pv.c: Likewise.
60161         * lib/argp-pvh.c: Likewise.
60162         * lib/argp-xinl.c: Likewise.
60163         * lib/argp.h: Likewise.
60164         * lib/at-func.c: Likewise.
60165         * lib/atanl.c: Likewise.
60166         * lib/backupfile.c: Likewise.
60167         * lib/backupfile.h: Likewise.
60168         * lib/basename.c: Likewise.
60169         * lib/binary-io.h: Likewise.
60170         * lib/byteswap.in.h: Likewise.
60171         * lib/c-stack.c: Likewise.
60172         * lib/c-stack.h: Likewise.
60173         * lib/c-strcasestr.c: Likewise.
60174         * lib/c-strcasestr.h: Likewise.
60175         * lib/c-strstr.c: Likewise.
60176         * lib/c-strstr.h: Likewise.
60177         * lib/c-strtod.c: Likewise.
60178         * lib/calloc.c: Likewise.
60179         * lib/canon-host.c: Likewise.
60180         * lib/canon-host.h: Likewise.
60181         * lib/canonicalize-lgpl.c: Likewise.
60182         * lib/canonicalize.c: Likewise.
60183         * lib/canonicalize.h: Likewise.
60184         * lib/ceil.c: Likewise.
60185         * lib/ceilf.c: Likewise.
60186         * lib/ceill.c: Likewise.
60187         * lib/chdir-long.c: Likewise.
60188         * lib/chdir-long.h: Likewise.
60189         * lib/chdir-safer.c: Likewise.
60190         * lib/chdir-safer.h: Likewise.
60191         * lib/chown.c: Likewise.
60192         * lib/classpath.c: Likewise.
60193         * lib/classpath.h: Likewise.
60194         * lib/clean-temp.c: Likewise.
60195         * lib/clean-temp.h: Likewise.
60196         * lib/cloexec.c: Likewise.
60197         * lib/close-stream.c: Likewise.
60198         * lib/closein.c: Likewise.
60199         * lib/closein.h: Likewise.
60200         * lib/closeout.c: Likewise.
60201         * lib/closeout.h: Likewise.
60202         * lib/concat-filename.c: Likewise.
60203         * lib/copy-file.c: Likewise.
60204         * lib/copy-file.h: Likewise.
60205         * lib/count-one-bits.h: Likewise.
60206         * lib/crc.c: Likewise.
60207         * lib/crc.h: Likewise.
60208         * lib/creat-safer.c: Likewise.
60209         * lib/csharpcomp.c: Likewise.
60210         * lib/csharpcomp.h: Likewise.
60211         * lib/csharpexec.c: Likewise.
60212         * lib/csharpexec.h: Likewise.
60213         * lib/cycle-check.c: Likewise.
60214         * lib/cycle-check.h: Likewise.
60215         * lib/diacrit.c: Likewise.
60216         * lib/diacrit.h: Likewise.
60217         * lib/diffseq.h: Likewise.
60218         * lib/dirchownmod.c: Likewise.
60219         * lib/dirent.in.h: Likewise.
60220         * lib/dirfd.c: Likewise.
60221         * lib/dirfd.h: Likewise.
60222         * lib/dirname.c: Likewise.
60223         * lib/dirname.h: Likewise.
60224         * lib/dummy.c: Likewise.
60225         * lib/dup-safer.c: Likewise.
60226         * lib/dup2.c: Likewise.
60227         * lib/eealloc.h: Likewise.
60228         * lib/error.c: Likewise.
60229         * lib/error.h: Likewise.
60230         * lib/euidaccess.c: Likewise.
60231         * lib/exclude.c: Likewise.
60232         * lib/exclude.h: Likewise.
60233         * lib/execute.c: Likewise.
60234         * lib/execute.h: Likewise.
60235         * lib/exitfail.c: Likewise.
60236         * lib/exitfail.h: Likewise.
60237         * lib/expl.c: Likewise.
60238         * lib/fatal-signal.c: Likewise.
60239         * lib/fatal-signal.h: Likewise.
60240         * lib/fbufmode.c: Likewise.
60241         * lib/fbufmode.h: Likewise.
60242         * lib/fchdir.c: Likewise.
60243         * lib/fchmodat.c: Likewise.
60244         * lib/fchownat.c: Likewise.
60245         * lib/fcntl--.h: Likewise.
60246         * lib/fcntl-safer.h: Likewise.
60247         * lib/fcntl.in.h: Likewise.
60248         * lib/fd-safer.c: Likewise.
60249         * lib/fflush.c: Likewise.
60250         * lib/file-has-acl.c: Likewise.
60251         * lib/file-set.c: Likewise.
60252         * lib/file-type.c: Likewise.
60253         * lib/file-type.h: Likewise.
60254         * lib/fileblocks.c: Likewise.
60255         * lib/filemode.c: Likewise.
60256         * lib/filemode.h: Likewise.
60257         * lib/filename.h: Likewise.
60258         * lib/filenamecat.c: Likewise.
60259         * lib/filenamecat.h: Likewise.
60260         * lib/findprog.c: Likewise.
60261         * lib/findprog.h: Likewise.
60262         * lib/float.in.h: Likewise.
60263         * lib/floor.c: Likewise.
60264         * lib/floorf.c: Likewise.
60265         * lib/floorl.c: Likewise.
60266         * lib/fopen-safer.c: Likewise.
60267         * lib/fopen.c: Likewise.
60268         * lib/fpending.c: Likewise.
60269         * lib/fpending.h: Likewise.
60270         * lib/fprintf.c: Likewise.
60271         * lib/fprintftime.h: Likewise.
60272         * lib/fpucw.h: Likewise.
60273         * lib/fpurge.c: Likewise.
60274         * lib/fpurge.h: Likewise.
60275         * lib/freadable.c: Likewise.
60276         * lib/freadable.h: Likewise.
60277         * lib/freadahead.c: Likewise.
60278         * lib/freadahead.h: Likewise.
60279         * lib/freading.c: Likewise.
60280         * lib/freading.h: Likewise.
60281         * lib/free.c: Likewise.
60282         * lib/freopen.c: Likewise.
60283         * lib/frexp.c: Likewise.
60284         * lib/frexpl.c: Likewise.
60285         * lib/fseek.c: Likewise.
60286         * lib/fseterr.c: Likewise.
60287         * lib/fseterr.h: Likewise.
60288         * lib/fstatat.c: Likewise.
60289         * lib/fstrcmp.c: Likewise.
60290         * lib/fstrcmp.h: Likewise.
60291         * lib/fsusage.c: Likewise.
60292         * lib/fsusage.h: Likewise.
60293         * lib/ftell.c: Likewise.
60294         * lib/ftello.c: Likewise.
60295         * lib/fts-cycle.c: Likewise.
60296         * lib/fts.c: Likewise.
60297         * lib/fts_.h: Likewise.
60298         * lib/full-read.c: Likewise.
60299         * lib/full-read.h: Likewise.
60300         * lib/full-write.c: Likewise.
60301         * lib/full-write.h: Likewise.
60302         * lib/fwritable.c: Likewise.
60303         * lib/fwritable.h: Likewise.
60304         * lib/fwriteerror.c: Likewise.
60305         * lib/fwriteerror.h: Likewise.
60306         * lib/fwriting.c: Likewise.
60307         * lib/fwriting.h: Likewise.
60308         * lib/gcd.c: Likewise.
60309         * lib/gcd.h: Likewise.
60310         * lib/getcwd.c: Likewise.
60311         * lib/getdate.h: Likewise.
60312         * lib/getdate.y: Likewise.
60313         * lib/getdomainname.c: Likewise.
60314         * lib/getdomainname.h: Likewise.
60315         * lib/getgroups.c: Likewise.
60316         * lib/gethostname.c: Likewise.
60317         * lib/gethrxtime.c: Likewise.
60318         * lib/gethrxtime.h: Likewise.
60319         * lib/getloadavg.c: Likewise.
60320         * lib/getndelim2.c: Likewise.
60321         * lib/getndelim2.h: Likewise.
60322         * lib/getnline.c: Likewise.
60323         * lib/getnline.h: Likewise.
60324         * lib/getopt.c: Likewise.
60325         * lib/getopt.in.h: Likewise.
60326         * lib/getopt1.c: Likewise.
60327         * lib/getopt_int.h: Likewise.
60328         * lib/getpagesize.h: Likewise.
60329         * lib/getsubopt.c: Likewise.
60330         * lib/gettime.c: Likewise.
60331         * lib/getugroups.c: Likewise.
60332         * lib/getugroups.h: Likewise.
60333         * lib/getusershell.c: Likewise.
60334         * lib/gl_anyavltree_list1.h: Likewise.
60335         * lib/gl_anyavltree_list2.h: Likewise.
60336         * lib/gl_anyhash_list1.h: Likewise.
60337         * lib/gl_anyhash_list2.h: Likewise.
60338         * lib/gl_anylinked_list1.h: Likewise.
60339         * lib/gl_anylinked_list2.h: Likewise.
60340         * lib/gl_anyrbtree_list1.h: Likewise.
60341         * lib/gl_anyrbtree_list2.h: Likewise.
60342         * lib/gl_anytree_list1.h: Likewise.
60343         * lib/gl_anytree_list2.h: Likewise.
60344         * lib/gl_anytree_oset.h: Likewise.
60345         * lib/gl_anytreehash_list1.h: Likewise.
60346         * lib/gl_anytreehash_list2.h: Likewise.
60347         * lib/gl_array_list.c: Likewise.
60348         * lib/gl_array_list.h: Likewise.
60349         * lib/gl_array_oset.c: Likewise.
60350         * lib/gl_array_oset.h: Likewise.
60351         * lib/gl_avltree_list.c: Likewise.
60352         * lib/gl_avltree_list.h: Likewise.
60353         * lib/gl_avltree_oset.c: Likewise.
60354         * lib/gl_avltree_oset.h: Likewise.
60355         * lib/gl_avltreehash_list.c: Likewise.
60356         * lib/gl_avltreehash_list.h: Likewise.
60357         * lib/gl_carray_list.c: Likewise.
60358         * lib/gl_carray_list.h: Likewise.
60359         * lib/gl_linked_list.c: Likewise.
60360         * lib/gl_linked_list.h: Likewise.
60361         * lib/gl_linkedhash_list.c: Likewise.
60362         * lib/gl_linkedhash_list.h: Likewise.
60363         * lib/gl_list.c: Likewise.
60364         * lib/gl_list.h: Likewise.
60365         * lib/gl_oset.c: Likewise.
60366         * lib/gl_oset.h: Likewise.
60367         * lib/gl_rbtree_list.c: Likewise.
60368         * lib/gl_rbtree_list.h: Likewise.
60369         * lib/gl_rbtree_oset.c: Likewise.
60370         * lib/gl_rbtree_oset.h: Likewise.
60371         * lib/gl_rbtreehash_list.c: Likewise.
60372         * lib/gl_rbtreehash_list.h: Likewise.
60373         * lib/gl_sublist.c: Likewise.
60374         * lib/gl_sublist.h: Likewise.
60375         * lib/group-member.c: Likewise.
60376         * lib/group-member.h: Likewise.
60377         * lib/hard-locale.c: Likewise.
60378         * lib/hard-locale.h: Likewise.
60379         * lib/hash-pjw.c: Likewise.
60380         * lib/hash-pjw.h: Likewise.
60381         * lib/hash-triple.c: Likewise.
60382         * lib/hash.c: Likewise.
60383         * lib/hash.h: Likewise.
60384         * lib/human.c: Likewise.
60385         * lib/human.h: Likewise.
60386         * lib/i-ring.c: Likewise.
60387         * lib/i-ring.h: Likewise.
60388         * lib/idcache.c: Likewise.
60389         * lib/imaxabs.c: Likewise.
60390         * lib/imaxdiv.c: Likewise.
60391         * lib/inet_pton.c: Likewise.
60392         * lib/inet_pton.h: Likewise.
60393         * lib/intprops.h: Likewise.
60394         * lib/inttostr.c: Likewise.
60395         * lib/inttostr.h: Likewise.
60396         * lib/inttypes.in.h: Likewise.
60397         * lib/isapipe.c: Likewise.
60398         * lib/isdir.c: Likewise.
60399         * lib/isnan.c: Likewise.
60400         * lib/isnan.h: Likewise.
60401         * lib/isnanf.c: Likewise.
60402         * lib/isnanf.h: Likewise.
60403         * lib/isnanl-nolibm.h: Likewise.
60404         * lib/isnanl.c: Likewise.
60405         * lib/isnanl.h: Likewise.
60406         * lib/javacomp.c: Likewise.
60407         * lib/javacomp.h: Likewise.
60408         * lib/javaexec.c: Likewise.
60409         * lib/javaexec.h: Likewise.
60410         * lib/javaversion.c: Likewise.
60411         * lib/javaversion.h: Likewise.
60412         * lib/javaversion.java: Likewise.
60413         * lib/lbrkprop.h: Likewise.
60414         * lib/lchmod.h: Likewise.
60415         * lib/lchown.c: Likewise.
60416         * lib/ldexpl.c: Likewise.
60417         * lib/linebreak.c: Likewise.
60418         * lib/linebreak.h: Likewise.
60419         * lib/linebuffer.c: Likewise.
60420         * lib/linebuffer.h: Likewise.
60421         * lib/locale.in.h: Likewise.
60422         * lib/logl.c: Likewise.
60423         * lib/long-options.c: Likewise.
60424         * lib/long-options.h: Likewise.
60425         * lib/lstat.c: Likewise.
60426         * lib/lstat.h: Likewise.
60427         * lib/math.in.h: Likewise.
60428         * lib/mbchar.c: Likewise.
60429         * lib/mbchar.h: Likewise.
60430         * lib/mbfile.h: Likewise.
60431         * lib/mbiter.h: Likewise.
60432         * lib/mbscasecmp.c: Likewise.
60433         * lib/mbscasestr.c: Likewise.
60434         * lib/mbschr.c: Likewise.
60435         * lib/mbscspn.c: Likewise.
60436         * lib/mbslen.c: Likewise.
60437         * lib/mbsncasecmp.c: Likewise.
60438         * lib/mbsnlen.c: Likewise.
60439         * lib/mbspbrk.c: Likewise.
60440         * lib/mbspcasecmp.c: Likewise.
60441         * lib/mbsrchr.c: Likewise.
60442         * lib/mbssep.c: Likewise.
60443         * lib/mbsspn.c: Likewise.
60444         * lib/mbsstr.c: Likewise.
60445         * lib/mbstok_r.c: Likewise.
60446         * lib/mbswidth.c: Likewise.
60447         * lib/mbswidth.h: Likewise.
60448         * lib/mbuiter.h: Likewise.
60449         * lib/memcasecmp.c: Likewise.
60450         * lib/memcasecmp.h: Likewise.
60451         * lib/memchr.c: Likewise.
60452         * lib/memcmp.c: Likewise.
60453         * lib/memcoll.c: Likewise.
60454         * lib/memcoll.h: Likewise.
60455         * lib/memcpy.c: Likewise.
60456         * lib/memrchr.c: Likewise.
60457         * lib/mkancesdirs.c: Likewise.
60458         * lib/mkdir-p.c: Likewise.
60459         * lib/mkdir-p.h: Likewise.
60460         * lib/mkdir.c: Likewise.
60461         * lib/mkdirat.c: Likewise.
60462         * lib/mkdtemp.c: Likewise.
60463         * lib/mkstemp-safer.c: Likewise.
60464         * lib/mkstemp.c: Likewise.
60465         * lib/modechange.c: Likewise.
60466         * lib/modechange.h: Likewise.
60467         * lib/mountlist.c: Likewise.
60468         * lib/mountlist.h: Likewise.
60469         * lib/mpsort.c: Likewise.
60470         * lib/nanosleep.c: Likewise.
60471         * lib/obstack.c: Likewise.
60472         * lib/obstack.h: Likewise.
60473         * lib/open-safer.c: Likewise.
60474         * lib/open.c: Likewise.
60475         * lib/openat-die.c: Likewise.
60476         * lib/openat-priv.h: Likewise.
60477         * lib/openat-proc.c: Likewise.
60478         * lib/openat.c: Likewise.
60479         * lib/openat.h: Likewise.
60480         * lib/pagealign_alloc.c: Likewise.
60481         * lib/pagealign_alloc.h: Likewise.
60482         * lib/physmem.c: Likewise.
60483         * lib/physmem.h: Likewise.
60484         * lib/pipe-safer.c: Likewise.
60485         * lib/pipe.c: Likewise.
60486         * lib/pipe.h: Likewise.
60487         * lib/posixtm.c: Likewise.
60488         * lib/posixtm.h: Likewise.
60489         * lib/posixver.c: Likewise.
60490         * lib/printf-frexp.c: Likewise.
60491         * lib/printf-frexp.h: Likewise.
60492         * lib/printf-frexpl.c: Likewise.
60493         * lib/printf-frexpl.h: Likewise.
60494         * lib/printf.c: Likewise.
60495         * lib/progname.c: Likewise.
60496         * lib/progname.h: Likewise.
60497         * lib/progreloc.c: Likewise.
60498         * lib/putenv.c: Likewise.
60499         * lib/quote.c: Likewise.
60500         * lib/quote.h: Likewise.
60501         * lib/quotearg.c: Likewise.
60502         * lib/quotearg.h: Likewise.
60503         * lib/raise.c: Likewise.
60504         * lib/readline.c: Likewise.
60505         * lib/readline.h: Likewise.
60506         * lib/readlink.c: Likewise.
60507         * lib/readtokens.c: Likewise.
60508         * lib/readtokens.h: Likewise.
60509         * lib/readtokens0.c: Likewise.
60510         * lib/readtokens0.h: Likewise.
60511         * lib/readutmp.c: Likewise.
60512         * lib/readutmp.h: Likewise.
60513         * lib/realloc.c: Likewise.
60514         * lib/relocwrapper.c: Likewise.
60515         * lib/rename-dest-slash.c: Likewise.
60516         * lib/rename.c: Likewise.
60517         * lib/rmdir.c: Likewise.
60518         * lib/rpmatch.c: Likewise.
60519         * lib/safe-read.c: Likewise.
60520         * lib/safe-read.h: Likewise.
60521         * lib/safe-write.c: Likewise.
60522         * lib/safe-write.h: Likewise.
60523         * lib/same-inode.h: Likewise.
60524         * lib/same.c: Likewise.
60525         * lib/same.h: Likewise.
60526         * lib/save-cwd.c: Likewise.
60527         * lib/save-cwd.h: Likewise.
60528         * lib/savedir.c: Likewise.
60529         * lib/savedir.h: Likewise.
60530         * lib/savewd.c: Likewise.
60531         * lib/savewd.h: Likewise.
60532         * lib/search.in.h: Likewise.
60533         * lib/setenv.c: Likewise.
60534         * lib/setenv.h: Likewise.
60535         * lib/settime.c: Likewise.
60536         * lib/sh-quote.c: Likewise.
60537         * lib/sh-quote.h: Likewise.
60538         * lib/sig2str.c: Likewise.
60539         * lib/sig2str.h: Likewise.
60540         * lib/signal.in.h: Likewise.
60541         * lib/signbitd.c: Likewise.
60542         * lib/signbitf.c: Likewise.
60543         * lib/signbitl.c: Likewise.
60544         * lib/sigprocmask.c: Likewise.
60545         * lib/sincosl.c: Likewise.
60546         * lib/sleep.c: Likewise.
60547         * lib/sprintf.c: Likewise.
60548         * lib/sqrtl.c: Likewise.
60549         * lib/stat-time.h: Likewise.
60550         * lib/stdio--.h: Likewise.
60551         * lib/stdio-safer.h: Likewise.
60552         * lib/stdlib--.h: Likewise.
60553         * lib/stdlib-safer.h: Likewise.
60554         * lib/stdlib.in.h: Likewise.
60555         * lib/stpcpy.c: Likewise.
60556         * lib/stpncpy.c: Likewise.
60557         * lib/strchrnul.c: Likewise.
60558         * lib/strcspn.c: Likewise.
60559         * lib/strerror.c: Likewise.
60560         * lib/strftime.c: Likewise.
60561         * lib/strftime.h: Likewise.
60562         * lib/striconveh.c: Likewise.
60563         * lib/striconveh.h: Likewise.
60564         * lib/striconveha.c: Likewise.
60565         * lib/striconveha.h: Likewise.
60566         * lib/stripslash.c: Likewise.
60567         * lib/strnlen1.c: Likewise.
60568         * lib/strnlen1.h: Likewise.
60569         * lib/strtod.c: Likewise.
60570         * lib/strtoimax.c: Likewise.
60571         * lib/strtok_r.c: Likewise.
60572         * lib/strtol.c: Likewise.
60573         * lib/strtoll.c: Likewise.
60574         * lib/strtoul.c: Likewise.
60575         * lib/strtoull.c: Likewise.
60576         * lib/sysexits.in.h: Likewise.
60577         * lib/tempname.c: Likewise.
60578         * lib/tempname.h: Likewise.
60579         * lib/timespec.h: Likewise.
60580         * lib/tls.c: Likewise.
60581         * lib/tls.h: Likewise.
60582         * lib/tmpdir.c: Likewise.
60583         * lib/tmpdir.h: Likewise.
60584         * lib/tmpfile-safer.c: Likewise.
60585         * lib/tmpfile.c: Likewise.
60586         * lib/trigl.c: Likewise.
60587         * lib/trigl.h: Likewise.
60588         * lib/trim.c: Likewise.
60589         * lib/trim.h: Likewise.
60590         * lib/trunc.c: Likewise.
60591         * lib/truncf.c: Likewise.
60592         * lib/truncl.c: Likewise.
60593         * lib/tsearch.c: Likewise.
60594         * lib/unicodeio.c: Likewise.
60595         * lib/unicodeio.h: Likewise.
60596         * lib/unistd--.h: Likewise.
60597         * lib/unistd-safer.h: Likewise.
60598         * lib/unistdio/ulc-fprintf.c: Likewise.
60599         * lib/unistdio/ulc-vfprintf.c: Likewise.
60600         * lib/unlinkdir.c: Likewise.
60601         * lib/unlinkdir.h: Likewise.
60602         * lib/unlocked-io.h: Likewise.
60603         * lib/unsetenv.c: Likewise.
60604         * lib/userspec.c: Likewise.
60605         * lib/utime.c: Likewise.
60606         * lib/utimecmp.c: Likewise.
60607         * lib/utimecmp.h: Likewise.
60608         * lib/utimens.c: Likewise.
60609         * lib/verify.h: Likewise.
60610         * lib/verror.c: Likewise.
60611         * lib/verror.h: Likewise.
60612         * lib/version-etc-fsf.c: Likewise.
60613         * lib/version-etc.c: Likewise.
60614         * lib/version-etc.h: Likewise.
60615         * lib/vfprintf.c: Likewise.
60616         * lib/vprintf.c: Likewise.
60617         * lib/vsprintf.c: Likewise.
60618         * lib/w32spawn.h: Likewise.
60619         * lib/wait-process.c: Likewise.
60620         * lib/wait-process.h: Likewise.
60621         * lib/wcwidth.c: Likewise.
60622         * lib/write-any-file.c: Likewise.
60623         * lib/xalloc-die.c: Likewise.
60624         * lib/xalloc.h: Likewise.
60625         * lib/xasprintf.c: Likewise.
60626         * lib/xgetcwd.c: Likewise.
60627         * lib/xgetcwd.h: Likewise.
60628         * lib/xgetdomainname.c: Likewise.
60629         * lib/xgetdomainname.h: Likewise.
60630         * lib/xgethostname.c: Likewise.
60631         * lib/xmalloc.c: Likewise.
60632         * lib/xmalloca.c: Likewise.
60633         * lib/xmalloca.h: Likewise.
60634         * lib/xmemcoll.c: Likewise.
60635         * lib/xnanosleep.c: Likewise.
60636         * lib/xreadlink.c: Likewise.
60637         * lib/xreadlink.h: Likewise.
60638         * lib/xsetenv.c: Likewise.
60639         * lib/xsetenv.h: Likewise.
60640         * lib/xstriconv.c: Likewise.
60641         * lib/xstriconv.h: Likewise.
60642         * lib/xstrndup.c: Likewise.
60643         * lib/xstrndup.h: Likewise.
60644         * lib/xstrtod.c: Likewise.
60645         * lib/xstrtod.h: Likewise.
60646         * lib/xstrtol-error.c: Likewise.
60647         * lib/xstrtol.c: Likewise.
60648         * lib/xstrtol.h: Likewise.
60649         * lib/xtime.h: Likewise.
60650         * lib/xvasprintf.c: Likewise.
60651         * lib/xvasprintf.h: Likewise.
60652         * lib/yesno.c: Likewise.
60653         * lib/yesno.h: Likewise.
60654         * posix-modules: Likewise.
60655         * tests/test-alloca-opt.c: Likewise.
60656         * tests/test-arcfour.c: Likewise.
60657         * tests/test-arctwo.c: Likewise.
60658         * tests/test-argmatch.c: Likewise.
60659         * tests/test-argp-2.sh: Likewise.
60660         * tests/test-argp.c: Likewise.
60661         * tests/test-arpa_inet.c: Likewise.
60662         * tests/test-array_list.c: Likewise.
60663         * tests/test-array_oset.c: Likewise.
60664         * tests/test-atexit.c: Likewise.
60665         * tests/test-avltree_list.c: Likewise.
60666         * tests/test-avltree_oset.c: Likewise.
60667         * tests/test-avltreehash_list.c: Likewise.
60668         * tests/test-base64.c: Likewise.
60669         * tests/test-binary-io.c: Likewise.
60670         * tests/test-byteswap.c: Likewise.
60671         * tests/test-c-ctype.c: Likewise.
60672         * tests/test-c-strcasecmp.c: Likewise.
60673         * tests/test-c-strcasestr.c: Likewise.
60674         * tests/test-c-strncasecmp.c: Likewise.
60675         * tests/test-c-strstr.c: Likewise.
60676         * tests/test-canonicalize-lgpl.c: Likewise.
60677         * tests/test-canonicalize.c: Likewise.
60678         * tests/test-carray_list.c: Likewise.
60679         * tests/test-ceilf.c: Likewise.
60680         * tests/test-ceill.c: Likewise.
60681         * tests/test-count-one-bits.c: Likewise.
60682         * tests/test-crc.c: Likewise.
60683         * tests/test-dirname.c: Likewise.
60684         * tests/test-fbufmode.c: Likewise.
60685         * tests/test-fcntl.c: Likewise.
60686         * tests/test-fflush.c: Likewise.
60687         * tests/test-floorf.c: Likewise.
60688         * tests/test-floorl.c: Likewise.
60689         * tests/test-fopen.c: Likewise.
60690         * tests/test-fprintf-posix.c: Likewise.
60691         * tests/test-fprintf-posix.h: Likewise.
60692         * tests/test-fpurge.c: Likewise.
60693         * tests/test-freadable.c: Likewise.
60694         * tests/test-freadahead.c: Likewise.
60695         * tests/test-freading.c: Likewise.
60696         * tests/test-freopen.c: Likewise.
60697         * tests/test-frexp.c: Likewise.
60698         * tests/test-frexpl.c: Likewise.
60699         * tests/test-fseek.c: Likewise.
60700         * tests/test-fseeko.c: Likewise.
60701         * tests/test-fseterr.c: Likewise.
60702         * tests/test-fstrcmp.c: Likewise.
60703         * tests/test-ftell.c: Likewise.
60704         * tests/test-ftello.c: Likewise.
60705         * tests/test-fwritable.c: Likewise.
60706         * tests/test-fwriting.c: Likewise.
60707         * tests/test-getaddrinfo.c: Likewise.
60708         * tests/test-getpass.c: Likewise.
60709         * tests/test-gettimeofday.c: Likewise.
60710         * tests/test-hmac-md5.c: Likewise.
60711         * tests/test-hmac-sha1.c: Likewise.
60712         * tests/test-iconv.c: Likewise.
60713         * tests/test-iconvme.c: Likewise.
60714         * tests/test-inttypes.c: Likewise.
60715         * tests/test-isnan.c: Likewise.
60716         * tests/test-isnanf.c: Likewise.
60717         * tests/test-isnanl-nolibm.c: Likewise.
60718         * tests/test-isnanl.c: Likewise.
60719         * tests/test-isnanl.h: Likewise.
60720         * tests/test-ldexpl.c: Likewise.
60721         * tests/test-linked_list.c: Likewise.
60722         * tests/test-linkedhash_list.c: Likewise.
60723         * tests/test-locale.c: Likewise.
60724         * tests/test-localename.c: Likewise.
60725         * tests/test-lock.c: Likewise.
60726         * tests/test-lseek.c: Likewise.
60727         * tests/test-malloca.c: Likewise.
60728         * tests/test-math.c: Likewise.
60729         * tests/test-mbscasecmp.c: Likewise.
60730         * tests/test-mbscasestr1.c: Likewise.
60731         * tests/test-mbscasestr2.c: Likewise.
60732         * tests/test-mbscasestr3.c: Likewise.
60733         * tests/test-mbscasestr4.c: Likewise.
60734         * tests/test-mbschr.c: Likewise.
60735         * tests/test-mbscspn.c: Likewise.
60736         * tests/test-mbsncasecmp.c: Likewise.
60737         * tests/test-mbspbrk.c: Likewise.
60738         * tests/test-mbspcasecmp.c: Likewise.
60739         * tests/test-mbsrchr.c: Likewise.
60740         * tests/test-mbsspn.c: Likewise.
60741         * tests/test-mbsstr1.c: Likewise.
60742         * tests/test-mbsstr2.c: Likewise.
60743         * tests/test-mbsstr3.c: Likewise.
60744         * tests/test-md5.c: Likewise.
60745         * tests/test-memmem.c: Likewise.
60746         * tests/test-netinet_in.c: Likewise.
60747         * tests/test-open.c: Likewise.
60748         * tests/test-printf-frexp.c: Likewise.
60749         * tests/test-printf-frexpl.c: Likewise.
60750         * tests/test-printf-posix.c: Likewise.
60751         * tests/test-printf-posix.h: Likewise.
60752         * tests/test-rbtree_list.c: Likewise.
60753         * tests/test-rbtree_oset.c: Likewise.
60754         * tests/test-rbtreehash_list.c: Likewise.
60755         * tests/test-read-file.c: Likewise.
60756         * tests/test-rijndael.c: Likewise.
60757         * tests/test-search.c: Likewise.
60758         * tests/test-signbit.c: Likewise.
60759         * tests/test-sleep.c: Likewise.
60760         * tests/test-snprintf-posix.c: Likewise.
60761         * tests/test-snprintf-posix.h: Likewise.
60762         * tests/test-snprintf.c: Likewise.
60763         * tests/test-sprintf-posix.c: Likewise.
60764         * tests/test-sprintf-posix.h: Likewise.
60765         * tests/test-stat-time.c: Likewise.
60766         * tests/test-stdbool.c: Likewise.
60767         * tests/test-stdint.c: Likewise.
60768         * tests/test-stdio.c: Likewise.
60769         * tests/test-stdlib.c: Likewise.
60770         * tests/test-stpncpy.c: Likewise.
60771         * tests/test-strcasestr.c: Likewise.
60772         * tests/test-striconv.c: Likewise.
60773         * tests/test-striconveh.c: Likewise.
60774         * tests/test-striconveha.c: Likewise.
60775         * tests/test-string.c: Likewise.
60776         * tests/test-sys_select.c: Likewise.
60777         * tests/test-sys_socket.c: Likewise.
60778         * tests/test-sys_stat.c: Likewise.
60779         * tests/test-sys_time.c: Likewise.
60780         * tests/test-sysexits.c: Likewise.
60781         * tests/test-time.c: Likewise.
60782         * tests/test-tls.c: Likewise.
60783         * tests/test-trunc.c: Likewise.
60784         * tests/test-truncf.c: Likewise.
60785         * tests/test-truncl.c: Likewise.
60786         * tests/test-unistd.c: Likewise.
60787         * tests/test-vasnprintf-posix.c: Likewise.
60788         * tests/test-vasnprintf-posix2.c: Likewise.
60789         * tests/test-vasnprintf.c: Likewise.
60790         * tests/test-vasprintf-posix.c: Likewise.
60791         * tests/test-vasprintf.c: Likewise.
60792         * tests/test-verify.c: Likewise.
60793         * tests/test-vfprintf-posix.c: Likewise.
60794         * tests/test-vprintf-posix.c: Likewise.
60795         * tests/test-vsnprintf-posix.c: Likewise.
60796         * tests/test-vsnprintf.c: Likewise.
60797         * tests/test-vsprintf-posix.c: Likewise.
60798         * tests/test-wchar.c: Likewise.
60799         * tests/test-wctype.c: Likewise.
60800         * tests/test-wcwidth.c: Likewise.
60801         * tests/test-xstrtol.c: Likewise.
60802         * tests/test-xvasprintf.c: Likewise.
60803         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60804         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60805         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60806         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60807         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60808         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60809         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60810         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60811         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60812         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60813         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60814         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60815         * tests/uniname/test-uninames.c: Likewise.
60816         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60817         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60818         * tests/unistdio/test-u16-printf1.h: Likewise.
60819         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60820         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60821         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60822         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60823         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60824         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60825         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60826         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60827         * tests/unistdio/test-u32-printf1.h: Likewise.
60828         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60829         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60830         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60831         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60832         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60833         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60834         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60835         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60836         * tests/unistdio/test-u8-printf1.h: Likewise.
60837         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60838         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60839         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60840         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60841         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60842         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60843         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60844         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60845         * tests/unistdio/test-ulc-printf1.h: Likewise.
60846         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60847         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60848         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60849         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60850         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60851         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60852         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60853         * tests/uniwidth/test-u16-width.c: Likewise.
60854         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60855         * tests/uniwidth/test-u32-width.c: Likewise.
60856         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60857         * tests/uniwidth/test-u8-width.c: Likewise.
60858         * tests/uniwidth/test-uc_width.c: Likewise.
60859         * config/srclist-update: Likewise.
60860         (fixlicense): Update to GPLv3+.
60861
60862         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60863         * tests/test-tsearch.c: Change copyright notice.
60864
60865         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60866         * lib/c-strcaseeq.h: Change copyright notice.
60867         * lib/streq.h: Likewise.
60868         * lib/uniconv.h: Likewise.
60869         * lib/uniconv/u-conv-from-enc.h: Likewise.
60870         * lib/uniconv/u-conv-to-enc.h: Likewise.
60871         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60872         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60873         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60874         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60875         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60876         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60877         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60878         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60879         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60880         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60881         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60882         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60883         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60884         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60885         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60886         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60887         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60888         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60889         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60890         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60891         * lib/uniname.h: Likewise.
60892         * lib/uniname/uniname.c: Likewise.
60893         * lib/unistdio.h: Likewise.
60894         * lib/unistdio/u-asnprintf.h: Likewise.
60895         * lib/unistdio/u-asprintf.h: Likewise.
60896         * lib/unistdio/u-printf-args.c: Likewise.
60897         * lib/unistdio/u-printf-args.h: Likewise.
60898         * lib/unistdio/u-printf-parse.h: Likewise.
60899         * lib/unistdio/u-snprintf.h: Likewise.
60900         * lib/unistdio/u-sprintf.h: Likewise.
60901         * lib/unistdio/u-vasprintf.h: Likewise.
60902         * lib/unistdio/u-vsnprintf.h: Likewise.
60903         * lib/unistdio/u-vsprintf.h: Likewise.
60904         * lib/unistdio/u16-asnprintf.c: Likewise.
60905         * lib/unistdio/u16-asprintf.c: Likewise.
60906         * lib/unistdio/u16-printf-parse.c: Likewise.
60907         * lib/unistdio/u16-snprintf.c: Likewise.
60908         * lib/unistdio/u16-sprintf.c: Likewise.
60909         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60910         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60911         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60912         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60913         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60914         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60915         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60916         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60917         * lib/unistdio/u16-vasnprintf.c: Likewise.
60918         * lib/unistdio/u16-vasprintf.c: Likewise.
60919         * lib/unistdio/u16-vsnprintf.c: Likewise.
60920         * lib/unistdio/u16-vsprintf.c: Likewise.
60921         * lib/unistdio/u32-asnprintf.c: Likewise.
60922         * lib/unistdio/u32-asprintf.c: Likewise.
60923         * lib/unistdio/u32-printf-parse.c: Likewise.
60924         * lib/unistdio/u32-snprintf.c: Likewise.
60925         * lib/unistdio/u32-sprintf.c: Likewise.
60926         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60927         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60928         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60929         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60930         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60931         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60932         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60933         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60934         * lib/unistdio/u32-vasnprintf.c: Likewise.
60935         * lib/unistdio/u32-vasprintf.c: Likewise.
60936         * lib/unistdio/u32-vsnprintf.c: Likewise.
60937         * lib/unistdio/u32-vsprintf.c: Likewise.
60938         * lib/unistdio/u8-asnprintf.c: Likewise.
60939         * lib/unistdio/u8-asprintf.c: Likewise.
60940         * lib/unistdio/u8-printf-parse.c: Likewise.
60941         * lib/unistdio/u8-snprintf.c: Likewise.
60942         * lib/unistdio/u8-sprintf.c: Likewise.
60943         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60944         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60945         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60946         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60947         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60948         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60949         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60950         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60951         * lib/unistdio/u8-vasnprintf.c: Likewise.
60952         * lib/unistdio/u8-vasprintf.c: Likewise.
60953         * lib/unistdio/u8-vsnprintf.c: Likewise.
60954         * lib/unistdio/u8-vsprintf.c: Likewise.
60955         * lib/unistdio/ulc-asnprintf.c: Likewise.
60956         * lib/unistdio/ulc-asprintf.c: Likewise.
60957         * lib/unistdio/ulc-printf-parse.c: Likewise.
60958         * lib/unistdio/ulc-snprintf.c: Likewise.
60959         * lib/unistdio/ulc-sprintf.c: Likewise.
60960         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60961         * lib/unistdio/ulc-vasprintf.c: Likewise.
60962         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60963         * lib/unistdio/ulc-vsprintf.c: Likewise.
60964         * lib/unistr.h: Likewise.
60965         * lib/unistr/u-cpy-alloc.h: Likewise.
60966         * lib/unistr/u-cpy.h: Likewise.
60967         * lib/unistr/u-endswith.h: Likewise.
60968         * lib/unistr/u-move.h: Likewise.
60969         * lib/unistr/u-set.h: Likewise.
60970         * lib/unistr/u-startswith.h: Likewise.
60971         * lib/unistr/u-stpcpy.h: Likewise.
60972         * lib/unistr/u-stpncpy.h: Likewise.
60973         * lib/unistr/u-strcat.h: Likewise.
60974         * lib/unistr/u-strcpy.h: Likewise.
60975         * lib/unistr/u-strcspn.h: Likewise.
60976         * lib/unistr/u-strdup.h: Likewise.
60977         * lib/unistr/u-strlen.h: Likewise.
60978         * lib/unistr/u-strncat.h: Likewise.
60979         * lib/unistr/u-strncpy.h: Likewise.
60980         * lib/unistr/u-strnlen.h: Likewise.
60981         * lib/unistr/u-strpbrk.h: Likewise.
60982         * lib/unistr/u-strspn.h: Likewise.
60983         * lib/unistr/u-strstr.h: Likewise.
60984         * lib/unistr/u-strtok.h: Likewise.
60985         * lib/unistr/u16-check.c: Likewise.
60986         * lib/unistr/u16-chr.c: Likewise.
60987         * lib/unistr/u16-cmp.c: Likewise.
60988         * lib/unistr/u16-cpy-alloc.c: Likewise.
60989         * lib/unistr/u16-cpy.c: Likewise.
60990         * lib/unistr/u16-endswith.c: Likewise.
60991         * lib/unistr/u16-mblen.c: Likewise.
60992         * lib/unistr/u16-mbsnlen.c: Likewise.
60993         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60994         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60995         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60996         * lib/unistr/u16-mbtouc.c: Likewise.
60997         * lib/unistr/u16-mbtoucr.c: Likewise.
60998         * lib/unistr/u16-move.c: Likewise.
60999         * lib/unistr/u16-next.c: Likewise.
61000         * lib/unistr/u16-prev.c: Likewise.
61001         * lib/unistr/u16-set.c: Likewise.
61002         * lib/unistr/u16-startswith.c: Likewise.
61003         * lib/unistr/u16-stpcpy.c: Likewise.
61004         * lib/unistr/u16-stpncpy.c: Likewise.
61005         * lib/unistr/u16-strcat.c: Likewise.
61006         * lib/unistr/u16-strchr.c: Likewise.
61007         * lib/unistr/u16-strcmp.c: Likewise.
61008         * lib/unistr/u16-strcpy.c: Likewise.
61009         * lib/unistr/u16-strcspn.c: Likewise.
61010         * lib/unistr/u16-strdup.c: Likewise.
61011         * lib/unistr/u16-strlen.c: Likewise.
61012         * lib/unistr/u16-strmblen.c: Likewise.
61013         * lib/unistr/u16-strmbtouc.c: Likewise.
61014         * lib/unistr/u16-strncat.c: Likewise.
61015         * lib/unistr/u16-strncmp.c: Likewise.
61016         * lib/unistr/u16-strncpy.c: Likewise.
61017         * lib/unistr/u16-strnlen.c: Likewise.
61018         * lib/unistr/u16-strpbrk.c: Likewise.
61019         * lib/unistr/u16-strrchr.c: Likewise.
61020         * lib/unistr/u16-strspn.c: Likewise.
61021         * lib/unistr/u16-strstr.c: Likewise.
61022         * lib/unistr/u16-strtok.c: Likewise.
61023         * lib/unistr/u16-to-u32.c: Likewise.
61024         * lib/unistr/u16-to-u8.c: Likewise.
61025         * lib/unistr/u16-uctomb-aux.c: Likewise.
61026         * lib/unistr/u16-uctomb.c: Likewise.
61027         * lib/unistr/u32-check.c: Likewise.
61028         * lib/unistr/u32-chr.c: Likewise.
61029         * lib/unistr/u32-cmp.c: Likewise.
61030         * lib/unistr/u32-cpy-alloc.c: Likewise.
61031         * lib/unistr/u32-cpy.c: Likewise.
61032         * lib/unistr/u32-endswith.c: Likewise.
61033         * lib/unistr/u32-mblen.c: Likewise.
61034         * lib/unistr/u32-mbsnlen.c: Likewise.
61035         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61036         * lib/unistr/u32-mbtouc.c: Likewise.
61037         * lib/unistr/u32-mbtoucr.c: Likewise.
61038         * lib/unistr/u32-move.c: Likewise.
61039         * lib/unistr/u32-next.c: Likewise.
61040         * lib/unistr/u32-prev.c: Likewise.
61041         * lib/unistr/u32-set.c: Likewise.
61042         * lib/unistr/u32-startswith.c: Likewise.
61043         * lib/unistr/u32-stpcpy.c: Likewise.
61044         * lib/unistr/u32-stpncpy.c: Likewise.
61045         * lib/unistr/u32-strcat.c: Likewise.
61046         * lib/unistr/u32-strchr.c: Likewise.
61047         * lib/unistr/u32-strcmp.c: Likewise.
61048         * lib/unistr/u32-strcpy.c: Likewise.
61049         * lib/unistr/u32-strcspn.c: Likewise.
61050         * lib/unistr/u32-strdup.c: Likewise.
61051         * lib/unistr/u32-strlen.c: Likewise.
61052         * lib/unistr/u32-strmblen.c: Likewise.
61053         * lib/unistr/u32-strmbtouc.c: Likewise.
61054         * lib/unistr/u32-strncat.c: Likewise.
61055         * lib/unistr/u32-strncmp.c: Likewise.
61056         * lib/unistr/u32-strncpy.c: Likewise.
61057         * lib/unistr/u32-strnlen.c: Likewise.
61058         * lib/unistr/u32-strpbrk.c: Likewise.
61059         * lib/unistr/u32-strrchr.c: Likewise.
61060         * lib/unistr/u32-strspn.c: Likewise.
61061         * lib/unistr/u32-strstr.c: Likewise.
61062         * lib/unistr/u32-strtok.c: Likewise.
61063         * lib/unistr/u32-to-u16.c: Likewise.
61064         * lib/unistr/u32-to-u8.c: Likewise.
61065         * lib/unistr/u32-uctomb.c: Likewise.
61066         * lib/unistr/u8-check.c: Likewise.
61067         * lib/unistr/u8-chr.c: Likewise.
61068         * lib/unistr/u8-cmp.c: Likewise.
61069         * lib/unistr/u8-cpy-alloc.c: Likewise.
61070         * lib/unistr/u8-cpy.c: Likewise.
61071         * lib/unistr/u8-endswith.c: Likewise.
61072         * lib/unistr/u8-mblen.c: Likewise.
61073         * lib/unistr/u8-mbsnlen.c: Likewise.
61074         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61075         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61076         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61077         * lib/unistr/u8-mbtouc.c: Likewise.
61078         * lib/unistr/u8-mbtoucr.c: Likewise.
61079         * lib/unistr/u8-move.c: Likewise.
61080         * lib/unistr/u8-next.c: Likewise.
61081         * lib/unistr/u8-prev.c: Likewise.
61082         * lib/unistr/u8-set.c: Likewise.
61083         * lib/unistr/u8-startswith.c: Likewise.
61084         * lib/unistr/u8-stpcpy.c: Likewise.
61085         * lib/unistr/u8-stpncpy.c: Likewise.
61086         * lib/unistr/u8-strcat.c: Likewise.
61087         * lib/unistr/u8-strchr.c: Likewise.
61088         * lib/unistr/u8-strcmp.c: Likewise.
61089         * lib/unistr/u8-strcpy.c: Likewise.
61090         * lib/unistr/u8-strcspn.c: Likewise.
61091         * lib/unistr/u8-strdup.c: Likewise.
61092         * lib/unistr/u8-strlen.c: Likewise.
61093         * lib/unistr/u8-strmblen.c: Likewise.
61094         * lib/unistr/u8-strmbtouc.c: Likewise.
61095         * lib/unistr/u8-strncat.c: Likewise.
61096         * lib/unistr/u8-strncmp.c: Likewise.
61097         * lib/unistr/u8-strncpy.c: Likewise.
61098         * lib/unistr/u8-strnlen.c: Likewise.
61099         * lib/unistr/u8-strpbrk.c: Likewise.
61100         * lib/unistr/u8-strrchr.c: Likewise.
61101         * lib/unistr/u8-strspn.c: Likewise.
61102         * lib/unistr/u8-strstr.c: Likewise.
61103         * lib/unistr/u8-strtok.c: Likewise.
61104         * lib/unistr/u8-to-u16.c: Likewise.
61105         * lib/unistr/u8-to-u32.c: Likewise.
61106         * lib/unistr/u8-uctomb-aux.c: Likewise.
61107         * lib/unistr/u8-uctomb.c: Likewise.
61108         * lib/unitypes.h: Likewise.
61109         * lib/uniwidth.h: Likewise.
61110         * lib/uniwidth/cjk.h: Likewise.
61111         * lib/uniwidth/u16-strwidth.c: Likewise.
61112         * lib/uniwidth/u16-width.c: Likewise.
61113         * lib/uniwidth/u32-strwidth.c: Likewise.
61114         * lib/uniwidth/u32-width.c: Likewise.
61115         * lib/uniwidth/u8-strwidth.c: Likewise.
61116         * lib/uniwidth/u8-width.c: Likewise.
61117         * lib/uniwidth/width.c: Likewise.
61118
61119 2007-10-07  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61122         The file is still under LGPL (see modules/inttypes).
61123
61124 2007-10-06  Bruno Haible  <bruno@clisp.org>
61125
61126         * modules/trunc (Dependencies): Add 'extensions'.
61127         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61128         Reported by Ben Pfaff <blp@gnu.org>.
61129
61130 2007-10-06  Bruno Haible  <bruno@clisp.org>
61131
61132         * modules/freopen-tests: New file.
61133         * tests/test-freopen.c: New file.
61134
61135         * modules/fopen-tests: New file.
61136         * tests/test-fopen.c: New file.
61137
61138         * modules/fopen: New file.
61139         * lib/fopen.c: New file.
61140         * m4/fopen.m4: New file.
61141         * modules/freopen: New file.
61142         * lib/freopen.c: New file.
61143         * m4/freopen.m4: New file.
61144         * lib/stdio.in.h (fopen, freopen): New declarations.
61145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61146         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61147         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61148         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61149         * doc/functions/fopen.texi: Mention the 'fopen' module.
61150         * doc/functions/freopen.texi: Mention the 'freopen' module.
61151
61152 2007-10-06  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/open-tests: New file.
61155         * tests/test-open.c: New file.
61156
61157         * modules/open: New file.
61158         * lib/open.c: New file.
61159         * m4/open.m4: New file.
61160         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61161         lib/open.c does.
61162         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61163         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61164         macros.
61165         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61166         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61167         REPLACE_OPEN.
61168         * doc/functions/open.texi: Mention the 'open' module.
61169
61170 2007-10-04  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/ceill-tests: New file.
61173         * tests/test-ceill.c: New file.
61174
61175         * modules/ceill: New file.
61176         * lib/ceill.c: Replace entire file.
61177         * m4/ceill.m4: New file.
61178         * lib/math.in.h (ceill): Replace declaration.
61179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61180         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61181         * doc/functions/ceill.texi: Mention the 'ceill' module.
61182         * modules/mathl (Files): Remove lib/ceill.c.
61183         (Depends-on): Add ceill.
61184
61185 2007-10-04  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/ceilf-tests: New file.
61188         * tests/test-ceilf.c: New file.
61189
61190         * modules/ceilf: New file.
61191         * lib/ceil.c: New file.
61192         * lib/ceilf.c: New file.
61193         * m4/ceilf.m4: New file.
61194         * lib/math.in.h (ceilf): New declaration.
61195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61196         HAVE_DECL_CEILF.
61197         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61198         HAVE_DECL_CEILF.
61199         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61200
61201 2007-10-04  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/floorl-tests: New file.
61204         * tests/test-floorl.c: New file.
61205
61206         * modules/floorl: New file.
61207         * lib/floorl.c: Replace entire file.
61208         * m4/floorl.m4: New file.
61209         * lib/math.in.h (floorl): Replace declaration.
61210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61211         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61212         * doc/functions/floorl.texi: Mention the 'floorl' module.
61213         * modules/mathl (Files): Remove lib/floorl.c.
61214         (Depends-on): Add floorl.
61215
61216 2007-10-04  Bruno Haible  <bruno@clisp.org>
61217
61218         * modules/floorf-tests: New file.
61219         * tests/test-floorf.c: New file.
61220
61221         * modules/floorf: New file.
61222         * lib/floor.c: New file.
61223         * lib/floorf.c: New file.
61224         * m4/floorf.m4: New file.
61225         * lib/math.in.h (floorf): New declaration.
61226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61227         HAVE_DECL_FLOORF.
61228         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61229         HAVE_DECL_FLOORF.
61230         * doc/functions/floorf.texi: Mention the 'floorf' module.
61231
61232 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61233             Bruno Haible  <bruno@clisp.org>
61234
61235         Advertise for the Git server instead of the CVS server.
61236         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61237         repository instead of the CVS one.
61238         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61239         about all VCS systems generically.
61240         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61241
61242 2007-10-04  Bruno Haible  <bruno@clisp.org>
61243
61244         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61245         means.
61246         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61247
61248 2007-10-04  Bruno Haible  <bruno@clisp.org>
61249
61250         * modules/truncl-tests: New file.
61251         * tests/test-truncl.c: New file.
61252
61253         * modules/truncl: New file.
61254         * lib/truncl.c: New file.
61255         * m4/truncl.m4: New file.
61256         * lib/math.in.h (truncl): New declaration.
61257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61258         HAVE_DECL_TRUNCL.
61259         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61260         HAVE_DECL_TRUNCL.
61261         * doc/functions/truncl.texi: Mention the 'truncl' module.
61262
61263 2007-10-04  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/truncf-tests: New file.
61266         * tests/test-truncf.c: New file.
61267
61268         * modules/truncf: New file.
61269         * lib/trunc.c: Make paramerizable through USE_* macros.
61270         * lib/truncf.c: New file.
61271         * m4/truncf.m4: New file.
61272         * lib/math.in.h (truncf): New declaration.
61273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61274         HAVE_DECL_TRUNCF.
61275         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61276         HAVE_DECL_TRUNCF.
61277         * doc/functions/truncf.texi: Mention the 'truncf' module.
61278
61279 2007-10-03  Bruno Haible  <bruno@clisp.org>
61280
61281         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61282         augmentation also for tests modules.
61283         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61284         * modules/atexit-tests (Makefile.am): Likewise.
61285         * modules/binary-io-tests (Makefile.am): Likewise.
61286         * modules/c-strcase-tests (Makefile.am): Likewise.
61287         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61288         * modules/canonicalize-tests (Makefile.am): Likewise.
61289         * modules/closein-tests (Makefile.am): Likewise.
61290         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61291         * modules/freadahead-tests (Makefile.am): Likewise.
61292         * modules/fseek-tests (Makefile.am): Likewise.
61293         * modules/fseeko-tests (Makefile.am): Likewise.
61294         * modules/ftell-tests (Makefile.am): Likewise.
61295         * modules/ftello-tests (Makefile.am): Likewise.
61296         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61297         * modules/isnanl-tests (Makefile.am): Likewise.
61298         * modules/lseek-tests (Makefile.am): Likewise.
61299         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61300         * modules/mbscasestr-tests (Makefile.am): Likewise.
61301         * modules/mbschr-tests (Makefile.am): Likewise.
61302         * modules/mbscspn-tests (Makefile.am): Likewise.
61303         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61304         * modules/mbspbrk-tests (Makefile.am): Likewise.
61305         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61306         * modules/mbsrchr-tests (Makefile.am): Likewise.
61307         * modules/mbsspn-tests (Makefile.am): Likewise.
61308         * modules/mbsstr-tests (Makefile.am): Likewise.
61309         * modules/printf-posix-tests (Makefile.am): Likewise.
61310         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61311         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61312         * modules/tsearch-tests (Makefile.am): Likewise.
61313         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61314         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61315         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61316         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61317         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61318         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61319         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61320         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61321         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61322         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61323         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61324         * modules/xstrtol-tests (Makefile.am): Likewise.
61325         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61326         * modules/yesno-tests (Makefile.am): Likewise.
61327
61328 2007-10-03  Bruno Haible  <bruno@clisp.org>
61329
61330         * modules/trunc-tests: New file.
61331         * tests/test-trunc.c: New file.
61332
61333         * modules/trunc: New file.
61334         * lib/trunc.c: New file.
61335         * m4/trunc.m4: New file.
61336         * lib/math.in.h (trunc): New declaration.
61337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61338         HAVE_DECL_TRUNC.
61339         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61340         HAVE_DECL_TRUNC.
61341         * doc/functions/trunc.texi: Mention the 'trunc' module.
61342
61343 2007-10-03  Bruno Haible  <bruno@clisp.org>
61344
61345         * tests/test-fpending.c: New file, mostly copied
61346         from coreutils/lib/t-fpending.c.
61347         * modules/fpending-tests: New file.
61348
61349 2007-10-03  Bruno Haible  <bruno@clisp.org>
61350
61351         Port the stdio extensions to QNX (untested).
61352         * lib/fseterr.c (fseterr): Add support for QNX.
61353         * lib/fbufmode.c (fbufmode): Likewise.
61354         * lib/freadable.c (freadable): Likewise.
61355         * lib/fwritable.c (fwritable): Likewise.
61356         * lib/freading.c (freading): Likewise.
61357         * lib/fwriting.c (fwriting): Likewise.
61358         * lib/freadahead.c (freadahed): Likewise.
61359         * lib/fpurge.c (fpurge): Likewise.
61360         * lib/fseeko.c (rpl_fseeko): Likewise.
61361
61362 2007-10-03  Bruno Haible  <bruno@clisp.org>
61363             Jim Meyering  <jim@meyering.net>
61364             Eric Blake  <ebb9@byu.net>
61365
61366         * doc/relocatable.texi: Use @command instead of @program.
61367
61368 2007-10-02  Jim Meyering  <jim@meyering.net>
61369
61370         Perform one more "_.h" -> ".in.h" substitution.
61371         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61372         instead of unistd_.h here, too.
61373
61374 2007-10-01  Bruno Haible  <bruno@clisp.org>
61375
61376         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61377         Needed for the alloca-opt module.
61378
61379 2007-09-30  Bruno Haible  <bruno@clisp.org>
61380
61381         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61382         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61383         alloca_.h.
61384         * lib/argz.in.h: Renamed from lib/argz_.h.
61385         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61386         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61387         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61388         byteswap_.h.
61389         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61390         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61391         dirent_.h.
61392         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61393         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61394         fcntl_.h.
61395         * lib/float.in.h: Renamed from lib/float_.h.
61396         * modules/float (Files, Makefile.am): Use float.in.h instead of
61397         float_.h.
61398         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61399         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61400         fnmatch_.h.
61401         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61402         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61403         getopt_.h.
61404         * lib/glob.in.h: Renamed from lib/glob_.h.
61405         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61406         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61407         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61408         iconv_.h.
61409         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61410         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61411         inttypes_.h.
61412         * lib/locale.in.h: Renamed from lib/locale_.h.
61413         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61414         locale_.h.
61415         * lib/math.in.h: Renamed from lib/math_.h.
61416         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61417         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61418         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61419         of netinet_in_.h. Add dependency.
61420         * lib/poll.in.h: Renamed from lib/poll_.h.
61421         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61422         * lib/search.in.h: Renamed from lib/search_.h.
61423         * modules/search (Files, Makefile.am): Use search.in.h instead of
61424         search_.h.
61425         * lib/signal.in.h: Renamed from lib/signal_.h.
61426         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61427         _signal.h.
61428         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61429         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61430         stdbool_.h.
61431         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61432         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61433         stdint_.h.
61434         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61435         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61436         stdio_.h.
61437         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61438         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61439         stdlib_.h.
61440         * lib/string.in.h: Renamed from lib/string_.h.
61441         * modules/string (Files, Makefile.am): Use string.in.h instead of
61442         string_.h.
61443         * doc/gnulib-tool.texi (Initial import): Update.
61444         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61445         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61446         of sys_select_.h. Add dependency.
61447         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61448         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61449         of sys_socket_.h.
61450         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61451         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61452         sys_stat_.h.
61453         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61454         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61455         sys_time_.h.
61456         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61457         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61458         sysexits_.h.
61459         * lib/time.in.h: Renamed from lib/time_.h.
61460         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61461         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61462         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61463         unistd_.h.
61464         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61465         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61466         wchar_.h.
61467         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61468         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61469         wctype_.h.
61470         * build-aux/bootstrap (slurp): Update.
61471         * lib/.cppi-disable: Update.
61472
61473 2007-09-30  Bruno Haible  <bruno@clisp.org>
61474
61475         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61476         Needed on BeOS.
61477
61478 2007-09-30  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61481
61482 2007-09-29  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61485
61486 2007-09-29  Bruno Haible  <bruno@clisp.org>
61487
61488         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61489         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61490         * build-aux/install-reloc: Compile also areadlink.c.
61491         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61492
61493 2007-09-29  Bruno Haible  <bruno@clisp.org>
61494
61495         * gnulib-tool (func_emit_initmacro_done): Indentation.
61496
61497 2007-09-29  Bruno Haible  <bruno@clisp.org>
61498
61499         * README: Add CVS checkout update instructions.
61500         Info from Bob Proulx <bob@proulx.com>.
61501
61502 2007-09-28  Eric Blake  <ebb9@byu.net>
61503
61504         Provide move-if-change.
61505         * build-aux/move-if-change: New file, based on best practice
61506         rather than any canonical upstream location.
61507
61508 2007-09-28  Jim Meyering  <jim@meyering.net>
61509
61510         Fix canonicalize loop-detection corner case.
61511         Do not attempt to stat the symlink values stored via seen_triple.
61512         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61513         on linux-2.6.18, (but not 2.6.22).
61514         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61515         triple_compare.  The former compares dev,ino,filename, while the latter
61516         would actually stat dirname(filename) when dev and ino were equal.
61517         * lib/hash-triple.c: Install <string.h>.
61518         (STREQ): Define.
61519         (triple_compare_ino_str): New function.
61520         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61521
61522 2007-09-28  Eric Blake  <ebb9@byu.net>
61523
61524         Enforce that AC_REPLACE_FUNCS files exist.
61525         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61526         override check for typos.
61527
61528         Fix test-closein on Solaris 10.
61529         * tests/test-closein.c (main): Don't assume stdin can be inherited
61530         closed on all systems.
61531         * tests/test-closein.sh: Likewise.
61532         Reported by Piotr Tarnowski.
61533
61534 2007-09-28  Jim Meyering  <jim@meyering.net>
61535
61536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61537
61538 2007-09-27  Jim Meyering  <jim@meyering.net>
61539
61540         canonicalize: Avoid a false-positive cycle failure.
61541         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61542         Sort.  Remove cycle-check.
61543         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61544         not cycle-check.h.
61545         (seen_triple): New function.
61546         (canonicalize_filename_mode): Use it instead of cycle-check.
61547         * tests/test-canonicalize.c: Add a test for this bug.
61548         * tests/test-canonicalize.sh: Set up and run the test.
61549
61550         New module, file-set, from coreutils.
61551         * modules/file-set: Define it.
61552         * lib/file-set.c, lib/file-set.h: Implement.
61553
61554         New module, hash-triple, from coreutils.
61555         * modules/hash-triple: Define it.
61556         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61557
61558 2007-09-25  Eric Blake  <ebb9@byu.net>
61559
61560         Fix strerror on Interix.
61561         * lib/string_.h (strerror): Declare replacement.
61562         * doc/functions/strerror.texi (strerror): Document the Interix
61563         shortcoming.
61564         * modules/string (Makefile.am): Support new hooks.
61565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61566         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61567         gl_FUNC_STRERROR_SEPARATE.
61568         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61569         * lib/strerror.c (rpl_strerror): Provide replacement.
61570         * modules/strerror (Depends-on): Add string.
61571         (configure.ac): Detect use of module.
61572         * tests/test-strerror.c: New file.
61573         * modules/strerror-tests: New test module.
61574         * modules/argp (Depends-on): Add strerror.
61575         * modules/error (Depends-on): Likewise.
61576         Reported by Martin Koeppe.
61577
61578 2007-09-24  Bruno Haible  <bruno@clisp.org>
61579
61580         * README: Update git instructions.
61581
61582 2007-09-24  Eric Blake  <ebb9@byu.net>
61583
61584         Revert fpending breakage from 2007-09-08.
61585         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61586         __fpending.c.
61587
61588 2007-09-24  Jim Meyering  <jim@meyering.net>
61589
61590         filenamecat.c: Add a test.
61591         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61592         showing how the function works when DIR is the empty string.
61593
61594 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61595
61596         * tests/test-canonicalize.sh: Turn on executable bit.
61597
61598 2007-09-19  Eric Blake  <ebb9@byu.net>
61599
61600         * README: Update CVS instructions.
61601
61602 2007-09-18  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/areadlink: New file.
61605         * lib/areadlink.h (areadlink): New declaration.
61606         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61607
61608 2007-09-17  Jim Meyering  <jim@meyering.net>
61609
61610         * lib/savewd.c (ESTALE) [!defined]: Define.
61611         Reported to be required on Interix by Martin Koeppe.
61612
61613 2007-09-17  Bruno Haible  <bruno@clisp.org>
61614
61615         * gnulib-tool (func_version): Use $version.
61616
61617 2007-09-16  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61620         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61621         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61622         Reported by Greg Schafer <gschafer@zip.com.au>.
61623
61624 2007-09-15  Bruno Haible  <bruno@clisp.org>
61625
61626         * gnulib-tool (sed): Try a little harder to make bash understand the
61627         alias.
61628         Reported by Bruce Korb <bruce.korb@gmail.com>.
61629
61630 2007-09-13  Eric Blake  <ebb9@byu.net>
61631
61632         * ChangeLog: Remove conflict markers.
61633
61634 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61635
61636         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61637         Reported by Bruno Haible <bruno@clisp.org>.
61638
61639 2007-09-12  Bruno Haible  <bruno@clisp.org>
61640
61641         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61642         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61643         is not defined.
61644
61645 2007-09-12  Eric Blake  <ebb9@byu.net>
61646
61647         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61648         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61649         Autoconf definition.
61650         * modules/euidaccess (Depends-on): Add extensions, for
61651         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61652         * modules/fnmatch (Depends-on): Likewise.
61653         * modules/getaddrinfo (Depends-on): Likewise.
61654         * modules/getdelim (Depends-on): Likewise.
61655         * modules/getline (Depends-on): Likewise.
61656         * modules/getsubopt (Depends-on): Likewise.
61657         * modules/gettext (Depends-on): Likewise.
61658         * modules/group-member (Depends-on): Likewise.
61659         * modules/mbchar (Depends-on): Likewise.
61660         * modules/memmem (Depends-on): Likewise.
61661         * modules/mempcpy (Depends-on): Likewise.
61662         * modules/memrchr (Depends-on): Likewise.
61663         * modules/pagealign_alloc (Depends-on): Likewise.
61664         * modules/readutmp (Depends-on): Likewise.
61665         * modules/stpcpy (Depends-on): Likewise.
61666         * modules/stpncpy (Depends-on): Likewise.
61667         * modules/strchrnul (Depends-on): Likewise.
61668         * modules/strndup (Depends-on): Likewise.
61669         * modules/strsep (Depends-on): Likewise.
61670         * modules/strverscmp (Depends-on): Likewise.
61671         * modules/vasprintf (Depends-on): Likewise.
61672         * modules/wcwidth (Depends-on): Likewise.
61673         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61674         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61675         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61676         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61677         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61678         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61679         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61680         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61681         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61682         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61683         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61684         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61686         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61687         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61688         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61689         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61690         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61692         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61693         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61694         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61695         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61696         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61697         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61699         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61700         so that lock.m4 can be used in gettext without extensions module.
61701
61702 2007-09-11  Bruno Haible  <bruno@clisp.org>
61703
61704         * m4/isc-posix.m4: Remove file.
61705         Suggested by Eric Blake.
61706
61707 2007-09-11  Eric Blake  <ebb9@byu.net>
61708
61709         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61710
61711 2007-09-10  Bruno Haible  <bruno@clisp.org>
61712
61713         * posix-modules: Fix typo in error message.
61714         Reported by Matt <mkraai@beckman.com>.
61715
61716 2007-09-09  Bruno Haible  <bruno@clisp.org>
61717
61718         * doc/functions/getdelim.texi: Update list of platforms lacking the
61719         function.
61720         * doc/functions/getline.texi: Likewise.
61721
61722 2007-09-09  Jim Meyering  <jim@meyering.net>
61723
61724         * lib/hash.c (hash_initialize): Detect calloc failure.
61725         Reported by Bruno Haible.
61726
61727 2007-09-09  Bruno Haible  <bruno@clisp.org>
61728
61729         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61730         malloc or realloc fails.
61731
61732 2007-09-09  Bruno Haible  <bruno@clisp.org>
61733
61734         * modules/getcwd (Depends-on): Add malloc-posix.
61735         * modules/glob (Depends-on): Likewise.
61736         * modules/putenv (Depends-on): Likewise.
61737         * modules/strdup (Depends-on): Likewise.
61738         * modules/getdelim (Depends-on): Add realloc-posix.
61739         * modules/read-file (Depends-on): Likewise.
61740
61741 2007-09-09  Bruno Haible  <bruno@clisp.org>
61742
61743         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61744         (gl_FUNC_MALLOC_POSIX): Require it.
61745         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61746         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61747         * modules/realloc (Files): Add m4/malloc.m4.
61748         * modules/calloc (Files): Likewise.
61749
61750 2007-09-09  Bruno Haible  <bruno@clisp.org>
61751
61752         * modules/malloc-posix: New file.
61753         * modules/malloc (Depends-on): Add malloc-posix.
61754         * lib/malloc.c: Include errno.h.
61755         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61756         and a POSIX-compatible malloc into a single function. Set ENOMEM
61757         when returning NULL.
61758         * m4/malloc.m4: New file.
61759         * doc/functions/malloc.texi: Mention the malloc-posix module.
61760         * lib/stdlib_.h (malloc): New declaration.
61761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61762         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61763         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61764         and HAVE_MALLOC_POSIX.
61765
61766 2007-09-09  Bruno Haible  <bruno@clisp.org>
61767
61768         * modules/realloc-posix: New file.
61769         * modules/realloc (Depends-on): Add realloc-posix.
61770         * lib/realloc.c: Include errno.h.
61771         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61772         and a POSIX-compatible realloc into a single function. Set ENOMEM
61773         when returning NULL.
61774         * m4/realloc.m4: New file.
61775         * doc/functions/realloc.texi: Mention the realloc-posix module.
61776         * lib/stdlib_.h (realloc): New declaration.
61777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61778         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61779         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61780         and HAVE_REALLOC_POSIX.
61781
61782 2007-09-09  Bruno Haible  <bruno@clisp.org>
61783
61784         * modules/calloc-posix: New file.
61785         * modules/calloc (Depends-on): Add calloc-posix.
61786         * lib/calloc.c: Include errno.h.
61787         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61788         and a POSIX-compatible calloc into a single function. Set ENOMEM
61789         when returning NULL.
61790         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61791         * doc/functions/calloc.texi: Mention the calloc-posix module.
61792         * lib/stdlib_.h (calloc): New declaration.
61793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61794         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61795         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61796         and HAVE_CALLOC_POSIX.
61797
61798 2007-09-09  Bruno Haible  <bruno@clisp.org>
61799
61800         Allow for modules to show an arbitrary notice.
61801         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61802         * gnulib-tool: New option --extract-notice.
61803         (func_usage): Document it.
61804         (sed_extract_prog): Update.
61805         (func_get_notice): New function.
61806         (func_modules_notice): New function.
61807         (func_import, func_create_testdir): Invoke it.
61808         Suggested by Jim Meyering.
61809
61810 2007-09-09  Bruno Haible  <bruno@clisp.org>
61811
61812         * gnulib-tool: New options --verbose, --quiet.
61813         (func_usage): Document them.
61814         (verbose): New variable.
61815         (func_execute_command): New function.
61816         (func_import): Don't show the module list and the file list if
61817         $verbose < 0.
61818         (func_create_testdir): Likewise. Use func_execute_command.
61819         (func_create_megatestdir): Use func_execute_command.
61820
61821 2007-09-08  Bruno Haible  <bruno@clisp.org>
61822
61823         * gnulib-tool (func_import): Prefer rsync over wget when available,
61824         for fetching the PO files.
61825
61826 2007-09-08  Bruno Haible  <bruno@clisp.org>
61827
61828         * posix-modules: New file. Portions copied from gnulib-tool.
61829         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61830
61831 2007-09-08  Jim Meyering  <jim@meyering.net>
61832
61833         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61834         * lib/fpending.h: Rename from __fpending.h.
61835         * lib/fpending.c: Rename from __fpending.c.
61836         Include "fpending.h", not "__fpending.h".
61837         * lib/__fpending.h, lib/__fpending.c: Remove files.
61838         * modules/fpending (Files): Reflect new file names.
61839         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61840
61841 2007-09-08  Bruno Haible  <bruno@clisp.org>
61842
61843         * m4/inttypes-h.m4: Remove stub file.
61844
61845 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61846
61847         * doc/headers/stdint.texi: Discuss #include_next issue.
61848
61849 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61850
61851         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61852
61853 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61854
61855         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61856         in variable name.
61857
61858 2007-09-03  Jim Meyering  <jim@meyering.net>
61859
61860         New module: git-version-gen.
61861         * modules/git-version-gen: New file.
61862
61863         Import changes from coreutils for bootstrap script.
61864
61865         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61866
61867         bootstrap: uses rsync to download the .po files
61868         * build-aux/bootstrap (po_download_command_format): New global.
61869         (download_po_files): Use rsync.
61870         (update_po_files): Don't remove .po files after download,
61871         so future rsync runs can take advantage of the copies.
61872
61873         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61874
61875         Solve the unnecessary-.po-file-regeneration problem once and for all.
61876         * build-aux/bootstrap (download_po_files): New function, renamed from
61877         get_translations.  Now, downloads, but doesn't update LINGUAS.
61878         (update_po_files): New function.
61879
61880         bootstrap: Ignore more.
61881         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61882         uniwidth to e.g., lib/.gitignore.
61883         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61884
61885         * build-aux/bootstrap: New setting: vc_ignore.
61886         (insert_sorted_if_absent): Create $file if absent.
61887         Adapt to new, possibly empty, list: $vc_ignore.
61888
61889         bootstrap: generate more ignorable names
61890         * build-aux/bootstrap (slurp): When generating ignorable names,
61891         also map .sin to .sed, .gperf to .c, and .y to .c.
61892
61893 2007-09-03  Jim Meyering  <jim@meyering.net>
61894
61895         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61896         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61897
61898 2007-09-02  Bruno Haible  <bruno@clisp.org>
61899
61900         Fix mis-recognition of 'mcs' on QNX 6.
61901         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61902         output contains the string "Mono".
61903         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61904         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61905
61906 2007-09-01  Bruno Haible  <bruno@clisp.org>
61907
61908         Fix collision between uniwidth/* and linebreak modules.
61909         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61910         u32_width): Remove declarations.
61911         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61912         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61913         streq3, streq2, streq1, streq0): Remove functions.
61914         (STREQ): Remove macro.
61915         (is_cjk_encoding): Remove function.
61916         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61917         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61918         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61919         * NEWS: Document the change.
61920
61921 2007-09-01  Bruno Haible  <bruno@clisp.org>
61922
61923         * lib/streq.h: Add double-inclusion guard.
61924
61925 2007-09-01  Karl Berry  <karl@gnu.org>
61926
61927         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61928
61929 2007-08-28  Jim Meyering  <jim@meyering.net>
61930
61931         Rename mreadlink_with_size to areadlink_with_size.
61932         * NEWS: Document the change.
61933         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61934         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61935         * lib/mreadlink.h: Rename this to...
61936         * lib/areadlink.h: ...this.
61937         * modules/mreadlink-with-size: Rename this to...
61938         * modules/areadlink-with-size: ...this.
61939         * lib/canonicalize.c: Reflect the renaming.
61940         * modules/canonicalize: Likewise.
61941
61942 2007-08-26  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool (func_import): When deciding which files to remove,
61945         consider also dangling symbolic links.
61946         Reported by Eric Blake.
61947
61948 2007-08-26  Bruno Haible  <bruno@clisp.org>
61949
61950         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61951
61952 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61953
61954         * lib/readline.c: Don't include getline.h, the prototype is now
61955         found in stdio.h.
61956
61957 2007-08-23  Jim Meyering  <jim@meyering.net>
61958
61959         Getdelim touchup.
61960         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61961         around the funlockfile call, since funlockfile never sets errno.
61962         Don't set errno upon failed realloc.
61963
61964 2007-08-22  Eric Blake  <ebb9@byu.net>
61965
61966         Getline touchups.
61967         * lib/getdelim.c (getdelim): Revert regression that required *n to
61968         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61970         getdelim, rather than whether implementation is missing.
61971         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61972         * lib/stdio_.h (getline): Also declare if replacement is
61973         required.
61974         * doc/functions/getdelim.texi: New file.
61975         * doc/functions/getline.texi: Likewise.
61976         * doc/gnulib.texi (Function Substitutes): Add new files.
61977         Reported by Bruno Haible.
61978
61979 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61980
61981         * users.txt: Add Guile.
61982
61983 2007-08-22  Eric Blake  <ebb9@byu.net>
61984
61985         * tests/test-getdelim.c (main): Use remove, not unlink.
61986         * tests/test-getline.c (main): Likewise.
61987
61988         Move getline and getdelim into stdio.h, per POSIX 200x.
61989         * modules/getline (Files): Remove getline.h.
61990         (Depends-on): Add stdio.
61991         (configure.ac): Add module indicator.
61992         * modules/getdelim (Files): Remove getdelim.h.
61993         (Depends-on): Add stdio.
61994         (configure.ac): Add module indicator.
61995         * modules/stdio (Makefile.am): Work with new indicators.
61996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61998         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61999         * lib/getdelim.h: Delete.
62000         * lib/getline.h: Delete.
62001         * lib/stdio_.h (getdelim, getline): Declare.
62002         * modules/getdelim-tests: New module.
62003         * modules/getline-tests: Likewise.
62004         * tests/test-getdelim.c: New file.
62005         * tests/test-getline.c: Likewise.
62006         * NEWS: Document the change.
62007         * lib/getline.c: Update choice of header.
62008         * lib/csharpcomp.c: Likewise.
62009         * lib/getpass.c: Likewise.
62010         * lib/javacomp.c: Likewise.
62011         * lib/javaversion.c: Likewise.
62012         * lib/yesno.c: Likewise.
62013         * lib/getdelim.c: Likewise.
62014         (getdelim): Set errno on failure, and avoid memory leak.
62015
62016 2007-08-19  Bruno Haible  <bruno@clisp.org>
62017
62018         * modules/closein (Depends-on): Add freadahead.
62019         * lib/closein.c: Include freadahead.h.
62020         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62021         is zero.
62022
62023 2007-08-19  Bruno Haible  <bruno@clisp.org>
62024
62025         * modules/freadahead-tests: New file.
62026         * tests/test-freadahead.sh: New file.
62027         * tests/test-freadahead.c: New file.
62028
62029         * modules/freadahead: New file.
62030         * lib/freadahead.h: New file.
62031         * lib/freadahead.c: New file.
62032         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62033         fbufmode, fpurge, freadable, fwritable.
62034
62035 2007-08-19  Eric Blake  <ebb9@byu.net>
62036
62037         Test yesno in combination with closein.
62038         * lib/yesno.c (yesno): Document use of stdin.
62039         * modules/yesno-tests (Files): New module.
62040         * tests/test-yesno.c (main): New file.
62041         * tests/test-yesno.sh: Likewise.
62042
62043 2007-08-19  Bruno Haible  <bruno@clisp.org>
62044
62045         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62046         * lib/fseeko.c (rpl_fseeko): Likewise.
62047         * lib/fseterr.c (fseterr): Likewise.
62048
62049 2007-08-19  Bruno Haible  <bruno@clisp.org>
62050
62051         * tests/test-lseek.c (main): Disable a test for BeOS.
62052         * doc/functions/lseek.texi: Document the BeOS bug.
62053
62054 2007-08-19  Bruno Haible  <bruno@clisp.org>
62055             Eric Blake  <ebb9@byu.net>
62056
62057         * lib/lseek.c: Include <sys/stat.h>.
62058         (rpl_lseek): Add workaround code also for Unix platforms.
62059         Needed for BeOS.
62060         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62061         * doc/functions/lseek.texi: Document BeOS definiency.
62062
62063 2007-08-18  Bruno Haible  <bruno@clisp.org>
62064
62065         * modules/fstrcmp-tests: New file.
62066         * tests/test-fstrcmp.c: New file.
62067
62068 2007-08-18  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/fstrcmp: New file, from GNU gettext with modifications.
62071         * lib/fstrcmp.h: New file, from GNU gettext.
62072         * lib/fstrcmp.c: New file, from GNU gettext.
62073         * MODULES.html.sh (String handling): Add fstrcmp.
62074
62075 2007-08-18  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62078         'bool'.
62079         (diag, compareseq): Remove const from the ctxt argument.
62080         (USE_HEURISTIC): Undefine at the end.
62081
62082 2007-08-18  Jim Meyering  <jim@meyering.net>
62083
62084         New file: lib/idcache.h
62085         * NEWS: Mention the addition.
62086         * modules/idcache (Files): Add lib/idcache.h
62087         * lib/idcache.c: Include "idcache.h".
62088         Don't include <sys/types.h>.
62089         Add a FIXME comment.
62090         Move file-scoped "static" declarations to the top.
62091         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62092
62093 2007-08-17  Bruno Haible  <bruno@clisp.org>
62094         and Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * MODULES.html.sh: Add diffseq.
62097         * modules/diffseq: New file.
62098         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62099         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62100
62101 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         Import changes from coreutils for bootstrap script.
62104
62105         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62106
62107         * build-aux/bootstrap (slurp): Work even in environments where
62108         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62109         current code does not slurp files whose names start with ".", and
62110         this looks like it might be a troublesome area.
62111
62112         2007-07-11  Jim Meyering  <jim@meyering.net>
62113
62114         If there's a GPL vN copyright comment, require that N == 3.
62115
62116         2007-07-08  Jim Meyering  <jim@meyering.net>
62117
62118         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62119         * build-aux/bootstrap (mam_template): Move definition out of loop.
62120
62121         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62122
62123         * build-aux/bootstrap (symlink_to_dir): Rename function from
62124         symlink_to_gnulib.  Add a directory parameter.  Update all
62125         callers.
62126         (cp_mark_as_generated): Also check for -- and link to -- files in
62127         gl/.
62128
62129         2007-07-08  Jim Meyering  <jim@meyering.net>
62130
62131         Adapt to deeper hierarchy in gnulib.
62132         * build-aux/bootstrap (symlink_to_dir): If the destination
62133         directory doesn't exist, create it. This is required at least for
62134         "lib/uniwidth/cjk.h".
62135
62136         2007-05-15  Jim Meyering  <jim@meyering.net>
62137
62138         * build-aux/bootstrap: Now that generated Makefile.am files
62139         are no longer under version control, they must be created at
62140         bootstrap time.
62141
62142 2007-08-14  Ben Pfaff  <blp@gnu.org>
62143
62144         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62145
62146 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62147
62148         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62149         given the changes below.
62150         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62151         even on hosts that have padding bits beyond the supported 64.
62152
62153 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62156         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62157         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62158         depends on it.
62159         (xstrtol_error): Remove.
62160         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62161         but with a different signature.
62162         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62163         * lib/xstrtol-error.c: Include exitfail.h.
62164         (xstrtol_fatal): New function, with a different signature from the
62165         old xstrtol_error, so that the caller need not worry about passing
62166         in an exit status, or about storage management of the option argument.
62167         (xstrtol_error): Now a static function.  Redo signature to
62168         implement xstrtol_fatal.  Output the correct number of hyphens in
62169         front of the option so that the caller need not worry about
62170         storage management.
62171         (N_): New macro.
62172         (_): Remove; not used now.
62173         * modules/xstrtol: Depend on getopt.
62174         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62175         of old STRTOL_FATAL_ERROR macro.
62176         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62177         of test program.
62178         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62179         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62180
62181 2007-08-08  Eric Blake  <ebb9@byu.net>
62182
62183         * lib/xstrtol-error.c: Add missing include.
62184
62185         Move xstrtol messages into gnulib domain, when --pobase is used.
62186         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62187         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62188         * modules/xstrtol (Files): Distribute new file.
62189         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62190         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62191         * tests/test-xstrtol.c: ...into new file.
62192         * tests/test-xstrtoul.c: Also test xstrtoul.
62193         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62194         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62195         * tests/test-xstrtol.sh: Drive the tests.
62196         * tests/test-xstrtoimax.sh: Likewise.
62197         * tests/test-xstrtoumax.sh: Likewise.
62198         * modules/xstrtol-tests: New module.
62199         * modules/xstrtoimax-tests: Likewise.
62200         * modules/xstrtoumax-tests: Likewise.
62201
62202 2007-08-08  Jim Meyering  <jim@meyering.net>
62203
62204         New function: mfile_name_concat.
62205         * lib/filenamecat.c (mfile_name_concat): New function, just like
62206         file_name_concat, but return NULL upon failure rather than exiting
62207         with a diagnostic.
62208         * lib/filenamecat.h: Declare it.
62209
62210 2007-08-07  Bruno Haible  <bruno@clisp.org>
62211
62212         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62213         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62214         warning from gcc.
62215         Reported by Eric Blake.
62216
62217 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62218
62219         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62220         * modules/crypto/arcfour (License): Likewise.
62221         * modules/crypto/des-tests (License): Likewise.
62222         * modules/crypto/gc-arctwo-tests (License): Likewise.
62223         * modules/crypto/gc-des-tests (License): Likewise.
62224         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62225         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62226         * modules/crypto/gc-md2-tests (License): Likewise.
62227         * modules/crypto/gc-md4-tests (License): Likewise.
62228         * modules/crypto/gc-md5-tests (License): Likewise.
62229         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62230         * modules/crypto/gc-rijndael-tests (License): Likewise.
62231         * modules/crypto/gc-sha1-tests (License): Likewise.
62232         * modules/crypto/gc-tests (License): Likewise.
62233         * modules/crypto/hmac-md5 (License): Likewise.
62234         * modules/crypto/hmac-sha1 (License): Likewise.
62235         * modules/crypto/md2-tests (License): Likewise.
62236         * modules/crypto/md4-tests (License): Likewise.
62237         * modules/crypto/md5 (License): Likewise.
62238         * modules/crypto/rijndael (License): Likewise.
62239         * modules/crypto/sha1 (License): Likewise.
62240         * modules/memxor (License): Likewise.
62241
62242 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62243         and Bruno Haible  <bruno@clisp.org>
62244
62245         * NEWS: Describe interface changes to human, xstrtol.
62246         * lib/human.h: Include <xstrtol.h>.
62247         (human_options): Return enum strtol_error, not int.  Remove
62248         bool arg; take int * instead.
62249         * lib/human.c: Don't include "gettext.h".
62250         (_): Remove; no longer used.
62251         Don't include <xstrtol.h>, since human.h does it.
62252         (human_options): Adjust to abovementioned interface changes.
62253         Do not report error to stderr; that's now the caller's
62254         responsibility.
62255         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62256         interface change.
62257         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62258         Str, Argument_type_string.  All uses changed.  Put " argument"
62259         in diagnostics to make them clearer.  Change wording of suffix
62260         message for clarity.
62261         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62262         Argument_type_string.
62263         (STRTOL_FATAL_WARN): Remove; no longer used.
62264         * modules/human (Depends-on): Remove gettext-h.
62265
62266 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62267
62268         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62269
62270 2007-07-31  Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62273         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62274         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62275
62276 2007-07-31  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62279         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62280
62281 2007-07-30  Bruno Haible  <bruno@clisp.org>
62282
62283         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62284         * modules/c-ctype (License): Likewise.
62285         * modules/c-strcase (License): Likewise.
62286         * modules/check-version (License): Likewise.
62287         * modules/iconv (License): Likewise.
62288         * modules/iconv_open (License): Likewise.
62289         * modules/read-file (License): Likewise.
62290         * modules/striconv (License): Likewise.
62291         * modules/strverscmp (License): Likewise.
62292         * modules/vasprintf (License): Likewise.
62293         * modules/crypto/des (License): Likewise.
62294         * modules/crypto/gc (License): Likewise.
62295         * modules/crypto/gc-arcfour (License): Likewise.
62296         * modules/crypto/gc-arctwo (License): Likewise.
62297         * modules/crypto/gc-des (License): Likewise.
62298         * modules/crypto/gc-hmac-md5 (License): Likewise.
62299         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62300         * modules/crypto/gc-md2 (License): Likewise.
62301         * modules/crypto/gc-md4 (License): Likewise.
62302         * modules/crypto/gc-md5 (License): Likewise.
62303         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62304         * modules/crypto/gc-random (License): Likewise.
62305         * modules/crypto/gc-rijndael (License): Likewise.
62306         * modules/crypto/gc-sha1 (License): Likewise.
62307         * modules/crypto/md2 (License): Likewise.
62308         * modules/crypto/md4 (License): Likewise.
62309
62310 2007-07-30  Jim Meyering  <jim@meyering.net>
62311
62312         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62313         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62314         it has valid stat data.  This bug would cause du not to count the
62315         sizes of inaccessible directories.
62316         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62317         in <http://bugzilla.redhat.com/250077>.
62318
62319 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62320             Bruno Haible  <bruno@clisp.org>
62321
62322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62323         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62324         #include_next, gives a diagnostic about it, but reports no error in
62325         the exit code.
62326         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62327
62328 2007-07-24  Ben Pfaff  <blp@gnu.org>
62329
62330         Improve name: "count-one-bits" is better than "popcount".
62331         * MODULES.html.sh: Update name.
62332         * lib/popcount.h: Renamed lib/count-one-bits.h.
62333         (popcount): Renamed count_one_bits.
62334         (popcountl): Renamed count_one_bits_l.
62335         (popcountll): Renamed count_one_bits_ll.
62336         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62337         * modules/popcount: Renamed module/count-one-bits.
62338         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62339         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62340
62341 2007-07-23  Ben Pfaff  <blp@gnu.org>
62342
62343         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62344         better code generation, and add U to large constants to avoid
62345         warnings, in non-GCC case.
62346         Suggested by Bruno Haible.
62347
62348 2007-07-23  Ben Pfaff  <blp@gnu.org>
62349
62350         * lib/popcount.h: Use verify_true instead of if...abort.
62351         * modules/popcount: Depend on verify module.
62352         Suggested by Jim Meyering.
62353
62354 2007-07-23  Bruno Haible  <bruno@clisp.org>
62355
62356         * gnulib-tool (func_import): Create a .cvsignore file also when the
62357         directory is not yet in CVS but the toplevel directory is. When
62358         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62359         Reported by Karl Berry.
62360
62361 2007-07-22  Ben Pfaff  <blp@gnu.org>
62362
62363         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62364         case.
62365         Suggested by Eric Blake.
62366
62367 2007-07-22  Ben Pfaff  <blp@gnu.org>
62368
62369         New module: popcount.
62370         * MODULES.html.sh: Add popcount.
62371         * modules/popcount: New file.
62372         * modules/popcount-tests: New file.
62373         * tests/test-popcount.c: New file.
62374         * lib/popcount.h: New file.
62375         * m4/popcount.m4: New file.
62376
62377 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         * build-aux/announce-gen: Update to GPLv3.
62380
62381         * build-aux/config.guess: Update from config.
62382
62383 2007-07-21  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62386         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62387
62388 2007-07-20  Jim Meyering  <jim@meyering.net>
62389
62390         * check-module: Diagnose a self-dependency.
62391
62392 2007-07-19  Bruno Haible  <bruno@clisp.org>
62393
62394         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62395         empty.
62396         Reported by Eric Blake.
62397
62398 2007-07-18  Bruno Haible  <bruno@clisp.org>
62399
62400         * gnulib-tool: New options --po-base, --po-domain.
62401         (func_usage): Document them.
62402         (pobase, po_domain): New variables.
62403         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62404         DEFAULT_TEXT_DOMAIN.
62405         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62406         (func_import): Consider pobase and po_domain. Create a po/ directory.
62407         (func_create_testdir): Set pobase and po_domain to empty.
62408         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62409         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62410
62411 2007-07-18  Bruno Haible  <bruno@clisp.org>
62412
62413         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62414         EXTRA_DIST augmentation for files in build-aux/.
62415
62416 2007-07-16  Bruno Haible  <bruno@clisp.org>
62417
62418         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62419         * modules/getdelim (License): Likewise.
62420
62421 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62422
62423         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62424         * modules/d-type (License): Likewise.
62425         * modules/extensions (License): Likewise.
62426         * modules/fnmatch (License): Likewise.
62427         * modules/fseeko (License): Likewise.
62428         * modules/getaddrinfo (License): Likewise.
62429         * modules/getline (License): Likewise.
62430         * modules/getlogin_r (License): Likewise.
62431         * modules/getpass (License): Likewise.
62432         * modules/gettimeofday (License): Likewise.
62433         * modules/glob (License): Likewise.
62434         * modules/inet_ntop (License): Likewise.
62435         * modules/malloc (License): Likewise.
62436         * modules/malloca (License): Likewise.
62437         * modules/memmem (License): Likewise.
62438         * modules/mempcpy (License): Likewise.
62439         * modules/memset (License): Likewise.
62440         * modules/minmax (License): Likewise.
62441         * modules/mktime (License): Likewise.
62442         * modules/netinet_in (License): Likewise.
62443         * modules/pathmax (License): Likewise.
62444         * modules/poll (License): Likewise.
62445         * modules/regex (License): Likewise.
62446         * modules/snprintf (License): Likewise.
62447         * modules/stdbool (License): Likewise.
62448         * modules/stdint (License): Likewise.
62449         * modules/stdio (License): Likewise.
62450         * modules/strcase (License): Likewise.
62451         * modules/strcasestr (License): Likewise.
62452         * modules/strdup (License): Likewise.
62453         * modules/string (License): Likewise.
62454         * modules/strndup (License): Likewise.
62455         * modules/strnlen (License): Likewise.
62456         * modules/strpbrk (License): Likewise.
62457         * modules/strptime (License): Likewise.
62458         * modules/strsep (License): Likewise.
62459         * modules/sys_select (License): Likewise.
62460         * modules/sys_socket (License): Likewise.
62461         * modules/sys_stat (License): Likewise.
62462         * modules/sys_time (License): Likewise.
62463         * modules/time (License): Likewise.
62464         * modules/time_r (License): Likewise.
62465         * modules/timegm (License): Likewise.
62466         * modules/unistd (License): Likewise.
62467         * modules/vsnprintf (License): Likewise.
62468         * modules/wctype (License): Likewise.
62469
62470 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62471
62472         * modules/argz (License): LGPLv2+.
62473
62474 2007-07-15  Karl Berry  <karl@gnu.org>
62475
62476         * doc/gnulib.texi: revise node structure per new fdl.texi.
62477
62478 2007-07-14  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62481         the output file.
62482         * lib/uniname/uninames.h: Regenerated.
62483
62484 2007-07-14  Karl Berry  <karl@gnu.org>
62485
62486         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62487         omitting sectioning and index commands.
62488
62489 2007-07-13  Bruno Haible  <bruno@clisp.org>
62490
62491         New gnulib-tool option --more-symlinks.
62492         * gnulib-tool (func_usage): Document --more-symlinks.
62493         (do_copyrights): New variable.
62494         Recognize option --more-symlinks.
62495         (func_import): Don't add a copyright notice transform to
62496         sed_transform_lib_file if do_copyrights is empty.
62497
62498 2007-07-13  Bruno Haible  <bruno@clisp.org>
62499
62500         * lib/vasnprintf.c (decimal_point_char): Define also if
62501         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62502         && !NEED_PRINTF_DIRECTIVE_A.
62503         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62504         Gary V. Vaughan <gary@gnu.org>.
62505
62506 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62507
62508         * lib/inttypes_.h: Undo previous change, since it was fixed
62509         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62510
62511 2007-07-13  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62514         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62515
62516 2007-07-13  Jim Meyering  <jim@meyering.net>
62517
62518         df: Don't fail for Tru64's "file-on-file mount".
62519         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62520         so we fall through and use statfs instead.  Details here:
62521         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62522         Reported by Albert Chin.
62523
62524 2007-07-13  Bruno Haible  <bruno@clisp.org>
62525
62526         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62527         * modules/configmake (License): Likewise.
62528         * modules/gettext (License): Likewise.
62529         * modules/gettext-h (License): Likewise.
62530         * modules/include_next (License): Likewise.
62531         * modules/link-warning (License): Likewise.
62532         * modules/localcharset (License): Likewise.
62533         * modules/localename (License): Likewise.
62534         * modules/lock (License): Likewise.
62535         * modules/relocatable-lib-lgpl (License): Likewise.
62536         * modules/size_max (License): Likewise.
62537         * modules/vasnprintf (License): Likewise.
62538         * modules/wchar (License): Likewise.
62539         * modules/xsize (License): Likewise.
62540
62541 2007-07-13  Bruno Haible  <bruno@clisp.org>
62542
62543         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62544         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62545
62546 2007-07-12  Bruno Haible  <bruno@clisp.org>
62547
62548         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62549         in the modules files.
62550
62551 2007-07-11  Karl Berry  <karl@gnu.org>
62552
62553         * MODULES.html.sh (func_module): use
62554          sed -e '\|^'"${includefile}"'$|d'
62555          instead of /.../d, to avoid errors on $includefile's containing /.
62556
62557 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62558
62559         * gnulib-tool (func_import): Avoid duplication of --avoid
62560         statements
62561         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62562         names to `_' in variable names.
62563
62564 2007-07-10  Eric Blake  <ebb9@byu.net>
62565
62566         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62567         * NEWS: Document this change.
62568
62569 2007-07-08  Bruno Haible  <bruno@clisp.org>
62570
62571         Update to Unicode 5.0.
62572         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62573         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62574         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62575         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62576         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62577         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62578         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62579         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62580         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62581         U+10A3F, U+1D242..U+1D244.
62582         (nonspacing_table_ind): Update.
62583         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62584         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62585
62586 2007-07-08  Bruno Haible  <bruno@clisp.org>
62587
62588         Update to Unicode 5.0.
62589         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62590         code transform. Extend the name index field of unicode_name_to_code and
62591         unicode_code_to_name from 16 to 24 bits.
62592         * lib/uniname/uniname.c (unicode_character_name,
62593         unicode_name_character): Add the range 0x12xxx to the code transform.
62594         * lib/uniname/uninames.h: Regenerated.
62595         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62596
62597 2007-07-07  Bruno Haible  <bruno@clisp.org>
62598
62599         * modules/wcwidth-tests: New file.
62600         * tests/test-wcwidth.c: New file.
62601
62602         Work around MacOS X wcwidth() bug.
62603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62604         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62605         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62606         original wcwidth in non-UTF-8 locales.
62607         * modules/wcwidth (Depends-on): Add localcharset, streq,
62608         uniwidth/width.
62609         * doc/functions/wcwidth.texi: Update.
62610
62611 2007-07-07  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62614         (wcwidth): New declaration.
62615         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62616         macros.
62617         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62618         here. Prepare for creating <wchar.h> unconditionally.
62619         * modules/wchar (Depends-on): Add link-warning.
62620         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62621         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62622         * lib/wcwidth.h: Remove file.
62623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62624         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62625         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62626         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62627         (Include): Replace wcwidth.h with <wchar.h>.
62628         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62629         * lib/mbchar.h: Don't include wcwidth.h.
62630         * lib/mbswidth.c: Likewise.
62631         * NEWS: Mention the change.
62632
62633 2007-07-07  Bruno Haible  <bruno@clisp.org>
62634
62635         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62636         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62637         definition with an external declaration.
62638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62639         defined as a function. Remove AC_C_INLINE requirement.
62640         * modules/wcwidth (Files): Add lib/wcwidth.c.
62641         (Makefile.am): Remove redundant statement.
62642
62643 2007-07-07  Bruno Haible  <bruno@clisp.org>
62644
62645         * MODULES.html.sh (Unicode string functions): Add the new modules.
62646
62647         * tests/uniwidth/test-u32-strwidth.c: New file.
62648         * modules/uniwidth/u32-strwidth-tests: New file.
62649
62650         * lib/uniwidth/u32-strwidth.c: New file.
62651         * modules/uniwidth/u32-strwidth: New file.
62652
62653         * tests/uniwidth/test-u16-strwidth.c: New file.
62654         * modules/uniwidth/u16-strwidth-tests: New file.
62655
62656         * lib/uniwidth/u16-strwidth.c: New file.
62657         * modules/uniwidth/u16-strwidth: New file.
62658
62659         * tests/uniwidth/test-u8-strwidth.c: New file.
62660         * modules/uniwidth/u8-strwidth-tests: New file.
62661
62662         * lib/uniwidth/u8-strwidth.c: New file.
62663         * modules/uniwidth/u8-strwidth: New file.
62664
62665         * tests/uniwidth/test-u32-width.c: New file.
62666         * modules/uniwidth/u32-width-tests: New file.
62667
62668         * lib/uniwidth/u32-width.c: New file.
62669         * modules/uniwidth/u32-width: New file.
62670
62671         * tests/uniwidth/test-u16-width.c: New file.
62672         * modules/uniwidth/u16-width-tests: New file.
62673
62674         * lib/uniwidth/u16-width.c: New file.
62675         * modules/uniwidth/u16-width: New file.
62676
62677         * tests/uniwidth/test-u8-width.c: New file.
62678         * modules/uniwidth/u8-width-tests: New file.
62679
62680         * lib/uniwidth/u8-width.c: New file.
62681         * modules/uniwidth/u8-width: New file.
62682
62683         * tests/uniwidth/test-uc_width.c: New file.
62684         * modules/uniwidth/width-tests: New file.
62685
62686         * lib/uniwidth/width.c: New file, from GNU libiconv.
62687         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62688         * modules/uniwidth/width: New file.
62689
62690         * lib/uniwidth.h: New file, from GNU libiconv.
62691         * modules/uniwidth/base: New file.
62692
62693 2007-07-07  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/uniname.h: New file, from GNU gettext.
62696         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62697         * lib/uniname/uninames.h: New file, from GNU gettext.
62698         * lib/uniname/uniname.c: New file, from GNU gettext.
62699         * tests/uniname/test-uninames.sh: New file.
62700         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62701         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62702         * modules/uniname/base: New file.
62703         * modules/uniname/uniname: New file.
62704         * modules/uniname/uniname-tests: New file.
62705         * MODULES.html.sh (Unicode string functions): Add the new modules.
62706
62707 2007-07-06  Bruno Haible  <bruno@clisp.org>
62708
62709         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62710
62711 2007-07-06  Bruno Haible  <bruno@clisp.org>
62712
62713         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62714         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62715         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62716         include <sys/time.h>.
62717         Reported by Eric Blake.
62718
62719 2007-07-06  Eric Blake  <ebb9@byu.net>
62720
62721         Fix testing canonicalize on cygwin.
62722         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62723         Revert patch from 2007-06-19.
62724         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62725         canonicalize module is also in use.
62726         * tests/test-canonicalize.c: New file.
62727         * tests/test-canonicalize.sh: Likewise.
62728         * modules/canonicalize-tests: Likewise.
62729
62730 2007-07-06  Jim Meyering  <jim@meyering.net>
62731
62732         * lib/getugroups.c (getugroups): Detect getgrent failure.
62733         Adjust comment to reflect reality: this function may return -1.
62734
62735 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62736
62737         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62738         the new TP address.
62739         (usage): Fix typo
62740         (gnulib_mk): New variable.
62741
62742 2007-07-05  Jim Meyering  <jim@meyering.net>
62743
62744         Don't let endgrent clobber errno, no matter how improbable.
62745         * lib/getugroups.c (getugroups): Save and restore errno around
62746         endgrent call.
62747
62748         Close the group DB even when failing with 2^31 or more members.
62749         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62750
62751 2007-07-04  Jim Meyering  <jim@meyering.net>
62752
62753         * lib/getugroups.h: New file.
62754         * lib/getugroups.c: Include "getugroups.h".
62755         Remove uses of "register" keyword.
62756         Move local variable, "cp", down into scope where used.
62757         Give "username" parameter the "const" attribute.
62758         * modules/getugroups (Files): Add lib/getugroups.h
62759
62760 2007-07-04  Karl Berry  <karl@gnu.org>
62761
62762         * MODULES.html.sh (func_all_modules): Complete rename of
62763         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62764
62765 2007-07-02  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62768         mode, when inttypes.h comes from gnulib.
62769         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62770
62771 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62772
62773         * NEWS: Mention lgpl module name change.
62774
62775         * modules/lgpl-2.1: Renamed from lgpl.
62776
62777         * NEWS: Mention gpl module name change.
62778
62779         * modules/gpl-3.0: New file, based on gpl-2.0.
62780
62781         * modules/gpl-2.0: Renamed from gpl.
62782
62783         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62784         doc/gpl-2.0.texi.
62785
62786 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62787
62788         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62789         #define __STDC_LIMIT_MACROS temporarily while including
62790         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62791         Problem reported by Joel E. Denny in
62792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62793
62794 2007-07-01  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/unistdio.h: New file.
62797         * lib/unistdio/u-asnprintf.h: New file.
62798         * lib/unistdio/u-asprintf.h: New file.
62799         * lib/unistdio/u-printf-args.c: New file.
62800         * lib/unistdio/u-printf-args.h: New file.
62801         * lib/unistdio/u-printf-parse.h: New file.
62802         * lib/unistdio/u-snprintf.h: New file.
62803         * lib/unistdio/u-sprintf.h: New file.
62804         * lib/unistdio/u-vasprintf.h: New file.
62805         * lib/unistdio/u-vsnprintf.h: New file.
62806         * lib/unistdio/u-vsprintf.h: New file.
62807         * lib/unistdio/ulc-asnprintf.c: New file.
62808         * lib/unistdio/ulc-asprintf.c: New file.
62809         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62810         * lib/unistdio/ulc-printf-parse.c: New file.
62811         * lib/unistdio/ulc-snprintf.c: New file.
62812         * lib/unistdio/ulc-sprintf.c: New file.
62813         * lib/unistdio/ulc-vasnprintf.c: New file.
62814         * lib/unistdio/ulc-vasprintf.c: New file.
62815         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62816         * lib/unistdio/ulc-vsnprintf.c: New file.
62817         * lib/unistdio/ulc-vsprintf.c: New file.
62818         * lib/unistdio/u8-asnprintf.c: New file.
62819         * lib/unistdio/u8-asprintf.c: New file.
62820         * lib/unistdio/u8-printf-parse.c: New file.
62821         * lib/unistdio/u8-snprintf.c: New file.
62822         * lib/unistdio/u8-sprintf.c: New file.
62823         * lib/unistdio/u8-vasnprintf.c: New file.
62824         * lib/unistdio/u8-vasprintf.c: New file.
62825         * lib/unistdio/u8-vsnprintf.c: New file.
62826         * lib/unistdio/u8-vsprintf.c: New file.
62827         * lib/unistdio/u8-u8-asnprintf.c: New file.
62828         * lib/unistdio/u8-u8-asprintf.c: New file.
62829         * lib/unistdio/u8-u8-snprintf.c: New file.
62830         * lib/unistdio/u8-u8-sprintf.c: New file.
62831         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62832         * lib/unistdio/u8-u8-vasprintf.c: New file.
62833         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62834         * lib/unistdio/u8-u8-vsprintf.c: New file.
62835         * lib/unistdio/u16-asnprintf.c: New file.
62836         * lib/unistdio/u16-asprintf.c: New file.
62837         * lib/unistdio/u16-printf-parse.c: New file.
62838         * lib/unistdio/u16-snprintf.c: New file.
62839         * lib/unistdio/u16-sprintf.c: New file.
62840         * lib/unistdio/u16-vasnprintf.c: New file.
62841         * lib/unistdio/u16-vasprintf.c: New file.
62842         * lib/unistdio/u16-vsnprintf.c: New file.
62843         * lib/unistdio/u16-vsprintf.c: New file.
62844         * lib/unistdio/u16-u16-asnprintf.c: New file.
62845         * lib/unistdio/u16-u16-asprintf.c: New file.
62846         * lib/unistdio/u16-u16-snprintf.c: New file.
62847         * lib/unistdio/u16-u16-sprintf.c: New file.
62848         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62849         * lib/unistdio/u16-u16-vasprintf.c: New file.
62850         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62851         * lib/unistdio/u16-u16-vsprintf.c: New file.
62852         * lib/unistdio/u32-asnprintf.c: New file.
62853         * lib/unistdio/u32-asprintf.c: New file.
62854         * lib/unistdio/u32-printf-parse.c: New file.
62855         * lib/unistdio/u32-snprintf.c: New file.
62856         * lib/unistdio/u32-sprintf.c: New file.
62857         * lib/unistdio/u32-vasnprintf.c: New file.
62858         * lib/unistdio/u32-vasprintf.c: New file.
62859         * lib/unistdio/u32-vsnprintf.c: New file.
62860         * lib/unistdio/u32-vsprintf.c: New file.
62861         * lib/unistdio/u32-u32-asnprintf.c: New file.
62862         * lib/unistdio/u32-u32-asprintf.c: New file.
62863         * lib/unistdio/u32-u32-snprintf.c: New file.
62864         * lib/unistdio/u32-u32-sprintf.c: New file.
62865         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62866         * lib/unistdio/u32-u32-vasprintf.c: New file.
62867         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62868         * lib/unistdio/u32-u32-vsprintf.c: New file.
62869         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62870         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62871         * tests/unistdio/test-ulc-printf1.h: New file.
62872         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62873         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62874         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62875         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62876         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62877         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62878         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62879         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62880         * tests/unistdio/test-u8-asnprintf1.c: New file.
62881         * tests/unistdio/test-u8-asnprintf1.h: New file.
62882         * tests/unistdio/test-u8-printf1.h: New file.
62883         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62884         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62885         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62886         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62887         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62888         * tests/unistdio/test-u8-vasprintf1.c: New file.
62889         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62890         * tests/unistdio/test-u8-vsprintf1.c: New file.
62891         * tests/unistdio/test-u16-asnprintf1.c: New file.
62892         * tests/unistdio/test-u16-asnprintf1.h: New file.
62893         * tests/unistdio/test-u16-printf1.h: New file.
62894         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62895         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62896         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62897         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62898         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62899         * tests/unistdio/test-u16-vasprintf1.c: New file.
62900         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62901         * tests/unistdio/test-u16-vsprintf1.c: New file.
62902         * tests/unistdio/test-u32-asnprintf1.c: New file.
62903         * tests/unistdio/test-u32-asnprintf1.h: New file.
62904         * tests/unistdio/test-u32-printf1.h: New file.
62905         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62906         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62907         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62908         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62909         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62910         * tests/unistdio/test-u32-vasprintf1.c: New file.
62911         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62912         * tests/unistdio/test-u32-vsprintf1.c: New file.
62913         * modules/unistdio/base: New file.
62914         * modules/unistdio/u-printf-args: New file.
62915         * modules/unistdio/ulc-asnprintf: New file.
62916         * modules/unistdio/ulc-asprintf: New file.
62917         * modules/unistdio/ulc-fprintf: New file.
62918         * modules/unistdio/ulc-printf-parse: New file.
62919         * modules/unistdio/ulc-snprintf: New file.
62920         * modules/unistdio/ulc-sprintf: New file.
62921         * modules/unistdio/ulc-vasnprintf: New file.
62922         * modules/unistdio/ulc-vasprintf: New file.
62923         * modules/unistdio/ulc-vfprintf: New file.
62924         * modules/unistdio/ulc-vsnprintf: New file.
62925         * modules/unistdio/ulc-vsprintf: New file.
62926         * modules/unistdio/u8-asnprintf: New file.
62927         * modules/unistdio/u8-asprintf: New file.
62928         * modules/unistdio/u8-printf-parse: New file.
62929         * modules/unistdio/u8-snprintf: New file.
62930         * modules/unistdio/u8-sprintf: New file.
62931         * modules/unistdio/u8-vasnprintf: New file.
62932         * modules/unistdio/u8-vasprintf: New file.
62933         * modules/unistdio/u8-vsnprintf: New file.
62934         * modules/unistdio/u8-vsprintf: New file.
62935         * modules/unistdio/u8-u8-asnprintf: New file.
62936         * modules/unistdio/u8-u8-asprintf: New file.
62937         * modules/unistdio/u8-u8-snprintf: New file.
62938         * modules/unistdio/u8-u8-sprintf: New file.
62939         * modules/unistdio/u8-u8-vasnprintf: New file.
62940         * modules/unistdio/u8-u8-vasprintf: New file.
62941         * modules/unistdio/u8-u8-vsnprintf: New file.
62942         * modules/unistdio/u8-u8-vsprintf: New file.
62943         * modules/unistdio/u16-asnprintf: New file.
62944         * modules/unistdio/u16-asprintf: New file.
62945         * modules/unistdio/u16-printf-parse: New file.
62946         * modules/unistdio/u16-snprintf: New file.
62947         * modules/unistdio/u16-sprintf: New file.
62948         * modules/unistdio/u16-vasnprintf: New file.
62949         * modules/unistdio/u16-vasprintf: New file.
62950         * modules/unistdio/u16-vsnprintf: New file.
62951         * modules/unistdio/u16-vsprintf: New file.
62952         * modules/unistdio/u16-u16-asnprintf: New file.
62953         * modules/unistdio/u16-u16-asprintf: New file.
62954         * modules/unistdio/u16-u16-snprintf: New file.
62955         * modules/unistdio/u16-u16-sprintf: New file.
62956         * modules/unistdio/u16-u16-vasnprintf: New file.
62957         * modules/unistdio/u16-u16-vasprintf: New file.
62958         * modules/unistdio/u16-u16-vsnprintf: New file.
62959         * modules/unistdio/u16-u16-vsprintf: New file.
62960         * modules/unistdio/u32-asnprintf: New file.
62961         * modules/unistdio/u32-asprintf: New file.
62962         * modules/unistdio/u32-printf-parse: New file.
62963         * modules/unistdio/u32-snprintf: New file.
62964         * modules/unistdio/u32-sprintf: New file.
62965         * modules/unistdio/u32-vasnprintf: New file.
62966         * modules/unistdio/u32-vasprintf: New file.
62967         * modules/unistdio/u32-vsnprintf: New file.
62968         * modules/unistdio/u32-vsprintf: New file.
62969         * modules/unistdio/u32-u32-asnprintf: New file.
62970         * modules/unistdio/u32-u32-asprintf: New file.
62971         * modules/unistdio/u32-u32-snprintf: New file.
62972         * modules/unistdio/u32-u32-sprintf: New file.
62973         * modules/unistdio/u32-u32-vasnprintf: New file.
62974         * modules/unistdio/u32-u32-vasprintf: New file.
62975         * modules/unistdio/u32-u32-vsnprintf: New file.
62976         * modules/unistdio/u32-u32-vsprintf: New file.
62977         * modules/unistdio/ulc-asnprintf-tests: New file.
62978         * modules/unistdio/ulc-vasnprintf-tests: New file.
62979         * modules/unistdio/ulc-vasprintf-tests: New file.
62980         * modules/unistdio/ulc-vsnprintf-tests: New file.
62981         * modules/unistdio/ulc-vsprintf-tests: New file.
62982         * modules/unistdio/u8-asnprintf-tests: New file.
62983         * modules/unistdio/u8-vasnprintf-tests: New file.
62984         * modules/unistdio/u8-vasprintf-tests: New file.
62985         * modules/unistdio/u8-vsnprintf-tests: New file.
62986         * modules/unistdio/u8-vsprintf-tests: New file.
62987         * modules/unistdio/u16-asnprintf-tests: New file.
62988         * modules/unistdio/u16-vasnprintf-tests: New file.
62989         * modules/unistdio/u16-vasprintf-tests: New file.
62990         * modules/unistdio/u16-vsnprintf-tests: New file.
62991         * modules/unistdio/u16-vsprintf-tests: New file.
62992         * modules/unistdio/u32-asnprintf-tests: New file.
62993         * modules/unistdio/u32-vasnprintf-tests: New file.
62994         * modules/unistdio/u32-vasprintf-tests: New file.
62995         * modules/unistdio/u32-vsnprintf-tests: New file.
62996         * modules/unistdio/u32-vsprintf-tests: New file.
62997         * MODULES.html.sh (Unicode string functions): Add the new modules.
62998
62999 2007-07-01  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/sprintf.c (sprintf): Limit the available length estimation,
63002         to avoid address wraparound.
63003         * lib/vsprintf.c (vsprintf): Likewise.
63004         * modules/sprintf-posix (Dependencies): Add stdint.
63005         * modules/vsprintf-posix (Dependencies): Likewise.
63006
63007 2007-07-01  Bruno Haible  <bruno@clisp.org>
63008
63009         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63010         Windows PATH as well. Conservative double-quoting. Comments.
63011
63012 2007-07-01  Bruno Haible  <bruno@clisp.org>
63013             Eric Blake  <ebb9@byu.net>
63014             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63015
63016         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63017         empty components in $PATH, denoting '.'.
63018
63019 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63020
63021         * gnulib-tool: Fix indentation.
63022         (func_create_megatestdir): Likewise.
63023         Report by Bruno Haible.
63024
63025 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63026
63027         Sync from Automake.
63028         * build-aux/gnupload: Fix shell portability issues with for loops.
63029         Report by Karl Berry.
63030
63031 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63032
63033         * build-aux/maint.mk (POURL): Use translationproject.org.
63034
63035 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63036             Bruno Haible  <bruno@clisp.org>
63037
63038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63039         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63040         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63041         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63042         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63043
63044 2007-06-27  Bruno Haible  <bruno@clisp.org>
63045
63046         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63047         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63048
63049 2007-06-26  Karl Berry  <karl@gnu.org>
63050
63051         * MODULES.html.sh: remove xreadlink-with-size.
63052
63053 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63056         method that I hope also handles the double-include problem noted
63057         by Bruno Haible in
63058         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63059
63060 2007-06-23  Bruno Haible  <bruno@clisp.org>
63061
63062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63063         Don't let the 'mostlyclean' target fail if the last subdirectory could
63064         not be removed.
63065         Reported by Karl Berry.
63066
63067 2007-06-23  Bruno Haible  <bruno@clisp.org>
63068
63069         * gnulib-tool (echo): Add a speedier workaround for ksh.
63070         * tests/test-echo.sh: Likewise.
63071
63072 2007-06-23  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63075         * tests/test-echo.sh: Likewise.
63076
63077 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63078
63079         * gnulib-tool (IFS): Initialize early, so we don't set it to
63080         empty later.
63081         (self_abspathname): Rewrite algorithm to set it, reindent.
63082         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63083         (func_create_megatestdir): Merge some sed scripts.
63084
63085 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63088         exposed by Sun Studio 11 cc on Solaris 8.
63089
63090 2007-06-22  Bruno Haible  <bruno@clisp.org>
63091
63092         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63093         backslashes.
63094         * tests/test-echo.sh: New file.
63095
63096 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63097
63098         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63099         simplify `sed_replace_build_aux' scripts, they are portable but
63100         echoing them with `echo' is not.
63101         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63102
63103 2007-06-21  Karl Berry  <karl@gnu.org>
63104
63105         * config/srclist.txt: guess we can't handle the licenses via
63106         srclist at the moment.
63107
63108 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * MODULES.html.sh: Add include_next.
63111         * modules/include_next: New file.
63112
63113 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63116         INCLUDE_NEXT.
63117         (gl_CHECK_NEXT_HEADERS): New macro.
63118         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63119         the obsolescent gl_ABSOLUTE_HEADER.
63120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63121         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63122         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63123         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63124         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63125         * m4/math_h.m4 (gl_MATH_H): Likewise.
63126         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63127         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63128         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63129         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63130         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63131         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63132         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63134         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63136         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63137         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63138         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63139         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63140         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63141         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63142         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63143         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63144         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63145         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63146         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63147         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63148         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63149         * lib/float_.h: Likewise.
63150         * lib/inttypes_.h: Likewise.
63151         * lib/math_.h: Likewise.
63152         * lib/search_.h: Likewise.
63153         * lib/signal_.h: Likewise.
63154         * lib/stdint_.h: Likewise.
63155         * lib/stdio_.h: Likewise.
63156         * lib/stdlib_.h: Likewise.
63157         * lib/string_.h: Likewise.
63158         * lib/sys_stat_.h: Likewise.
63159         * lib/sys_time_.h: Likewise.
63160         * lib/time_.h: Likewise.
63161         * lib/unistd_.h: Likewise.
63162         * lib/wchar_.h: Likewise.
63163         * lib/wctype_.h: Likewise.
63164         * lib/dirent_.h: Likewise.
63165         * lib/iconv_.h: Likewise.
63166         * lib/locale_.h: Likewise.
63167         * lib/netinet_in_.h: Likewise.
63168         * lib/sys_select_.h: Likewise.
63169         * lib/sys_socket_.h: Likewise.
63170         * lib/sysexits_.h: Likewise.
63171         * modules/fcntl (Depends-on): Depend on include_next, not
63172         absolute_header.
63173         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63174         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63175         * modules/fchdir: Likewise.
63176         * modules/float: Likewise.
63177         * modules/iconv_open: Likewise.
63178         * modules/inttypes: Likewise.
63179         * modules/locale: Likewise.
63180         * modules/math: Likewise.
63181         * modules/netinet_in: Likewise.
63182         * modules/search: Likewise.
63183         * modules/signal: Likewise.
63184         * modules/stdint: Likewise.
63185         * modules/stdio: Likewise.
63186         * modules/stdlib: Likewise.
63187         * modules/string: Likewise.
63188         * modules/sys_select: Likewise.
63189         * modules/sys_socket: Likewise.
63190         * modules/sys_stat: Likewise.
63191         * modules/sys_time: Likewise.
63192         * modules/sysexits: Likewise.
63193         * modules/time: Likewise.
63194         * modules/unistd: Likewise.
63195         * modules/wchar: Likewise.
63196         * modules/wctype: Likewise.
63197         * modules/sys_stat: Change maintainer to "all".
63198         * modules/unistd: Likewise.
63199
63200 2007-06-20  Karl Berry  <karl@gnu.org>
63201
63202         * config/srclist.txt: track www changes in license files.
63203
63204 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63205
63206         * build-aux/bootstrap: Remove stray dot.
63207         Make sure build_aux settings are honored when linking
63208         gnulib_extra_files.
63209
63210 2007-06-19  Eric Blake  <ebb9@byu.net>
63211
63212         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63213         Allow compilation on cygwin.
63214
63215 2007-06-19  Jim Meyering  <jim@meyering.net>
63216
63217         xreadlink-with-size: Remove module.  No longer used.
63218         Ex-callers now use xreadlink or mreadlink-with-size.
63219         * modules/xreadlink-with-size: Remove module.
63220         * lib/xreadlink-with-size.c: Remove file.
63221         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63222         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63223         just before the function definition *is* accurate.
63224
63225         Eliminate one way canonicalize_filename_mode could exit.
63226         * lib/canonicalize.c (canonicalize_filename_mode):
63227         Use mreadlink_with_size, not xreadlink_with_size.
63228
63229 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         Detect porting problems to FreeBSD/arm, which has time_t wider than
63232         long int.  Original problem reported for GNU diff by Xin Li in
63233         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63234         * modules/getdate (Depends-on): Add intprops, verify.
63235         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63236         is an integer type no wider than long int.
63237
63238 2007-06-18  Jim Meyering  <jim@meyering.net>
63239
63240         New module: mreadlink-with-size.
63241         * MODULES.html.sh: Add mreadlink-with-size.
63242         * modules/mreadlink-with-size: New module
63243         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63244         not xreadlink-with-size.
63245         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63246
63247 2007-06-16  Bruno Haible  <bruno@clisp.org>
63248
63249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63250         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63251         Reported by Gary V. Vaughan <gary@gnu.org>.
63252
63253 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         Revamp lchown so that it lives in unistd.h where it belongs.
63256         * lib/lchown.h: Remove.
63257         * lib/dirchownmod.c: Don't include lib/lchown.h.
63258         * lib/fchownat.c: Likewise.
63259         * lib/openat.c: Likewise.
63260         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63261         does not follow symlinks.
63262         (EOPNOTSUPP): Define if not defined.
63263         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63264         is defined to 0.
63265         (lchown): New decl.
63266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63267         Do not check for lchown decl.
63268         Set REPLACE_LCHOWN.
63269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63270         REPLACE_LCHOWN.
63271         * modules/chown: Make it clear it follows symlinks.
63272         * modules/lchown: Make it clear it doesn't follow symlinks.
63273         (Files): Remove lib/lchown.h
63274         (Depends-on): Add unistd.
63275         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63276         (Include): Include <unistd.h>, not "lchown.h".
63277         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63278         REPLACE_LCHOWN.
63279
63280 2007-06-15  Jim Meyering  <jim@meyering.net>
63281
63282         Change license (GPL to LGPL) of fsusage and dependents.
63283         * modules/fsusage (License): Change to LGPL.
63284         * modules/full-read (License): Likewise.
63285         * modules/full-write (License): Likewise.
63286         * modules/safe-read (License): Likewise.
63287         * modules/safe-write (License): Likewise.
63288
63289 2007-06-14  Ben Pfaff  <blp@gnu.org>
63290
63291         Missing part of allocsa -> malloca transition.
63292         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63293         gl_MALLOCA.
63294
63295 2007-06-12  Bruno Haible  <bruno@clisp.org>
63296
63297         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63298         to ia64, x86_64, i386.
63299         Reported by Eric Blake.
63300
63301 2007-06-12  Bruno Haible  <bruno@clisp.org>
63302
63303         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63304         cross-compiling to x86_64.
63305
63306 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63309         glitch reported by Ralf Wildenhues in
63310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63311
63312         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63313         Vin Shelton.
63314
63315 2007-06-11  Bruno Haible  <bruno@clisp.org>
63316
63317         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63318         replacement string.
63319         Reported by Eric Blake.
63320
63321 2007-06-10  Bruno Haible  <bruno@clisp.org>
63322
63323         Prepare vasnprintf code for use with Unicode strings.
63324         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63325         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63326         TYPE_U32_STRING.
63327         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63328         a_u32_string variants.
63329         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63330         * lib/printf-args.c: Don't include config.h and the specification
63331         header if PRINTF_FETCHARGS is already defined.
63332         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63333         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63334         TYPE_U16_STRING, TYPE_U32_STRING.
63335         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63336         u16_directive, u16_directives, u32_directive, u32_directives): New
63337         types.
63338         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63339         New declarations.
63340         * lib/printf-parse.c: Don't include config.h and the specification
63341         header if PRINTF_PARSE is already defined. Eliminate the set of
63342         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63343         them now. Include c-ctype.h.
63344         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63345         directive and CHAR_T_ONLY_ASCII.
63346         * lib/vasnprintf.c: Don't include config.h and the specification header
63347         if VASNPRINTF is already defined.
63348         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63349         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63350         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63351         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63352         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63353         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63354         code accordingly.
63355         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63356         pad_ourselves also in this case, with the 'c' and 's' directives, and
63357         with a different notion of "width".
63358         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63359
63360 2007-06-10  Bruno Haible  <bruno@clisp.org>
63361
63362         * modules/unistr/u32-mbsnlen: New file.
63363         * lib/unistr/u32-mbsnlen.c: New file.
63364
63365         * modules/unistr/u16-mbsnlen: New file.
63366         * lib/unistr/u16-mbsnlen.c: New file.
63367
63368         * modules/unistr/u8-mbsnlen: New file.
63369         * lib/unistr/u8-mbsnlen.c: New file.
63370
63371         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63372         declarations.
63373
63374 2007-06-10  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/string_.h (mbsnlen): New declaration.
63377         * lib/mbsnlen.c: New file.
63378         * m4/mbsnlen.m4: New file.
63379         * modules/mbsnlen: New file.
63380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63381         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63382         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63383
63384 2007-06-10  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63387
63388 2007-06-10  Bruno Haible  <bruno@clisp.org>
63389
63390         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63391         * lib/mbuiter.h: Likewise.
63392
63393 2007-06-10  Bruno Haible  <bruno@clisp.org>
63394
63395         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63396         declaration.
63397
63398 2007-06-10  Karl Berry  <karl@gnu.org>
63399
63400         * config/srclist.txt: remove gettext entries, Bruno prefers
63401         to update individually.
63402
63403 2007-06-10  Bruno Haible  <bruno@clisp.org>
63404
63405         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63406         'maxlen'. Ensure only length + width bytes are allocated, not
63407         length + 1 + width.
63408
63409 2007-06-09  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63412         (CHAR_T): Remove macro.
63413         (VASNPRINTF): Update.
63414
63415 2007-06-09  Bruno Haible  <bruno@clisp.org>
63416
63417         * MODULES.html.sh (Unicode string functions): Add the new modules.
63418
63419         * modules/uniconv/u32-conv-to-enc: New file.
63420         * lib/uniconv/u32-conv-to-enc.c: New file.
63421         * modules/uniconv/u32-conv-to-enc-tests: New file.
63422         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63423
63424         * modules/uniconv/u16-conv-to-enc: New file.
63425         * lib/uniconv/u16-conv-to-enc.c: New file.
63426         * lib/uniconv/u-conv-to-enc.h: New file.
63427         * modules/uniconv/u16-conv-to-enc-tests: New file.
63428         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63429
63430         * modules/uniconv/u8-conv-to-enc: New file.
63431         * lib/uniconv/u8-conv-to-enc.c: New file.
63432         * modules/uniconv/u8-conv-to-enc-tests: New file.
63433         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63434
63435         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63436         u32_conv_to_encoding): New declarations.
63437
63438 2007-06-09  Bruno Haible  <bruno@clisp.org>
63439
63440         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63441
63442 2007-06-09  Bruno Haible  <bruno@clisp.org>
63443
63444         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63445         * modules/malloca: Renamed from modules/allocsa, updated.
63446         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63447         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63448         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63449         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63450         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63451         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63452         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63453         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63454         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63455         * modules/c-strcasestr (Depends-on): Update.
63456         * lib/c-strcasestr.c: Update.
63457         * modules/c-strstr (Depends-on): Update.
63458         * lib/c-strstr.c: Update.
63459         * modules/canonicalize-lgpl (Depends-on): Update.
63460         * lib/canonicalize-lgpl.c: Update.
63461         * modules/clean-temp (Depends-on): Update.
63462         * lib/clean-temp.c: Update.
63463         * modules/csharpcomp (Depends-on): Update.
63464         * lib/csharpcomp.c: Update.
63465         * modules/csharpexec (Depends-on): Update.
63466         * lib/csharpexec.c: Update.
63467         * modules/javacomp (Depends-on): Update.
63468         * lib/javacomp.c: Update.
63469         * modules/javaexec (Depends-on): Update.
63470         * lib/javaexec.c: Update.
63471         * modules/mbscasestr (Depends-on): Update.
63472         * lib/mbscasestr.c: Update.
63473         * modules/mbsstr (Depends-on): Update.
63474         * lib/mbsstr.c: Update.
63475         * modules/setenv (Depends-on): Update.
63476         * lib/setenv.c: Update.
63477         * modules/strcasestr (Depends-on): Update.
63478         * lib/strcasestr.c: Update.
63479         * modules/striconveha (Depends-on): Update.
63480         * lib/striconveha.c: Update.
63481         * modules/relocatable-prog-wrapper (Files): Update.
63482         * lib/relocwrapper.c: Update.
63483         * build-aux/install-reloc: Update.
63484         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63485
63486 2007-06-08  Bruno Haible  <bruno@clisp.org>
63487
63488         Port to uClibc.
63489         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63490         * lib/fpurge.c (fpurge): Likewise.
63491         * lib/freading.c (freading): Likewise.
63492         * lib/fseeko.c (rpl_fseeko): Likewise.
63493         * lib/fseterr.c (fseterr): Likewise.
63494         * lib/fwriting.c (fwriting): Likewise.
63495         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63496
63497 2007-06-08  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63500         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63501         * modules/gettext (Files): Add m4/intlmacosx.m4.
63502
63503 2007-06-07  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/localename-tests: New file.
63506         * tests/test-localename.c: New file.
63507
63508         New module 'localename'.
63509         * lib/localename.h: New file.
63510         * lib/localename.c: New file, from GNU gettext.
63511         * m4/localename.m4: New file.
63512         * modules/localename: New file.
63513
63514 2007-06-07  Bruno Haible  <bruno@clisp.org>
63515
63516         Work around the lack of <wchar.h> on some builds of uClibc.
63517         * doc/headers/wchar.texi: Update.
63518         * lib/wchar_.h: Include <wchar.h> only if it exists.
63519         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63520         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63521         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63522         doesn't exist.
63523         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63524         * modules/mbfile (Depends-on): Add wchar.
63525         * modules/mbiter (Depends-on): Likewise.
63526         * modules/mbuiter (Depends-on): Likewise.
63527         Reported by Simon Josefsson.
63528
63529 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         Work around problem reported by Steven M. Schweda in
63532         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63533         Tru64 5.1B with the Compaq compiler environment installed declares
63534         an 'isblank' function but does not define it in the C library.
63535         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63536         * lib/regex_internal.h (isblank): Likewise.
63537         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63538         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63539
63540 2007-06-05  Bruno Haible  <bruno@clisp.org>
63541
63542         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63543         ia64.
63544         * modules/printf-safe: New file.
63545         * modules/fprintf-posix (Depends-on): Add printf-safe.
63546         * modules/printf-posix (Depends-on): Likewise.
63547         * modules/snprintf-posix (Depends-on): Likewise.
63548         * modules/sprintf-posix (Depends-on): Likewise.
63549         * modules/vasnprintf-posix (Depends-on): Likewise.
63550         * modules/vasprintf-posix (Depends-on): Likewise.
63551         * modules/vfprintf-posix (Depends-on): Likewise.
63552         * modules/vprintf-posix (Depends-on): Likewise.
63553         * modules/vsnprintf-posix (Depends-on): Likewise.
63554         * modules/vsprintf-posix (Depends-on): Likewise.
63555         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63556         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63557         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63558         "no" on i386, x86_64, ia64.
63559         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
63563         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63564         on i386, x86_64, ia64.
63565         * tests/test-vasnprintf-posix.c: Include float.h.
63566         (LDBL80_WORDS): New macro.
63567         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63568         on i386, x86_64, ia64.
63569         * tests/test-vasprintf-posix.c: Include float.h.
63570         (LDBL80_WORDS): New macro.
63571         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63572         on i386, x86_64, ia64.
63573         * tests/test-snprintf-posix.c: Include float.h.
63574         * tests/test-sprintf-posix.c: Likewise.
63575         * tests/test-vsnprintf-posix.c: Likewise.
63576         * tests/test-vsprintf-posix.c: Likewise.
63577
63578 2007-06-05  Bruno Haible  <bruno@clisp.org>
63579
63580         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63582         non-IEEE numbers on i386, x86_64, ia64.
63583         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63584         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63585         * tests/test-isnanl.h: Include float.h.
63586         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63587
63588 2007-06-05  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63591         also the %a / %A. Handle the %a / %A code before this extra handling.
63592
63593 2007-06-05  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63596         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63597
63598 2007-06-05  Bruno Haible  <bruno@clisp.org>
63599
63600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63601         typo in variable name.
63602
63603 2007-06-05  Eric Blake  <ebb9@byu.net>
63604
63605         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63606         Reported by Simon Josefsson.
63607
63608 2007-06-04  Bruno Haible  <bruno@clisp.org>
63609
63610         Avoid test failures on some PowerPC platforms.
63611         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63612         Define differently for PowerPC.
63613         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63614         Reported by Gary V. Vaughan <gary@gnu.org>.
63615
63616 2007-06-02  Bruno Haible  <bruno@clisp.org>
63617
63618         Fix test-stdint failure on FreeBSD/ia64.
63619         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63620         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63621         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63622         * doc/headers/stdint.texi: Update.
63623
63624 2007-06-01  Bruno Haible  <bruno@clisp.org>
63625
63626         * tests/test-binary-io.c (main): Pass a third argument to open().
63627         Reported by Gary V. Vaughan <gary@gnu.org>.
63628
63629 2007-06-01  Bruno Haible  <bruno@clisp.org>
63630
63631         * doc/functions/frexpl.texi: Update for mingw.
63632
63633 2007-06-01  Bruno Haible  <bruno@clisp.org>
63634
63635         * tests/test-lseek.c (main): Disable test of errno for invalid third
63636         argument.
63637         * doc/functions/lseek.texi: Update.
63638         Reported by Gary V. Vaughan <gary@gnu.org>.
63639
63640 2007-05-28  Bruno Haible  <bruno@clisp.org>
63641
63642         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63643
63644 2007-05-31  Eric Blake  <ebb9@byu.net>
63645
63646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63647         cross compiling.
63648
63649 2007-05-30  Eric Blake  <ebb9@byu.net>
63650         and Bruno Haible  <bruno@clisp.org>
63651
63652         Work around mingw test failures exposed by m4-1.4.9b.
63653         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63654         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63655         moment.
63656
63657 2007-05-30  Bruno Haible  <bruno@clisp.org>
63658
63659         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63660         assuming that they are closed. Needed on HP-UX 11.
63661
63662 2007-05-29  Bruno Haible  <bruno@clisp.org>
63663
63664         Fix a problem with #include_next.
63665         * lib/dirent_.h: Split the double-inclusion guard.
63666         * lib/fcntl_.h: Likewise.
63667         * lib/float_.h: Likewise.
63668         * lib/iconv_.h: Likewise.
63669         * lib/inttypes_.h: Likewise.
63670         * lib/locale_.h: Likewise.
63671         * lib/math_.h: Likewise.
63672         * lib/netinet_in_.h: Likewise.
63673         * lib/search_.h: Likewise.
63674         * lib/signal_.h: Likewise.
63675         * lib/stdint_.h: Likewise.
63676         * lib/stdio_.h: Likewise.
63677         * lib/stdlib_.h: Likewise.
63678         * lib/string_.h: Likewise.
63679         * lib/sys_select_.h: Likewise.
63680         * lib/sys_socket_.h: Likewise.
63681         * lib/sys_stat_.h: Likewise.
63682         * lib/sys_time_.h: Likewise.
63683         * lib/sysexits_.h: Likewise.
63684         * lib/time_.h: Likewise.
63685         * lib/unistd_.h: Likewise.
63686         * lib/wchar_.h: Likewise.
63687         * lib/wctype_.h: Likewise.
63688
63689 2007-05-29  Bruno Haible  <bruno@clisp.org>
63690
63691         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63692         for the moment.
63693
63694 2007-05-29  Bruno Haible  <bruno@clisp.org>
63695
63696         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63697         invocation.
63698         Reported by Eric Blake.
63699
63700 2007-05-29  Bruno Haible  <bruno@clisp.org>
63701
63702         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63703         compiling case.
63704
63705 2007-05-29  Eric Blake  <ebb9@byu.net>
63706             Bruno Haible  <bruno@clisp.org>
63707
63708         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63709         cross compiles.
63710
63711 2007-05-28  Eric Blake  <ebb9@byu.net>
63712
63713         * modules/closein-tests (test_closein_LDADD): Support test on
63714         cygwin with libtool.
63715
63716 2007-05-28  Bruno Haible  <bruno@clisp.org>
63717
63718         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63719         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63720         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63721         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63722         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63723         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63724         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63725         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63726         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63727
63728 2007-05-28  Eric Blake  <ebb9@byu.net>
63729
63730         Unconditionally include <config.h> in unit tests.
63731         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63732         * tests/test-allocsa.c, tests/test-arcfour.c,
63733         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63734         tests/test-array_list.c, tests/test-array_oset.c,
63735         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63736         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63737         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63738         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63739         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63740         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63741         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63742         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63743         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63744         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63745         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63746         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63747         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63748         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63749         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63750         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63751         test-md5.c, test-memmem.c, test-printf-posix.c,
63752         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63753         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63754         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63755         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63756         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63757         test-vasnprintf-posix2.c, test-vasnprintf.c,
63758         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63759         test-vfprintf-posix.c, test-vprintf-posix.c,
63760         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63761         test-xvasprintf.c: Likewise.
63762
63763 2007-05-28  Bruno Haible  <bruno@clisp.org>
63764
63765         * gnulib-tool (func_import): Remember the --with-tests command-line
63766         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63767         Reported by Eric Blake.
63768
63769 2007-05-28  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/ftell-tests: New file.
63772         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63773         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63774
63775         * lib/ftell.c: New file.
63776         * modules/ftell: New file.
63777         * m4/ftell.m4: New file.
63778         * doc/functions/ftell.texi: Update.
63779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63780         REPLACE_FTELL.
63781         * lib/stdio_.h (rpl_ftell): New declaration.
63782         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63783         REPLACE_FTELL.
63784
63785 2007-05-28  Eric Blake  <ebb9@byu.net>
63786
63787         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63788
63789 2007-05-28  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/fseek-tests: New file.
63792         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63793         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63794
63795         * lib/fseek.c: New file.
63796         * modules/fseek: New file.
63797         * m4/fseek.m4: New file.
63798         * doc/functions/fseek.texi: Update.
63799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63800         REPLACE_FSEEK.
63801         * lib/stdio_.h (rpl_fseek): New declaration.
63802         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63803         REPLACE_FSEEK.
63804
63805 2007-05-28  Bruno Haible  <bruno@clisp.org>
63806
63807         * lib/stdio_.h (fflush): More comments.
63808
63809 2007-05-28  Bruno Haible  <bruno@clisp.org>
63810
63811         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63812         runtime test.
63813
63814 2007-05-28  Eric Blake  <ebb9@byu.net>
63815
63816         Improve lseek module.
63817         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63818         * lib/unistd_.h (lseek): Scale back link warning message.
63819         * tests/test-lseek.c: Beef up test.
63820         * tests/test-lseek.sh: Exercise more facets of lseek.
63821         Reported by Bruno Haible.
63822
63823 2007-05-28  Bruno Haible  <bruno@clisp.org>
63824
63825         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63826         to define.
63827
63828 2007-05-27  Bruno Haible  <bruno@clisp.org>
63829
63830         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63831
63832 2007-05-27  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/openmp: New file.
63835         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63836         Noah Misch.
63837
63838 2007-05-26  Bruno Haible  <bruno@clisp.org>
63839
63840         * modules/chdir-long (Depends-on): Add fchdir.
63841         * modules/chdir-safer (Depends-on): Likewise.
63842         * modules/fts (Depends-on): Likewise.
63843         * modules/fts-lgpl (Depends-on): Likewise.
63844         * modules/openat (Depends-on): Likewise.
63845         * modules/savewd (Depends-on): Likewise.
63846
63847 2007-05-24  Eric Blake  <ebb9@byu.net>
63848
63849         Fix lseek on mingw.
63850         * modules/lseek: New module.
63851         * m4/lseek.m4: New file.
63852         * lib/lseek.c: New file.
63853         * modules/lseek-tests: New file.
63854         * tests/test-lseek.c: New file.
63855         * tests/test-lseek.sh: New file.
63856         * MODULES.html.sh: Document lseek module.
63857         * modules/fflush (Depends-on): Add lseek, fseeko.
63858         * modules/fseeko (Depends-on): Likewise.
63859         * modules/ftello (Depends-on): Likewise.
63860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63861         broken.
63862         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63863         broken.
63864         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63865         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63866         * lib/ftello.c (rpl_ftello): Likewise.
63867         * tests/test-fseeko.c (main): Test this.
63868         * tests/test-fseeko.sh: Likewise.
63869         * tests/test-ftello.c (main): Likewise.
63870         * tests/test-ftello.sh: Likewise.
63871         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63872         implies replacing fseek.
63873         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63874         HAVE_FTELLO.
63875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63876         * modules/unistd (Makefile.am): Likewise.
63877         * lib/unistd_.h (lseek): Declare a replacement.
63878         * doc/functions/lseek.texi (lseek): Document this fix.
63879         * doc/functions/fseek.texi (fseek): Likewise.
63880         * doc/functions/ftell.texi (ftell): Likewise.
63881
63882 2007-05-24  Bruno Haible  <bruno@clisp.org>
63883
63884         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63885         in the printed representation of a NaN.
63886         * tests/test-vasprintf-posix.c (test_function): Likewise.
63887         * tests/test-snprintf-posix.h (test_function): Likewise.
63888         * tests/test-sprintf-posix.h (test_function): Likewise.
63889         Reported by Eric Blake.
63890
63891 2007-05-23  Eric Blake  <ebb9@byu.net>
63892
63893         Fix fseeko/ftello on cygwin 1.5.24.
63894         * doc/functions/fseeko.texi (fseeko): Document the fix.
63895         * doc/functions/ftello.texi (ftello): Document the fix.
63896         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63897         * doc/functions/stdout.text (stdout): New file.
63898         * doc/functions/stderr.text (stderr): New file.
63899         * doc/gnulib.texi (Function Substitutes): Use new files.
63900         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63901         prior to 1.7.0.
63902         * tests/test-ftello.c (main): Likewise for ftello.
63903         * tests/test-fseeko.sh: New file.
63904         * tests/test-ftello.sh: New file.
63905         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63906         with seekable stdin.
63907         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63908         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63909         (gl_REPLACE_FSEEKO): New macro.
63910         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63911         * modules/fseeko (Files): Distribute fseeko.c.
63912         * modules/ftello (Files): Distribute ftello.c.
63913         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63914         mode.
63915         * lib/ftello.c (rpl_ftello): New file.
63916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63917         fseeko, ftello.
63918         (gl_STDIN_LARGE_OFFSET): New macro.
63919         * modules/stdio (Makefile.am): Perform the replacement.
63920         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63921
63922 2007-05-23  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63925         GNULIB_POSIXCHECK is defined.
63926
63927 2007-05-21  Bruno Haible  <bruno@clisp.org>
63928
63929         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63930         Check also the output for NaN arguments. When cross-compiling, guess
63931         no on IRIX.
63932         * lib/vasnprintf.c: Update comments.
63933         * tests/test-vasnprintf-posix.c (strisnan): New function.
63934         (test_function): Use it.
63935         * tests/test-vasprintf-posix.c (strisnan): New function.
63936         (test_function): Use it.
63937         * tests/test-snprintf-posix.h (strisnan): New function.
63938         (test_function): Use it.
63939         * tests/test-sprintf-posix.h (strisnan): New function.
63940         (test_function): Use it.
63941         Reported by Eric Blake.
63942
63943 2007-05-20  Bruno Haible  <bruno@clisp.org>
63944
63945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63946         numbers that fails on BeOS.
63947         * doc/functions/frexpl.texi: Update.
63948
63949 2007-05-20  Jim Meyering  <jim@meyering.net>
63950
63951         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63952         forced upon us by glibc-2.6.
63953
63954 2007-05-20  Bruno Haible  <bruno@clisp.org>
63955
63956         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63957         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63958         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63959         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63960         NEED_PRINTF_INFINITE.
63961         (is_infinitel): New function.
63962         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63964         gl_PREREQ_VASNPRINTF_INFINITE.
63965         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63967         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63968         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63969         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63970         gl_PREREQ_VASNPRINTF_INFINITE.
63971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63978         * doc/functions/fprintf.texi: Update.
63979         * doc/functions/printf.texi: Update.
63980         * doc/functions/snprintf.texi: Update.
63981         * doc/functions/sprintf.texi: Update.
63982         * doc/functions/vfprintf.texi: Update.
63983         * doc/functions/vprintf.texi: Update.
63984         * doc/functions/vsnprintf.texi: Update.
63985         * doc/functions/vsprintf.texi: Update.
63986
63987 2007-05-20  Bruno Haible  <bruno@clisp.org>
63988
63989         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63990         was not found in libc.
63991         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63992
63993 2007-05-20  Bruno Haible  <bruno@clisp.org>
63994
63995         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63996         printed as "-nan" instead of "nan".
63997         * tests/test-vasprintf-posix.c (test_function): Likewise.
63998         * tests/test-snprintf-posix.h (test_function): Likewise.
63999         * tests/test-sprintf-posix.h (test_function): Likewise.
64000         Needed for HP-UX 11.
64001
64002 2007-05-20  Jim Meyering  <jim@meyering.net>
64003
64004         Fix buggy test for the fchownat-deref bug.
64005         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64006         symlink required for the run-test.  Without it, this test would
64007         always declare that fchownat doesn't work, and client code would
64008         unnecessarily use the replacement function with fixed libc.
64009         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64010         Reported by Greg Schafer.
64011
64012 2007-05-19  Bruno Haible  <bruno@clisp.org>
64013
64014         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64015         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64016         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64017         Needed for IRIX 6.5 and Solaris 2.5.1.
64018
64019 2007-05-19  Bruno Haible  <bruno@clisp.org>
64020
64021         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64022         (test_function): Skip tests involving -0.0 on platforms where
64023         -0.0 = 0.0.
64024         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64025         (test_function): Skip tests involving -0.0 on platforms where
64026         -0.0 = 0.0.
64027         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64028         (test_function): Skip tests involving -0.0 on platforms where
64029         -0.0 = 0.0.
64030         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64031         (test_function): Skip tests involving -0.0 on platforms where
64032         -0.0 = 0.0.
64033         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64034         tests.
64035         * tests/test-printf-posix.h (test_function): Likewise.
64036         * tests/test-printf-posix.output: Remove all -0.0 related results.
64037         Needed for IRIX 6.5.
64038
64039 2007-05-19  Bruno Haible  <bruno@clisp.org>
64040
64041         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64042         printed as "nan0x7fffffff" instead of "nan".
64043         * tests/test-vasprintf-posix.c (test_function): Likewise.
64044         * tests/test-snprintf-posix.h (test_function): Likewise.
64045         * tests/test-sprintf-posix.h (test_function): Likewise.
64046         * tests/test-fprintf-posix.h (NaN): Remove macro.
64047         (test_function): Remove all NaN related tests.
64048         * tests/test-printf-posix.h (NaN): Remove macro.
64049         (test_function): Remove all NaN related tests.
64050         * tests/test-printf-posix.output: Remove all NaN related results.
64051         Needed for IRIX 6.5.
64052
64053 2007-05-19  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64057
64058 2007-05-19  Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/float_.h: New file.
64061         * m4/float_h.m4: New file.
64062         * modules/float: New file.
64063         * modules/isnanl (Dependencies): Add float.
64064         * modules/isnanl-nolibm (Dependencies): Likewise.
64065         * modules/mathl (Dependencies): Likewise.
64066         * modules/printf-frexpl (Dependencies): Likewise.
64067         * modules/signbit (Dependencies): Likewise.
64068         * modules/vasnprintf (Dependencies): Likewise.
64069         * doc/headers/float.texi: Update.
64070
64071 2007-05-19  Jim Meyering  <jim@meyering.net>
64072
64073         * lib/utimens.c (gl_futimens): Rename from futimens,
64074         now that glibc-2.6 declares futimens.
64075         * lib/utimens.h: Likewise.
64076
64077 2007-05-19  Bruno Haible  <bruno@clisp.org>
64078
64079         Avoid test failures on mingw.
64080         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64081         * tests/test-printf-posix.sh: Likewise.
64082         * tests/test-vfprintf-posix.sh: Likewise.
64083         * tests/test-vprintf-posix.sh: Likewise.
64084
64085 2007-05-19  Bruno Haible  <bruno@clisp.org>
64086
64087         Fix *printf result for NaN, Inf, -0.0 on mingw.
64088         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64089         * lib/vasnprintf.c: Include math.h and isnan.h.
64090         (is_infinite_or_zero): New function.
64091         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64092         values in the %f, %F, %e, %E, %g, %G directives.
64093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64095         gl_PRINTF_INFINITE and test its result. Invoke
64096         gl_PREREQ_VASNPRINTF_INFINITE.
64097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64104         * doc/functions/fprintf.texi: Update.
64105         * doc/functions/printf.texi: Update.
64106         * doc/functions/snprintf.texi: Update.
64107         * doc/functions/sprintf.texi: Update.
64108         * doc/functions/vfprintf.texi: Update.
64109         * doc/functions/vprintf.texi: Update.
64110         * doc/functions/vsnprintf.texi: Update.
64111         * doc/functions/vsprintf.texi: Update.
64112
64113 2007-05-19  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64116         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64117         Instead of multiplying with 10^k, set extra_zeroes to k.
64118         (scale10_round_long_double): Remove function.
64119
64120 2007-05-18  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64123         introduced on 2007-05-06.
64124
64125 2007-05-18  Bruno Haible  <bruno@clisp.org>
64126
64127         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64128         %g directives.
64129         * tests/test-vasprintf-posix.c (test_function): Likewise.
64130         * tests/test-snprintf-posix.h (test_function): Likewise.
64131         * tests/test-sprintf-posix.h (test_function): Likewise.
64132
64133 2007-05-18  Bruno Haible  <bruno@clisp.org>
64134
64135         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64136         (strmatch): New function.
64137         (test_function): Test the %f directive on numbers of various exponents.
64138         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64139         (strmatch): New function.
64140         (test_function): Test the %f directive on numbers of various exponents.
64141         * tests/test-snprintf-posix.h (strmatch): New function.
64142         (test_function): Test the %f directive on numbers of various exponents.
64143         * tests/test-sprintf-posix.h (strmatch): New function.
64144         (test_function): Test the %f directive on numbers of various exponents.
64145         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64146         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64147         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64148         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64149
64150 2007-05-18  Bruno Haible  <bruno@clisp.org>
64151
64152         Add support for 'long double' number output.
64153         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64154         * lib/vasnprintf.c: Include math.h and float+.h.
64155         (mp_limb_t): New type.
64156         (GMP_LIMB_BITS): New macro.
64157         (mp_twolimb_t): New type.
64158         (GMP_TWOLIMB_BITS): New macro.
64159         (mpn_t): New type.
64160         (multiply, divide, convert_to_decimal, decode_long_double,
64161         scale10_round_long_double, scale10_round_decimal_long_double,
64162         floorlog10l): New functions.
64163         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64164         for the %f, %F, %e, %E, %g, %G directives.
64165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64167         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64168         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64170         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64176         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64177         * modules/snprintf-posix (Depends-on): Likewise.
64178         * modules/sprintf-posix (Depends-on): Likewise.
64179         * modules/vasnprintf-posix (Depends-on): Likewise.
64180         * modules/vasprintf-posix (Depends-on): Likewise.
64181         * modules/vfprintf-posix (Depends-on): Likewise.
64182         * modules/vsnprintf-posix (Depends-on): Likewise.
64183         * modules/vsprintf-posix (Depends-on): Likewise.
64184         * modules/vasnprintf (Files): Add lib/float+.h.
64185         * doc/functions/fprintf.texi: Update.
64186         * doc/functions/printf.texi: Update.
64187         * doc/functions/snprintf.texi: Update.
64188         * doc/functions/sprintf.texi: Update.
64189         * doc/functions/vfprintf.texi: Update.
64190         * doc/functions/vprintf.texi: Update.
64191         * doc/functions/vsnprintf.texi: Update.
64192         * doc/functions/vsprintf.texi: Update.
64193
64194 2007-05-18  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64197
64198 2007-05-18  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64201         for printing 64-bit integers. Needed for mingw.
64202
64203 2007-05-18  Bruno Haible  <bruno@clisp.org>
64204
64205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64206         gl_FUNC_FREXPL_WORKS.
64207         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64208
64209 2007-05-18  Bruno Haible  <bruno@clisp.org>
64210
64211         * modules/frexpl-nolibm-tests: New file.
64212
64213         * modules/frexpl-nolibm: New file.
64214         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64215
64216 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64219         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64220         GCC 4.2, which otherwise issues a lot of warnings.
64221         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64222         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64223         Likewise.
64224         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64225         * modules/iconv_open (iconv.h): Likewise.
64226         * modules/locale (locale.h): Likewise.
64227         * modules/netinet_in (netinet/in.h): Likewise.
64228         * modules/sys_select (sys_select.h): Likewise.
64229         * modules/sys_socket (sys/socket.h): Likewise.
64230         * modules/sys_stat (sys/stat.h): Likewise.
64231         * modules/sysexits (sysexits.h): Likewise.
64232         * modules/unistd (unistd.h): Likewise.
64233
64234 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64235
64236         * modules/closein-tests (Makefile.am): Distribute
64237         `test-closein.sh'.
64238
64239 2007-05-17  Bruno Haible  <bruno@clisp.org>
64240
64241         * tests/test-printf-posix.output: Renamed from
64242         tests/test-fprintf-posix.out.
64243         * modules/fprintf-posix-tests: Update.
64244         * modules/printf-posix-tests: Update.
64245         * modules/vfprintf-posix-tests: Update.
64246         * modules/vprintf-posix-tests: Update.
64247         * tests/test-fprintf-posix.sh: Update.
64248         * tests/test-printf-posix.sh: Update.
64249         * tests/test-vfprintf-posix.sh: Update.
64250         * tests/test-vprintf-posix.sh: Update.
64251         Reported by Ralf Wildenhues.
64252
64253 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64256         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64257         GCC 4.2, which otherwise issues a lot of warnings.
64258         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64259         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64260         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64261         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64262         it should no longer be needed.
64263         * lib/string_.h: Likewise.
64264         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64265         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64266         * modules/inttypes (inttypes.h): Likewise.
64267         * modules/math (math.h): Likewise.
64268         * modules/search (search.h): Likewise.
64269         * modules/signal (signal.h): Likewise.
64270         * modules/stdint (stdint.h): Likewise.
64271         * modules/stdio (stdio.h): Likewise.
64272         * modules/stdlib (stdlib.h): Likewise.
64273         * modules/string (string.h): Likewise.
64274         * modules/sys_time (sys/time.h): Likewise.
64275         * modules/time (time.h): Likewise.
64276         * modules/wchar (wchar.h): Likewise.
64277         * modules/wctype (wtype.h): Likewise.
64278
64279 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64280
64281         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64282
64283 2007-05-13  Bruno Haible  <bruno@clisp.org>
64284
64285         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64286         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64287         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64288         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64289         (gl_PREREQ_STRTOK_R): Don't require it here.
64290
64291 2007-05-13  Bruno Haible  <bruno@clisp.org>
64292
64293         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64294         when used in C++ mode.
64295
64296 2007-05-12  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/linebuffer.h: Tweak doc.
64299         * lib/linebuffer.c: Likewise.
64300
64301 2007-05-12  James Youngman  <jay@gnu.org>
64302
64303         * lib/linebuffer.c (readlinebuffer_delim): New function,
64304         like readlinebuffer, but use a caller-specified delimiter.
64305         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64306         as the delimiter.
64307         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64308
64309 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64310
64311         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64312         * modules/openat (Files): Remove openat-die.c.
64313         (Depends-on): Add openat-die.
64314         * modules/openat-die: New module.
64315
64316 2007-05-06  Bruno Haible  <bruno@clisp.org>
64317
64318         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64319         Update with info about Cygwin.
64320         * doc/functions/fprintf.texi: Update.
64321         * doc/functions/printf.texi: Update.
64322         * doc/functions/snprintf.texi: Update.
64323         * doc/functions/sprintf.texi: Update.
64324         * doc/functions/vfprintf.texi: Update.
64325         * doc/functions/vprintf.texi: Update.
64326         * doc/functions/vsnprintf.texi: Update.
64327         * doc/functions/vsprintf.texi: Update.
64328         Reported by Eric Blake.
64329
64330 2007-05-06  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64333         padding ourselves for the floating-point directives.
64334         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64337         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64338         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64346         * tests/test-snprintf-posix.h (test_function): Also check the width
64347         and some flags in the %f directive.
64348         * tests/test-sprintf-posix.h (test_function): Likewise.
64349         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64350         * tests/test-vasprintf-posix.c (test_function): Likewise.
64351         * doc/functions/fprintf.texi: Update.
64352         * doc/functions/printf.texi: Update.
64353         * doc/functions/snprintf.texi: Update.
64354         * doc/functions/sprintf.texi: Update.
64355         * doc/functions/vfprintf.texi: Update.
64356         * doc/functions/vprintf.texi: Update.
64357         * doc/functions/vsnprintf.texi: Update.
64358         * doc/functions/vsprintf.texi: Update.
64359
64360 2007-05-06  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64363         pass the ' flag character to sprintf or snprintf.
64364         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64367         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64368         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64370         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64376         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64377         flag.
64378         * tests/test-sprintf-posix.h (test_function): Likewise.
64379         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64380         * tests/test-vasprintf-posix.c (test_function): Likewise.
64381         * doc/functions/fprintf.texi: Update.
64382         * doc/functions/printf.texi: Update.
64383         * doc/functions/snprintf.texi: Update.
64384         * doc/functions/sprintf.texi: Update.
64385         * doc/functions/vfprintf.texi: Update.
64386         * doc/functions/vprintf.texi: Update.
64387         * doc/functions/vsnprintf.texi: Update.
64388         * doc/functions/vsprintf.texi: Update.
64389
64390 2007-05-01  Bruno Haible  <bruno@clisp.org>
64391
64392         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64393
64394 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64397         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64398
64399 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64402         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64404
64405 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64406
64407         * lib/argp-help.c (struct hol_entry): New member `ord'.
64408         (HOL_ENTRY_PTRCMP): Use ord for comparison
64409         (hol_sort): Initialize ord.
64410
64411 2007-05-01  Bruno Haible  <bruno@clisp.org>
64412
64413         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64414         Reported by Eric Blake.
64415         * doc/gnulib.texi (Function Substitutes): Update.
64416
64417 2007-05-01  Bruno Haible  <bruno@clisp.org>
64418
64419         * doc/functions.texi: Remove file, now redundant through
64420         doc/functions/*.texi.
64421
64422 2007-05-01  Bruno Haible  <bruno@clisp.org>
64423
64424         * modules/argp (Depends-on): Add sleep.
64425
64426 2007-05-01  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/sleep-tests: New file.
64429         * tests/test-sleep.c: New file.
64430
64431         * modules/sleep: New file.
64432         * lib/sleep.c: New file.
64433         * m4/sleep.m4: New file.
64434         * lib/unistd_.h (sleep): New declaration.
64435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64436         HAVE_SLEEP.
64437         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64438         * doc/functions/sleep.texi: Document the sleep module.
64439
64440 2007-05-01  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/sigprocmask.h: Remove file.
64443         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64444         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64445         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64446         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64447         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64448         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64449         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64450         HAVE_SIGSET_T as a shell variable.
64451         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64452         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64453         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64454         (Depends-on): Add signal. Remove verify.
64455         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64456         (Include): Mention <signal.h> instead of sigprocmask.h.
64457         * NEWS: Mention the change.
64458         * lib/fatal-signal.c: Don't include sigprocmask.h.
64459
64460 2007-05-01  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/signal: New file.
64463         * lib/signal_.h: New file.
64464         * m4/signal_h.m4: New file.
64465
64466 2007-05-01  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64469         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64470         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64471         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64472
64473 2007-05-01  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64476         configure time.
64477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64478         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64479         * modules/sys_stat (Makefile.am): Substitute their values into
64480         sys/stat.h.
64481
64482 2007-05-01  Bruno Haible  <bruno@clisp.org>
64483
64484         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64485         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64486         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64487
64488 2007-05-01  Bruno Haible  <bruno@clisp.org>
64489
64490         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64491         'assert' module here.
64492
64493 2007-05-01  Bruno Haible  <bruno@clisp.org>
64494
64495         * doc/functions/*.texi: New files.
64496         * doc/functions/google-ranking.txt: New file.
64497         * doc/gnulib.texi (Function Substitutes): New chapter.
64498         (ctime, inet_ntoa): Remove sections.
64499         * doc/ctime.texi: Remove file.
64500         * doc/inet_ntoa.texi: Remove file.
64501         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64502         dependencies.
64503         (%.info): New rule, specifying a --reference-limit.
64504
64505 2007-05-01  Bruno Haible  <bruno@clisp.org>
64506
64507         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64508
64509 2007-05-01  Bruno Haible  <bruno@clisp.org>
64510
64511         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64512         the portability of 'mkdir' to mingw systems.
64513
64514 2007-05-01  Bruno Haible  <bruno@clisp.org>
64515
64516         * doc/headers/google-ranking.txt: New file.
64517
64518 2007-04-30  Eric Blake  <ebb9@byu.net>
64519
64520         Prefer fseeko to fseek.
64521         * modules/getpass (Depends-on): Add fseeko.
64522         * lib/getpass.c (getpass): Use fseeko, not fseek.
64523
64524 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64525
64526         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64527         assumes the sorting is stable, while most qsort implementations
64528         are not.  Use argument addresses to ensure they never compare as
64529         equal.
64530
64531         * tests/test-argp-2.sh (usage-indent test): Fix output
64532         (func_compare): Restore diff options
64533         * tests/test-argp.c: Restore #include "progname.h"
64534
64535 2007-04-29  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64539         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64541         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64542         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64543         (TESTS, check_PROGRAMS): Add test-snprintf.
64544         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64545         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64546         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64547         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64548         assertions that fail on HP-UX, OSF/1, or IRIX.
64549         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64550
64551 2007-04-29  Bruno Haible  <bruno@clisp.org>
64552
64553         * MODULES.html.sh (posix_functions): Remove 'contents'.
64554
64555 2007-04-29  Karl Berry  <karl@gnu.org>
64556
64557         * config/srclist.txt (gendocs_template_min): new entry.
64558
64559 2007-04-29  Bruno Haible  <bruno@clisp.org>
64560
64561         Work around fpurge bug on BSD systems.
64562         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64563         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64564         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64565         fpurge to rpl_fpurge if the system already has this function.
64566         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64567         the case where the system already has this function. Correct invariants
64568         on BSD systems.
64569         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64570         BSD systems.
64571
64572 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64573
64574         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64575         proposed by Sven Verdoolaege.
64576
64577         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64578         options.
64579         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64580         (usage and help tests): Update
64581
64582 2007-04-29  Bruno Haible  <bruno@clisp.org>
64583
64584         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64585         Print more information in case of failure. Disable a test on BeOS.
64586
64587 2007-04-29  Bruno Haible  <bruno@clisp.org>
64588
64589         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64590         This helps debugging on systems on which no gdb is available.
64591
64592 2007-04-29  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/freading.h: Improve comments.
64595         * lib/fwriting.h: Likewise.
64596         * tests/test-freading.c (main): Don't check freading immediately after
64597         repositioning. Needed for glibc.
64598
64599 2007-04-29  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/freading.c (freading): Trivial simplification.
64602
64603 2007-04-28  Bruno Haible  <bruno@clisp.org>
64604
64605         * tests/test-fwriting.c (main): Also test the interaction between
64606         fflush and fwriting.
64607         * modules/fwriting-tests (Depends-on): Add fflush.
64608
64609         * tests/test-freading.c (main): Also test the interaction between
64610         fflush and freading.
64611         * modules/freading-tests (Depends-on): Add fflush.
64612
64613 2007-04-28  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64616         fseeko and ftello.
64617         Suggested by Eric Blake.
64618
64619 2007-04-28  Jim Meyering  <jim@meyering.net>
64620
64621         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64622         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64623         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64624
64625 2007-04-27  Eric Blake  <ebb9@byu.net>
64626
64627         * doc/headers/assert.texi (assert.h): Document assert module use.
64628
64629 2007-04-27  Bruno Haible  <bruno@clisp.org>
64630
64631         * doc/headers/*.texi: New files.
64632         * doc/gnulib.texi (Header File Substitutes): New chapter.
64633         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64634         dependencies.
64635         (standards.info ,standards.html, standards.dvi): Update dependencies.
64636         (mostlyclean, clean): New targets.
64637
64638 2007-04-27  Bruno Haible  <bruno@clisp.org>
64639
64640         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64641         * modules/sysexits (Files, Makefile.am): Update.
64642
64643         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64644         * modules/sys_socket (Files, Makefile.am): Update.
64645
64646         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64647         * modules/sys_stat (Files, Makefile.am): Update.
64648
64649 2007-04-27  Eric Blake  <ebb9@byu.net>
64650
64651         * lib/freading.h: Improve comments.
64652         * lib/fwriting.h: Likewise.
64653         * lib/fflush.c: Likewise.
64654
64655         Fix closein for mingw.
64656         * modules/closein-tests: Add tests for closein.
64657         * tests/test-closein.c: New file.
64658         * tests/test-closein.sh: Likewise.
64659         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64660         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64661
64662 2007-04-27  Bruno Haible  <bruno@clisp.org>
64663
64664         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64665         version is < 6.
64666         * lib/math_.h [__DECC]: Likewise.
64667         * lib/stdio_.h [__DECC]: Likewise.
64668         * lib/stdlib_.h [__DECC]: Likewise.
64669         * lib/string_.h [__DECC]: Likewise.
64670         * lib/time_.h [__DECC]: Likewise.
64671         * lib/wchar_.h [__DECC]: Likewise.
64672         * lib/wctype_.h [__DECC]: Likewise.
64673
64674 2007-04-27  Bruno Haible  <bruno@clisp.org>
64675
64676         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64677
64678 2007-04-27  Bruno Haible  <bruno@clisp.org>
64679
64680         * lib/fflush.c: Add comments.
64681         * modules/fpurge-tests (Depends-on): Add fflush.
64682         * modules/freadable-tests (Depends-on): Likewise.
64683         * modules/fwritable-tests (Depends-on): Likewise.
64684
64685 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64686
64687         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64688         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64689         Report by Bruno Haible <bruno@clisp.org>.
64690
64691 2007-04-26  Eric Blake  <ebb9@byu.net>
64692
64693         Fix fflush on mingw.
64694         * modules/fflush (Depends-on): Add freading.
64695         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64696         but unread data.
64697
64698 2007-04-26  Eric Blake  <ebb9@byu.net>
64699         and Bruno Haible  <bruno@clisp.org>
64700
64701         Implement freading and fwriting.
64702         * lib/freading.c: New file.
64703         * lib/freading.h: Likewise.
64704         * m4/freading.m4: Likewise.
64705         * modules/freading: Likewise.
64706         * modules/freading-tests: Likewise.
64707         * tests/test-freading.c: Likewise.
64708         * lib/fwriting.c: New file.
64709         * lib/fwriting.h: Likewise.
64710         * m4/fwriting.m4: Likewise.
64711         * modules/fwriting: Likewise.
64712         * modules/fwriting-tests: Likewise.
64713         * tests/test-fwriting.c: Likewise.
64714         * MODULES.html.sh (File stream based Input/Output): Mention them.
64715
64716 2007-04-26  Bruno Haible  <bruno@clisp.org>
64717
64718         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64719         'long' when we assume it.
64720         Suggested by Eric Blake.
64721
64722 2007-04-26  Bruno Haible  <bruno@clisp.org>
64723
64724         Ensure fseeko, ftello are declared on glibc systems.
64725         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64726         * modules/fseeko (configure.ac-early): Likewise.
64727         * modules/ftello (configure.ac-early): Likewise.
64728         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64729         AC_FUNC_FSEEKO for this.
64730         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64731         (gl_CHECK_FSEEKO): Remove macro.
64732
64733 2007-04-26  Bruno Haible  <bruno@clisp.org>
64734
64735         * tests/test-fflush.c (main): Also check the ftell result after
64736         fflush and fseek/fseeko.
64737         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64738         file descriptor position cache in the stream.
64739         * lib/fseeko.c (rpl_fseeko): Likewise.
64740
64741 2007-04-26  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/fflush-tests (Depends-on): Add fseeko.
64744
64745 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64746             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64747
64748         * lib/argz_.h: ensure error_t definition is obtained in same
64749         mechanism system argz.h would have.
64750         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64751         argz facilities are known bad.  Err on the side of caution if
64752         cross-compiling.
64753
64754 2007-04-25  Eric Blake  <ebb9@byu.net>
64755
64756         * lib/fpurge.c (includes): Use stdlib.h for free.
64757         * tests/test-fflush.c (main): Also test fflush-fseeko.
64758
64759 2007-04-25  Bruno Haible  <bruno@clisp.org>
64760
64761         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64762         * lib/fseeko.c: New file.
64763         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64764         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64765         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64766         gl_FUNC_FSEEKO.
64767         (gl_FUNC_FSEEKO): Invoke it.
64768         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64769         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64770         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64771
64772 2007-04-25  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/fflush (Depends-on): Add ftello.
64775
64776 2007-04-25  Bruno Haible  <bruno@clisp.org>
64777
64778         * modules/ftello-tests: New file.
64779         * tests/test-ftello.c: New file.
64780
64781         * modules/ftello: New file.
64782         * m4/ftello.m4: New file.
64783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64784         HAVE_FTELLO.
64785         * lib/stdio_.h (ftello): New declaration.
64786         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64787         HAVE_FTELLO.
64788
64789 2007-04-25  Bruno Haible  <bruno@clisp.org>
64790
64791         * modules/fseeko-tests: New file.
64792         * tests/test-fseeko.c: New file.
64793
64794         * modules/fseeko: New file.
64795         * m4/fseeko.m4: New file.
64796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64797         HAVE_FSEEKO.
64798         * lib/stdio_.h (fseeko): New declaration.
64799         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64800         HAVE_FSEEKO.
64801
64802 2007-04-25  Bruno Haible  <bruno@clisp.org>
64803
64804         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64805
64806 2007-04-25  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64809         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64810         * tests/test-unistd.c: Likewise.
64811         * tests/test-fcntl.c: Likewise.
64812
64813 2007-04-23  Eric Blake  <ebb9@byu.net>
64814
64815         * lib/fflush.c: Fix missing include.
64816         Reported by Bruno Haible.
64817
64818 2007-04-23  Bruno Haible  <bruno@clisp.org>
64819
64820         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64821         Reported by Eric Blake.
64822
64823 2007-04-23  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64826
64827 2007-04-23  Bruno Haible  <bruno@clisp.org>
64828
64829         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64830
64831 2007-04-23  Bruno Haible  <bruno@clisp.org>
64832
64833         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64834         Needed on HP-UX 11.
64835
64836 2007-04-16  Eric Blake  <ebb9@byu.net>
64837
64838         Make fflush rely on fpurge.
64839         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64840         open coding all variants.
64841         * modules/fflush (Depends-on): Add fpurge and unistd.
64842         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64843         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64844
64845         Fix --with-tests compilation on cygwin.
64846         * modules/argmatch-tests (Makefile.am): List gnulib library first
64847         in LDADD.
64848         * modules/argp-tests (Makefile.am): Likewise.
64849         * modules/array-list-tests (Makefile.am): Likewise.
64850         * modules/array-oset-tests (Makefile.am): Likewise.
64851         * modules/avltree-list-tests (Makefile.am): Likewise.
64852         * modules/avltree-oset-tests (Makefile.am): Likewise.
64853         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64854         * modules/carray-list-tests (Makefile.am): Likewise.
64855         * modules/dirname-tests (Makefile.am): Likewise.
64856         * modules/frexp-tests (Makefile.am): Likewise.
64857         * modules/isnanl-tests (Makefile.am): Likewise.
64858         * modules/linked-list-tests (Makefile.am): Likewise.
64859         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64860         * modules/lock-tests (Makefile.am): Likewise.
64861         * modules/rbtree-list-tests (Makefile.am): Likewise.
64862         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64863         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64864         * modules/tls-tests (Makefile.am): Likewise.
64865         * modules/tsearch-tests (Makefile.am): Likewise.
64866         * modules/xvasprintf-tests (Makefile.am): Likewise.
64867
64868         Fix fpurge for cygwin.
64869         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64870         value.
64871         * modules/fpurge-tests (Depends-on): Clean up trash.
64872
64873 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64874
64875         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64876
64877         * m4/autobuild.m4: Re-indent.
64878
64879 2007-04-13  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/fpurge-tests: New file.
64882         * tests/test-fpurge.c: New file.
64883
64884         * modules/fpurge: New file.
64885         * lib/fpurge.h: New file.
64886         * lib/fpurge.c: New file.
64887         * m4/fpurge.m4: New file.
64888
64889 2007-04-13  Bruno Haible  <bruno@clisp.org>
64890
64891         * modules/fbufmode-tests: New file.
64892         * tests/test-fbufmode.c: New file.
64893
64894         * modules/fbufmode: New file.
64895         * lib/fbufmode.h: New file.
64896         * lib/fbufmode.c: New file.
64897         * m4/fbufmode.m4: New file.
64898
64899 2007-04-13  Bruno Haible  <bruno@clisp.org>
64900
64901         * modules/fwritable-tests: New file.
64902         * tests/test-fwritable.c: New file.
64903
64904         * modules/fwritable: New file.
64905         * lib/fwritable.h: New file.
64906         * lib/fwritable.c: New file.
64907         * m4/fwritable.m4: New file.
64908
64909 2007-04-13  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/freadable-tests: New file.
64912         * tests/test-freadable.c: New file.
64913
64914         * modules/freadable: New file.
64915         * lib/freadable.h: New file.
64916         * lib/freadable.c: New file.
64917         * m4/freadable.m4: New file.
64918
64919 2007-04-13  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64922         MOSTLYCLEANFILES.
64923
64924 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64927         gzip bootstrap.conf to avoid dragging in i18n machinery.
64928         (gnulib_tool_option): Use it.
64929
64930 2007-04-13  Bruno Haible  <bruno@clisp.org>
64931
64932         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64933         %F directives.
64934         * tests/test-vasprintf-posix.c (test_function): Likewise.
64935         * tests/test-snprintf-posix.h (test_function): Likewise.
64936         * tests/test-sprintf-posix.h (test_function): Likewise.
64937         * tests/test-fprintf-posix.h (test_function): Likewise.
64938         * tests/test-printf-posix.h (test_function): Likewise.
64939         * tests/test-fprintf-posix.out: Likewise.
64940
64941 2007-04-13  Bruno Haible  <bruno@clisp.org>
64942
64943         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64944         * modules/tls-tests (configure.ac): Likewise.
64945         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64946
64947 2007-04-13  Bruno Haible  <bruno@clisp.org>
64948
64949         * lib/tls.c (glthread_tls_get): Fix return type.
64950         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64951
64952 2007-04-12  Eric Blake  <ebb9@byu.net>
64953
64954         * modules/gettime (Depends-on): Remove gettime.
64955         Reported by Dmitry V. Levin.
64956
64957 2007-04-12  Bruno Haible  <bruno@clisp.org>
64958
64959         * modules/fflush (Include): Mention <stdio.h>.
64960         * modules/strtoimax (Include): Mention <inttypes.h>.
64961         * modules/strtoumax (Include): Likewise.
64962
64963 2007-04-12  Eric Blake  <ebb9@byu.net>
64964
64965         * .cvsignore: New file.
64966         * .gitignore: Likewise.
64967
64968 2007-04-12  Bruno Haible  <bruno@clisp.org>
64969
64970         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64971         not before, since $(LDADD) often contains libgnu.a.
64972         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64973         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64974         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64975         Needed on Cygwin.
64976
64977 2007-04-12  Eric Blake  <ebb9@byu.net>
64978
64979         Work around glibc's failure to flush stdin on fclose.
64980         * lib/closein.c (close_stdin): Flush stdin before closing.
64981
64982         Work around glibc's failure to reset seekable stdin on exit.
64983         * modules/closein: New module.
64984         * lib/closein.c: New file.
64985         * lib/closein.h: Likewise.
64986         * m4/closein.m4: Likewise.
64987         * MODULES.html.sh (File stream based Input/Output): Document it.
64988
64989 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64990
64991         * gnulib-tool: Rename generated 'autobuild' script to
64992         'do-autobuild' in --create-megatestdir output.
64993
64994         * doc/gnulib.texi (Build robot for gnulib): Fix.
64995
64996 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64997
64998         * modules/sysexits (Depends-on): Add absolute-header.
64999
65000 2007-04-12  Eric Blake  <ebb9@byu.net>
65001
65002         No need to preserve errno on success.
65003         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65004         Reported by Bruno Haible.
65005
65006 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65007
65008         * MODULES.html.sh (Support for maintaining and releasing
65009         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65010
65011 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65012
65013         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65014
65015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65016
65017         * modules/autobuild: New module.
65018
65019         * m4/autobuild.m4: New file.
65020
65021 2007-04-11  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65024         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65027         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65028         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65029         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65031         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65032         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65034         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65035         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65046         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65047         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65049         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65050         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65051         Reported by Eric Blake.
65052
65053 2007-04-11  Bruno Haible  <bruno@clisp.org>
65054
65055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65056
65057 2007-04-10  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65060         for NaN and Infinity. Needed on FreeBSD 6.1.
65061         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65062         regarding results for "%010a" of Infinity and NaN.
65063         * tests/test-vasprintf-posix.c (test_function): Likewise.
65064         * tests/test-snprintf-posix.h (test_function): Likewise.
65065         * tests/test-sprintf-posix.h (test_function): Likewise.
65066         * tests/test-fprintf-posix.h (test_function): Likewise.
65067         * tests/test-printf-posix.h (test_function): Likewise.
65068         * tests/test-fprintf-posix.out: Likewise.
65069
65070 2007-04-10  Bruno Haible  <bruno@clisp.org>
65071
65072         * modules/locale-tests: New file.
65073         * tests/test-locale.c: New file.
65074
65075         * modules/locale: New file.
65076         * lib/locale_.h: New file.
65077         * m4/locale_h.m4: New file.
65078
65079 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65080             Bruno Haible  <bruno@clisp.org>
65081
65082         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65083         be determined, test for availability of the copysignf, copysign,
65084         copysignl functions.
65085         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65086         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65087         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65088
65089 2007-04-09  Eric Blake  <ebb9@byu.net>
65090
65091         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65092         * modules/stdio (Makefile.am): Support fflush.
65093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65094         * modules/fflush: New file.
65095         * lib/fflush.c: Likewise.
65096         * m4/fflush.m4: Likewise.
65097         * modules/fflush-tests: New test.
65098         * tests/test-fflush.c: Likewise.
65099         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65100
65101 2007-04-06  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65104         (VASNPRINTF): Use signbit for faster determination whether to print a
65105         minus sign.
65106         * modules/vasnprintf (Files): Remove lib/float+.h.
65107         * modules/fprintf-posix (Depends-on): Add signbit.
65108         * modules/snprintf-posix (Depends-on): Likewise.
65109         * modules/sprintf-posix (Depends-on): Likewise.
65110         * modules/vasnprintf-posix (Depends-on): Likewise.
65111         * modules/vasprintf-posix (Depends-on): Likewise.
65112         * modules/vfprintf-posix (Depends-on): Likewise.
65113         * modules/vsnprintf-posix (Depends-on): Likewise.
65114         * modules/vsprintf-posix (Depends-on): Likewise.
65115
65116 2007-04-06  Bruno Haible  <bruno@clisp.org>
65117
65118         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65119         * tests/test-frexpl.c (main): Likewise.
65120         * tests/test-ldexpl.c (main): Likewise.
65121         * modules/frexp-tests (Depends-on): Add signbit.
65122         * modules/frexpl-tests (Depdends-on): Likewise.
65123         * modules/ldexpl-tests (Depdends-on): Likewise.
65124
65125 2007-04-06  Bruno Haible  <bruno@clisp.org>
65126
65127         * modules/signbit-tests: New file.
65128         * tests/test-signbit.c: New file.
65129
65130         * modules/signbit: New file.
65131         * lib/signbitf.c: New file.
65132         * lib/signbitd.c: New file.
65133         * lib/signbitl.c: New file.
65134         * m4/signbit.m4: New file.
65135         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65136         (signbit): New macro.
65137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65138         REPLACE_SIGNBIT.
65139         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65140         REPLACE_FREXPL into math.h.
65141
65142 2007-04-06  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/isnanf-nolibm-tests: New file.
65145         * tests/test-isnanf.c: New file.
65146
65147         * modules/isnanf-nolibm: New file.
65148         * lib/isnanf.h: New file.
65149         * lib/isnanf.c: New file.
65150         * lib/isnan.c: Consider the USE_FLOAT macro.
65151         * m4/isnanf.m4: New file.
65152
65153 2007-04-06  Bruno Haible  <bruno@clisp.org>
65154
65155         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65156         (Link): New section.
65157
65158         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65159
65160 2007-04-06  Bruno Haible  <bruno@clisp.org>
65161
65162         Assume the 'long double' type.
65163         * m4/longdouble.m4: Remove file.
65164         * config/srclist.txt: Don't mention longdouble.m4.
65165         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65166         * lib/float+.h: Likewise.
65167         * lib/frexp.c: Likewise.
65168         * lib/printf-args.h: Likewise.
65169         * lib/printf-args.c: Likewise.
65170         * lib/printf-frexp.c: Likewise.
65171         * lib/printf-parse.c: Likewise.
65172         * lib/vasnprintf.c: Likewise.
65173         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65174         * m4/intl.m4: Likewise.
65175         * m4/isnanl.m4: Likewise.
65176         * m4/printf.m4: Likewise.
65177         * m4/printf-frexpl.m4: Likewise.
65178         * m4/vasnprintf.m4: Likewise.
65179         * modules/allocsa (Files): Remove m4/longdouble.m4.
65180         * modules/gettext (Files): Likewise.
65181         * modules/relocatable-prog-wrapper (Files): Likewise.
65182         * modules/vasnprintf (Files): Likewise.
65183         * modules/isnanl (Files): Likewise.
65184         (Include): Simplify.
65185         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65186         (Include): Simplify.
65187         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65188         (Include): Simplify.
65189         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65191         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65193         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65195         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65196         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65197         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65198         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65199         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65200         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65201         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65202         * tests/test-isnanl.c: Likewise.
65203         * tests/test-snprintf-posix.h: Likewise.
65204         * tests/test-sprintf-posix.h: Likewise.
65205         * tests/test-vasnprintf-posix.c: Likewise.
65206         * tests/test-vasnprintf-posix2.c: Likewise.
65207         * tests/test-vasprintf-posix.c: Likewise.
65208
65209 2007-04-06  Bruno Haible  <bruno@clisp.org>
65210
65211         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65212         * lib/math_.h [__DECC]: Include the overridden include file through
65213         #include_next, outside the double-inclusion guard.
65214         * lib/stdio_.h [__DECC]: Likewise.
65215         * lib/stdlib_.h [__DECC]: Likewise.
65216         * lib/string_.h [__DECC]: Likewise.
65217         * lib/time_.h [__DECC]: Likewise.
65218         * lib/wchar_.h [__DECC]: Likewise.
65219         * lib/wctype_.h [__DECC]: Likewise.
65220         * lib/inttypes_.h [__DECC]: Likewise.
65221         Reported by Albert Chin <china@thewrittenword.com> in
65222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65223
65224 2007-04-04  Eric Blake  <ebb9@byu.net>
65225
65226         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65227         1.5.x.
65228
65229 2007-04-04  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65232         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65233
65234 2007-04-04  Bruno Haible  <bruno@clisp.org>
65235
65236         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65237         results for "%010a" of Infinity and NaN.
65238         * tests/test-vasprintf-posix.c (test_function): Likewise.
65239         * tests/test-snprintf-posix.h (test_function): Likewise.
65240         * tests/test-sprintf-posix.h (test_function): Likewise.
65241         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65242         * tests/test-printf-posix.h (test_function): Likewise.
65243         * tests/test-fprintf-posix.out: Update.
65244         Needed for FreeBSD 6.1.
65245
65246 2007-04-04  Bruno Haible  <bruno@clisp.org>
65247
65248         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65249         directly used by the gnulib modules nor by gnulib-tool.
65250
65251 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * DEPENDENCIES: Give overall description of version dependency
65254         desirability.  Use more-typical names for apps.
65255         Add shell, coreutils, diffutils, grep, tar, gzip.
65256
65257 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65258
65259         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65260
65261 2007-04-04  Karl Berry  <karl@gnu.org>
65262
65263         * MODULES.html.sh (func_module): missing '.
65264
65265 2007-04-03  Bruno Haible  <bruno@clisp.org>
65266
65267         * modules/argmatch-tests (Makefile.am): New variable
65268         test_argmatch_LDADD.
65269         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65270         * modules/array-list-tests (Makefile.am): New variable
65271         test_array_list_LDADD.
65272         * modules/array-oset-tests (Makefile.am): New variable
65273         test_array_oset_LDADD.
65274         * modules/avltree-list-tests (Makefile.am): New variable
65275         test_avltree_list_LDADD.
65276         * modules/avltree-oset-tests (Makefile.am): New variable
65277         test_avltree_oset_LDADD.
65278         * modules/avltreehash-list-tests (Makefile.am): New variable
65279         test_avltreehash_list_LDADD.
65280         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65281         test_canonicalize_lgpl_LDADD.
65282         * modules/carray-list-tests (Makefile.am): New variable
65283         test_carray_list_LDADD.
65284         * modules/dirname-tests (Makefile.am): New variable
65285         test_dirname_LDADD.
65286         * modules/linked-list-tests (Makefile.am): New variable
65287         test_linked_list_LDADD.
65288         * modules/linkedhash-list-tests (Makefile.am): New variable
65289         test_linkedhash_list_LDADD.
65290         * modules/rbtree-list-tests (Makefile.am): New variable
65291         test_rbtree_list_LDADD.
65292         * modules/rbtree-oset-tests (Makefile.am): New variable
65293         test_rbtree_oset_LDADD.
65294         * modules/rbtreehash-list-tests (Makefile.am): New variable
65295         test_rbtreehash_list_LDADD.
65296         * modules/xvasprintf-tests (Makefile.am): New variable
65297         test_xvasprintf_LDADD.
65298         Reported by Eric Blake.
65299
65300 2007-04-03  Eric Blake  <ebb9@byu.net>
65301
65302         * DEPENDENCIES: Weaken m4 requirements.
65303
65304 2007-04-03  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65307         * modules/isnanl-tests (configure.ac): Likewise.
65308
65309 2007-04-03  Ben Pfaff  <blp@gnu.org>
65310
65311         * modules/iconv_open: Add $(srcdir)/ to source directory
65312         references in Makefile fragments that call gperf, to fix VPATH
65313         builds.
65314
65315 2007-04-03  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65318         * lib/ldexpl.c: Undo last change.
65319
65320 2007-04-03  Bruno Haible  <bruno@clisp.org>
65321
65322         * modules/printf-frexpl (Depends-on): Undo last change.
65323         (Files): Add m4/ldexpl.m4.
65324
65325 2007-04-03  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65328         * modules/isnanl (Link): New section.
65329
65330         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65331         * modules/frexp (Link): New section.
65332
65333         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65334         * modules/frexpl (Link): New section.
65335
65336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65337         * modules/ldexpl (Link): New section.
65338
65339 2007-04-03  Bruno Haible  <bruno@clisp.org>
65340
65341         * modules/TEMPLATE-EXTENDED: New file.
65342         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65343
65344 2007-04-03  Bruno Haible  <bruno@clisp.org>
65345
65346         * DEPENDENCIES: New file.
65347         Suggested by Simon Josefsson.
65348
65349 2007-04-03  Bruno Haible  <bruno@clisp.org>
65350
65351         * doc/gnulib.texi: Escape @.
65352
65353 2007-04-03  James Youngman  <jay@gnu.org>
65354         and Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65357         birthtime on all systems that have birthtime, not just those which
65358         use st_birthtimensec rather than st_birthtim.  Putting zero in
65359         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65360         that the birth time is not available for files on an NFS mount.
65361
65362 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65363
65364         * modules/memxor: Move back from crypto/, suggested by Bruno.
65365         * modules/crypto/hmac-sha1: Fix memxor dependency.
65366
65367         * modules/crypto/gc: Moved from ../.
65368
65369 2007-04-02  Eric Blake  <ebb9@byu.net>
65370
65371         * lib/ldexpl.c (includes): Avoid libm.
65372
65373         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65374
65375 2007-04-02  Bruno Haible  <bruno@clisp.org>
65376
65377         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65378         on IRIX.
65379
65380 2007-04-02  Bruno Haible  <bruno@clisp.org>
65381
65382         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65383         x86 or x86_64 platforms running MacOS X.
65384         Reported by Ryan Schmidt <@ryandesign.com>.
65385
65386 2007-04-02  Bruno Haible  <bruno@clisp.org>
65387
65388         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65389         i386.
65390
65391 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65392
65393         * modules/crypto/arcfour: Moved from ../.
65394         * modules/crypto/arcfour-tests: Moved from ../.
65395         * modules/crypto/arctwo: Moved from ../.
65396         * modules/crypto/arctwo-tests: Moved from ../.
65397         * modules/crypto/des: Moved from ../.
65398         * modules/crypto/des-tests: Moved from ../.
65399         * modules/crypto/gc-arcfour: Moved from ../.
65400         * modules/crypto/gc-arcfour-tests: Moved from ../.
65401         * modules/crypto/gc-arctwo: Moved from ../.
65402         * modules/crypto/gc-arctwo-tests: Moved from ../.
65403         * modules/crypto/gc-des: Moved from ../.
65404         * modules/crypto/gc-des-tests: Moved from ../.
65405         * modules/crypto/gc-hmac-md5: Moved from ../.
65406         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65407         * modules/crypto/gc-hmac-sha1: Moved from ../.
65408         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65409         * modules/crypto/gc-md2: Moved from ../.
65410         * modules/crypto/gc-md2-tests: Moved from ../.
65411         * modules/crypto/gc-md4: Moved from ../.
65412         * modules/crypto/gc-md4-tests: Moved from ../.
65413         * modules/crypto/gc-md5: Moved from ../.
65414         * modules/crypto/gc-md5-tests: Moved from ../.
65415         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65416         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65417         * modules/crypto/gc-random: Moved from ../.
65418         * modules/crypto/gc-rijndael: Moved from ../.
65419         * modules/crypto/gc-rijndael-tests: Moved from ../.
65420         * modules/crypto/gc-sha1: Moved from ../.
65421         * modules/crypto/gc-sha1-tests: Moved from ../.
65422         * modules/crypto/gc-tests: Moved from ../.
65423         * modules/crypto/hmac-md5: Moved from ../.
65424         * modules/crypto/hmac-md5-tests: Moved from ../.
65425         * modules/crypto/hmac-sha1: Moved from ../.
65426         * modules/crypto/hmac-sha1-tests: Moved from ../.
65427         * modules/crypto/md2: Moved from ../.
65428         * modules/crypto/md2-tests: Moved from ../.
65429         * modules/crypto/md4: Moved from ../.
65430         * modules/crypto/md4-tests: Moved from ../.
65431         * modules/crypto/md5: Moved from ../.
65432         * modules/crypto/md5-tests: Moved from ../.
65433         * modules/crypto/memxor: Moved from ../.
65434         * modules/crypto/rijndael: Moved from ../.
65435         * modules/crypto/rijndael-tests: Moved from ../.
65436         * modules/crypto/sha1: Moved from ../.
65437
65438 2007-03-30  James Youngman  <jay@gnu.org>
65439
65440         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65441         rename() to change the ctime of a file (because ctime is unaffected
65442         by rename on jfs2 on AIX 5.1).
65443         (main): Start by doing cleanup, in case a previous run failed leaving
65444         test files behind.
65445
65446 2007-03-31  Bruno Haible  <bruno@clisp.org>
65447
65448         Support old proprietary implementations of iconv.
65449         * modules/iconv_open: New file.
65450         * lib/iconv_.h: New file.
65451         * m4/iconv_h.m4: New file.
65452         * lib/iconv_open.c: New file.
65453         * lib/iconv_open-aix.gperf: New file.
65454         * lib/iconv_open-hpux.gperf: New file.
65455         * lib/iconv_open-irix.gperf: New file.
65456         * lib/iconv_open-osf.gperf: New file.
65457         * m4/iconv_open.m4: New file.
65458         * modules/linebreak (Depends-on): Add iconv_open.
65459         * modules/striconv (Depends-on): Likewise.
65460         * modules/striconveh (Depends-on): Likewise.
65461         * modules/unicodeio (Depends-on): Likewise.
65462         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65463         (iconv_t)(-1).
65464         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65465         conversion if cd is (iconv_t)(-1).
65466         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65467         is not possible.
65468
65469 2007-03-31  Bruno Haible  <bruno@clisp.org>
65470
65471         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65472         work on Solaris either. Protect also second use of "autodetect_jp".
65473
65474 2007-03-31  Bruno Haible  <bruno@clisp.org>
65475
65476         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65477         the function is not present.
65478
65479 2007-03-31  Bruno Haible  <bruno@clisp.org>
65480
65481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65482         the function is not present.
65483
65484 2007-03-31  Bruno Haible  <bruno@clisp.org>
65485
65486         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65487         a bug in HP-UX iconv_open().
65488
65489 2007-03-31  Bruno Haible  <bruno@clisp.org>
65490
65491         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65492         (Mathematics <math.h>): New section, add fpieee.
65493         (Input/output <stdio.h>): Add fseterr.
65494         (Mathematics <math.h>): New section, add printf-frexp.
65495         (Container data structures): Add sublist.
65496         (Core language properties): Add fpucw, inline.
65497         (Functions for greatest-width integer types <inttypes.h>): Add
65498         imaxabs, imaxdiv, inttypes.
65499         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65500         isnanl-nolibm, ldexp.
65501         (Mathematics <math.h>): New section, add printf-frexpl.
65502         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65503         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65504         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65505         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65506         (Unicode string functions): Add unistr/u*-mbtoucr.
65507         (Java): Add javacomp-script, javaexec-script.
65508         (C#): Add csharpcomp-script, csharpexec-script.
65509         (Support for building libraries and executables): Add havelib,
65510         relocatable-*.
65511         (Support for maintaining and releasing projects): Renamed from
65512         'Support for maintaining and release projects'. Add announce-gen.
65513
65514 2007-03-31  Bruno Haible  <bruno@clisp.org>
65515
65516         * README: Talk primarily about git.
65517         (git and CVS): Renamed from CVS.
65518         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65519         gnulib is available through git.
65520         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65521
65522 2007-03-30  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65525         * lib/poll_.h: Likewise.
65526         * lib/stat_.h: Likewise.
65527         * lib/sys_time_.h: Likewise.
65528         * lib/sysexit_.h: Likewise.
65529         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65530         * lib/stdbool_.h: Likewise.
65531         * lib/byteswap_.h: Add double-inclusion guard.
65532
65533 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65534
65535         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65536
65537 2007-03-30  Karl Berry  <karl@gnu.org>
65538
65539         * config/srclist-update: double space after USA in the license
65540         substitution, since that's how it's usually (?) written.
65541
65542 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65543
65544         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65545         reported by Bruno Haible.
65546
65547 2007-03-29  Bruno Haible  <bruno@clisp.org>
65548
65549         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65550         a bug in AIX iconv().
65551
65552 2007-03-29  Bruno Haible  <bruno@clisp.org>
65553
65554         * modules/ldexpl-tests: New file.
65555         * tests/test-ldexpl.c: New file.
65556
65557 2007-03-29  Bruno Haible  <bruno@clisp.org>
65558
65559         * lib/ldexpl.c: Include fpucw.h.
65560         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65561         multiplication.
65562         * modules/ldexpl (Depends-on): Add fpucw.
65563
65564 2007-03-29  Bruno Haible  <bruno@clisp.org>
65565
65566         * modules/ldexpl: New file.
65567         * m4/ldexpl.m4: New file.
65568         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65569         set.
65570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65571         REPLACE_LDEXPL.
65572         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65573         REPLACE_LDEXPL.
65574         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65575         gl_FUNC_LDEXPL_WORKS.
65576         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65577         * modules/mathl (Files): Remove lib/ldexpl.c.
65578         (Depends-on): Add ldexpl.
65579
65580 2007-03-29  Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65583
65584 2007-03-29  Bruno Haible  <bruno@clisp.org>
65585
65586         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65587         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65588         and possibly also HP-UX.
65589         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65590         work on AIX, IRIX, HP-UX, OSF/1.
65591         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65592         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65593         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65594         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65595         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65596         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65597
65598 2007-03-29  Bruno Haible  <bruno@clisp.org>
65599
65600         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65601
65602 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65603
65604         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65605         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65606
65607 2007-03-29  Eric Blake  <ebb9@byu.net>
65608
65609         * lib/acl-internal.h: Remove redundant include.
65610         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65611         Cygwin when a file is locked.
65612
65613 2007-03-29  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65616         file.
65617         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65618
65619 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65622         try to remove a parent directory if the child couldn't be removed
65623         (except for the first rmdir, which could fail because the child
65624         doesn't exist).  Problem reported by Jeff Blaine in
65625         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65626
65627 2007-03-28  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/striconveh.c (utf8conv_carefully): New function.
65630         (mem_cd_iconveh_internal): Invoke it.
65631
65632 2007-03-28  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65635         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65636         input.
65637         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65638         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65639         unistr/u8-uctomb.
65640
65641 2007-03-28  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/unistr/u8-mbtoucr: New file.
65644         * lib/unistr/u8-mbtoucr.c: New file.
65645         * modules/unistr/u16-mbtoucr: New file.
65646         * lib/unistr/u16-mbtoucr.c: New file.
65647         * modules/unistr/u16-mbtoucr: New file.
65648         * lib/unistr/u16-mbtoucr.c: New file.
65649         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65650
65651 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65652             Bruno Haible  <bruno@clisp.org>
65653
65654         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65655         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65656         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65657
65658         * m4/stdio_h.m4: Add stubs for vasprintf too.
65659
65660         * modules/stdio: Support vasprintf in sed command.
65661
65662         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65663         vasprintf.h.  Add stdio module indicator.
65664
65665         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65666         vasprintf.h.
65667
65668         * lib/vasprintf.h: File removed.
65669
65670         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65671         * lib/vasprintf.c: Ditto.
65672         * lib/xvasprintf.c: Ditto.
65673         * tests/test-vasprintf-posix.c: Ditto.
65674         * tests/test-vasprintf.c: Ditto.
65675
65676 2007-03-27  Bruno Haible  <bruno@clisp.org>
65677
65678         Make vasnprintf multithread-safe.
65679         * lib/vasnprintf.c (decimal_point_char): New function.
65680         (VASNPRINTF): Use it.
65681         Suggested by Simon Josefsson.
65682
65683 2007-03-27  Eric Blake  <ebb9@byu.net>
65684
65685         Support sub-second birthtime on cygwin.
65686         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65687         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65688         (get_stat_birthtime): Also work with st_birthtim.
65689
65690 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65693         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65694         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65695         (get_stat_birthtime_ns): Simplify compile-time tests.
65696         (get_stat_birthtime): Change the API to look like
65697         get_stat_mtime etc., except return a negative tv_nsec on error.
65698         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65699         Don't check for "spare" fields.
65700         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65701         or for struct stat.st_birthtime, as these tests aren't used.
65702         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65703
65704 2007-03-27  Bruno Haible  <bruno@clisp.org>
65705
65706         * lib/stat-time.h: Include <sys/stat.h>.
65707
65708 2007-03-27  James Youngman  <jay@gnu.org>
65709
65710         * lib/stat-time.h (get_stat_birthtime): New function for
65711           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65712         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65713           and its variants.
65714         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65715         * modules/stat-time-test: New file.
65716         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65717
65718 2007-03-26  Bruno Haible  <bruno@clisp.org>
65719
65720         Better support of signalling NaNs.
65721         * lib/atanl.c: Include isnanl.h.
65722         (atanl): Perform test for NaN at the beginning of the function and
65723         through a call to isnanl.
65724         * lib/cosl.c: Include isnanl.h.
65725         (cosl): Perform test for NaN at the beginning of the function and
65726         through a call to isnanl.
65727         * lib/ldexpl.c: Include isnanl.h.
65728         (ldexpl): Perform test for NaN through a call to isnanl.
65729         * lib/logl.c: Include isnanl.h.
65730         (logl): Perform test for NaN at the beginning of the function and
65731         through a call to isnanl.
65732         * lib/sinl.c: Include isnanl.h.
65733         (sinl): Perform test for NaN at the beginning of the function and
65734         through a call to isnanl.
65735         * lib/sqrtl.c: Include isnanl.h.
65736         (sqrtl): Perform test for NaN at the beginning of the function and
65737         through a call to isnanl.
65738         * lib/tanl.c: Include isnanl.h.
65739         (tanl): Perform test for NaN at the beginning of the function and
65740         through a call to isnanl.
65741         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65742         * modules/mathl (Depends-on): Add isnanl.
65743
65744 2007-03-26  Eric Blake  <ebb9@byu.net>
65745
65746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65747         regression in logic sense of previous patch.
65748
65749 2007-03-26  Bruno Haible  <bruno@clisp.org>
65750
65751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65752         unportable shell command "if ! ...".
65753         Reported by Ralf Wildenhues.
65754
65755 2007-03-25  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65758         <sysexits.h> file, and only add EX_CONFIG.
65759         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65760         absolute file name and whether it is sufficient. Substitute also
65761         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65762         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65763         ABSOLUTE_SYSEXITS_H into sysexits.h.
65764
65765 2007-03-25  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65768         hints is NULL.
65769
65770 2007-03-25  Bruno Haible  <bruno@clisp.org>
65771
65772         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65773         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65774
65775 2007-03-25  Bruno Haible  <bruno@clisp.org>
65776
65777         * lib/vasnprintf.c: Include langinfo.h.
65778         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65779         multithread-safe.
65780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65789         Reported by Simon Josefsson.
65790
65791 2007-03-25  Bruno Haible  <bruno@clisp.org>
65792
65793         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65794         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65795         * modules/vasnprintf (Depends-on): Add stdint.
65796
65797 2007-03-25  Bruno Haible  <bruno@clisp.org>
65798
65799         * modules/fpieee: New file.
65800         * m4/fpieee.m4: New file.
65801         * modules/isnan-nolibm (Depends-on): Add fpieee.
65802         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65803         * modules/isnanl (Depends-on): Add fpieee.
65804
65805 2007-03-25  Bruno Haible  <bruno@clisp.org>
65806
65807         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65808
65809 2007-03-25  Bruno Haible  <bruno@clisp.org>
65810
65811         Avoid test failures on IRIX 6.5.
65812         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65813         (main): Use it.
65814         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65815         macros.
65816         (main): Use them.
65817
65818 2007-03-25  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65821         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65822         exists but doesn't work.
65823         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65824         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65826         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65827         math.h.
65828
65829 2007-03-25  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65832         returns inf. Needed on IRIX 6.5.
65833
65834 2007-03-25  Bruno Haible  <bruno@clisp.org>
65835
65836         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65837         (main): Use isnanl instead of x != x idiom.
65838         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65839
65840         * tests/test-frexp.c: Include isnan.h.
65841         (main): Use isnan instead of x != x idiom.
65842         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65843
65844 2007-03-25  Bruno Haible  <bruno@clisp.org>
65845
65846         * tests/test-frexp.c (NaN): New function/macro.
65847         (main): Use it instead of 0.0 / 0.0.
65848         * tests/test-isnan.c (NaN): New function/macro.
65849         (main): Use it instead of 0.0 / 0.0.
65850         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65851         (test_function): Use it instead of 0.0 / 0.0.
65852         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65853         (test_function): Use it instead of 0.0 / 0.0.
65854         * tests/test-snprintf-posix.h (NaN): New function/macro.
65855         (test_function): Use it instead of 0.0 / 0.0.
65856         * tests/test-sprintf-posix.h (NaN): New function/macro.
65857         (test_function): Use it instead of 0.0 / 0.0.
65858         * tests/test-fprintf-posix.h (NaN): New function/macro.
65859         (test_function): Use it instead of 0.0 / 0.0.
65860         * tests/test-printf-posix.h (NaN): New function/macro.
65861         (test_function): Use it instead of 0.0 / 0.0.
65862
65863         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65864
65865 2007-03-25  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65868
65869 2007-03-25  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/regexec.c (merge_state_with_log): Make static.
65872
65873 2007-03-25  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/trigl.c (kernel_rem_pio2): Make static.
65876
65877 2007-03-25  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/sincosl.c (sincosl_table): Make static.
65880
65881 2007-03-25  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65884         if the compiler does not support C99.
65885
65886 2007-03-25  Bruno Haible  <bruno@clisp.org>
65887
65888         * modules/time (Makefile.am): Ensure all rule action lines start with a
65889         tab.
65890
65891 2007-03-24  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/tsearch-tests: New file.
65894         * tests/test-tsearch.sh: New file.
65895         * tests/test-tsearch.c: New file, mostly copied from glibc.
65896
65897         * modules/search-tests: New file.
65898         * tests/test-search.c: New file.
65899
65900         * modules/search: New file.
65901         * lib/search_.h: New file, incorporating lib/tsearch.h.
65902         * m4/search_h.m4: New file.
65903         * lib/tsearch.h: Remove file.
65904         * lib/tsearch.c: Include search.h instead of tsearch.h.
65905         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65906         HAVE_TSEARCH.
65907         * modules/tsearch (Files): Remove lib/tsearch.h.
65908         (Depends-on): Add search.
65909         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65910         (Include): Change tsearch.h into search.h.
65911
65912 2007-03-24  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/fpucw: New file.
65915         * lib/fpucw.h: New file.
65916         * lib/frexp.c: Include fpucw.h.
65917         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65918         (FUNC): Use them.
65919         * lib/printf-frexp.c: Include fpucw.h.
65920         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65921         (FUNC): Use them.
65922         * lib/vasnprintf.c: Include fpucw.h.
65923         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65924         'long double' calculations.
65925         * tests/test-frexpl.c: Include fpucw.h.
65926         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65927         * tests/test-printf-frexpl.c: Include fpucw.h.
65928         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65929         * modules/frexpl (Depends-on): Add fpucw.
65930         * modules/printf-frexpl (Depends-on): Likewise.
65931         * modules/fprintf-posix (Depends-on): Likewise.
65932         * modules/snprintf-posix (Depends-on): Likewise.
65933         * modules/sprintf-posix (Depends-on): Likewise.
65934         * modules/vasnprintf-posix (Depends-on): Likewise.
65935         * modules/vasprintf-posix (Depends-on): Likewise.
65936         * modules/vfprintf-posix (Depends-on): Likewise.
65937         * modules/vsnprintf-posix (Depends-on): Likewise.
65938         * modules/vsprintf-posix (Depends-on): Likewise.
65939         * modules/frexpl-tests (Depends-on): Likewise.
65940         * modules/printf-frexpl-tests (Depends-on): Likewise.
65941
65942 2007-03-24  Bruno Haible  <bruno@clisp.org>
65943
65944         * lib/float+.h: New file.
65945         * lib/isnan.c: Include float+.h.
65946         (SIZE): New macro.
65947         (FUNC): Compare only SIZE bytes of the value.
65948         * lib/vasnprintf.c: Include float+.h.
65949         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65950         SIZEOF_LDBL or SIZEOF_DBL bytes.
65951         * modules/isnan-nolibm (Files): Add lib/float+.h.
65952         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65953         * modules/isnanl (Files): Add lib/float+.h.
65954         * modules/vasnprintf (Files): Add lib/float+.h.
65955
65956 2007-03-24  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65959         include isnanl-nolibm.h.
65960
65961 2007-03-24  Bruno Haible  <bruno@clisp.org>
65962
65963         * tests/test-read-file.c (main): Don't produce spurious output for
65964         expected situations. Make the test fail if it encountered unexpected
65965         results.
65966
65967 2007-03-24  Bruno Haible  <bruno@clisp.org>
65968
65969         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65970         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65971
65972 2007-03-24  Bruno Haible  <bruno@clisp.org>
65973
65974         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65975
65976 2007-03-24  Bruno Haible  <bruno@clisp.org>
65977
65978         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65979         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65980
65981         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65982         * modules/utf8-ucs4: Turn into a symbolic link to module
65983         unistr/u8-mbtouc.
65984
65985         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65986         utf8-ucs4-unsafe.
65987         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65988         unistr/u8-mbtouc-unsafe.
65989
65990         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65991         * modules/utf16-ucs4: Turn into a symbolic link to module
65992         unistr/u16-mbtouc.
65993
65994         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65995         utf16-ucs4-unsafe.
65996         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65997         unistr/u16-mbtouc-unsafe.
65998
65999         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66000         * modules/ucs4-utf8: Turn into a symbolic link to module
66001         unistr/u8-ubtomb.
66002
66003         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66004         * modules/ucs4-utf16: Turn into a symbolic link to module
66005         unistr/u16-ubtomb.
66006
66007 2007-03-24  Bruno Haible  <bruno@clisp.org>
66008
66009         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66010         Enable the function only if HAVE_INLINE.
66011         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66012         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66013         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66014         Enable the function only if HAVE_INLINE.
66015         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66016         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66017         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66018         Enable the function only if HAVE_INLINE.
66019         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66020         Enable the function only if HAVE_INLINE.
66021         * modules/utf8-ucs4: Update.
66022         * modules/utf8-ucs4-unsafe: Update.
66023         * modules/utf16-ucs4: Update.
66024         * modules/utf16-ucs4-unsafe: Update.
66025         * modules/ucs4-utf8: Update.
66026         * modules/ucs4-utf16: Update.
66027
66028 2007-03-24  Bruno Haible  <bruno@clisp.org>
66029
66030         * lib/utf8-ucs4.h: Remove file.
66031         * lib/utf8-ucs4-unsafe.h: Remove file.
66032         * lib/utf16-ucs4.h: Remove file.
66033         * lib/utf16-ucs4-unsafe.h: Remove file.
66034         * lib/ucs4-utf8.h: Remove file.
66035         * lib/ucs4-utf16.h: Remove file.
66036         * lib/unistr.h: Include their previous contents.
66037         * m4/utf-ucs4.m4: Remove file.
66038         * m4/ucs4-utf.m4: Remove file.
66039         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66040         (Depends-on): Add unistr/base.
66041         (configure.ac): Remove gl_UTF_UCS4.
66042         (Makefile.am): Update.
66043         (Include): Change to unistr.h.
66044         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66045         (Depends-on): Add unistr/base.
66046         (configure.ac): Remove gl_UTF_UCS4.
66047         (Makefile.am): Update.
66048         (Include): Change to unistr.h.
66049         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66050         (Depends-on): Add unistr/base.
66051         (configure.ac): Remove gl_UTF_UCS4.
66052         (Makefile.am): Update.
66053         (Include): Change to unistr.h.
66054         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66055         (Depends-on): Add unistr/base.
66056         (configure.ac): Remove gl_UTF_UCS4.
66057         (Makefile.am): Update.
66058         (Include): Change to unistr.h.
66059         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66060         (Depends-on): Add unistr/base.
66061         (configure.ac): Remove gl_UCS4_UTF.
66062         (Makefile.am): Update.
66063         (Include): Change to unistr.h.
66064         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66065         (Depends-on): Add unistr/base.
66066         (configure.ac): Remove gl_UCS4_UTF.
66067         (Makefile.am): Update.
66068         (Include): Change to unistr.h.
66069         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66070         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66071         utf8-ucs4-unsafe.h.
66072         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66073         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66074         utf16-ucs4-unsafe.h.
66075         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66076         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66077         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66078         * lib/unistr/u8-strchr.c: Likewise.
66079         * lib/unistr/u8-strrchr.c: Likewise.
66080         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66081         * lib/unistr/u16-strchr.c: Likewise.
66082         * lib/unistr/u16-strrchr.c: Likewise.
66083         * lib/striconveh.c: Update.
66084         * lib/linebreak.c: Update.
66085
66086 2007-03-24  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66089         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66090
66091 2007-03-22  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66094
66095 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66096
66097         * MODULES.html.sh (File system functions): New module write-any-file.
66098         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66099         * m4/write-any-file.m4: New files.
66100
66101 2007-03-23  Eric Blake  <ebb9@byu.net>
66102
66103         * gnulib-tool: Rearrange space-tab sequences, since some editors
66104         like to eat them.
66105
66106 2007-03-23  Eric Blake  <ebb9@byu.net>
66107
66108         * lib/version-etc.c (version_etc_va): Update license wording to
66109         be more concise.  Recommended by Richard Stallman.
66110
66111 2007-03-22  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/poll.c (MSG_PEEK): New fallback definition.
66114
66115 2007-03-22  Bruno Haible  <bruno@clisp.org>
66116
66117         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66118         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66119         (main): Update.
66120         Fixes a compilation error on BeOS.
66121
66122 2007-03-22  Bruno Haible  <bruno@clisp.org>
66123
66124         * modules/frexpl-tests: New file.
66125         * tests/test-frexpl.c: New file.
66126
66127         * modules/frexpl: New file.
66128         * m4/frexpl.m4: New file.
66129         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66130         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66132         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66133         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66134         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66135
66136 2007-03-22  Bruno Haible  <bruno@clisp.org>
66137
66138         * lib/frexpl.c: Share code with lib/frexp.c.
66139         * modules/mathl (Files): Add lib/frexp.c.
66140         (Depends-on): Add isnanl-nolibm.
66141
66142 2007-03-22  Bruno Haible  <bruno@clisp.org>
66143
66144         * modules/printf-frexp (Files): Add m4/frexp.m4.
66145         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66146         only if the found frexp function actually works.
66147
66148 2007-03-22  Bruno Haible  <bruno@clisp.org>
66149
66150         * lib/frexp.c: Remove older implementation that uses divisions.
66151
66152 2007-03-21  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/frexp-tests: New file.
66155         * tests/test-frexp.c: New file.
66156
66157         * modules/frexp: New file.
66158         * lib/frexp.c: New file.
66159         * m4/frexp.m4: New file.
66160         * lib/math_.h (frexp): New declaration.
66161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66162         REPLACE_FREXP.
66163         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66164
66165 2007-03-21  Bruno Haible  <bruno@clisp.org>
66166
66167         * modules/isnanl-tests: New file.
66168         * tests/test-isnanl.c: New file.
66169
66170         * modules/isnanl: New file.
66171         * lib/isnanl.h: New file.
66172         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66173         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66174         gl_FUNC_ISNANL_WORKS.
66175         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66176         New macros.
66177
66178 2007-03-21  Bruno Haible  <bruno@clisp.org>
66179
66180         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66181         lib/isnanl.h.
66182         (Include): Update.
66183         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66184         * lib/vasnprintf.c: Update.
66185         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66186         tests/test-isnanl.h, remove tests/test-isnanl.c.
66187         (Makefile.am): Update.
66188         * tests/test-isnanl-nolibm.c: New file.
66189         * tests/test-isnanl.h: New file.
66190         * tests/test-isnanl.c: Remove file.
66191
66192 2007-03-21  Jim Meyering  <jim@meyering.net>
66193
66194         When trying to open ".", treat ESTALE like EACCES.
66195         * lib/savewd.c (savewd_save): Resort to forking not just upon
66196         failure with EACCES, but also when errno is ESTALE.
66197
66198 2007-03-20  Bruno Haible  <bruno@clisp.org>
66199
66200         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66201         Needed on AIX 5.1. Reported by Matthew Woehlke.
66202
66203 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         Suggestions by Bruno Haible:
66206         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66207         our own.
66208         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66209         * modules/acl (Depends-on): Add gettext.
66210
66211 2007-03-19  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/iconvme: Remove file.
66214         * lib/iconvme.h: Remove file.
66215         * lib/iconvme.c: Remove file.
66216         * m4/iconvme.m4: Remove file.
66217
66218 2007-03-19  Bruno Haible  <bruno@clisp.org>
66219
66220         * doc/relocatable-maint.texi: Break long shell script line.
66221         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66222
66223 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66226         handle file_has_acl.
66227         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66228         * lib/acl.c: Move header inclusions and related macro defns into
66229         lib/acl-internal.h.
66230         (S_ISLNK): Remove defn, since that's now done for us.
66231         (file_has_acl): Move to lib/file-has-acl.c.
66232         Call acl_trivial if available.  This is the crucial part of the fix.
66233         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66234         shared within the library.  Rewrite a bit, partly to make it compatible
66235         with the GNU coding style.
66236         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66237         Remove unnecessary double-quotes.
66238         Don't test for acl_to_text; the build will catch that.
66239         Replace acl_entries if it doesn't exist and it is needed.
66240         Check for -lsec and acl_trivial (as used on Solaris 10).
66241         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66242         lib/file-has-acl.c.
66243         (Depends-on): Add sys_stat, for S_ISLNK.
66244
66245 2007-03-19  Ben Pfaff  <blp@gnu.org>
66246
66247         * doc/gnulib.texi: Fix typos.
66248         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66249
66250 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66251
66252         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66253         If size is zero here, buf must be zero.
66254
66255 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66256
66257         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66258         <bruno@clisp.org>.
66259
66260 2007-03-18  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66263         Suggested by Eric Blake.
66264
66265 2007-03-18  Ben Pfaff  <blp@gnu.org>
66266
66267         * doc/relocatable.texi: Recommend using as prefix a directory
66268         that does not exist and will never be created.  Based on
66269         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66270         and others.
66271
66272 2007-03-17  Bruno Haible  <bruno@clisp.org>
66273
66274         * lib/fchownat.c: Include lchown.h.
66275
66276 2007-03-17  Bruno Haible  <bruno@clisp.org>
66277
66278         Fix endless loop when the given allocated size was > INT_MAX.
66279         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66280         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66281         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66282         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66283         * lib/sprintf.c (sprintf): Likewise.
66284
66285 2007-03-17  Bruno Haible  <bruno@clisp.org>
66286
66287         * tests/test-argp-2.sh (func_compare): Output a context diff.
66288
66289 2007-03-17  Bruno Haible  <bruno@clisp.org>
66290
66291         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66292         locale's decimal-point character.
66293
66294 2007-03-17  Bruno Haible  <bruno@clisp.org>
66295
66296         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66297         before comparing it. Needed because on some platforms (e.g. x86) a
66298         'long double' occupies less bytes than sizeof (long double).
66299
66300 2007-03-17  Bruno Haible  <bruno@clisp.org>
66301
66302         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66303         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66304         * tests/test-getaddrinfo.c (simple): Likewise.
66305         * tests/test-read-file.c (main): Likewise.
66306
66307 2007-03-17  Bruno Haible  <bruno@clisp.org>
66308
66309         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66310
66311 2007-03-17  Bruno Haible  <bruno@clisp.org>
66312
66313         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66314         unused variable.
66315
66316 2007-03-17  Bruno Haible  <bruno@clisp.org>
66317
66318         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66319         * tests/test-c-strncasecmp.c: Likewise.
66320
66321 2007-03-17  Bruno Haible  <bruno@clisp.org>
66322
66323         * modules/stdlib (Depends-on): Add unistd.
66324         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66325         Needed for MacOS X 10.3.
66326
66327 2007-03-17  Bruno Haible  <bruno@clisp.org>
66328
66329         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66330
66331 2007-03-17  Bruno Haible  <bruno@clisp.org>
66332
66333         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66334
66335 2007-03-17  Bruno Haible  <bruno@clisp.org>
66336
66337         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66338         to reflect files copied from gnulib (with or without modifications).
66339         Suggested by Jim Meyering.
66340
66341 2007-03-17  Eric Blake  <ebb9@byu.net>
66342
66343         * NEWS: Document stdlib change from 2007-02-18.
66344
66345 2007-03-17  Jim Meyering  <jim@meyering.net>
66346
66347         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66348         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66349         someone uses a name containing shell meta-characters.
66350         Reported by Alfred M. Szmidt.
66351
66352         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66353
66354 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66355
66356         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66357         and copy gettext configuration files only if configure.ac contains
66358         a use of AM_GNU_GETTEXT_VERSION.
66359
66360 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66361
66362         * build-aux/bootstrap (gnulib_name): New variable.
66363         (gnulib_tool_options): Use it.
66364
66365 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66366
66367         * tests/test-des.c: Use new namespace.
66368
66369 2007-03-15  Bruno Haible  <bruno@clisp.org>
66370
66371         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66372         Reported by James Youngman <jay@gnu.org>.
66373
66374 2007-03-15  Bruno Haible  <bruno@clisp.org>
66375
66376         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66377         declared prototype. Needed with cc on OSF/1 5.1.
66378
66379 2007-03-15  Bruno Haible  <bruno@clisp.org>
66380
66381         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66382         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66383         (struct gl_list_implementation): Add dispose_fn argument to the
66384         'create_empty', 'create' methods.
66385         (struct gl_list_impl_base): Add field 'dispose_fn'.
66386         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66387         argument.
66388         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66389         dispose_fn argument.
66390         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66391         dispose_fn on the dropped values.
66392         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66393         dispose_fn argument.
66394         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66395         dropped values.
66396         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66397         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66398         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66399         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66400         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66401         argument.
66402         (gl_tree_list_free): Call dispose_fn on the dropped values.
66403         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66404         the dropped values.
66405         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66406         Add dispose_fn argument.
66407         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66408         Call dispose_fn on the dropped values.
66409         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66410         Add dispose_fn argument.
66411         (gl_sublist_create): Initialize the 'dispose_fn' field.
66412         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66413         * tests/test-array_list.c (main): Update.
66414         * tests/test-carray_list.c (main): Update.
66415         * tests/test-avltree_list.c (main): Update.
66416         * tests/test-rbtree_list.c (main): Update.
66417         * tests/test-avltreehash_list.c (main): Update.
66418         * tests/test-rbtreehash_list.c (main): Update.
66419         * tests/test-linked_list.c (main): Update.
66420         * tests/test-linkedhash_list.c (main): Update.
66421         * tests/test-array_oset.c (main): Update.
66422
66423 2007-03-15  Bruno Haible  <bruno@clisp.org>
66424
66425         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66426         (gl_oset_create_empty): Add dispose_fn argument.
66427         (struct gl_oset_implementation): Add dispose_fn argument to
66428         'create_empty' method.
66429         (struct gl_oset_impl_base): Add dispose_fn field.
66430         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66431         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66432         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66433         values.
66434         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66435         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66436         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66437         dropped value.
66438         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66439         dropped value.
66440         * tests/test-array_oset.c (main): Update.
66441         * tests/test-avltree_oset.c (main): Update.
66442         * tests/test-rbtree_oset.c (main): Update.
66443         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66444
66445 2007-03-13  Bruno Haible  <bruno@clisp.org>
66446
66447         * tests/test-stdbool.c (i): Update after last patch.
66448
66449 2007-03-12  Bruno Haible  <bruno@clisp.org>
66450
66451         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66452         the iswprint macro. Needed on Solaris 2.5.1.
66453
66454 2007-03-12  Bruno Haible  <bruno@clisp.org>
66455
66456         * tests/test-printf-frexp.c (main): Declare x as volatile.
66457
66458 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66459
66460         * doc/gnulib.texi (Build robot for gnulib): New section.
66461
66462 2007-03-12  Jim Meyering  <jim@meyering.net>
66463
66464         * build-aux/bootstrap: New file.
66465         * build-aux/bootstrap.conf: New file, from coreutils.
66466
66467 2007-03-11  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66470
66471 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66472
66473         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66474         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66475         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66476
66477 2007-03-11  Bruno Haible  <bruno@clisp.org>
66478
66479         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66480         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66481
66482 2007-03-11  Bruno Haible  <bruno@clisp.org>
66483
66484         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66485         formula. Needed for SunPRO C 5.0.
66486
66487 2007-03-11  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/long-options (Depends-on): Add getopt.
66490
66491 2007-03-11  Bruno Haible  <bruno@clisp.org>
66492
66493         * modules/modechange (Depends-on): Add stdbool.
66494
66495 2007-03-11  Bruno Haible  <bruno@clisp.org>
66496
66497         * modules/i-ring (Depends-on): Add stdbool.
66498
66499 2007-03-11  Bruno Haible  <bruno@clisp.org>
66500
66501         * modules/gc-des (Depends-on): Add stdbool.
66502
66503 2007-03-11  Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66506
66507 2007-03-11  Bruno Haible  <bruno@clisp.org>
66508
66509         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66510
66511 2007-03-11  Bruno Haible  <bruno@clisp.org>
66512
66513         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66514
66515 2007-03-11  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/vasnprintf.c (sprintf): Undefine.
66518
66519 2007-03-11  Bruno Haible  <bruno@clisp.org>
66520
66521         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66522         initializers in SunPRO C and Compaq C compilers.
66523
66524 2007-03-11  Bruno Haible  <bruno@clisp.org>
66525
66526         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66527         decrementing code ANSI C compliant.
66528
66529 2007-03-11  Bruno Haible  <bruno@clisp.org>
66530
66531         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66532         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66533
66534 2007-03-11  Bruno Haible  <bruno@clisp.org>
66535
66536         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66537         <stdbool.h> substitute doesn't pass.
66538
66539 2007-03-11  Bruno Haible  <bruno@clisp.org>
66540
66541         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66542
66543 2007-03-11  Bruno Haible  <bruno@clisp.org>
66544
66545         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66546         script, for submission to autobuild.josefsson.org.
66547
66548 2007-03-10  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/canonicalize-lgpl-tests: New file.
66551         * tests/test-canonicalize-lgpl.sh: New file.
66552         * tests/test-canonicalize-lgpl.c: New file.
66553
66554         * modules/c-strcase-tests: New file.
66555         * tests/test-c-strcase.sh: New file.
66556         * tests/test-c-strcasecmp.c: New file.
66557         * tests/test-c-strncasecmp.c: New file.
66558
66559         * modules/atexit-tests: New file.
66560         * tests/test-atexit.sh: New file.
66561         * tests/test-atexit.c: New file.
66562
66563 2007-03-10  Bruno Haible  <bruno@clisp.org>
66564
66565         * tests/test-binary-io.sh: Use temporary filenames that are not so
66566         likely to clash with those of other tests (in a parallel make).
66567         * tests/test-binary-io.c: Likewise.
66568
66569 2007-03-10  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66572         fallback; use #error instead.
66573         Suggested by Simon Josefsson.
66574
66575 2007-03-10  Bruno Haible  <bruno@clisp.org>
66576
66577         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66578         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66579         first and the last.
66580
66581 2007-03-10  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66584
66585 2007-03-10  Bruno Haible  <bruno@clisp.org>
66586
66587         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66588         "make distcheck".
66589         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66590         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66591         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66592
66593 2007-03-10  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66596         variable.
66597         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66598         variable.
66599
66600 2007-03-09  Eric Blake  <ebb9@byu.net>
66601         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66602
66603         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66604         types are not being provided by gnulib.
66605         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66606         types are supported.
66607
66608 2007-03-10  Bruno Haible  <bruno@clisp.org>
66609
66610         * lib/stdio_.h (__attribute__): New macro.
66611         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66612         vsprintf): Specify __attribute__ __format__ for GCC.
66613         Suggested by Eric Blake.
66614
66615 2007-03-09  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/printf-posix-tests: New file.
66618         * tests/test-printf-posix.sh: New file.
66619         * tests/test-printf-posix.c: New file.
66620
66621         * modules/printf-posix: New file.
66622         * lib/printf.c: New file.
66623         * m4/printf-posix-rpl.m4: New file.
66624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66625         REPLACE_PRINTF.
66626         * lib/stdio_.h (printf): New declaration.
66627         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66628         ____strfmon____): New macros.
66629         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66630         REPLACE_PRINTF.
66631
66632 2007-03-09  Bruno Haible  <bruno@clisp.org>
66633
66634         * tests/test-vasnprintf-posix2.sh: New file.
66635         * tests/test-vasnprintf-posix2.c: New file.
66636         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66637         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66638         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66639
66640         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66641         a locale dependent decimal point, rather than always '.'.
66642
66643 2007-03-09  Eric Blake  <ebb9@byu.net>
66644
66645         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66646         spite of platforms like Tandem/NSK that define it to -1.
66647
66648 2007-03-08  Bruno Haible  <bruno@clisp.org>
66649
66650         * modules/vprintf-posix-tests: New file.
66651         * tests/test-vprintf-posix.sh: New file.
66652         * tests/test-vprintf-posix.c: New file.
66653         * tests/test-printf-posix.h: New file.
66654
66655         * modules/vprintf-posix: New file.
66656         * lib/vprintf.c: New file.
66657         * m4/vprintf-posix.m4: New file.
66658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66659         REPLACE_VPRINTF.
66660         * lib/stdio_.h (vprintf): New declaration.
66661         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66662         REPLACE_VPRINTF.
66663
66664 2007-03-08  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/fprintf-posix-tests: New file.
66667         * tests/test-fprintf-posix.sh: New file.
66668         * tests/test-fprintf-posix.c: New file.
66669
66670         * modules/fprintf-posix: New file.
66671         * lib/fprintf.c: New file.
66672         * m4/fprintf-posix.m4: New file.
66673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66674         REPLACE_FPRINTF.
66675         * lib/stdio_.h (fprintf): New declaration.
66676         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66677         REPLACE_FPRINTF.
66678
66679 2007-03-08  Bruno Haible  <bruno@clisp.org>
66680
66681         * modules/vfprintf-posix-tests: New file.
66682         * tests/test-vfprintf-posix.sh: New file.
66683         * tests/test-vfprintf-posix.c: New file.
66684         * tests/test-fprintf-posix.h: New file.
66685         * tests/test-fprintf-posix.out: New file.
66686
66687         * modules/vfprintf-posix: New file.
66688         * lib/vfprintf.c: New file.
66689         * m4/vfprintf-posix.m4: New file.
66690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66691         REPLACE_VFPRINTF.
66692         * lib/stdio_.h (vfprintf): New declaration.
66693         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66694         REPLACE_VFPRINTF.
66695
66696 2007-03-08  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66699
66700 2007-03-08  Bruno Haible  <bruno@clisp.org>
66701
66702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66703         instead of 'expr' invocations.
66704         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66706         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66709         Suggested by Paul Eggert.
66710
66711 2007-03-08  Bruno Haible  <bruno@clisp.org>
66712
66713         * modules/fseterr-tests: New file.
66714         * tests/test-fseterr.c: New file.
66715
66716         * modules/fseterr: New file.
66717         * lib/fseterr.h: New file.
66718         * lib/fseterr.c: New file.
66719
66720 2007-03-08  Bruno Haible  <bruno@clisp.org>
66721
66722         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66723         * lib/getopt_.h: Likewise.
66724         * lib/mbswidth.h: Likewise.
66725         * lib/setenv.h: Likewise.
66726         * lib/vasnprintf.h: Likewise.
66727         * lib/vasprintf.h: Likewise.
66728         * lib/verror.h: Likewise.
66729         * lib/xsetenv.h: Likewise.
66730         * lib/xvasprintf.h: Likewise.
66731
66732 2007-03-08  Jim Meyering  <jim@meyering.net>
66733
66734         * users.txt: Add parted.
66735
66736         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66737
66738 2007-03-07  Bruno Haible  <bruno@clisp.org>
66739
66740         * m4/printf.m4: Make the shell script snippets copy&pastable.
66741
66742 2007-03-02  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/netinet_in_.h: New file.
66745         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66746         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66747         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66748         (Depends-on): Add absolute-header.
66749         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66750         into netinet/in.h.
66751
66752 2007-03-03  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/sys_select_.h: New file.
66755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66756         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66757         * modules/sys_select (Files): Add lib/sys_select_.h.
66758         (Depends-on): Add absolute-header.
66759         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66760         into sys/select.h.
66761
66762 2007-03-02  Bruno Haible  <bruno@clisp.org>
66763
66764         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66765         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66766         values.
66767         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66768         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66769         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66770         * modules/sys_socket (Depends-on): Add absolute-header.
66771         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66772         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66773         (Include): Remove requirement of inclusion of <sys/types.h>.
66774
66775 2007-03-02  Bruno Haible  <bruno@clisp.org>
66776
66777         * lib/byteswap_.h (bswap_32): Fix formula.
66778
66779 2007-03-06  Bruno Haible  <bruno@clisp.org>
66780
66781         * modules/sprintf-posix-tests: New file.
66782         * tests/test-sprintf-posix.c: New file.
66783
66784         * modules/sprintf-posix: New file.
66785         * lib/sprintf.c: New file.
66786         * m4/sprintf-posix.m4: New file.
66787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66788         REPLACE_SPRINTF.
66789         * lib/stdio_.h (sprintf): New declaration.
66790         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66791         REPLACE_SPRINTF.
66792
66793 2007-03-06  Bruno Haible  <bruno@clisp.org>
66794
66795         * modules/vsprintf-posix-tests: New file.
66796         * tests/test-vsprintf-posix.c: New file.
66797         * tests/test-sprintf-posix.h: New file.
66798
66799         * modules/vsprintf-posix: New file.
66800         * lib/vsprintf.c: New file.
66801         * m4/vsprintf-posix.m4: New file.
66802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66803         REPLACE_VSPRINTF.
66804         * lib/stdio_.h (vsprintf): New declaration.
66805         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66806         REPLACE_VSPRINTF.
66807
66808 2007-03-06  Bruno Haible  <bruno@clisp.org>
66809
66810         * modules/vsnprintf (Depend-on): Remove minmax.
66811
66812 2007-03-06  Bruno Haible  <bruno@clisp.org>
66813
66814         * modules/snprintf-posix-tests: New file.
66815         * tests/test-snprintf-posix.c: New file.
66816
66817         * modules/snprintf-posix: New file.
66818         * m4/snprintf-posix.m4: New file.
66819         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66820         gl_FUNC_SNPRINTF.
66821         (gl_FUNC_SNPRINTF): Invoke it.
66822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66823         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66824         is set.
66825         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66826
66827 2007-03-06  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/vsnprintf-posix-tests: New file.
66830         * tests/test-vsnprintf-posix.c: New file.
66831         * tests/test-snprintf-posix.h: New file.
66832
66833         * modules/vsnprintf-posix: New file.
66834         * m4/vsnprintf-posix.m4: New file.
66835         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66836         gl_FUNC_VSNPRINTF.
66837         (gl_FUNC_VSNPRINTF): Invoke it.
66838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66839         * lib/stdio_.h (vsnprintf): Define as a replacement if
66840         REPLACE_VSNPRINTF is set.
66841         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66842
66843 2007-03-06  Bruno Haible  <bruno@clisp.org>
66844
66845         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66847
66848 2007-03-06  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66851         (asinl): Declare also if HAVE_DECL_ASINL is set.
66852         (atanl): Declare also if HAVE_DECL_ATANL is set.
66853         (ceill): Declare also if HAVE_DECL_CEILL is set.
66854         (cosl): Declare also if HAVE_DECL_COSL is set.
66855         (expl): Declare also if HAVE_DECL_EXPL is set.
66856         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66857         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66858         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66859         (logl): Declare also if HAVE_DECL_LOGL is set.
66860         (sinl): Declare also if HAVE_DECL_SINL is set.
66861         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66862         (tanl): Declare also if HAVE_DECL_TANL is set.
66863         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66866         declaration of frexpl, ldexpl.
66867         * modules/printf-frexpl (Depends-on): Add math.
66868         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66869
66870 2007-03-05  Bruno Haible  <bruno@clisp.org>
66871
66872         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66873         frexpl and ldexpl are declared.
66874         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66875
66876 2007-03-05  Bruno Haible  <bruno@clisp.org>
66877
66878         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66879         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66880
66881 2007-03-05  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/stdio_.h: Include <stddef.h>.
66884
66885 2007-03-05  Bruno Haible  <bruno@clisp.org>
66886
66887         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66888
66889 2007-03-05  Bruno Haible  <bruno@clisp.org>
66890
66891         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66892         NetBSD 4, from Ralf Wildenhues.
66893
66894 2007-03-04  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/vasprintf.h: Update #if logic for the case when the functions
66897         exist but are overridden.
66898
66899 2007-03-04  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66902         implementations: glibc-2.4 and MacOS X 10.3.
66903         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66904         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66905         * tests/test-vasprintf-posix.c (test_function): Likewise.
66906
66907 2007-03-04  Bruno Haible  <bruno@clisp.org>
66908
66909         * modules/vasprintf-posix-tests: New file.
66910         * tests/test-vasprintf-posix.c: New file.
66911
66912         * modules/vasprintf-posix: New file.
66913         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66914         defined.
66915         * m4/vasprintf-posix.m4: New file.
66916         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66917         gl_FUNC_VASPRINTF.
66918         (gl_FUNC_VASPRINTF): Invoke it.
66919         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66920         here.
66921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66922
66923 2007-03-04  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66926         REPLACE_GETTIMEOFDAY.
66927         * modules/sys_time (Makefile.am): Likewise.
66928         * m4/sys_time_h.m4: Likewise.
66929         * m4/gettimeofday.m4: Likewise.
66930
66931 2007-03-04  Bruno Haible  <bruno@clisp.org>
66932
66933         * modules/vasnprintf-posix-tests: New file.
66934         * tests/test-vasnprintf-posix.c: New file.
66935
66936         * modules/vasnprintf-posix: New file.
66937         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66938         printf-frexpl.h.
66939         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66940         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66941         REPLACE_VASNPRINTF is defined.
66942         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66943         gl_FUNC_VASNPRINTF.
66944         (gl_FUNC_VASNPRINTF): Invoke it.
66945         * m4/vasnprintf-posix.m4: New file.
66946         * m4/printf.m4: New file.
66947
66948 2007-03-04  Bruno Haible  <bruno@clisp.org>
66949
66950         Compile progreloc.c only if --enable-relocatable is specified.
66951         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66952         if --enable-relocatable was specified.
66953         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66954         lib_SOURCES.
66955
66956 2007-03-04  Jim Meyering  <jim@meyering.net>
66957
66958         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66959         Use it consistently, rather than enumerating errno constants.
66960
66961 2007-03-04  Bruno Haible  <bruno@clisp.org>
66962
66963         * modules/xvasprintf-tests: New file.
66964         * tests/test-xvasprintf.c: New file.
66965
66966         * modules/vasprintf-tests: New file.
66967         * tests/test-vasprintf.c: New file.
66968
66969         * modules/vasnprintf-tests: New file.
66970         * tests/test-vasnprintf.c: New file.
66971
66972         * modules/vsnprintf-tests: New file.
66973         * tests/test-vsnprintf.c: New file.
66974
66975         * modules/snprintf-tests: New file.
66976         * tests/test-snprintf.c: New file.
66977
66978 2007-03-04  Bruno Haible  <bruno@clisp.org>
66979
66980         Compile relocatable.c only if --enable-relocatable is specified.
66981         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66982         gl_RELOCATABLE_LIBRARY.
66983         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66984         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66985         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66986         gl_RELOCATABLE_LIBRARY.
66987         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66988         (Makefile.am): Remove lib_SOURCES.
66989         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66990         gl_RELOCATABLE_LIBRARY.
66991         (Makefile.am): Remove lib_SOURCES.
66992         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66993         always.
66994         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66995         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66996
66997 2007-03-04  Bruno Haible  <bruno@clisp.org>
66998
66999         * modules/argmatch-tests: New file.
67000         * tests/test-argmatch.c: New file.
67001
67002         * tests/test-allocsa.c (main): Halve the number of loop runs.
67003
67004         * modules/alloca-opt-tests: New file.
67005         * tests/test-alloca-opt.c: New file.
67006
67007 2007-03-04  Jim Meyering  <jim@meyering.net>
67008
67009         Work around difference between Linux ACLs and Solaris 10 ZFS.
67010         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67011         for EINVAL.
67012
67013 2007-03-03  Bruno Haible  <bruno@clisp.org>
67014
67015         * modules/relocatable-prog (Depends-on): Add back progreloc's
67016         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67017
67018 2007-03-03  Bruno Haible  <bruno@clisp.org>
67019
67020         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67021         * modules/relocatable-lib: New file.
67022
67023 2007-03-03  Bruno Haible  <bruno@clisp.org>
67024
67025         * modules/relocatable-prog: Renamed from modules/relocatable.
67026         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67027
67028 2007-03-03  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67031         m4/relocatable-lib.m4.
67032         (Depends-on): Remove 'relocatable'.
67033         (configure.ac): Add gl_RELOCATABLE_NOP.
67034
67035 2007-03-03  Bruno Haible  <bruno@clisp.org>
67036
67037         * modules/relocatable-prog-wrapper: New file.
67038         * modules/relocatable (Depends-on): Add it. Remove all other
67039         dependencies except progname.
67040         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67041
67042         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67043         (gl_FUNC_STRERROR): Nop.
67044         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67045
67046         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67047         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67048
67049         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67050         (gl_FUNC_READLINK): Update.
67051
67052         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67053
67054 2007-03-03  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67057         * modules/xreadlink (Depends-on): Add unistd.
67058         * modules/xreadlink-with-size (Depends-on): Likewise.
67059
67060 2007-03-03  Bruno Haible  <bruno@clisp.org>
67061
67062         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67063         extracted from gt_FUNC_SETENV.
67064         (gt_FUNC_SETENV): Remove macro.
67065         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67066         remove gt_FUNC_SETENV.
67067
67068 2007-03-03  Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67071         ENABLE_RELOCATABLE here.
67072         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67073
67074 2007-03-03  Bruno Haible  <bruno@clisp.org>
67075
67076         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67077         * tests/test-rbtreehash_list.c: Include progname.h.
67078         (main): Call set_program_name.
67079
67080         * modules/rbtree-oset-tests (Depends-on): Add progname.
67081         * tests/test-rbtree_oset.c: Include progname.h.
67082         (main): Call set_program_name.
67083
67084         * modules/rbtree-list-tests (Depends-on): Add progname.
67085         * tests/test-rbtree_list.c: Include progname.h.
67086         (main): Call set_program_name.
67087
67088         * modules/linked-list-tests (Depends-on): Add progname.
67089         * tests/test-linked_list.c: Include progname.h.
67090         (main): Call set_program_name.
67091
67092 2007-03-03  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67095         All uses of __restrict changed to _Restrict_.
67096         * lib/glob_.h (__restrict): Remove macro.
67097
67098 2007-03-02  Bruno Haible  <bruno@clisp.org>
67099
67100         * modules/gettext (configure.ac): Require gettext infrastructure
67101         from version 0.16.1.
67102
67103 2007-03-02  Bruno Haible  <bruno@clisp.org>
67104
67105         * modules/linkedhash-list-tests (Depends-on): Add progname.
67106         * tests/test-linkedhash_list.c: Include progname.h.
67107         (main): Call set_program_name.
67108
67109         * modules/carray-list-tests (Depends-on): Add progname.
67110         * tests/test-carray_list.c: Include progname.h.
67111         (main): Call set_program_name.
67112
67113         * modules/avltreehash-list-tests (Depends-on): Add progname.
67114         * tests/test-avltreehash_list.c: Include progname.h.
67115         (main): Call set_program_name.
67116
67117         * modules/avltree-oset-tests (Depends-on): Add progname.
67118         * tests/test-avltree_oset.c: Include progname.h.
67119         (main): Call set_program_name.
67120
67121         * modules/avltree-list-tests (Depends-on): Add progname.
67122         * tests/test-avltree_list.c: Include progname.h.
67123         (main): Call set_program_name.
67124
67125         * modules/array-oset-tests (Depends-on): Add progname.
67126         * tests/test-array_oset.c: Include progname.h.
67127         (main): Call set_program_name.
67128
67129         * modules/array-list-tests (Depends-on): Add progname.
67130         * tests/test-array_list.c: Include progname.h.
67131         (main): Call set_program_name.
67132
67133         * modules/argp-tests (Depends-on): Add progname.
67134         * tests/test-argp.c: Include argp.h first. Include progname.h.
67135         (main): Call set_program_name.
67136
67137 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67138
67139         * doc/gnulib-tool.texi (Initial import): Reword description of
67140         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67141         limited effect even if defined after the first system include.
67142
67143 2007-03-01  Bruno Haible  <bruno@clisp.org>
67144
67145         * build-aux/config.libpath: Update to libtool-1.5.22.
67146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67147
67148 2007-03-01  Bruno Haible  <bruno@clisp.org>
67149
67150         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67151         foo_CFLAGS.
67152         Reported by Ralf Wildenhues.
67153
67154 2007-03-01  Bruno Haible  <bruno@clisp.org>
67155
67156         * build-aux/install-reloc: Remove object files left over by some
67157         compilers.
67158         Reported by Ralf Wildenhues.
67159
67160 2007-03-01  Bruno Haible  <bruno@clisp.org>
67161
67162         * build-aux/install-reloc: Break long lines.
67163
67164 2007-03-01  Bruno Haible  <bruno@clisp.org>
67165
67166         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67167         Reported by Ralf Wildenhues.
67168
67169 2007-03-01  Bruno Haible  <bruno@clisp.org>
67170
67171         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67172         include ordering constraints.
67173
67174 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67178         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67179         as another example.
67180         * lib/time_.h: Fix misspelling.
67181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67182         Require gl_HEADER_TIME_H_DEFAULTS.
67183         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67184         * m4/time_r.m4 (gl_TIME_R): Likewise.
67185         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67186
67187 2007-03-01  Bruno Haible  <bruno@clisp.org>
67188
67189         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67190         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67191
67192 2007-03-01  Jim Meyering  <jim@meyering.net>
67193
67194         * modules/xreadlink (Maintainer): Add my name.
67195         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67196
67197 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67198             Bruno Haible  <bruno@clisp.org>
67199
67200         * build-aux/install-reloc: Compile also c-ctype.c.
67201         * build-aux/relocatable.sh.in: New file.
67202         * doc/relocatable.texi: New file.
67203         * doc/relocatable-maint.texi: New file.
67204         * doc/gnulib.texi: Include relocatable-maint.texi.
67205         * lib/progreloc.c: Include unistd.h unconditionally.
67206         * lib/relocwrapper.c: Include unistd.h unconditionally.
67207         Include c-ctype.h.
67208         (add_dotbin): Use c_tolower.
67209         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67210         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67211         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67212         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67213         to m4/relocatable-lib.m4.
67214         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67215         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67216         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67217         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67218         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67219         * modules/relocatable: New file.
67220         * modules/relocatable-lib: New file.
67221         * modules/relocatable-script: New file.
67222
67223 2007-02-28  Bruno Haible  <bruno@clisp.org>
67224
67225         Import --enable-relocatable infrastructure.
67226         * build-aux/config.libpath: New file, from GNU gettext.
67227         * build-aux/install-reloc: New file, from GNU gettext.
67228         * build-aux/reloc-ldflags: New file, from GNU gettext.
67229         * lib/relocatable.h: New file, from GNU gettext.
67230         * lib/relocatable.c: New file, from GNU gettext.
67231         * lib/relocwrapper.c: New file, from GNU gettext.
67232         * m4/relocatable.m4: New file, from GNU gettext.
67233
67234 2007-02-28  Bruno Haible  <bruno@clisp.org>
67235
67236         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67237
67238         * modules/xreadlink: New file, from GNU gettext with modifications.
67239         * lib/xreadlink.c: New file, from GNU gettext.
67240         * lib/xreadlink.h: Add comments.
67241         (xreadlink): New declaration.
67242
67243         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67244         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67245         lib/xreadlink-with-size.c.
67246         (configure.ac): Remove gl_XREADLINK invocation.
67247         (Makefile.am): Augment lib_SOURCES.
67248         * m4/xreadlink.m4: Remove file.
67249         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67250         (xreadlink_with_size): Renamed from xreadink.
67251         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67252         * modules/canonicalize (Depends-on): Replace xreadlink with
67253         xreadlink-with-size.
67254         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67255
67256 2007-02-25  Jim Meyering  <jim@meyering.net>
67257
67258         * build-aux/announce-gen: When complaining about excess arguments,
67259         list them.
67260
67261 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * README: Document signed integer overflow situation more
67264         accurately.
67265
67266 2007-02-25  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67269         'a' or 'A' conversion.
67270
67271 2007-02-25  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/filename: Renamed from modules/pathname.
67274         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67275         lib/concatpath.c with lib/concat-filename.c.
67276         (Makefile.am): Update.
67277         (Include): Replace pathname.h with filename.h.
67278         * lib/filename.h: Renamed from lib/pathname.h.
67279         (concatenated_filename): Renamed from concatenated_pathname.
67280         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67281         (concatenated_filename): Renamed from concatenated_pathname.
67282         * lib/findprog.c: Include filename.h instead of pathname.h.
67283         (find_in_path): Update.
67284         * lib/javacomp.c: Include filename.h instead of pathname.h.
67285         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67286         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67287         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67288         is_oldgcj_14_13_usable, is_javac_usable): Update.
67289         * lib/javaexec.c: Include filename.h instead of pathname.h.
67290         (execute_java_class): Update.
67291         * modules/findprog: Update.
67292         * modules/javacomp: Update.
67293         * modules/javaexec: Update.
67294         * MODULES.html.sh (File system functions): Add 'filename', remove
67295         'pathname'.
67296
67297 2007-02-25  Bruno Haible  <bruno@clisp.org>
67298
67299         * modules/printf-frexpl-tests: New file.
67300         * tests/test-printf-frexpl.c: New file.
67301
67302         * modules/printf-frexpl: New file.
67303         * lib/printf-frexpl.h: New file.
67304         * lib/printf-frexpl.c: New file.
67305         * m4/printf-frexpl.m4: New file.
67306
67307 2007-02-25  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/printf-frexp-tests: New file.
67310         * tests/test-printf-frexp.c: New file.
67311
67312         * modules/printf-frexp: New file.
67313         * lib/printf-frexp.h: New file.
67314         * lib/printf-frexp.c: New file.
67315         * m4/printf-frexp.m4: New file.
67316
67317 2007-02-25  Bruno Haible  <bruno@clisp.org>
67318
67319         Assume automake >= 1.10 for the tests.
67320         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67321         * modules/arctwo-tests: Likewise.
67322         * modules/argp-tests: Likewise.
67323         * modules/avltree-list-tests: Likewise.
67324         * modules/avltree-oset-tests: Likewise.
67325         * modules/avltreehash-list-tests: Likewise.
67326         * modules/carray-list-tests: Likewise.
67327         * modules/crc-tests: Likewise.
67328         * modules/des-tests: Likewise.
67329         * modules/gc-arcfour-tests: Likewise.
67330         * modules/gc-arctwo-tests: Likewise.
67331         * modules/gc-des-tests: Likewise.
67332         * modules/gc-hmac-md5-tests: Likewise.
67333         * modules/gc-hmac-sha1-tests: Likewise.
67334         * modules/gc-md2-tests: Likewise.
67335         * modules/gc-md4-tests: Likewise.
67336         * modules/gc-md5-tests: Likewise.
67337         * modules/gc-pbkdf2-sha1-tests: Likewise.
67338         * modules/gc-rijndael-tests: Likewise.
67339         * modules/gc-sha1-tests: Likewise.
67340         * modules/gc-tests: Likewise.
67341         * modules/getaddrinfo-tests: Likewise.
67342         * modules/hmac-md5-tests: Likewise.
67343         * modules/hmac-sha1-tests: Likewise.
67344         * modules/linked-list-tests: Likewise.
67345         * modules/linkedhash-list-tests: Likewise.
67346         * modules/lock-tests: Likewise.
67347         * modules/md2-tests: Likewise.
67348         * modules/md4-tests: Likewise.
67349         * modules/md5-tests: Likewise.
67350         * modules/rbtree-list-tests: Likewise.
67351         * modules/rbtree-oset-tests: Likewise.
67352         * modules/rbtreehash-list-tests: Likewise.
67353         * modules/read-file-tests: Likewise.
67354         * modules/rijndael-tests: Likewise.
67355         * modules/stdint-tests: Likewise.
67356         * modules/tls-tests: Likewise.
67357
67358 2007-02-24  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67361         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67362         function; instead check whether isnan with a double argument links.
67363         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67364         function; instead check whether isnan with a 'long double' argument
67365         links.
67366         Reported by Eric Blake <ebb9@byu.net>.
67367
67368 2007-02-24  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67371         defined.
67372         * lib/isnanl.c: Remove all code. Just include isnan.c.
67373         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67374
67375 2007-02-25  Jim Meyering  <jim@meyering.net>
67376
67377         Avoid conflicting types for 'unsetenv' on FreeBSD.
67378         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67379         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67380         in stdlib.h.
67381
67382 2007-02-24  Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/isnanl-nolibm-tests: New file.
67385         * tests/test-isnanl.c: New file.
67386
67387         * modules/isnanl-nolibm: New file.
67388         * lib/isnanl.h: New file.
67389         * lib/isnanl.c: New file.
67390         * m4/isnanl.m4: New file.
67391
67392 2007-02-24  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/isnan-nolibm-tests: New file.
67395         * tests/test-isnan.c: New file.
67396
67397         * modules/isnan-nolibm: New file.
67398         * lib/isnan.h: New file.
67399         * lib/isnan.c: New file.
67400         * m4/isnan.m4: New file.
67401
67402 2007-02-24  Bruno Haible  <bruno@clisp.org>
67403
67404         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67405         assume that an exponent fits in 20 bits.
67406
67407 2007-02-24  Jim Meyering  <jim@meyering.net>
67408
67409         * m4/regex.m4: Update the description of the configure-time option,
67410         --without-included-regex, to state accurately what the defaults are,
67411         and perhaps to give people an idea why using this option is risky.
67412
67413 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67416         loops on small arguments.  This attempts to avoid the problem
67417         Bruno Haible reported for AIX 4.3.2 in
67418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67419
67420 2007-02-23  Bruno Haible  <bruno@clisp.org>
67421
67422         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67423         Needed for help2man.
67424
67425 2007-02-23  Karl Berry  <karl@gnu.org>
67426
67427         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67428         exists, foo.h should be cvs-ignored, not committed.
67429
67430 2007-02-23  Eric Blake  <ebb9@byu.net>
67431
67432         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67433         * lib/stat-time.h (includes): Likewise.
67434         * lib/utimecmp.c (includes): Likewise.
67435         * lib/utimens.h (includes): Likewise.
67436         * lib/getdate.y (includes): Also include "timespec.h" for use
67437         internal to the module.
67438         * modules/utimens (Depends-on): Revert yesterday's patch.
67439         * modules/nanosleep (Depends-on): Add missing dependency.
67440
67441 2007-02-22  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/glob.c: Don't include getlogin_r.h.
67444
67445 2007-02-22  Jim Meyering  <jim@meyering.net>
67446
67447         * modules/utimens (Depends-on): Add timespec, required for
67448         utimens.h's inclusion of timespec.h.
67449
67450 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67451
67452         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67453         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67454         Schwab in
67455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67456         I'll try to think of a better way to fix the Solaris problem.
67457
67458         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67459         like glibc; on Solaris 10, it fails with errno == EINVAL.
67460         POSIX says the behavior is unspecified if the first argument is NULL,
67461         so play it safe and never pass NULL to the system getcwd.
67462
67463 2007-02-21  Jim Meyering  <jim@meyering.net>
67464
67465         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67466         of gettimeofday.  It would conflict with the one now always
67467         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67468         an IRIX 6.5 build failure.
67469
67470 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         Minor fixups to port to Solaris 10 with Sun C 5.8.
67473         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67474         * modules/getcwd (Depends-on): Add dirfd.
67475         * lib/putenv.c (putenv): #undef it.
67476         (rpl_putenv): New decl.
67477         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67478
67479 2007-02-20  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/stdio-tests: New file.
67482         * tests/test-stdio.c: New file.
67483
67484         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67485         (Depends-on): Add stdio.
67486         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67487         (Include): Use <stdio.h> instead of vsnprintf.h.
67488         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67489         HAVE_DECL_VSNPRINTF.
67490         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67491
67492         * modules/snprintf (Files): Remove lib/snprintf.h.
67493         (Depends-on): Add stdio.
67494         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67495         (Include): Use <stdio.h> instead of snprintf.h.
67496         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67497         HAVE_DECL_SNPRINTF.
67498         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67499         * lib/getaddrinfo.c: Likewise.
67500
67501         * modules/stdio: New file.
67502         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67503         * lib/snprintf.h: Remove file.
67504         * lib/vsnprintf.h: Remove file.
67505         * lib/.cppi-disable: Remove snprintf.h.
67506         * m4/stdio_h.m4: New file.
67507         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67508
67509 2007-02-20  Jim Meyering  <jim@meyering.net>
67510
67511         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67512         used by e.g., mingw.  From Bruno Haible.
67513
67514 2007-02-19  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67517         warnings.
67518         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67519
67520 2007-02-19  Bruno Haible  <bruno@clisp.org>
67521
67522         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67523         from mingw users.
67524
67525 2007-02-19  Bruno Haible  <bruno@clisp.org>
67526
67527         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67528         warnings.
67529         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67530
67531 2007-02-19  Jim Meyering  <jim@meyering.net>
67532
67533         Don't use FD after a successful "fdopendir (fd)".
67534         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67535         Reset it by calling dirfd on the just-obtained DIR*.
67536
67537         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67538         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67539
67540 2007-02-18  Bruno Haible  <bruno@clisp.org>
67541
67542         * lib/readlink.c: Include <unistd.h>.
67543         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67544         HAVE_READLINK.
67545         * modules/readlink (Depends-on): Add unistd.
67546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67547         (Include): Add <unistd.h>.
67548
67549         * lib/getlogin_r.h: Remove file.
67550         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67551         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67552         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67553         HAVE_DECL_GETLOGIN_R.
67554         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67556         (Include): Use <unistd.h> instead of getlogin_r.h.
67557
67558         * lib/getcwd.h: Remove file.
67559         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67560         * lib/xgetcwd.c: Likewise.
67561         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67562         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67563         * modules/getcwd (Files): Remove lib/getcwd.h.
67564         (Depends-on): Add unistd.
67565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67566         (Include): Use <unistd.h> instad of getcwd.h.
67567
67568         * lib/ftruncate.c: Include <unistd.h> first.
67569         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67570         Set HAVE_FTRUNCATE.
67571         * modules/ftruncate (Depends-on): Add unistd.
67572         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67573
67574         * lib/fchdir.c: Include <unistd.h> first.
67575         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67577         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67578         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67579         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67580
67581         * lib/dup2.c: Include <unistd.h> first.
67582         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67583         HAVE_DUP2.
67584         * modules/dup2 (Depends-on): Add unistd.
67585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67586
67587         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67588         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67589         REPLACE_CHOWN. Don't define chown as a macro here.
67590         * modules/chown (Depends-on): Add unistd.
67591         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67592
67593         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67594         Add definition for GL_LINK_WARNING.
67595         (chown, dup2): New declarations.
67596         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67597         link warning.
67598         (ftruncate): New declaration.
67599         (getcwd): New declaration, taken from old getcwd.h.
67600         (getlogin_r): New declaration, taken from old getlogin_r.h.
67601         (readlink): New declaration.
67602         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67603         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67604         (gl_PREREQ_UNISTD): Remove macro.
67605         (gl_UNISTD_MODULE_INDICATOR): New macro.
67606         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67607         many new variables. Don't set UNISTD_H.
67608         * modules/unistd (Description): Change.
67609         (Depends-on): Add link-warning.
67610         (configure.ac): Update.
67611         (Makefile.am): Create unistd.h always. Substitute many new variables
67612         into it.
67613
67614 2007-02-18  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67617         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67618         HAVE_GETSUBOPT.
67619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67620         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67621         * lib/getsubopt.h: Remove file.
67622         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67623         (Depends-on): Add stdlib.
67624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67625         (Includes): Use <stdlib.h> instead of getsubopt.h.
67626         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67627         Set HAVE_GETSUBOPT.
67628         * lib/getsubopt.c: Don't include getsubopt.h.
67629
67630 2007-02-18  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/fchdir (Depends-on): Add dup2.
67633
67634 2007-02-18  Bruno Haible  <bruno@clisp.org>
67635
67636         * lib/stdlib_.h: Handle glibc's special invocation convention
67637         specially.
67638
67639 2007-02-18  Bruno Haible  <bruno@clisp.org>
67640
67641         * modules/stdlib-tests: New file.
67642         * tests/test-stdlib.c: New file.
67643
67644         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67645         (Depends-on): Add stdlib.
67646         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67647         (Includes): Use <stdlib.h> instead of mkstemp.h.
67648         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67649         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67650         * lib/mkstemp.c: Don't include mkstemp.h.
67651         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67652         * lib/stdlib--.h: Don't include mkstemp.h.
67653
67654         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67655         (Depends-on): Add stdlib.
67656         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67657         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67658         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67659         HAVE_MKDTEMP.
67660         * lib/mkdtemp.c: Don't include mkdtemp.h.
67661         * lib/clean-temp.c: Don't include mkdtemp.h.
67662
67663         * modules/exit (Files): Remove lib/exit.h.
67664         (Depends-on): Add stdlib.
67665         (Makefile.am): Remove lib_SOURCES.
67666         (Include): Use <stdlib.h> instead of exit.h.
67667         * lib/argmatch.c: Don't include exit.h.
67668         * lib/execute.c: Likewise.
67669         * lib/pagealign_alloc.c: Likewise.
67670         * lib/pipe.c: Likewise.
67671         * lib/wait-process.c: Likewise.
67672         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67673         * lib/exitfail.c: Likewise.
67674         * lib/savewd.c: Likewise.
67675         * lib/xsetenv.c: Likewise.
67676
67677         * modules/stdlib: New file.
67678         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67679         and extra comments about mkstemp().
67680         * lib/exit.h: Remove file.
67681         * lib/mkdtemp.h: Remove file.
67682         * lib/mkstemp.h: Remove file.
67683         * m4/stdlib_h.m4: New file.
67684         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67685
67686 2007-02-18  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/math-tests: New file.
67689         * tests/test-math.c: New file.
67690
67691         * modules/math: New file.
67692         * modules/mathl (Files): Remove lib/mathl.h.
67693         (Depends-on): Add math.
67694         (Makefile.am): Don't mention mathl.h.
67695         (Include): Use <math.h> instead of mathl.h.
67696         * lib/math_.h: New file.
67697         * lib/mathl.h: Remove file.
67698         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67699         mathl.h.
67700         * lib/asinl.c: Likewise.
67701         * lib/atanl.c: Likewise.
67702         * lib/ceill.c: Likewise.
67703         * lib/cosl.c: Likewise.
67704         * lib/expl.c: Likewise.
67705         * lib/floorl.c: Likewise.
67706         * lib/frexpl.c: Likewise.
67707         * lib/ldexpl.c: Likewise.
67708         * lib/logl.c: Likewise.
67709         * lib/sincosl.c: Likewise.
67710         * lib/sinl.c: Likewise.
67711         * lib/sqrtl.c: Likewise.
67712         * lib/tanl.c: Likewise.
67713         * lib/trigl.c: Likewise.
67714         * m4/math_h.m4: New file.
67715         * MODULES.html.sh (Mathematics): Add math.
67716
67717 2007-02-17  Bruno Haible  <bruno@clisp.org>
67718
67719         * modules/wctype-tests: New file.
67720         * tests/test-wctype.c: New file.
67721
67722         * modules/wchar-tests: New file.
67723         * tests/test-wchar.c: New file.
67724
67725         * modules/unistd-tests: New file.
67726         * tests/test-unistd.c: New file.
67727
67728         * modules/time-tests: New file.
67729         * tests/test-time.c: New file.
67730
67731         * modules/sysexits-tests: New file.
67732         * tests/test-sysexits.c: New file.
67733
67734         * modules/sys_time-tests: New file.
67735         * tests/test-sys_time.c: New file.
67736
67737         * modules/sys_stat-tests: New file.
67738         * tests/test-sys_stat.c: New file.
67739
67740         * modules/sys_socket-tests: New file.
67741         * tests/test-sys_socket.c: New file.
67742
67743         * modules/sys_select-tests: New file.
67744         * tests/test-sys_select.c: New file.
67745
67746         * modules/string-tests: New file.
67747         * tests/test-string.c: New file.
67748
67749         * modules/stdbool-tests: New file.
67750         * tests/test-stdbool.c: New file.
67751
67752         * modules/netinet_in-tests: New file.
67753         * tests/test-netinet_in.c: New file.
67754
67755         * modules/inttypes-tests: New file.
67756         * tests/test-inttypes.c: New file.
67757
67758         * modules/fcntl-tests: New file.
67759         * tests/test-fcntl.c: New file.
67760
67761         * modules/byteswap-tests: New file.
67762         * tests/test-byteswap.c: New file.
67763
67764         * modules/arpa_inet-tests: New file.
67765         * tests/test-arpa_inet.c: New file.
67766
67767 2007-02-17  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67770         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67771         if the corresponding module is not enabled. Emit link warnings if
67772         the function is used nevertheless.
67773         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67774         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67775         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67776         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67777         * modules/inttypes (Depends-on): Add link-warning.
67778         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67779         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67780         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67781         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67782         * modules/imaxdiv (configure.ac): Likewise.
67783         * modules/strtoimax (configure.ac): Likewise.
67784         * modules/strtoumax (configure.ac): Likewise.
67785
67786 2007-02-17  Bruno Haible  <bruno@clisp.org>
67787
67788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67789         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67790         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67791         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67792
67793 2007-02-17  Bruno Haible  <bruno@clisp.org>
67794
67795         * modules/link-warning: New file.
67796         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67797         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67798         * modules/string (Depends-on): Add link-warning.
67799         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67800         string.h.
67801         * MODULES.html.sh (Support for building libraries and executables): Add
67802         link-warning.
67803
67804 2007-02-17  Bruno Haible  <bruno@clisp.org>
67805
67806         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67807         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67808         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67809         long lines.
67810
67811 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67812             Bruno Haible  <bruno@clisp.org>
67813
67814         * modules/tmpfile: New file.
67815         * lib/tmpfile.c: New file.
67816         * m4/tmpfile.m4: New file.
67817         * MODULES.html.sh (func_all_modules): New section "Input/output".
67818
67819 2007-02-15  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67822         (supports_delete_on_close): New function.
67823         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67824
67825 2007-02-14  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/mbspcasecmp-tests: New file.
67828         * tests/test-mbspcasecmp.sh: New file.
67829         * tests/test-mbspcasecmp.c: New file.
67830
67831         New module mbspcasecmp.
67832         * modules/mbspcasecmp: New file.
67833         * lib/mbspcasecmp.c: New file.
67834         * lib/string_.h (strncasecmp): Change warning message.
67835         (mbspcasecmp): New declaration.
67836         * m4/mbspcasecmp.m4: New file.
67837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67838         GNULIB_MBSPCASECMP.
67839         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67840         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67841
67842 2007-02-14  Bruno Haible  <bruno@clisp.org>
67843
67844         * modules/mbsncasecmp-tests: New file.
67845         * tests/test-mbsncasecmp.sh: New file.
67846         * tests/test-mbsncasecmp.c: New file.
67847
67848         New module mbsncasecmp.
67849         * modules/mbsncasecmp: New file.
67850         * lib/mbsncasecmp.c: New file.
67851         * lib/string_.h (mbsncasecmp): New declaration.
67852         * m4/mbsncasecmp.m4: New file.
67853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67854         GNULIB_MBSNCASECMP.
67855         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67856         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67857
67858 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67859
67860         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67861         Verify that it doesn't overlap with our flags.
67862         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67863         do not have the desired effect in multibyte locales; instead, use
67864         mbscasecmp.
67865         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67866         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67867         we don't require GNU fnmatch ourselves (if our users require it, they
67868         should do so explicitly).
67869
67870         Fix regex code so it doesn't rely on strcasecmp.
67871         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67872         Otherwise, include gnulib's langinfo.h.
67873         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67874         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67875         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67876         * modules/regex (FILES): Remove m4/codeset.m4.
67877         (Depends-on): Add localcharset.  Remove strcase.
67878
67879 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67880
67881         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67882         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67883
67884 2007-02-13  Bruno Haible  <bruno@clisp.org>
67885
67886         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67887         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67888
67889 2007-02-12  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67892         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67893         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67894         time warning rather than a link error.
67895
67896 2007-02-12  Bruno Haible  <bruno@clisp.org>
67897
67898         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67901
67902 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67905         args, not 2.
67906
67907 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67908
67909         New module 'time', so that apps can include <time.h> as per
67910         POSIX and GNU instead of separate include files like time_r.h
67911         and timegm.h.  This implementation tries out a simpler approach
67912         for replacing decls in standard include files (as compared to
67913         the string module), somewhat as an experiment.
67914
67915         * config/srclist.txt: Comment out mktime.c for now.
67916         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67917         since it doesn't apply any more.  Use generic wording instead.
67918         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67919         'time'.
67920         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67921         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67922         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67923         Don't include <sys/types.h>; no longer needed since we assume C89.
67924         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67925         * lib/strftime.c: Likewise.
67926         * lib/time_r.c: Likewise.
67927         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67928         * lib/nanosleep.c: Include <time.h> first, to check interface.
67929         * lib/strptime.c: Likewise.
67930         * lib/time_r.c: Likewise.
67931         * lib/timegm.c: Likewise.
67932         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67933         needed.
67934         * lib/timegm.c: Don't include timegm.h; no longer needed.
67935         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67936         time.h now handles any problems in that area.
67937         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67938         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67939         that time.h defines struct timespec.
67940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67941         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67942         handles that.
67943         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67944         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67945         needed.  Set REPLACE_LOCALTIME.
67946         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67947         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67948         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67949         nanosleep; time_h.m4 now does that.  Don't require
67950         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67951         module handles this now.
67952         * modules/getdate (Depends-on): Remove timespec.  Add time.
67953         * modules/nanosleep (Depends-on): Likewise.
67954         * modules/stat-time (Depends-on): Likewise.
67955         * modules/nanosleep (Include): Include time.h, not timespec.h.
67956         * modules/strptime (Files): Remove lib/strptime.h.
67957         (Depends-on): Add extensions, time.
67958         (Include): Include time.h, not strptime.h.
67959         * modules/time_r (Files): Remove lib/time_r.h.
67960         (Depends-on): Add time.
67961         (Include): Include time.h, not time_r.h.
67962         * modules/timegm: Likewise.
67963         * modules/timespec (Description): Now does timespec-related decls
67964         of our own, instead of struct timespec itself.
67965         (Depends-on): Add time; remove extensions.
67966         (Maintainer): Add self.
67967         * modules/utimecmp (Depends-on): Add time; remove timespec.
67968         * modules/utimens (Depends-on): Likewise.
67969         * modules/xnanosleep (Depends-on): Likewise.
67970
67971 2007-02-11  Bruno Haible  <bruno@clisp.org>
67972
67973         * lib/c-strstr.c: Include allocsa.h.
67974         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67975         * lib/c-strcasestr.c: Include allocsa.h.
67976         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67977         * lib/strcasestr.c: Include allocsa.h.
67978         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67979         * lib/mbsstr.c: Include allocsa.h.
67980         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67981         allocsa/freesa instead of malloc/free.
67982         * lib/mbscasestr.c: Include allocsa.h.
67983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67984         allocsa/freesa instead of malloc/free.
67985         * modules/c-strstr (Depends-on): Add allocsa.
67986         * modules/c-strcasestr (Depends-on): Likewise.
67987         * modules/strcasestr (Depends-on): Likewise.
67988         * modules/mbsstr (Depends-on): Likewise.
67989         * modules/mbscasestr (Depends-on): Likewise.
67990
67991 2007-02-11  Bruno Haible  <bruno@clisp.org>
67992
67993         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67994
67995         * modules/mbsspn-tests: New file.
67996         * tests/test-mbsspn.sh: New file.
67997         * tests/test-mbsspn.c: New file.
67998
67999 2007-02-11  Bruno Haible  <bruno@clisp.org>
68000
68001         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68002
68003         * modules/mbspbrk-tests: New file.
68004         * tests/test-mbspbrk.sh: New file.
68005         * tests/test-mbspbrk.c: New file.
68006
68007 2007-02-11  Bruno Haible  <bruno@clisp.org>
68008
68009         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68010         unneeded cast.
68011
68012         * modules/mbscspn-tests: New file.
68013         * tests/test-mbscspn.sh: New file.
68014         * tests/test-mbscspn.c: New file.
68015
68016 2007-02-11  Bruno Haible  <bruno@clisp.org>
68017
68018         * modules/mbscasecmp-tests: New file.
68019         * tests/test-mbscasecmp.sh: New file.
68020         * tests/test-mbscasecmp.c: New file.
68021
68022 2007-02-11  Bruno Haible  <bruno@clisp.org>
68023
68024         Ensure O(n) worst-case complexity of mbscasestr.
68025         * lib/mbscasestr.c: Include stdbool.h.
68026         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68027         functions.
68028         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68029         the bookkeeping indicates that it's worth it.
68030         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68031
68032         * modules/mbscasestr-tests: New file.
68033         * tests/test-mbscasestr1.c: New file.
68034         * tests/test-mbscasestr2.sh: New file.
68035         * tests/test-mbscasestr2.c: New file.
68036         * tests/test-mbscasestr3.sh: New file.
68037         * tests/test-mbscasestr3.c: New file.
68038         * tests/test-mbscasestr4.sh: New file.
68039         * tests/test-mbscasestr4.c: New file.
68040         * m4/locale-tr.m4: New file.
68041
68042 2007-02-11  Bruno Haible  <bruno@clisp.org>
68043
68044         Ensure O(n) worst-case complexity of mbsstr.
68045         * lib/mbsstr.c: Include stdbool.h.
68046         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68047         functions.
68048         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68049         bookkeeping indicates that it's worth it.
68050         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68051
68052         * modules/mbsstr-tests: New file.
68053         * tests/test-mbsstr1.c: New file.
68054         * tests/test-mbsstr2.sh: New file.
68055         * tests/test-mbsstr2.c: New file.
68056         * tests/test-mbsstr3.sh: New file.
68057         * tests/test-mbsstr3.c: New file.
68058         * m4/locale-fr.m4: New file.
68059
68060 2007-02-11  Bruno Haible  <bruno@clisp.org>
68061
68062         * lib/mbsrchr.c (mbsrchr): Fix bug.
68063
68064         * modules/mbsrchr-tests: New file.
68065         * tests/test-mbsrchr.sh: New file.
68066         * tests/test-mbsrchr.c: New file.
68067
68068 2007-02-11  Bruno Haible  <bruno@clisp.org>
68069
68070         * lib/mbschr.c (mbschr): Fix bug.
68071
68072         * modules/mbschr-tests: New file.
68073         * tests/test-mbschr.sh: New file.
68074         * tests/test-mbschr.c: New file.
68075         * m4/locale-zh.m4: New file.
68076
68077 2007-02-11  Bruno Haible  <bruno@clisp.org>
68078
68079         Support for copying multibyte string iterators.
68080         * lib/mbiter.h: Include <string.h>.
68081         (mbiter_multi_copy): New function.
68082         (mbi_copy): New macro.
68083         * lib/mbuiter.h: Include <string.h>.
68084         (mbuiter_multi_copy): New function.
68085         (mbui_copy): New macro.
68086
68087 2007-02-11  Bruno Haible  <bruno@clisp.org>
68088
68089         New module mbslen.
68090         * modules/mbslen: New file.
68091         * lib/mbslen.c: New file.
68092         * lib/string_.h (mbslen): New declaration.
68093         * m4/mbslen.m4: New file.
68094         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68095         GNULIB_MBSLEN.
68096         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68097         * MODULES.html.sh (Internationalization functions): Add mbslen.
68098
68099 2007-02-11  Bruno Haible  <bruno@clisp.org>
68100
68101         Ensure O(n) worst-case complexity of strcasestr substitute.
68102         * lib/strcasestr.c: Include stdbool.h.
68103         (knuth_morris_pratt): New function.
68104         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68105         bookkeeping indicates that it's worth it.
68106         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68107
68108         * modules/strcasestr-tests: New file.
68109         * tests/test-strcasestr.c: New file.
68110
68111 2007-02-11  Bruno Haible  <bruno@clisp.org>
68112
68113         Ensure O(n) worst-case complexity of c_strcasestr.
68114         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68115         (knuth_morris_pratt): New function.
68116         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68117         the bookkeeping indicates that it's worth it.
68118         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68119
68120         * modules/c-strcasestr-tests: New file.
68121         * tests/test-c-strcasestr.c: New file.
68122
68123 2007-02-11  Bruno Haible  <bruno@clisp.org>
68124
68125         Ensure O(n) worst-case complexity of c_strstr.
68126         * lib/c-strstr.c: Include stdbool.h, string.h.
68127         (knuth_morris_pratt): New function.
68128         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68129         bookkeeping indicates that it's worth it.
68130         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68131
68132         * lib/c-strstr.c: Complete rewrite for maintainability.
68133
68134         * modules/c-strstr-tests: New file.
68135         * tests/test-c-strstr.c: New file.
68136
68137 2007-02-11  Bruno Haible  <bruno@clisp.org>
68138
68139         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68140         5.2.1 and earlier, whereby \055 was treated just like the range
68141         delimiter '-'.
68142         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68143
68144 2007-02-08  Bruno Haible  <bruno@clisp.org>
68145
68146         * modules/regex (Depends-on): Add stdbool.
68147         Reported by Dalibor Topic <robilad@kaffe.org>.
68148
68149 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68152         Prefer returning from main to exiting from it.
68153         Remove unnecessary parens after sizeof.
68154
68155 2007-02-05  Bruno Haible  <bruno@clisp.org>
68156
68157         New module mbssep.
68158         * modules/mbssep: New file.
68159         * lib/mbssep.c: New file.
68160         * lib/string_.h (strsep): Add a conditional link warning.
68161         (mbssep): New declaration.
68162         * m4/mbssep.m4: New file.
68163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68164         GNULIB_MBSSEP.
68165         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68166         * MODULES.html.sh (Internationalization functions): Add mbssep.
68167
68168 2007-02-05  Bruno Haible  <bruno@clisp.org>
68169
68170         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68171         Optimize search in case of 1 delimiter.
68172
68173 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68174
68175         * lib/acl.h: Include sys/types.h before sys/acl.h.
68176
68177 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68178
68179         Merge upstream fix for glibc bugzilla #3957:
68180
68181         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68182
68183         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68184         bit for RE_HAT_LISTS_NOT_NEWLINE.
68185         (build_charclass_op): Remove bogus comment.
68186
68187 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68188
68189         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68190
68191 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68194         * lib/memmem.c [!defined _LIBC]: Include config.h.
68195
68196 2007-02-04  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68199         warning message.
68200
68201 2007-02-04  Bruno Haible  <bruno@clisp.org>
68202
68203         New module mbstok_r.
68204         * modules/mbstok_r: New file.
68205         * lib/mbstok_r.c: New file.
68206         * lib/string_.h (strtok_r): Change argument names to match the
68207         comments. Add a conditional link warning.
68208         (mbstok_r): New declaration.
68209         * m4/mbstok_r.m4: New file.
68210         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68211         GNULIB_MBSTOK_R.
68212         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68213         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68214
68215 2007-02-04  Bruno Haible  <bruno@clisp.org>
68216
68217         New module mbsspn.
68218         * modules/mbsspn: New file.
68219         * lib/mbsspn.c: New file.
68220         * lib/string_.h (strspn): Add a conditional link warning.
68221         (mbsspn): New declaration.
68222         * m4/mbsspn.m4: New file.
68223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68224         GNULIB_MBSSPN.
68225         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68226         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68227
68228 2007-02-04  Bruno Haible  <bruno@clisp.org>
68229
68230         New module mbspbrk.
68231         * modules/mbspbrk: New file.
68232         * lib/mbspbrk.c: New file.
68233         * lib/string_.h (strpbrk): Add a conditional link warning.
68234         (mbspbrk): New declaration.
68235         * m4/mbspbrk.m4: New file.
68236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68237         GNULIB_MBSPBRK.
68238         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68239         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68240
68241 2007-02-04  Bruno Haible  <bruno@clisp.org>
68242
68243         New module mbscspn.
68244         * modules/mbscspn: New file.
68245         * lib/mbscspn.c: New file.
68246         * lib/string_.h (strcspn): Add a conditional link warning.
68247         (mbscspn): New declaration.
68248         * m4/mbscspn.m4: New file.
68249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68250         GNULIB_MBSCSPN.
68251         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68252         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68253
68254 2007-02-04  Bruno Haible  <bruno@clisp.org>
68255
68256         New module mbscasestr, reduced goal of strcasestr.
68257         * modules/mbscasestr: New file.
68258         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68259         (mbscasestr): Renamed from strcasestr.
68260         * lib/strcasestr.c: Don't include mbuiter.h.
68261         (strcasestr): Remove support for multibyte locales.
68262         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68263         Change the conditional link warning.
68264         (mbscasestr): New declaration.
68265         * m4/mbscasestr.m4: New file.
68266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68267         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68268         REPLACE_STRCASESTR.
68269         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68271         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68272         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68273         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68274         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68275         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68276         (Depends-on): Remove mbuiter.
68277         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68278
68279 2007-02-04  Bruno Haible  <bruno@clisp.org>
68280
68281         Simplify handling of strncasecmp.
68282         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68283         the conditional link warning.
68284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68285         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68286         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68287         * modules/strcase (configure.ac): Don't invoke
68288         gl_STRING_MODULE_INDICATOR.
68289         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68290
68291 2007-02-04  Bruno Haible  <bruno@clisp.org>
68292
68293         New module mbscasecmp, reduced goal of strcasecmp.
68294         * modules/mbscasecmp: New file.
68295         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68296         (mbscasecmp): Renamed from strcasecmp.
68297         * lib/strcasecmp.c: Don't include mbuiter.h.
68298         (strcasecmp): Remove support for multibyte locales.
68299         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68300         Change the conditional link warning.
68301         (mbscasecmp): New declaration.
68302         * m4/mbscasecmp.m4: New file.
68303         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68304         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68305         REPLACE_STRCASECMP.
68306         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68308         GNULIB_MBSCASECMP.
68309         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68310         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68311         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68312         (Depends-on): Remove mbuiter.
68313         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68314
68315 2007-02-04  Bruno Haible  <bruno@clisp.org>
68316
68317         New module mbsstr. Remove module strstr.
68318         * modules/mbsstr: New file.
68319         * modules/strstr: Remove file.
68320         * lib/mbsstr.c: Renamed from lib/strstr.c.
68321         (mbsstr): Renamed from strstr.
68322         * lib/string_.h (strstr): Remove declaration. Change the conditional
68323         link warning.
68324         (mbsstr): New declaration.
68325         * m4/mbsstr.m4: New file.
68326         * m4/strstr.m4: Remove file.
68327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68328         REPLACE_STRSTR.
68329         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68330         Don't initialize GNULIB_STRSTR.
68331         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68332         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68333         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68334         (Support for systems lacking ANSI C 89): Remove strstr.
68335
68336 2007-02-04  Bruno Haible  <bruno@clisp.org>
68337
68338         New module mbsrchr.
68339         * modules/mbsrchr: New file.
68340         * lib/mbsrchr.c: New file.
68341         * lib/string_.h (strrchr): Add a conditional link warning.
68342         (mbsrchr): New declaration.
68343         * m4/mbsrchr.m4: New file.
68344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68345         GNULIB_MBSRCHR.
68346         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68347         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68348
68349 2007-02-04  Bruno Haible  <bruno@clisp.org>
68350
68351         New module mbschr.
68352         * modules/mbschr: New file.
68353         * lib/mbschr.c: New file.
68354         * lib/string_.h (strchr): Add a conditional link warning.
68355         (mbschr): New declaration.
68356         * m4/mbschr.m4: New file.
68357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68358         GNULIB_MBSCHR.
68359         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68360         * MODULES.html.sh (Internationalization functions): Add mbschr.
68361
68362 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68365
68366         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68367
68368 2007-02-04  Bruno Haible  <bruno@clisp.org>
68369
68370         New module description section 'configure.ac-early'.
68371         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68372         (func_get_autoconf_early_snippet): New function.
68373         (func_import, func_create_testdir): Use it. Remove special cases for
68374         modules 'extensions' and 'lock'.
68375         * modules/extensions (configure.ac-early): Require
68376         gl_USE_SYSTEM_EXTENSIONS.
68377         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68378
68379 2007-02-04  Bruno Haible  <bruno@clisp.org>
68380
68381         Make use of gcj-4.3's -fsource and -ftarget option.
68382         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68383         and if so try the options -fsource and -ftarget.
68384         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68385         source_version, ftarget_option, target_version arguments.
68386         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68387         (is_envjavac_oldgcj_14_14_usable): Renamed from
68388         is_envjavac_gcj_14_14_usable.
68389         (is_envjavac_oldgcj_14_13_usable): Renamed from
68390         is_envjavac_gcj_14_13_usable.
68391         (is_gcj_present): Update.
68392         (is_gcj_43, is_gcj43_usable): New functions.
68393         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68394         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68395         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68396         try the options -fsource and -ftarget.
68397
68398 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68401         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68402         larger value.
68403
68404 2007-02-03  Jim Meyering  <jim@meyering.net>
68405
68406         Give tools a better chance to allocate space for very large buffers.
68407         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68408
68409         Make pwd and readlink work also when run with an unreadable parent dir
68410         on systems with openat support.
68411         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68412         provided getcwd function, even when we have openat support.
68413         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68414
68415 2007-02-02  Bruno Haible  <bruno@clisp.org>
68416
68417         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68418         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68419         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68420         portability problems if one of these functions is only used on specific
68421         platforms.
68422         Reported by Paul Eggert.
68423
68424 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68427         is causing more trouble than it's curing.
68428         * lib/regex_internal.h (__mempcpy): Remove.
68429         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68430         (and make the code a tad smaller to boot).
68431         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68432
68433 2007-02-02  Jim Meyering  <jim@meyering.net>
68434
68435         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68436         section, not in the Makefile.am: one.
68437
68438 2007-02-02  Eric Blake  <ebb9@byu.net>
68439
68440         * lib/strchrnul.c: Always include config.h first.
68441
68442         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68443         gnulib strstr is not necessary here.
68444
68445 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68446
68447         * m4/socklen.m4: Fix typo.
68448
68449 2007-02-02  Eric Blake  <ebb9@byu.net>
68450
68451         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68452         * modules/netinet_in (Makefile.am): Likewise.
68453
68454 2007-02-01  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/string_.h (GL_LINK_WARNING): New macro.
68457         (strcasecmp, strstr, strcasestr): If provided by the system,
68458         conditionally define as a macro that leads to a warning instead of to
68459         an error.
68460         (strncasecmp): Conditionally define as a macro that leads to a warning.
68461
68462 2007-02-01  Karl Berry  <karl@gnu.org>
68463
68464         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68465
68466 2007-02-01  Bruno Haible  <bruno@clisp.org>
68467
68468         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68469         renamings.
68470
68471 2007-02-01  Eric Blake  <ebb9@byu.net>
68472
68473         * modules/regex (Depends-on): Revert dependence on mempcpy.
68474         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68475         module's definition of mempcpy.
68476         Reported by Paul Eggert.
68477
68478 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68481         the symbol XYZ before redefining it.  This fixes a problem with
68482         programs that don't use XYZ, when compiled on systems that define
68483         XYZ to something else.
68484
68485 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68488         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68489         writeable to group or other and (2) is intended to have a special
68490         mode bit that is set or cleared.  In such a case, the directory
68491         should be neither group- nor other-writeable until the special
68492         mode bits are right.
68493
68494 2007-01-31  Eric Blake  <ebb9@byu.net>
68495
68496         * modules/mountlist (Depends-on): Add strstr.
68497
68498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68499         bug.
68500         * modules/string (Makefile.am): Remove redundant replacement.
68501         * modules/regex (Depends-on): Add mempcpy.
68502
68503 2007-01-31  Bruno Haible  <bruno@clisp.org>
68504
68505         New module description field 'Link'.
68506         * gnulib-tool (func_usage): Document --extract-link-directive.
68507         (sed_extract_prog): Recognize 'Link' directive.
68508         (func_get_link_directive): New function.
68509         (func_import): Show summary of link directives.
68510         Handle --extract-link-directive option.
68511         * modules/acl (Link): New section.
68512         * modules/clock-time (Link): New section.
68513         * modules/euidaccess (Link): New section.
68514         * modules/gettext (Link): New section.
68515         * modules/iconv (Link): New section.
68516         * modules/lock (Link): New section.
68517         * modules/nanosleep (Link): New section.
68518         * modules/readline (Link): New section.
68519
68520 2007-01-27  Bruno Haible  <bruno@clisp.org>
68521
68522         Enforce the use of gnulib modules for unportable <string.h> functions.
68523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68524         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68525         (gl_HEADER_STRING_H_BODY): Require it.
68526         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68527         the symbol XYZ to one that gives a link error.
68528         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68529         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68530         * modules/mempcpy (configure.ac): Likewise.
68531         * modules/memrchr (configure.ac): Likewise.
68532         * modules/stpcpy (configure.ac): Likewise.
68533         * modules/stpncpy (configure.ac): Likewise.
68534         * modules/strcase (configure.ac): Likewise.
68535         * modules/strcasestr (configure.ac): Likewise.
68536         * modules/strchrnul (configure.ac): Likewise.
68537         * modules/strdup (configure.ac): Likewise.
68538         * modules/strndup (configure.ac): Likewise.
68539         * modules/strnlen (configure.ac): Likewise.
68540         * modules/strpbrk (configure.ac): Likewise.
68541         * modules/strsep (configure.ac): Likewise.
68542         * modules/strstr (configure.ac): Likewise.
68543         * modules/strtok_r (configure.ac): Likewise.
68544
68545 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68546
68547         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68548
68549 2007-01-30  Jim Meyering  <jim@meyering.net>
68550
68551         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68552
68553 2007-01-29  Bruno Haible  <bruno@clisp.org>
68554
68555         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68556         * lib/execute.c: Likewise.
68557         * lib/pipe.c: Likewise.
68558         * lib/printf-args.h: Likewise.
68559         * lib/printf-args.c: Likewise.
68560         * lib/printf-parse.c: Likewise.
68561         * lib/vasnprintf.c: Likewise.
68562
68563 2007-01-29  Eric Blake  <ebb9@byu.net>
68564
68565         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68566         declaration.
68567
68568 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/strptime.h (strptime): Use 'restrict' for args where
68571         POSIX requires this.
68572         * lib/strptime.c (strptime): Likewise.
68573         Change license notice from LGPL to GPL, since gnulib-tool will
68574         change this as needed.
68575         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68576         defined.
68577         Include "strptime.h" first, to check interface.
68578         Do not #undef _LIBC and _NL_CURRENT.
68579         Do not include <stdlib.h>; no longer needed.
68580         Include "time_r.h" and declare ptime_locale_status
68581         only if _LIBC is not defined.
68582         (__P): Remove unused macro.
68583         (match_string): Bring back glibc version, but use it only if _LIBC
68584         is defined.
68585         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68586         Remove unnecessary assertion and abort() call.
68587         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68588         * m4/strptime.m4: Fix serial number comment.
68589         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68590         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68591         (Depends-on): Add time_r.
68592
68593 2007-01-29  Bruno Haible  <bruno@clisp.org>
68594
68595         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68596         strptime.
68597         * modules/strptime (Depends-on): Add stdbool.
68598         * lib/strptime.h: Include <time.h> always. Add comments.
68599
68600 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68601
68602         * modules/strptime: New file.
68603         * lib/strptime.h: New file.
68604         * lib/strptime.c: New file.
68605         * m4/strptime.m4: New file.
68606
68607 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * MODULES.html.sh: New module mpsort.
68610         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68611
68612         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68613         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68614         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68615         All uses changed.
68616         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68617         All uses changed.
68618         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68619         to _Restrict_.
68620         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68621         the parameter matches the prototype.
68622
68623 2007-01-28  Jim Meyering  <jim@meyering.net>
68624
68625         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68626         sys/time.h here, reverting that part of the previous patch:
68627         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68628
68629 2007-01-28  Bruno Haible  <bruno@clisp.org>
68630
68631         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68632         value of $(SYS_TIME_H).
68633         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68634         remove it conditionally, too. [added by Jim Meyering]
68635         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68637         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68638         GETTIMEOFDAY_REPLACEMENT to 1.
68639
68640 2007-01-28  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68643         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68644         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68645         Set UNISTD_H instead of UNISTD_H2.
68646         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68647
68648 2007-01-28  Bruno Haible  <bruno@clisp.org>
68649
68650         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68651         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68652
68653 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68654
68655         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68656         (func_create_testdir): Ensure C locale for `grep' and `tr'
68657         character ranges.
68658         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68659         ACLOCAL_AMFLAGS parsing state machine.
68660
68661 2007-01-27  Bruno Haible  <bruno@clisp.org>
68662
68663         * modules/unistr/base: Update.
68664
68665 2007-01-27  Bruno Haible  <bruno@clisp.org>
68666
68667         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68668         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68669         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68670         modules/unistr/u32-mbtouc.
68671         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68672         * lib/unistr.h: Update.
68673         * lib/linebreak.c: Update.
68674         * modules/unistr/u32-mbtouc: Renamed from
68675         modules/unistr/u32-mbtouc-safe.
68676         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68677         * lib/unistr.h: Update.
68678         * lib/unistr/u32-to-u8.c: Update.
68679         * lib/unistr/u32-to-u16.c: Update.
68680
68681 2007-01-27  Bruno Haible  <bruno@clisp.org>
68682
68683         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68684         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68685         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68686         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68687         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68688         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68689         modules/unistr/u16-mbtouc.
68690         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68691         * lib/unistr.h: Update.
68692         * lib/linebreak.c: Update.
68693         * modules/linebreak: Update.
68694         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68695         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68696         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68697         * modules/unistr/u16-mbtouc: Renamed from
68698         modules/unistr/u16-mbtouc-safe.
68699         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68700         * lib/unistr.h: Update.
68701         * lib/unistr/u16-to-u8.c: Update.
68702         * modules/unistr/u16-to-u8: Update.
68703         * lib/unistr/u16-to-u32.c: Update.
68704         * modules/unistr/u16-to-u32: Update.
68705
68706 2007-01-27  Bruno Haible  <bruno@clisp.org>
68707
68708         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68709         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68710         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68711         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68712         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68713         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68714         modules/unistr/u8-mbtouc.
68715         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68716         * lib/unistr.h: Update.
68717         * lib/striconveh.c: Update.
68718         * modules/striconveh: Update.
68719         * lib/linebreak.c: Update.
68720         * modules/linebreak: Update.
68721         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68722         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68723         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68724         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68725         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68726         * lib/unistr.h: Update.
68727         * lib/striconveh.c: Update.
68728         * modules/striconveh: Update.
68729         * lib/unistr/u8-to-u16.c: Update.
68730         * modules/unistr/u8-to-u16: Update.
68731         * lib/unistr/u8-to-u32.c: Update.
68732         * modules/unistr/u8-to-u32: Update.
68733
68734 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68735
68736         Sync from Libtool.
68737         * lib/argz.c: Do not include strings.h nor memory.h, include
68738         string.h unconditionally.  Patch by Simon Josefsson.
68739
68740 2007-01-27  Bruno Haible  <bruno@clisp.org>
68741
68742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68743         from gl_HEADER_STRING_H_BODY.
68744         (gl_HEADER_STRING_H_BODY): Require it.
68745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68747         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68748         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68750         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68752         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68753         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68754         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68755         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68756         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68757         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68758         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68759         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68760
68761 2007-01-27  Bruno Haible  <bruno@clisp.org>
68762
68763         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68764         check_PROGRAMS into noinst_PROGRAMS.
68765         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68766         check_PROGRAMS in this case.
68767         (func_import): Set for_test to false.
68768         (func_create_testdir): Set for_test to true.
68769
68770 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68771             Bruno Haible  <bruno@clisp.org>
68772
68773         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68774         (Depends-on): Add string.
68775         (Includes): Use <string.h> instead of strcasestr.h.
68776         * modules/string (Makefile.am): Also substitute the value of
68777         REPLACE_STRCASESTR.
68778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68779         assume strcasestr is declared in <string.h> not <strings.h>. Also
68780         set REPLACE_STRCASESTR.
68781         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68782         REPLACE_STRCASESTR.
68783         * lib/strcasestr.h: Remove file.
68784         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68785         * lib/string_.h (strcasestr): New declaration.
68786
68787 2007-01-27  Bruno Haible  <bruno@clisp.org>
68788
68789         * lib/string_.h: Use 'extern'.
68790
68791 2007-01-27  Jim Meyering  <jim@meyering.net>
68792
68793         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68794         of set-but-not-used local, "q".
68795
68796         * lib/mempcpy.c: Include <config.h> before <string.h>.
68797         This fixes a compilation error on HP-UX, due to the system's
68798         "restrict"-using mempcpy prototype.
68799
68800 2007-01-26  Bruno Haible  <bruno@clisp.org>
68801
68802         Small optimization.
68803         * lib/javacomp.c: Include c-strstr.h.
68804          (is_envjavac_gcj): Use c_strstr instead of strstr.
68805         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68806
68807 2007-01-26  Bruno Haible  <bruno@clisp.org>
68808
68809         * MODULES.html.sh (Unicode string functions): Add the new modules.
68810
68811         * modules/uniconv/u32-strconv-to-locale: New file.
68812         * lib/uniconv/u32-strconv-to-locale.c: New file.
68813
68814         * modules/uniconv/u16-strconv-to-locale: New file.
68815         * lib/uniconv/u16-strconv-to-locale.c: New file.
68816
68817         * modules/uniconv/u8-strconv-to-locale: New file.
68818         * lib/uniconv/u8-strconv-to-locale.c: New file.
68819
68820         * modules/uniconv/u32-strconv-from-locale: New file.
68821         * lib/uniconv/u32-strconv-from-locale.c: New file.
68822
68823         * modules/uniconv/u16-strconv-from-locale: New file.
68824         * lib/uniconv/u16-strconv-from-locale.c: New file.
68825
68826         * modules/uniconv/u8-strconv-from-locale: New file.
68827         * lib/uniconv/u8-strconv-from-locale.c: New file.
68828
68829         * modules/uniconv/u32-strconv-to-enc: New file.
68830         * lib/uniconv/u32-strconv-to-enc.c: New file.
68831         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68832         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68833
68834         * modules/uniconv/u16-strconv-to-enc: New file.
68835         * lib/uniconv/u16-strconv-to-enc.c: New file.
68836         * lib/uniconv/u-strconv-to-enc.h: New file.
68837         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68838         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68839
68840         * modules/uniconv/u8-strconv-to-enc: New file.
68841         * lib/uniconv/u8-strconv-to-enc.c: New file.
68842         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68843         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68844
68845         * modules/uniconv/u32-strconv-from-enc: New file.
68846         * lib/uniconv/u32-strconv-from-enc.c: New file.
68847         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68848         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68849
68850         * modules/uniconv/u16-strconv-from-enc: New file.
68851         * lib/uniconv/u16-strconv-from-enc.c: New file.
68852         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68853         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68854
68855         * modules/uniconv/u8-strconv-from-enc: New file.
68856         * lib/uniconv/u8-strconv-from-enc.c: New file.
68857         * lib/uniconv/u-strconv-from-enc.h: New file.
68858         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68859         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68860
68861         * modules/uniconv/u32-conv-from-enc: New file.
68862         * lib/uniconv/u32-conv-from-enc.c: New file.
68863         * modules/uniconv/u32-conv-from-enc-tests: New file.
68864         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68865
68866         * modules/uniconv/u16-conv-from-enc: New file.
68867         * lib/uniconv/u16-conv-from-enc.c: New file.
68868         * lib/uniconv/u-conv-from-enc.h: New file.
68869         * modules/uniconv/u16-conv-from-enc-tests: New file.
68870         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68871
68872         * modules/uniconv/u8-conv-from-enc: New file.
68873         * lib/uniconv/u8-conv-from-enc.c: New file.
68874         * modules/uniconv/u8-conv-from-enc-tests: New file.
68875         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68876
68877         * modules/uniconv/base: New file.
68878         * lib/uniconv.h: New file.
68879
68880 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * doc/gnulib-tool.texi (Initial import): Update to match current
68883         behavior with strdup module.
68884         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68885         * lib/memmem.h: Remove; all uses removed.  This is now done
68886         by <string.h>.
68887         * lib/mempcpy.h: Likewise.
68888         * lib/memrchr.h: Likewise.
68889         * lib/stpcpy.h: Likewise.
68890         * lib/stpncpy.h: Likewise.
68891         * lib/strcase.h: Likewise.
68892         * lib/strchrnul.h: Likewise.
68893         * lib/strdup.h: Likewise.
68894         * lib/strndup.h: Likewise.
68895         * lib/strnlen.h: Likewise.
68896         * lib/strpbrk.h: Likewise.
68897         * lib/strsep.h: Likewise.
68898         * lib/strstr.h: Likewise.
68899         * lib/strtok_r.h: Likewise.
68900         * lib/string_.h: New file.
68901         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68902         Rely on <string.h> instead.
68903         * lib/canon-host.c: Likewise.
68904         * lib/chdir-long.c: Likewise.
68905         * lib/concatpath.c: Likewise.
68906         * lib/exclude.c: Likewise.
68907         * lib/fchdir.c: Likewise.
68908         * lib/getaddrinfo.c: Likewise.
68909         * lib/getcwd.c: Likewise.
68910         * lib/getsubopt.c: Likewise.
68911         * lib/glob.c: Likewise.
68912         * lib/hard-locale.c: Likewise.
68913         * lib/iconvme.c: Likewise.
68914         * lib/javacomp.c: Likewise.
68915         * lib/mempcpy.c: Likewise.
68916         * lib/memrchr.c: Likewise.
68917         * lib/regex_internal.h: Likewise.
68918         * lib/stpncpy.c: Likewise.
68919         * lib/strcasecmp.c: Likewise.
68920         * lib/strchrnul.c: Likewise.
68921         * lib/strdup.c: Likewise.
68922         * lib/striconv.c: Likewise.
68923         * lib/striconveh.c: Likewise.
68924         * lib/striconveha.c: Likewise.
68925         * lib/strncasecmp.c: Likewise.
68926         * lib/strndup.c: Likewise.
68927         * lib/strnlen.c: Likewise.
68928         * lib/strsep.c: Likewise.
68929         * lib/strstr.c: Likewise.
68930         * lib/strtok_r.c: Likewise.
68931         * lib/userspec.c: Likewise.
68932         * lib/w32spawn.h: Likewise.
68933         * lib/xstrndup.c: Likewise.
68934         * lib/mountlist.c (strstr): Remove decl.
68935         * m4/string_h.m4: New file.
68936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68937         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68938         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68939         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68940         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68941         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68942         Set REPLACE_STRCASECMP if necessary.
68943         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68944         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68945         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68947         HAVE_DECL_STRDUP if necessary.
68948         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68949         since gl_FUNC_STRNDUP does that now.
68950         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68951         Check for decl here...
68952         (gl_PREREQ_STRNLEN): ... not here.
68953         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68954         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68955         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68957         necessary.
68958         * modules/string: New file.
68959         * modules/memmem (Files): Remove special-purpose include file.
68960         (Depends-on): Add string.
68961         (Include): Include <string.h>, not the removed file.
68962         * modules/mempcpy: Likewise.
68963         * modules/memrchr: Likewise.
68964         * modules/stpcpy: Likewise.
68965         * modules/stpncpy: Likewise.
68966         * modules/strcase: Likewise.
68967         * modules/strchrnul: Likewise.
68968         * modules/strdup: Likewise.
68969         * modules/strndup: Likewise.
68970         * modules/strnlen: Likewise.
68971         * modules/strpbrk: Likewise.
68972         * modules/strsep: Likewise.
68973         * modules/strstr: Likewise.
68974         * modules/strtok_r: Likewise.
68975         * tests/test-dirname.c: Don't include "strdup.h", since
68976         <string.h> now suffices.
68977         * tests/test-memmem.c: Don't include "memmem.h", since
68978         <string.h> now suffices.
68979
68980 2007-01-25  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68983         *resultp is 0.
68984
68985         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68986         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68987         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68988         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68989
68990         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68991         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68992         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68993         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68994         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68995         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68996
68997 2007-01-24  Bruno Haible  <bruno@clisp.org>
68998
68999         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69001         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69002         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69003         gl_FUNC_FTS_CORE.
69004         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69005         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69006         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69007         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69008         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69009         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69010         gl_FUNC_FCHOWNAT.
69011         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69012         gl_FUNC_STRFTIME.
69013         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69014         Reported by Ralf Wildenhues.
69015
69016 2007-01-24  Bruno Haible  <bruno@clisp.org>
69017
69018         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69019         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69020         gl_GETADDRINFO.
69021         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69022         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69023         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69024
69025 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69028         Don't use 'exit'; just return from 'main'.
69029         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69030
69031         * lib/fnmatch_.h: Readjust white space and comments to match
69032         glibc, to avoid spurious diffs.
69033
69034 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69037         2004-12-01 change by Jakub Jelinek, since this code won't compile
69038         if !LIBC.  Problem reported by Bob Proulx.
69039
69040 2007-01-23  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/striconveh.c: Include c-strcaseeq.h.
69043         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69044         * modules/striconveh (Depends-on): Add c-strcaseeq.
69045
69046 2007-01-23  Bruno Haible  <bruno@clisp.org>
69047
69048         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69049
69050         * modules/c-strcaseeq: New file.
69051         * lib/c-strcaseeq.h: New file.
69052
69053         * modules/streq: New file.
69054         * lib/streq.h: New file.
69055
69056 2007-01-23  Bruno Haible  <bruno@clisp.org>
69057
69058         * modules/striconveha-tests: New file.
69059         * tests/test-striconveha.c: New file.
69060
69061         * lib/striconveha.h: Include <stdbool.h>.
69062         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69063         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69064         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69065         (mem_iconveha): New function.
69066         (str_iconveha_notranslit): Renamed from str_iconveha.
69067         (str_iconveha): New function.
69068         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69069         c-strcase.
69070
69071 2007-01-23  Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69074         encodings without forgiving before trying any encoding with handler.
69075         (str_iconveha): Try all encodings without forgiving before trying any
69076         encoding with handler.
69077
69078 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         Import the following changes from libc.
69081
69082         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69083
69084         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69085
69086         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69087
69088         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69089         normal_bracket label.
69090
69091         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69092
69093         [BZ #361]
69094         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69095         to normal_bracket after fetching the next character.
69096
69097 2007-01-22  Bruno Haible  <bruno@clisp.org>
69098
69099         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69100         argument.
69101         * lib/striconveh.c (iconv_carefully_1): New function.
69102         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69103         argument.
69104         (str_cd_iconveh): Update.
69105         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69106         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69107         * tests/test-striconveh.c (MAGIC): New macro.
69108         (new_offsets): New function.
69109         (main): Test call with and without offsets.
69110
69111 2007-01-22  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69114         * modules/sys_select (Makefile.am): Likewise.
69115         * modules/sys_socket (Makefile.am): Likewise.
69116         * modules/sys_time (Makefile.am): Likewise.
69117
69118 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         * modules/gettimeofday (License): Change from GPL to LGPL, since
69121         gettimeofday is a library function.
69122
69123 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69124
69125         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69126
69127 2007-01-21  Bruno Haible  <bruno@clisp.org>
69128
69129         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69130
69131 2007-01-21  Bruno Haible  <bruno@clisp.org>
69132
69133         * modules/striconveha: New file.
69134         * lib/striconveha.h: New file.
69135         * lib/striconveha.c: New file.
69136         * MODULES.html.sh (Internationalization functions): Add striconveha.
69137         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69138         string.
69139         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69140
69141 2007-01-21  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69144         * lib/striconveh.c (str_iconveh): Likewise.
69145
69146 2007-01-21  Bruno Haible  <bruno@clisp.org>
69147
69148         * lib/striconveh.h (mem_iconveh): New declaration.
69149         * lib/striconveh.c (mem_iconveh): New function.
69150         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69151
69152 2007-01-21  Bruno Haible  <bruno@clisp.org>
69153
69154         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69155
69156         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69157         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69158         original result buffer.
69159         (str_cd_iconveh): Update.
69160         * tests/test-striconveh.c (main): Update.
69161
69162         * lib/striconv.h (mem_cd_iconv): Change specification.
69163         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69164         result buffer.
69165         (str_cd_iconv): Update.
69166         * tests/test-striconv.c (main): Update.
69167
69168 2007-01-21  Bruno Haible  <bruno@clisp.org>
69169
69170         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69171
69172 2007-01-20  Jim Meyering  <jim@meyering.net>
69173
69174         * lib/userspec.c (parse_with_separator): If a user or group string
69175         starts with "+", skip the corresponding name-to-ID look-up, since
69176         such a look-up must fail: user and group names may not include "+".
69177
69178 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69181         since we now assume the sys_time module.
69182         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69183         check for sys/time.h; no longer needed.
69184         * modules/poll (Depends-on): Depend on sys_time.
69185
69186 2007-01-18  Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69189         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69190
69191         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69192         gettimeofday.
69193
69194         * tests/test-gettimeofday.c: Include <time.h>.
69195         (dummy): Remove variable.
69196
69197         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69198         gl_HEADER_SYS_TIME_H.
69199         (gl_HEADER_SYS_TIME_H): New macro.
69200
69201         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69202         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69204         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69205         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69206         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69207         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69208         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69209         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69210         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69211         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69212
69213         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69214         last change; it caused a compilation error when cross-compiling to
69215         Cygwin.
69216
69217 2007-01-18  Jim Meyering  <jim@meyering.net>
69218
69219         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69220         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69221         than the race-prone "test -d sys || mkdir sys".
69222         (configure.ac): Use AC_PROG_MKDIR_P.
69223         * modules/sys_select: Likewise.
69224         * modules/sys_socket: Likewise.
69225         * modules/sys_time: Likewise.
69226
69227 2007-01-18  Eric Blake  <ebb9@byu.net>
69228
69229         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69230         replace gettimeofday.
69231         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69232         name, to avoid infinite recursion.
69233
69234 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69237         module sys_time.
69238         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69239         assume timespec.h defines struct timeval.
69240         * lib/settime.c: Likewise.
69241         * lib/utimens.c: Likewise.
69242         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69243         since we now assume the gettimeofday module.
69244         * lib/tempname.c (__gen_tempname): Likewise.
69245         * lib/gettimeofday.h: Remove.
69246         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69247         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69248         Include <time.h>, for 'time()'.
69249         (localtime_buffer_addr): Also use this workaround if
69250         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69251         to simplify the uses.  All uses changed.
69252         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69253         that #undef is inside {}, and 'const' follows type name consistently.
69254         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69255         (gettimeofday): Do not use the maximum possible value for
69256         tv->tv_usec, since that might break usages other than ls.c.
69257         Instead, we'll leave ls.c alone.  This undoes today's patch
69258         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69259         we've never observed the problem but might as well keep the
69260         canary.
69261         * lib/nanosleep.c: Include timespec.h first, for interface check.
69262         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69263         now assume the sys_time module.
69264         * lib/tempname.c: Likewise.
69265         * lib/timespec.h: Likewise.
69266         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69267         needed.
69268         * lib/strftime.c: Likewise.
69269         * lib/timespec.h: Likewise.
69270         * lib/posixtm.c: Include posixtm.h first, for interface check.
69271         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69272         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69273         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69274         * lib/sys_time_.h: New file.
69275         * lib/timespec.h (struct timespec): Use long int, not long.
69276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69277         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69278         Remove obsolescent call to AC_HEADER_TIME.
69279         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69281         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69282         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69283         Likewise.
69284         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69285         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69287         into the sys_time module.  Check for gettimeofday just once.
69288         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69289         for gettimeofday signature to just check the signature.  Merely
69290         compile it, since linking doesn't test signature.  Improve test for
69291         whether gettimeofday.o is actually needed.
69292         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69293         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69294         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69295         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69296         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69297         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69298         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69299         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69300         than worrying about sys/time.h.
69301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69302         Don't bother worrying about TIME_WITH_SYS_TIME.
69303         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69304         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69305         * m4/sys_time_h.m4: New file.
69306         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69307         Don't include sys/time.h.  Return from main rather than exiting.
69308         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69309         all uses changed.
69310         * modules/gethrxtime (Depends-on): Add sys_time.
69311         * modules/gettime (Depends-on): Likewise.
69312         * modules/gettimeofday (Depends-on): Likewise.
69313         * modules/nanosleep (Depends-on): Likewise.
69314         * modules/settime (Depends-on): Likewise.
69315         * modules/tempname (Depends-on): Likewise.
69316         * modules/utimens (Depends-on): Likewise.
69317         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69318         (Include): Change back to <sys/time.h>.
69319         (Maintainer): Add self.
69320         * modules/sys_time: New file.
69321         * modules/tempname (Depends-on): Add gettimeofday.
69322         * tests/test-gettimeofday.c: Include <sys/time.h>
69323         rather than gettimeofday.h.
69324
69325 2007-01-17  Bruno Haible  <bruno@clisp.org>
69326
69327         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69328         the license default to GPL.
69329         (func_create_testdir): Don't complain if a module is LGPL and its
69330         tests module depends on GPLed modules.
69331
69332 2007-01-17  Bruno Haible  <bruno@clisp.org>
69333
69334         * lib/gettimeofday.c (gettimeofday): Add code for the case
69335         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69336         maximum possible value for tv->tv_usec, rather than the minimum one.
69337
69338 2005-10-08  Martin Lambers  <marlam@marlam.de>
69339 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69340 2007-01-16  Bruno Haible  <bruno@clisp.org>
69341
69342         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69343         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69344         gl_FUNC_GETTIMEOFDAY.
69345         (Include): Add gettimeofday.h.
69346         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69347         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69348         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69349         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69350         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69351         * lib/gettimeofday.h: New file.
69352         * lib/gettimeofday.c: Include <sys/timeb.h>.
69353         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69354         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69355         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69356         fall back on time().
69357
69358         * tests/test-gettimeofday.c: New file.
69359         * modules/gettimeofday-tests: New file.
69360
69361 2007-01-16  Eric Blake  <ebb9@byu.net>
69362
69363         * modules/fnmatch (Depends-on): Depend on wchar.
69364         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69365         * m4/fnmatch.m4: Likewise.
69366         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69367         * m4/mbchar.m4: Likewise.
69368         * modules/mbswidth (Depends-on): Depend on wchar.
69369         * lib/mbswidth.c: Assume <wchar.h>.
69370         * m4/mbswidth.m4: Likewise.
69371         * modules/quotearg (Depends-on): Depend on wchar.
69372         * lib/quotearg.c: Assume <wchar.h>.
69373         * m4/quotearg.m4: Likewise.
69374         * modules/regex (Depends-on): Depend on wchar.
69375         * lib/regex_internal.h: Assume <wchar.h>.
69376         * m4/regex.m4: Likewise.
69377         * modules/stdint (Depends-on): Depend on wchar.
69378         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69379         * m4/stdint.m4: Likewise.
69380         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69381         * modules/strftime (Depends-on): Depend on wchar.
69382         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69383         * modules/strtol (Depends-on): Depend on wchar.
69384         * lib/strtol.c: Assume <wchar.h>.
69385         * modules/wcwidth (Depends-on): Depend on wchar.
69386         * lib/wcwidth.h: Assume <wchar.h>.
69387         * m4/wcwidth.m4: Likewise.
69388
69389 2007-01-16  Bruno Haible  <bruno@clisp.org>
69390
69391         * modules/csharpexec-script: New, created from...
69392         * modules/csharpexec: ... this.
69393
69394 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69395
69396         * modules/javaexec-script: New, created from...
69397         * modules/javaexec: ... this.
69398
69399 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69400
69401         * modules/poll (Dependencies): Add sys_select.
69402
69403 2007-01-15  Jim Meyering  <jim@meyering.net>
69404
69405         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69406         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69407         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69408         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69409
69410 2007-01-15  Bruno Haible  <bruno@clisp.org>
69411
69412         * modules/striconveh: New file.
69413         * lib/striconveh.h: New file.
69414         * lib/striconveh.c: New file.
69415         * MODULES.html.sh (Internationalization functions): Add striconveh.
69416
69417         * modules/striconveh-tests: New file.
69418         * tests/test-striconveh.c: New file.
69419
69420 2007-01-15  Bruno Haible  <bruno@clisp.org>
69421
69422         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69423         not from GNU libiconv or GNU libc.
69424
69425 2007-01-15  Bruno Haible  <bruno@clisp.org>
69426
69427         * doc/gnulib-intro.texi (Copyright): Explain the different license
69428         terms for module descriptions, autoconf macros, tests, documentation.
69429
69430 2007-01-14  Bruno Haible  <bruno@clisp.org>
69431
69432         * modules/striconv-tests: New file.
69433         * tests/test-striconv.c: New file.
69434
69435 2007-01-14  Bruno Haible  <bruno@clisp.org>
69436
69437         * modules/iconv-tests: New file.
69438         * tests/test-iconv.c: New file.
69439
69440 2007-01-14  Bruno Haible  <bruno@clisp.org>
69441
69442         * gnulib-tool (func_get_license): For test modules, use the license of
69443         the main module.
69444
69445 2007-01-14  Bruno Haible  <bruno@clisp.org>
69446
69447         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69448         if iconv is found to exist.
69449
69450 2007-01-14  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/c-ctype-tests: New file.
69453         * tests/test-c-ctype.c: New file.
69454
69455 2007-01-14  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/binary-io-tests: New file.
69458         * tests/test-binary-io.sh: New file.
69459         * tests/test-binary-io.c: New file.
69460
69461 2007-01-14  Bruno Haible  <bruno@clisp.org>
69462
69463         * modules/array-oset-tests: New file.
69464         * tests/test-array_oset.c: New file.
69465
69466 2007-01-14  Bruno Haible  <bruno@clisp.org>
69467
69468         * modules/array-list-tests: New file.
69469         * tests/test-array_list.c: New file.
69470
69471 2007-01-14  Bruno Haible  <bruno@clisp.org>
69472
69473         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69474         and make.
69475         Reported by Simon Josefsson in
69476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69477
69478 2007-01-14  Bruno Haible  <bruno@clisp.org>
69479
69480         * modules/allocsa-tests: New file.
69481         * tests/test-allocsa.c: New file.
69482
69483 2007-01-14  Bruno Haible  <bruno@clisp.org>
69484
69485         * modules/fchdir (Depends-on): Add absolute-header.
69486         * modules/unistd (Depends-on): Likewise.
69487
69488 2006-12-30  Bruno Haible  <bruno@clisp.org>
69489
69490         * modules/fchdir: New file.
69491         * modules/unistd (Files): Add lib/unistd_.h.
69492         (Makefile.am): Generate unistd.h from unistd_.h.
69493         * lib/fchdir.c: New file.
69494         * lib/dirent_.h: New file.
69495         * lib/unistd_.h: New file.
69496         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69497         * m4/fchdir.m4: New file.
69498         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69499         (gl_HEADER_UNISTD): Invoke it.
69500         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69501         function.
69502         * lib/backupfile.c (opendir, closedir): Undefine.
69503         * lib/chown.c (open, close): Undefine.
69504         * lib/clean-temp.c (open, close): Undefine.
69505         * lib/copy-file.c (open, close): Undefine.
69506         * lib/execute.c (open, close): Undefine.
69507         * lib/fsusage.c (open, close): Undefine.
69508         * lib/gc-gnulib.c (open, close): Undefine.
69509         * lib/getcwd.c (opendir, closedir): Undefine.
69510         * lib/glob.c (opendir, closedir): Undefine.
69511         * lib/javacomp.c (open, close): Undefine.
69512         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69513         * lib/openat-proc.c (open, close): Undefine.
69514         * lib/pagealign_alloc.c (open, close): Undefine.
69515         * lib/pipe.c (open, close): Undefine.
69516         * lib/progreloc.c (open, close): Undefine.
69517         * lib/savedir.c (opendir, closedir): Undefine.
69518         * lib/utime.c (open, close): Undefine.
69519         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69520
69521 2007-01-10  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69524
69525 2007-01-12  Eric Blake  <ebb9@byu.net>
69526
69527         Provide a robust <wchar.h>.  Further simplifications are now
69528         possible in other modules, but not included here.
69529         * modules/wchar: New module.
69530         * m4/wchar.m4: New file.
69531         * lib/wchar_.h: Likewise.
69532         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69533         of the new module.
69534         * MODULES.html.sh (Extended multibyte and wide character utilities):
69535         New section.
69536
69537 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69540         to a reasonable default for memory allocation.
69541         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69542         file system that reports garbage st_size values for symlinks.
69543         Problem reported by Liyang Hu.
69544
69545 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69546
69547         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69548         Emacs .#* auto-save files).
69549
69550 2007-01-11  Bruno Haible  <bruno@clisp.org>
69551
69552         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69553         directory.
69554
69555 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         Use @...@ consistently in lib/wctype_.h.
69558         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69559         on it being set to 1 or 0.
69560         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69561         go back to AC_SUBSTing it.
69562         * modules/wctype (Makefile.am): Undo previous change.
69563
69564 2007-01-10  Eric Blake  <ebb9@byu.net>
69565
69566         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69567         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69568         * modules/wctype (Makefile.am): Likewise.
69569         Reported by Chris McGuire.
69570
69571 2007-01-10  Jim Meyering  <jim@meyering.net>
69572
69573         fts.c: a small readability/maintainability improvement
69574         * lib/fts.c (fts_read): Make this code slightly more readable and
69575         maintainable by hoisting the "sp->fts_cur = p" assignments to
69576         immediately follow the statements that set P.  Derived from
69577         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69578
69579 2007-01-10  Eric Blake  <ebb9@byu.net>
69580
69581         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69582         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69584         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69585         Reported by Chris McGuire.
69586
69587 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69588
69589         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69590         in sed script.
69591
69592 2007-01-09  Bruno Haible  <bruno@clisp.org>
69593
69594         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69595         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69596         variables.
69597         (func_module): Use them.
69598
69599 2007-01-09  Bruno Haible  <bruno@clisp.org>
69600
69601         * modules/unistr/base: New file.
69602         * lib/unistr.h: New file.
69603
69604         * modules/unistr/u8-to-u16: New file.
69605         * lib/unistr/u8-to-u16.c: New file.
69606
69607         * modules/unistr/u8-to-u32: New file.
69608         * lib/unistr/u8-to-u32.c: New file.
69609
69610         * modules/unistr/u16-to-u8: New file.
69611         * lib/unistr/u16-to-u8.c: New file.
69612
69613         * modules/unistr/u16-to-u32: New file.
69614         * lib/unistr/u16-to-u32.c: New file.
69615
69616         * modules/unistr/u32-to-u8: New file.
69617         * lib/unistr/u32-to-u8.c: New file.
69618
69619         * modules/unistr/u32-to-u16: New file.
69620         * lib/unistr/u32-to-u16.c: New file.
69621
69622         * modules/unistr/u8-check: New file.
69623         * modules/unistr/u16-check: New file.
69624         * modules/unistr/u32-check: New file.
69625         * lib/unistr/u8-check.c: New file.
69626         * lib/unistr/u16-check.c: New file.
69627         * lib/unistr/u32-check.c: New file.
69628
69629         * modules/unistr/u8-chr: New file.
69630         * modules/unistr/u16-chr: New file.
69631         * modules/unistr/u32-chr: New file.
69632         * lib/unistr/u8-chr.c: New file.
69633         * lib/unistr/u16-chr.c: New file.
69634         * lib/unistr/u32-chr.c: New file.
69635
69636         * modules/unistr/u8-cmp: New file.
69637         * modules/unistr/u16-cmp: New file.
69638         * modules/unistr/u32-cmp: New file.
69639         * lib/unistr/u8-cmp.c: New file.
69640         * lib/unistr/u16-cmp.c: New file.
69641         * lib/unistr/u32-cmp.c: New file.
69642
69643         * modules/unistr/u8-cpy: New file.
69644         * modules/unistr/u16-cpy: New file.
69645         * modules/unistr/u32-cpy: New file.
69646         * lib/unistr/u8-cpy.c: New file.
69647         * lib/unistr/u16-cpy.c: New file.
69648         * lib/unistr/u32-cpy.c: New file.
69649         * lib/unistr/u-cpy.h: New file.
69650
69651         * modules/unistr/u8-cpy-alloc: New file.
69652         * modules/unistr/u16-cpy-alloc: New file.
69653         * modules/unistr/u32-cpy-alloc: New file.
69654         * lib/unistr/u8-cpy-alloc.c: New file.
69655         * lib/unistr/u16-cpy-alloc.c: New file.
69656         * lib/unistr/u32-cpy-alloc.c: New file.
69657         * lib/unistr/u-cpy-alloc.h: New file.
69658
69659         * modules/unistr/u8-endswith: New file.
69660         * modules/unistr/u16-endswith: New file.
69661         * modules/unistr/u32-endswith: New file.
69662         * lib/unistr/u8-endswith.c: New file.
69663         * lib/unistr/u16-endswith.c: New file.
69664         * lib/unistr/u32-endswith.c: New file.
69665         * lib/unistr/u-endswith.h: New file.
69666
69667         * modules/unistr/u8-mblen: New file.
69668         * modules/unistr/u16-mblen: New file.
69669         * modules/unistr/u32-mblen: New file.
69670         * lib/unistr/u8-mblen.c: New file.
69671         * lib/unistr/u16-mblen.c: New file.
69672         * lib/unistr/u32-mblen.c: New file.
69673
69674         * modules/unistr/u8-mbtouc: New file.
69675         * modules/unistr/u16-mbtouc: New file.
69676         * modules/unistr/u32-mbtouc: New file.
69677         * lib/unistr/u8-mbtouc.c: New file.
69678         * lib/unistr/u16-mbtouc.c: New file.
69679         * lib/unistr/u32-mbtouc.c: New file.
69680
69681         * modules/unistr/u8-mbtouc-safe: New file.
69682         * modules/unistr/u16-mbtouc-safe: New file.
69683         * modules/unistr/u32-mbtouc-safe: New file.
69684         * lib/unistr/u8-mbtouc-safe.c: New file.
69685         * lib/unistr/u16-mbtouc-safe.c: New file.
69686         * lib/unistr/u32-mbtouc-safe.c: New file.
69687
69688         * modules/unistr/u8-move: New file.
69689         * modules/unistr/u16-move: New file.
69690         * modules/unistr/u32-move: New file.
69691         * lib/unistr/u8-move.c: New file.
69692         * lib/unistr/u16-move.c: New file.
69693         * lib/unistr/u32-move.c: New file.
69694         * lib/unistr/u-move.h: New file.
69695
69696         * modules/unistr/u8-next: New file.
69697         * modules/unistr/u16-next: New file.
69698         * modules/unistr/u32-next: New file.
69699         * lib/unistr/u8-next.c: New file.
69700         * lib/unistr/u16-next.c: New file.
69701         * lib/unistr/u32-next.c: New file.
69702
69703         * modules/unistr/u8-prev: New file.
69704         * modules/unistr/u16-prev: New file.
69705         * modules/unistr/u32-prev: New file.
69706         * lib/unistr/u8-prev.c: New file.
69707         * lib/unistr/u16-prev.c: New file.
69708         * lib/unistr/u32-prev.c: New file.
69709
69710         * modules/unistr/u8-set: New file.
69711         * modules/unistr/u16-set: New file.
69712         * modules/unistr/u32-set: New file.
69713         * lib/unistr/u8-set.c: New file.
69714         * lib/unistr/u16-set.c: New file.
69715         * lib/unistr/u32-set.c: New file.
69716         * lib/unistr/u-set.h: New file.
69717
69718         * modules/unistr/u8-startswith: New file.
69719         * modules/unistr/u16-startswith: New file.
69720         * modules/unistr/u32-startswith: New file.
69721         * lib/unistr/u8-startswith.c: New file.
69722         * lib/unistr/u16-startswith.c: New file.
69723         * lib/unistr/u32-startswith.c: New file.
69724         * lib/unistr/u-startswith.h: New file.
69725
69726         * modules/unistr/u8-stpcpy: New file.
69727         * modules/unistr/u16-stpcpy: New file.
69728         * modules/unistr/u32-stpcpy: New file.
69729         * lib/unistr/u8-stpcpy.c: New file.
69730         * lib/unistr/u16-stpcpy.c: New file.
69731         * lib/unistr/u32-stpcpy.c: New file.
69732         * lib/unistr/u-stpcpy.h: New file.
69733
69734         * modules/unistr/u8-stpncpy: New file.
69735         * modules/unistr/u16-stpncpy: New file.
69736         * modules/unistr/u32-stpncpy: New file.
69737         * lib/unistr/u8-stpncpy.c: New file.
69738         * lib/unistr/u16-stpncpy.c: New file.
69739         * lib/unistr/u32-stpncpy.c: New file.
69740         * lib/unistr/u-stpncpy.h: New file.
69741
69742         * modules/unistr/u8-strcat: New file.
69743         * modules/unistr/u16-strcat: New file.
69744         * modules/unistr/u32-strcat: New file.
69745         * lib/unistr/u8-strcat.c: New file.
69746         * lib/unistr/u16-strcat.c: New file.
69747         * lib/unistr/u32-strcat.c: New file.
69748         * lib/unistr/u-strcat.h: New file.
69749
69750         * modules/unistr/u8-strchr: New file.
69751         * modules/unistr/u16-strchr: New file.
69752         * modules/unistr/u32-strchr: New file.
69753         * lib/unistr/u8-strchr.c: New file.
69754         * lib/unistr/u16-strchr.c: New file.
69755         * lib/unistr/u32-strchr.c: New file.
69756
69757         * modules/unistr/u8-strcmp: New file.
69758         * modules/unistr/u16-strcmp: New file.
69759         * modules/unistr/u32-strcmp: New file.
69760         * lib/unistr/u8-strcmp.c: New file.
69761         * lib/unistr/u16-strcmp.c: New file.
69762         * lib/unistr/u32-strcmp.c: New file.
69763
69764         * modules/unistr/u8-strcpy: New file.
69765         * modules/unistr/u16-strcpy: New file.
69766         * modules/unistr/u32-strcpy: New file.
69767         * lib/unistr/u8-strcpy.c: New file.
69768         * lib/unistr/u16-strcpy.c: New file.
69769         * lib/unistr/u32-strcpy.c: New file.
69770         * lib/unistr/u-strcpy.h: New file.
69771
69772         * modules/unistr/u8-strcspn: New file.
69773         * modules/unistr/u16-strcspn: New file.
69774         * modules/unistr/u32-strcspn: New file.
69775         * lib/unistr/u8-strcspn.c: New file.
69776         * lib/unistr/u16-strcspn.c: New file.
69777         * lib/unistr/u32-strcspn.c: New file.
69778         * lib/unistr/u-strcspn.h: New file.
69779
69780         * modules/unistr/u8-strdup: New file.
69781         * modules/unistr/u16-strdup: New file.
69782         * modules/unistr/u32-strdup: New file.
69783         * lib/unistr/u8-strdup.c: New file.
69784         * lib/unistr/u16-strdup.c: New file.
69785         * lib/unistr/u32-strdup.c: New file.
69786         * lib/unistr/u-strdup.h: New file.
69787
69788         * modules/unistr/u8-strlen: New file.
69789         * modules/unistr/u16-strlen: New file.
69790         * modules/unistr/u32-strlen: New file.
69791         * lib/unistr/u8-strlen.c: New file.
69792         * lib/unistr/u16-strlen.c: New file.
69793         * lib/unistr/u32-strlen.c: New file.
69794         * lib/unistr/u-strlen.h: New file.
69795
69796         * modules/unistr/u8-strmblen: New file.
69797         * modules/unistr/u16-strmblen: New file.
69798         * modules/unistr/u32-strmblen: New file.
69799         * lib/unistr/u8-strmblen.c: New file.
69800         * lib/unistr/u16-strmblen.c: New file.
69801         * lib/unistr/u32-strmblen.c: New file.
69802
69803         * modules/unistr/u8-strmbtouc: New file.
69804         * modules/unistr/u16-strmbtouc: New file.
69805         * modules/unistr/u32-strmbtouc: New file.
69806         * lib/unistr/u8-strmbtouc.c: New file.
69807         * lib/unistr/u16-strmbtouc.c: New file.
69808         * lib/unistr/u32-strmbtouc.c: New file.
69809
69810         * modules/unistr/u8-strncat: New file.
69811         * modules/unistr/u16-strncat: New file.
69812         * modules/unistr/u32-strncat: New file.
69813         * lib/unistr/u8-strncat.c: New file.
69814         * lib/unistr/u16-strncat.c: New file.
69815         * lib/unistr/u32-strncat.c: New file.
69816         * lib/unistr/u-strncat.h: New file.
69817
69818         * modules/unistr/u8-strncmp: New file.
69819         * modules/unistr/u16-strncmp: New file.
69820         * modules/unistr/u32-strncmp: New file.
69821         * lib/unistr/u8-strncmp.c: New file.
69822         * lib/unistr/u16-strncmp.c: New file.
69823         * lib/unistr/u32-strncmp.c: New file.
69824
69825         * modules/unistr/u8-strncpy: New file.
69826         * modules/unistr/u16-strncpy: New file.
69827         * modules/unistr/u32-strncpy: New file.
69828         * lib/unistr/u8-strncpy.c: New file.
69829         * lib/unistr/u16-strncpy.c: New file.
69830         * lib/unistr/u32-strncpy.c: New file.
69831         * lib/unistr/u-strncpy.h: New file.
69832
69833         * modules/unistr/u8-strnlen: New file.
69834         * modules/unistr/u16-strnlen: New file.
69835         * modules/unistr/u32-strnlen: New file.
69836         * lib/unistr/u8-strnlen.c: New file.
69837         * lib/unistr/u16-strnlen.c: New file.
69838         * lib/unistr/u32-strnlen.c: New file.
69839         * lib/unistr/u-strnlen.h: New file.
69840
69841         * modules/unistr/u8-strpbrk: New file.
69842         * modules/unistr/u16-strpbrk: New file.
69843         * modules/unistr/u32-strpbrk: New file.
69844         * lib/unistr/u8-strpbrk.c: New file.
69845         * lib/unistr/u16-strpbrk.c: New file.
69846         * lib/unistr/u32-strpbrk.c: New file.
69847         * lib/unistr/u-strpbrk.h: New file.
69848
69849         * modules/unistr/u8-strrchr: New file.
69850         * modules/unistr/u16-strrchr: New file.
69851         * modules/unistr/u32-strrchr: New file.
69852         * lib/unistr/u8-strrchr.c: New file.
69853         * lib/unistr/u16-strrchr.c: New file.
69854         * lib/unistr/u32-strrchr.c: New file.
69855
69856         * modules/unistr/u8-strspn: New file.
69857         * modules/unistr/u16-strspn: New file.
69858         * modules/unistr/u32-strspn: New file.
69859         * lib/unistr/u8-strspn.c: New file.
69860         * lib/unistr/u16-strspn.c: New file.
69861         * lib/unistr/u32-strspn.c: New file.
69862         * lib/unistr/u-strspn.h: New file.
69863
69864         * modules/unistr/u8-strstr: New file.
69865         * modules/unistr/u16-strstr: New file.
69866         * modules/unistr/u32-strstr: New file.
69867         * lib/unistr/u8-strstr.c: New file.
69868         * lib/unistr/u16-strstr.c: New file.
69869         * lib/unistr/u32-strstr.c: New file.
69870         * lib/unistr/u-strstr.h: New file.
69871
69872         * modules/unistr/u8-strtok: New file.
69873         * modules/unistr/u16-strtok: New file.
69874         * modules/unistr/u32-strtok: New file.
69875         * lib/unistr/u8-strtok.c: New file.
69876         * lib/unistr/u16-strtok.c: New file.
69877         * lib/unistr/u32-strtok.c: New file.
69878         * lib/unistr/u-strtok.h: New file.
69879
69880         * modules/unistr/u8-uctomb: New file.
69881         * modules/unistr/u16-uctomb: New file.
69882         * modules/unistr/u32-uctomb: New file.
69883         * lib/unistr/u8-uctomb.c: New file.
69884         * lib/unistr/u16-uctomb.c: New file.
69885         * lib/unistr/u32-uctomb.c: New file.
69886
69887         * MODULES.html.sh (Unicode string functions): Add the new modules.
69888
69889 2007-01-08  Bruno Haible  <bruno@clisp.org>
69890
69891         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69892         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69893         subdirectories.
69894
69895 2007-01-08  Karl Berry  <karl@gnu.org>
69896
69897         * doc/error.texi: mention that main() fns must set program_name
69898         when progname is used.
69899
69900 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69903         WCTYPE_H is empty, for the benefit of builds from non-distclean
69904         directories.  Problem reported by Eric Blake in
69905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69906
69907 2007-01-08  Bruno Haible  <bruno@clisp.org>
69908
69909         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69910         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69911         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69912         PROVIDE_CANONICALIZE_FILENAME_MODE.
69913         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69914
69915 2007-01-08  Bruno Haible  <bruno@clisp.org>
69916
69917         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69918         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69919         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69920         * lib/fts.c: Likewise.
69921         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69922
69923 2006-12-25  Bruno Haible  <bruno@clisp.org>
69924
69925         * modules/utf8-ucs4-safe: New file.
69926         * lib/utf8-ucs4-safe.h: New file.
69927         * lib/unistr/utf8-ucs4-safe.c: New file.
69928
69929         * modules/utf16-ucs4-safe: New file.
69930         * lib/utf16-ucs4-safe.h: New file.
69931         * lib/unistr/utf16-ucs4-safe.c: New file.
69932
69933         * MODULES.html.sh (Unicode string functions): Add the new modules.
69934
69935 2007-01-08  Bruno Haible  <bruno@clisp.org>
69936
69937         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69938         (Depends-on): Add unitypes.
69939         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69940         (u8_mbtouc_aux): Move out to separate file.
69941         (u8_mbtouc): Use ucs4_t, uint8_t types.
69942         * lib/unistr/utf8-ucs4.c: New file.
69943
69944         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69945         (Depends-on): Add unitypes.
69946         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69947         (u16_mbtouc_aux): Move out to separate file.
69948         (u16_mbtouc): Use ucs4_t, uint16_t types.
69949         * lib/unistr/utf16-ucs4.c: New file.
69950
69951         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69952         (Depends-on): Add unitypes.
69953         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69954         (u8_uctomb_aux): Move out to separate file.
69955         (u8_uctomb): Use ucs4_t, uint8_t types.
69956         * lib/unistr/ucs4-utf8.c: New file.
69957
69958         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69959         (Depends-on): Add unitypes.
69960         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69961         (u16_uctomb_aux): Move out to separate file.
69962         (u16_uctomb): Use ucs4_t, uint16_t types.
69963         * lib/unistr/ucs4-utf16.c: New file.
69964
69965 2006-12-25  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/unitypes: New file.
69968         * lib/unitypes.h: New file.
69969         * MODULES.html.sh (func_all_modules): New section "Unicode string
69970         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69971         this section. Add unitypes.
69972
69973 2007-01-08  Bruno Haible  <bruno@clisp.org>
69974
69975         Avoid variable names that conflict with those from libtool.
69976         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69977         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69978         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69979         library_names_spec to acl_library_names_spec, hardcode_* to
69980         acl_hardcode_*.
69981         Reported by Ralf Wildenhues.
69982
69983 2007-01-08  Bruno Haible  <bruno@clisp.org>
69984
69985         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69986         definition.
69987         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69988         definition.
69989         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69990         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69991         definition.
69992         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69993         definition.
69994         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69995         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69996         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69997         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69998         definition.
69999         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70000         definition.
70001         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70002         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70003         GC_USE_<algorithm>.
70004         * lib/gc-libgcrypt.c: Likewise.
70005         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70006         * modules/gc-arctwo (configure.ac): Likewise.
70007         * modules/gc-des (configure.ac): Likewise.
70008         * modules/gc-hmac-md5 (configure.ac): Likewise.
70009         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70010         * modules/gc-md2 (configure.ac): Likewise.
70011         * modules/gc-md4 (configure.ac): Likewise.
70012         * modules/gc-md5 (configure.ac): Likewise.
70013         * modules/gc-random (configure.ac): Likewise.
70014         * modules/gc-rijndael (configure.ac): Likewise.
70015         * modules/gc-sha1 (configure.ac): Likewise.
70016
70017 2007-01-08  Bruno Haible  <bruno@clisp.org>
70018
70019         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70020         macro definition.
70021         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70022         definition.
70023         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70024         definition.
70025         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70026         * modules/fcntl-safer (configure.ac): Likewise.
70027         * modules/fopen-safer (configure.ac): Likewise.
70028         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70029         GNULIB_FWRITEERROR macro definition.
70030
70031 2007-01-08  Bruno Haible  <bruno@clisp.org>
70032
70033         * m4/gnulib-common.m4: New file.
70034         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70035         (func_get_filelist): Add m4/gnulib-common.m4.
70036
70037 2007-01-08  Bruno Haible  <bruno@clisp.org>
70038
70039         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70040         command.
70041
70042 2007-01-08  Jim Meyering  <jim@meyering.net>
70043
70044         Use a more robust test for a "can't happen" condition.
70045         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70046         narrowed the st_size value.  Presuming the "can't happen" condition
70047         is true, that narrowing could conceivably convert an invalid st_size
70048         value into a valid one.  Instead, use a change based on Matthew
70049         Woehlke's original patch.
70050
70051         Slight readability improvement: use an assert-like macro
70052         in place of literal "abort ()" uses.
70053         * lib/fts.c (fts_assert): Define.
70054         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70055         Use this macro instead of a bare 'abort'.
70056
70057 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70058
70059         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70060         simply work around them.
70061         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70062         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70063         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70064         declaring.
70065         Don't bother to define as macros, since the standard doesn't require it.
70066         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70067         longer worry about IRIX 5.3.
70068         (HAVE_WCTYPE_CTMP_BUG): Remove.
70069
70070 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70073         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70074         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70075         Problems reported by Georg Schwarz for IRIX 5.3.
70076
70077         * gnulib-tool (autoconf_minversion): Take the maximum version number
70078         found, not the minimum.  Problem reported by James Youngman.
70079
70080 2007-01-03  Karl Berry  <karl@gnu.org>
70081
70082         * doc/error.texi: new file, explaining interaction with progname.
70083         * doc/gnulib.texi: include it.  Update copyright.
70084
70085 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70086
70087         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70088         AC_CANONICAL_HOST, to improve autobuild outputs.
70089
70090 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70091             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70092
70093         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70094         sockets, server sockets, and other file descriptors.  Count errors
70095         to compute the return value.  Reorder the code a bit to be easier
70096         to follow.  Don't set event bits that were not requested (except
70097         POLLERR and POLLHUP).
70098
70099 2007-01-01  Bruno Haible  <bruno@clisp.org>
70100
70101         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70102
70103 2007-01-03  Jim Meyering  <jim@meyering.net>
70104
70105         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70106
70107 2007-01-02  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/settime (Include): Require timespec.h.
70110         * modules/nanosleep (Include): Likewise.
70111
70112 2007-01-01  Bruno Haible  <bruno@clisp.org>
70113
70114         * gnulib-tool (func_emit_copyright_notice): Bump year.
70115         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70116
70117 2007-01-01  Bruno Haible  <bruno@clisp.org>
70118
70119         Improve support for OpenBSD.
70120         * build-aux/config.rpath (libname_spec): Export.
70121         (library_names_spec): New variable. Export.
70122         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70123         library_names_spec from the config.rpath output. Locate shared library
70124         through the name pattern in library_names_spec.
70125
70126 2007-01-01  Eric Blake  <ebb9@byu.net>
70127
70128         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70129
70130 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70133         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70134         assume the C locale, and avoid an "eval" that could cause trouble.
70135         Problem with SORT reported by Bob Proulx.
70136
70137         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70138         Define.  Trivial patch from Henning Nielsen Lund, originally
70139         sent to bug-grep@gnu.org today.
70140
70141 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70142
70143         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70144         struct stat.  Problem reported by Henning Nielsen Lund.
70145         * lib/acl.c: Include acl.h first, to check interface.  Don't
70146         bother to include sys/types.h and sys/stat.h again.
70147
70148 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         Import the following change from libc; problem reported by
70151         Sven Verdoolaege.
70152
70153         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70154
70155         [BZ #1373]
70156         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70157
70158 2006-12-28  Jim Meyering  <jim@meyering.net>
70159
70160         * build-aux/announce-gen: Do not assume that the package
70161         builds any of tar.gz, tar.bz2, and .xdelta files.
70162         Suggestion from Simon Josefsson.
70163
70164 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70165
70166         * modules/announce-gen: New file.
70167
70168 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70169
70170         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70171         handles its gotchas now.
70172         * lib/mbswidth.c: Likewise.
70173         * lib/wcwidth.h: Likewise.
70174         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70175         and iswcntrl; the wctype module does this stuff now.
70176         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70178         * modules/mbchar (Depends-on): Add wctype.
70179         * modules/mbswidth (Depends-on): Likewise.
70180         * modules/wcwidth (Depends-on): Likewise.
70181
70182 2006-12-27  Eric Blake  <ebb9@byu.net>
70183
70184         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70185         module uses more than what <wctype.h> is required to provide.
70186
70187 2006-12-26  Eric Blake  <ebb9@byu.net>
70188
70189         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70190
70191 2006-12-26  Eric Blake  <ebb9@byu.net>
70192
70193         * modules/absolute-header: New module.
70194         * modules/fcntl (Depends-on): Depend on it.
70195         * modules/inttypes (Depends-on): Likewise.
70196         * modules/stdint (Depends-on): Likewise.
70197         * modules/sys_stat (Depends-on): Likewise.
70198         * modules/wctype (Depends-on): Likewise.
70199         * MODULES.html.sh (Support for building libraries and
70200         executables): Document it.
70201
70202 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * gnulib-tool (SED): Remove, undoing previous change.
70205         The problem was that it broke coreutils on Solaris, because
70206         "sed --posix" leaked into a makefile.
70207         (sed): New alias, if 'alias' and GNU sed.
70208
70209 2006-12-24  Jim Meyering  <jim@meyering.net>
70210
70211         Work around an fchownat bug in glibc-2.4:
70212         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70213         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70214         in spite of the -P option.
70215         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70216         New macros.
70217         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70218         * modules/openat (Files): Add lib/fchownat.c.
70219         * lib/openat.c (fchownat): Don't define here.  Move to...
70220         * lib/fchownat.c: ...this new file.
70221
70222 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         Fix bug reported by Bruno Haible in
70225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70226         where quotearg.c didn't compile on Mac OS X 10.2 because it
70227         lacks <wchar.h> and wint_t.
70228         * lib/wctype_.h (__wctype_wint_t): New type.
70229         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70230         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70231         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70232         Arg is now of type __wctype_wint_t, not wint_t.
70233         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70234         substitute HAVE_WINT_T.
70235         * modules/wctype (Files): Add m4/wint_t.m4.
70236         (wctype.h): Substitute HAVE_WINT_T.
70237
70238 2006-12-23  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70241
70242 2006-12-23  Bruno Haible  <bruno@clisp.org>
70243
70244         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70245         S_ISLNK.
70246         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70247         mingw.
70248
70249 2006-12-22  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/copy-file.c: Include acl.h.
70252         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70253         Close the file descriptors only after being done with copy_acl.
70254         * modules/copy-file (Depends-on): Add acl.
70255
70256 2006-12-22  Bruno Haible  <bruno@clisp.org>
70257
70258         * gnulib-tool (SED): New variable.
70259         Use $SED instead of sed everywhere.
70260
70261 2006-12-22  Bruno Haible  <bruno@clisp.org>
70262
70263         * modules/no-c++: New file.
70264         * m4/no-c++.m4: New file.
70265         * MODULES.html.sh (Support for building libraries and executables):
70266         Add no-c++.
70267
70268 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70269
70270         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70271         Include <limits.h>, and use its INT_MAX to rewrite the
70272         j loop so that it does not overflow 'int'.  Problem reported by
70273         Ralf Wildenhues in
70274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70275         Play it safe by shifting left by 1 rather than multiplying by 2,
70276         as GCC is less likely to optimize this away when the value
70277         is signed (when it assumes overflow leads to undefined behavior).
70278         Also, don't assume time_t uses two's complement.
70279
70280 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * MODULES.html.sh: New module wctype.
70283         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70284         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70285         <wctype.h>, since the new wctype module should fix this.
70286         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70287         the wctype module should arrange for it.
70288         * lib/regex_internal.h: Likewise.
70289         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70290         since the wctype module should handle this now.
70291         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70292         * modules/fnmatch (Depends-on): Add wctype.
70293         * modules/quotearg (Depends-on): Likewise.
70294         * modules/regex (Depends-on): Likewise.
70295
70296 2006-12-19  Bruno Haible  <bruno@clisp.org>
70297
70298         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70299         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70300
70301 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70302
70303         * modules/savewd (Depends-on): Fix dependency on fcntl.
70304
70305 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70308         conforms to C99, rather than relying on the user's environment
70309         setting of STDINT_H.
70310
70311 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70312         and Eric Blake  <ebb9@byu.net>
70313
70314         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70315         This is more consistent with the other defines here.
70316         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70317         Port to z/OS.  Problem reported by Paul Gilmartin.
70318         Change local vars to use gl_ prefix rather than ac_.
70319         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70320         with other defines.
70321         * modules/double-slash-root: New module.
70322         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70323         (Depends-on): Add double-slash-root.
70324         * MODULES.html.sh (File system functions): Mention new module.
70325
70326 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70329         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70330         This is for the benefit of gzip, which doesn't do i18n.
70331
70332 2006-12-12  Jim Meyering  <jim@meyering.net>
70333
70334         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70335         Reported by Andreas Schwab <schwab@suse.de>.
70336
70337 2006-12-12  Bruno Haible  <bruno@clisp.org>
70338
70339         Merge these changes.
70340         2006-09-05  Bruno Haible  <bruno@clisp.org>
70341         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70342         iconv_alloc succeeded.
70343         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70344         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70345         test for " && dest " at the end - dest is always != NULL there. Call
70346         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70347         with 2xNULL arguments, also to flush the state storage. Handle the
70348         IRIX iconv behaviour. Realloc the final result, to throw away unused
70349         memory.
70350
70351 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70352
70353         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70354         and fchmodat unconditionally, since glibc 2.4 has them.
70355         Problem reported by Arkadiusz Miskiewicz.
70356
70357 2006-12-10  Bruno Haible  <bruno@clisp.org>
70358
70359         * gnulib-tool (func_import): Show the include files only for those
70360         modules that are copied and specified.
70361         Reported by Karl Berry.
70362
70363 2006-12-08  Jim Meyering  <jim@meyering.net>
70364
70365         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70366         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70367
70368         * build-aux/announce-gen: Add two new options, both optional:
70369         --bootstrap-tools=TOOL_LIST
70370               a comma-separated list of tools, e.g.,
70371               autoconf,automake,bison,gnulib
70372         --gnulib-snapshot-date=DATE
70373               if gnulib is in the bootstrap tool list,
70374               then report this as the snapshot date.
70375               If not specified, use the current date/time.
70376               If you specify a date here, be sure it's UTC.
70377
70378 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70379
70380         * tests/test-argp-2.sh: Fix test to match actual output.
70381         (func_compare): Fix sed script to be portable.
70382
70383 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70386         workaround for this case.  It is not autoconfigured now; offhand
70387         it's hard to see how to autoconfigure it.
70388
70389 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70392         a directory that is about to be chowned.  Such a directory's
70393         initial file permissions should permit the owner only and this
70394         should not be changed until after the chown, since the group and
70395         other bits would be incorrect if they granted permission before
70396         the chown.
70397
70398         Fix porting problem for iswctype reported by Georg Schwarz in:
70399         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70400         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70401         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70402         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70403         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70404
70405 2006-12-03  Jim Meyering  <jim@meyering.net>
70406
70407         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70408         p->fts_statp may not yet be defined.
70409         (fts_read): Instead, set it in the caller, once p->fts_statp is
70410         sure to be defined, and corresponds to a top-level directory.
70411         This bug made du -x fail.  Here's the coreutils test case:
70412         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70413         Reported by Mike Frysinger.
70414
70415 2006-12-01  Jim Meyering  <jim@meyering.net>
70416
70417         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70418         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70419         Reported by Simon Josefsson.
70420
70421 2006-11-30  Jim Meyering  <jim@meyering.net>
70422
70423         * m4/warning.m4: Use the all-permissive copyright notice
70424         recommended by RMS (rather than LGPL).
70425         * m4/vararrays.m4: Likewise.
70426         * m4/flexmember.m4: Likewise.
70427
70428 2006-11-29  Bruno Haible  <bruno@clisp.org>
70429
70430         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70431         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70432         using +=.
70433         Reported by Simon Josefsson <simon@josefsson.org>.
70434
70435 2006-11-28  James Youngman <jay@gnu.org>
70436
70437         * README: Advise users that they might find the bug-gnulib@gnu.org
70438         and autotools-announce@gnu.org mailing lists useful.
70439
70440 2006-11-28  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/ptrdiff_max.m4: Remove file.
70443
70444 2006-11-21  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70447         _AC_COMPUTE_INT.
70448         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70449         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70450         _AC_COMPUTE_INT.
70451         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70452         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
70457
70458         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70459         warning from "gcc -Wshadow" about shadowing the builtin.
70460
70461 2006-11-27  Bruno Haible  <bruno@clisp.org>
70462
70463         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70464         _AC_COMPUTE_INT.
70465         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70466
70467 2006-11-27  Bruno Haible  <bruno@clisp.org>
70468             Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70471
70472 2006-11-26  Bruno Haible  <bruno@clisp.org>
70473
70474         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70475         noinst_LTLIBRARIES.
70476
70477 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70478             Bruno Haible  <bruno@clisp.org>
70479
70480         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70481         if compiling with "gcc -ansi".
70482
70483 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         Fix some incompatibilities with gcc -ansi -pedantic.
70486         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70487         if compiling pedantically with GCC, unless it's C99 or later.
70488         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70489         it mishandles gcc -ansi -pedantic as well.
70490         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70491         if gcc -pedantic.
70492         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70493         initializers for struct if -pedantic, unless it's C99 or later.
70494
70495 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70496
70497         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70498         Don't close an fd more than once. Identical atimes indicate
70499         success, not failure.
70500
70501 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70502
70503         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70504
70505 2006-11-23  Jim Meyering  <jim@meyering.net>
70506
70507         * build-aux/announce-gen: New file.  From coreutils.
70508
70509 2006-11-22  Jim Meyering  <jim@meyering.net>
70510
70511         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70512         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70513         (fts_read): Use a temporary to narrow the overused st_size member
70514         before using it in a switch statement.  Reported by Matthew Woehlke.
70515
70516         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70517         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70518
70519 2006-11-20  Bruno Haible  <bruno@clisp.org>
70520
70521         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70522         changequote instead of pairs of brackets.
70523         Reported by Andreas Schwab <schwab@suse.de>.
70524
70525 2006-11-21  Jim Meyering  <jim@meyering.net>
70526
70527         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70528         so as to remain compatible with older compilers.
70529         Patch from Michael Deutschmann.
70530
70531 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * MODULES.html.sh (File system functions): Add openat.
70534
70535         * lib/openat.h (rpl_fstatat): New macro, if
70536         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70537         (fstatat): Define to rpl_fstatat under the same conditions,
70538         unless COMPILING_FSTATAT.
70539         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70540         seems to have the bug.
70541         * lib/fstatat.c: New file.
70542         * modules/openat (Files): Add it.
70543
70544 2006-11-20  Bruno Haible  <bruno@clisp.org>
70545
70546         * Makefile: New file.
70547
70548 2006-11-20  Jim Meyering  <jim@meyering.net>
70549
70550         The beginnings of syntax-related checks for gnulib.
70551         * lib/Makefile: New file.
70552         * lib/t-idcache: New script.  Ensure that the two halves of
70553         idcache.c stay in sync.
70554
70555         * lib/idcache.c: Adjust comments in user- and group- portions to
70556         be more accurate, and to be consistent with one another.
70557
70558 2006-11-20  Jim Meyering  <jim@meyering.net>
70559
70560         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70561         continue using the flexible array member (thus, this module performs
70562         half as many malloc calls), with the addition that...
70563         (getgroup, getuser): Consistently record a non-match via an empty
70564         "name" string, and map an empty string match to a NULL return value.
70565         * modules/idcache (Depends-on): Re-add flexmember.
70566
70567         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70568         (getuidbyname, getgroup, getgidbyname): Likewise.
70569
70570         Use cleaner syntax: NULL rather than 0.
70571         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70572
70573 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70574
70575         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70576         It mishandled the case where the group was missing.
70577         Problem reported by Greg Schafer.
70578         * modules/idcache: Likewise.
70579
70580 2006-11-18  Jim Meyering  <jim@meyering.net>
70581
70582         * check-module (%exempt_header): Add exception for some
70583         conditionally-included headers.
70584
70585         * modules/i-ring (Depends-on): Add verify.
70586         (License): Change to LGPL.
70587
70588 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70589
70590         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70591         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70592         and inttostr.h.  Use snprintf rather than uinttostr, so that
70593         LGPLed code doesn't depend on GPLed.
70594
70595 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * modules/inline (License): Change from GPL to LGPL.
70598
70599 2006-11-17  Jim Meyering  <jim@meyering.net>
70600
70601         * modules/d-type (License): Switch to LGPL.
70602
70603 2006-11-15  Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70606
70607 2006-11-15  Eric Blake  <ebb9@byu.net>
70608
70609         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70610         the module dependency.
70611
70612 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70613             Bruno Haible  <bruno@clisp.org>
70614
70615         * gnulib-tool (func_create_testdir): Add license consistency check.
70616
70617 2006-11-15  Eric Blake  <ebb9@byu.net>
70618
70619         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70620         random "(cached)" in configure output.
70621
70622 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70623
70624         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70625         test for conforming inttypes.h is both announced and cached.
70626
70627         * MODULES.html.sh (seen_modules, seen_files): New variables.
70628         (func_module): Rewrite to use a few less gnulib-tool and sed
70629         invocations.  Avoid a couple of quadratic algorithms for ...
70630         (missed_modules, missed_files): ... these, with ...
70631         (func_append, func_tmpdir): ... these new functions, from
70632         gnulib-tool.  Analogously, install traps for cleanup.
70633
70634         * tests/test-gc.c (main): Remove unused variables.
70635         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70636
70637 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * modules/inttostr (License): Change to LGPL.
70640
70641 2006-11-14  Eric Blake  <ebb9@byu.net>
70642
70643         * modules/tempname (License): Change to LGPL.
70644
70645 2006-11-14  Eric Blake  <ebb9@byu.net>
70646
70647         * doc/functions.texi (Function Portability): *printf functions on
70648         Cygwin now understand all POSIX size specifiers.
70649
70650 2006-11-14  Bruno Haible  <bruno@clisp.org>
70651
70652         * modules/c-ctype (License): Change to LGPL.
70653
70654 2006-11-12  Bruno Haible  <bruno@clisp.org>
70655
70656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70657         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70658         for GNOME libraries, for which the include files are installed in
70659         subdirectories of $prefix/include.
70660
70661 2006-11-12  Bruno Haible  <bruno@clisp.org>
70662
70663         * m4/lib-link.m4: Require at least autoconf-2.54.
70664         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70665         name to underscores for the --with option.
70666
70667 2006-11-13  Bruno Haible  <bruno@clisp.org>
70668
70669         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70670         the tests directory.
70671         Reported by Ralf Wildenhues.
70672
70673 2006-11-13  Bruno Haible  <bruno@clisp.org>
70674
70675         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70676         (func_emit_initmacro_end): Undo the override here.
70677         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70678         Works around the famous automake error in coreutils.
70679
70680 2006-11-13  Eric Blake  <ebb9@byu.net>
70681
70682         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70683         element, not its node.
70684
70685 2006-11-12  Bruno Haible  <bruno@clisp.org>
70686
70687         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70688         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70689
70690 2006-11-12  Bruno Haible  <bruno@clisp.org>
70691
70692         * gnulib-tool: New option --local-symlink.
70693         (func_usage): Document it.
70694         (lsymbolic): New variable.
70695         (func_import, func_create_testdir): If --symlink was not specified,
70696         test whether --local-symlink was specified and the file comes from
70697         the local_gnulib_dir.
70698
70699 2006-11-12  Bruno Haible  <bruno@clisp.org>
70700
70701         * gnulib-tool (func_ln): New function.
70702         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70703
70704 2006-11-12  Bruno Haible  <bruno@clisp.org>
70705
70706         Finish support for source files in subdirectories.
70707         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70708         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70709         AUTOMAKE_OPTIONS.
70710         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70711
70712 2006-11-12  Bruno Haible  <bruno@clisp.org>
70713
70714         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70715         EXTRA_lib_SOURCES augmentation.
70716         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70717
70718 2006-11-12  Jim Meyering  <jim@meyering.net>
70719
70720         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70721         file descriptors.  This also averts a failure on systems with
70722         native openat support when a traversed directory lacks "x" access.
70723         * lib/fts_.h: Include "i-ring.h"
70724         (struct FTS) [fts_fd_ring]: New member.
70725         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70726         (FCHDIR): Add parentheses.
70727         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70728         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70729         When descending, rather than simply closing the previous
70730         fts_cwd_fd value, push that file descriptor onto the ring.
70731         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70732         (fts_open): Initialize the new fd_ring member.
70733         (fts_close): Clear the ring.
70734         (fts_safe_changedir): When possible, use our new fd_ring to skip
70735         the diropen and fstat and dev/ino comparison that would normally
70736         accompany a virtual `chdir ("..")'.
70737
70738         * modules/fts (Depends-on): Add i-ring.
70739         * modules/i-ring: New module.
70740         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70741         * m4/i-ring.m4: New file.
70742
70743 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70744
70745         * gnulib-tool (func_create_testdir): Fix replacement of
70746         `build-aux' in configure.ac.  Run autotools in gltests
70747         subdirectory.
70748         (func_create_testdir, func_create_megatestdir, test): There is
70749         no need for '--force' in most autotool invocations in a new
70750         tree.  Actually fail the whole test if any of the tools, or the
70751         configure or make stages fail.
70752
70753         Sync from Automake.
70754         * build-aux/gnupload: Revert last change.  Add pointer to upload
70755         instructions of the GNU Maintenance Instructions.
70756         Suggestion by Karl Berry.
70757
70758 2006-11-10  Jim Meyering  <jim@meyering.net>
70759
70760         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70761
70762 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70765         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70766         (bind_textdomain_codeset) [! ENABLE_NLS]:
70767         Evaluate all the arguments.  That way, callers get compatible behavior
70768         if the arguments have side effects.  Also, it avoids some GCC
70769         diagnostics in some cases; Joel E. Denny reported problems when Bison
70770         was configured with --enable-gcc-warnigs.
70771
70772 2006-11-10  Jim Meyering  <jim@meyering.net>
70773
70774         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70775         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70776         account.
70777
70778 2006-11-10  Jim Meyering  <jim@meyering.net>
70779
70780         * modules/inline: New file/module.
70781         * modules/xalloc (Files): Remove m4/inline.m4.
70782         (Depends-on): Add inline, instead.
70783         * modules/oset: Likewise.
70784         * modules/list: Likewise.
70785
70786 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70789         Problem reported by Matthew Woehlke.
70790
70791 2006-11-09  Bruno Haible  <bruno@clisp.org>
70792
70793         * lib/tempname.c (gen_tempname): Remove variant that invokes
70794         __gen_tempname.
70795         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70796         __gen_tempname.
70797
70798 2006-11-08  Bruno Haible  <bruno@clisp.org>
70799
70800         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70801         to 'yes' instead of 'cross-compiling'.
70802
70803 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * lib/quotearg.h (quotearg_free): New decl.
70806         * lib/quotearg.c (quotearg_free): New function.
70807         (slot0, nslots, slotvec0, slotvec):
70808         Now file-scope so that quotearg_free can get at them.
70809
70810 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70811
70812         Sync from Automake.
70813         * build-aux/gnupload: Add missing 'gnu' to example URL.
70814         Report by Karl Berry.
70815
70816 2006-11-08  Bruno Haible  <bruno@clisp.org>
70817
70818         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70819         Suggested by Paul Eggert.
70820
70821 2006-11-08  Jim Meyering  <jim@meyering.net>
70822
70823         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70824         It's already included if !_LIBC.
70825         (fts_safe_changedir): Add a comment.
70826
70827 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70830         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70831         Matthew Woehlke.
70832
70833         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70834         definitions up, to avoid colliding with change below.
70835         (static_inline) [HAVE_INLINE]: New macro.
70836         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70837         Provide extern decls when !HAVE_INLINE.  Do not define unless
70838         static_inline is defined, either by us or by xmalloc.c.  Use
70839         static_inline rather than static inline.
70840         (XCALLOC): Optimize sizeof(T) = 1 case.
70841         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70842
70843 2006-11-07  Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70846         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70847         AC_C_INLINE.
70848         * modules/xalloc (Files): Add m4/inline.m4.
70849
70850 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70851
70852         * README: Fix typo.
70853         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70854         (Miscellanous Notes): ...from this.
70855
70856 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70859         Mention that offsetof should be used instead of sizeof.
70860         From Bruno Haible.
70861
70862 2006-11-07  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70865
70866 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70869         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70870         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70871         (gl_tree_add_before, gl_tree_add_after):
70872         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70873         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70874         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70875         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70876         (gl_linked_add_after, gl_linked_add_at): Likewise.
70877         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70878         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70879         (gl_tree_add_before, gl_tree_add_after): Likewise.
70880         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70881         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70882         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70883
70884 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70885
70886         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70887
70888 2006-11-06  Bruno Haible  <bruno@clisp.org>
70889
70890         * m4/inline.m4: New file.
70891         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70892         * modules/list (Files): Add m4/inline.m4.
70893         * modules/oset (Files): Likewise.
70894
70895 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * lib/idcache.c: Include <stddef.h>, for offsetof.
70898         (struct userid.name): Change from char * to a flexible array member.
70899         All uses changed.
70900         * modules/idcache (Depends-on): Add flexmember.
70901
70902         * MODULES.html.sh (Core language properties): New module flexmember.
70903         * modules/flexmember, m4/flexmember.m4: New files.
70904
70905         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70906         inline functions that are identical with the old xnmalloc_inline,
70907         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70908         that we can avoid some unnecessary integer multiplications and
70909         divisions in the common case where the element size is known at
70910         compile time.
70911         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70912         needed.
70913         (xnboundedmalloc): Remove.
70914         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70915         arguments, for consistency with rest of this header.
70916         (xcharalloc): Rewrite using XNMALLOC.
70917         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70918         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70919         versions have been moved to lib/xalloc.h and renamed to be the
70920         non-*_inline versions.
70921         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70922         and xnrealloc functions, since those functions are now inline and
70923         now call us.
70924         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70925         renaming described above.
70926         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70927         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70928         captures the dependency in AC_C_INLINE.
70929
70930         New module canonicalize-lgpl, proposed by Charles Wilson in
70931         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70932         with a few small changes afterwards.
70933         * MODULES.html.sh (File system functions): New module
70934         canonicalize-lgpl.
70935         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70936         and canonicalize_file_name.
70937         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70938         * modules/canonicalize-lgpl: New files.
70939
70940 2006-11-05  Bruno Haible  <bruno@clisp.org>
70941
70942         * gnulib-tool (func_import, func_create_testdir): Create directories
70943         also for files in subdirectories of lib/.
70944
70945 2006-11-05  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70948         ANSI C compliant.
70949
70950 2006-11-03  Bruno Haible  <bruno@clisp.org>
70951
70952         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70953         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70954         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70955         (xnboundedmalloc): New inline function.
70956         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70957         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70958         xmalloc.
70959         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70960         xmalloc.
70961         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70962         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70963         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70964         xmalloc.
70965         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70966         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70967         xmalloc.
70968         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70969         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70970         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70971         xmalloc.
70972         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70973         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70974         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70975         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70976         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70977         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70978         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70979
70980 2006-11-03  Bruno Haible  <bruno@clisp.org>
70981
70982         * lib/c-ctype.h [C++]: Define functions without name mangling.
70983         * lib/fwriteerror.h [C++]: Likewise.
70984         * lib/gcd.h [C++]: Likewise.
70985         * lib/linebreak.h [C++]: Likewise.
70986
70987 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70990         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70991         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70992         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70993         Check for functions and headers just once.
70994         Check for declaration of canonicalize_file_name.
70995         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70996
70997 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70998
70999         * gnulib-tool (func_import): Fix typo in actioncmd.
71000
71001 2006-11-02  Bruno Haible  <bruno@clisp.org>
71002
71003         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71004         newline sequence in the Makefile.am snippet as a space, like "make"
71005         does.
71006         Reported by Roger Persson <perrog@gmail.com>.
71007
71008 2006-11-01  Bruno Haible  <bruno@clisp.org>
71009
71010         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71011         already declared in <string.h>.
71012         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71013
71014 2006-11-01  Bruno Haible  <bruno@clisp.org>
71015
71016         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71017         * lib/strcase.h: Include <string.h>.
71018         (strcasecmp): Define to rpl_strcasecmp here.
71019
71020 2006-11-01  Bruno Haible  <bruno@clisp.org>
71021
71022         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71023
71024 2006-11-01  Eric Blake  <ebb9@byu.net>
71025
71026         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71027
71028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71029
71030 2006-10-29  Bruno Haible  <bruno@clisp.org>
71031
71032         Make it compile in C++ mode.
71033         * lib/full-write.c (full_rw): Add a cast.
71034
71035 2006-11-01  Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71038         be POSIX compliant.
71039         Reported by Roger Persson <perrog@gmail.com>.
71040
71041 2006-11-01  Eric Blake  <ebb9@byu.net>
71042
71043         * lib/getopt_.h: Fix comments.
71044
71045 2006-10-31  Eric Blake  <ebb9@byu.net>
71046
71047         * modules/tmpdir (Depends-on): Add sys_stat.
71048         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71049         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71050         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71051         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71052         tempname.
71053
71054 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         Avoid some C++ diagnostics reported by Bruno Haible.
71057         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71058         xmalloc.
71059         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71060         (struct slotvec): Move to top level.
71061         (quotearg_n_options): Rewrite to avoid xmalloc.
71062         * lib/xalloc.h (xcharalloc): New function.
71063         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71064         [defined __cplusplus]: Add function template that provides result
71065         type propagation.  This part of the change is from Bruno Haible.
71066
71067 2006-10-29  Bruno Haible  <bruno@clisp.org>
71068
71069         Make it compile in C++ mode.
71070         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71071         * lib/strnlen1.c (strnlen1): Cast memchr result.
71072         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71073         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71074         (create_temp_dir): Rename local variable 'template'.
71075         (compile_csharp_using_sscli): Add cast.
71076         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71077         * lib/findprog.c (find_in_path): Likewise.
71078         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71079         * lib/wait-process.c (register_slave_subprocess): Likewise.
71080
71081 2006-10-22  Bruno Haible  <bruno@clisp.org>
71082
71083         * modules/tsearch: New file.
71084         * lib/tsearch.h: New file.
71085         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71086         * m4/tsearch.m4: New file.
71087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71088
71089 2006-10-29  Eric Blake  <ebb9@byu.net>
71090
71091         * lib/arcfour.c: Assume config.h.
71092         * lib/arctwo.c: Likewise.
71093         * lib/base64.c: Likewise.
71094         * lib/check-version.c: Likewise.
71095         * lib/crc.c: Likewise.
71096         * lib/des.c: Likewise.
71097         * lib/gc-gnulib.c: Likewise.
71098         * lib/gc-libgcrypt.c: Likewise.
71099         * lib/gc-pbkdf2-sha1.c: Likewise.
71100         * lib/getaddrinfo.c: Likewise.
71101         * lib/getdelim.c: Likewise.
71102         * lib/getline.c: Likewise.
71103         * lib/hmac-md5.c: Likewise.
71104         * lib/hmac-sha1.c: Likewise.
71105         * lib/iconvme.c: Likewise.
71106         * lib/md2.c: Likewise.
71107         * lib/md4.c: Likewise.
71108         * lib/memxor.c: Likewise.
71109         * lib/read-file.c: Likewise.
71110         * lib/readline.c: Likewise.
71111         * lib/rijndael-alg-fst.c: Likewise.
71112         * lib/rijndael-api-fst.c: Likewise.
71113         * lib/xgetdomainname.c: Likewise.
71114
71115 2006-10-28  Eric Blake  <ebb9@byu.net>
71116
71117         * lib/xstrndup.c: Assume config.h.
71118
71119 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71122         stat-macros.h is now for our own macros, whereas stat_h is for
71123         macros in the <sys/stat.h> name space.
71124         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71125         (STAT_MACROS_H): Remove.
71126         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71127         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71128         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71129         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71130         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71131         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71132         Move these macros to ...
71133         * lib/stat_.h: here.  Don't include stat-macros.h.
71134         * lib/canonicalize.c: Don't include stat-macros.h.
71135         * lib/chown.c: Likewise.
71136         * lib/euidaccess.c: Likewise.
71137         * lib/file-type.c: Likewise.
71138         * lib/filemode.c: Likewise.
71139         * lib/glob.c: Likewise.
71140         * lib/isapipe.c: Likewise.
71141         * lib/lchown.c: Likewise.
71142         * lib/lstat.c: Likewise.
71143         * lib/mkdir-p.c: Likewise.
71144         * lib/rmdir.c: Likewise.
71145         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71147         unless mkdir isn't declared, to speed up 'configure'.
71148         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71149         would define all the S_* symbols.
71150         * modules/canonicalize (Depends-on):
71151         Depend on sys_stat, not stat-macros.
71152         * modules/chown: Likewise.
71153         * modules/euidaccess: Likewise.
71154         * modules/filemode: Likewise.
71155         * modules/file-type: Likewise.
71156         * modules/glob: Likewise.
71157         * modules/isapipe: Likewise.
71158         * modules/lchown: Likewise.
71159         * modules/lstat: Likewise.
71160         * modules/mkancesdirs: Likewise.
71161         * modules/rmdir: Likewise.
71162         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71163         * modules/modechange: Likewise.
71164         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71165         (configure.ac): Remove gl_STAT_MACROS.
71166         * modules/sys_stat (Depends-on): Remove stat-macros.
71167
71168 2006-10-27  Bruno Haible  <bruno@clisp.org>
71169
71170         * m4/signed.m4: Remove file.
71171         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71172         invocation.
71173         * modules/vasnprintf (Files): Remove m4/signed.m4.
71174
71175 2006-10-27  Bruno Haible  <bruno@clisp.org>
71176
71177         Update to GNU gettext 0.16.
71178         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71179         m4/inttypes-h.m4, m4/signed.m4.
71180         * m4/gettext.m4: Update to GNU gettext 0.16.
71181         * m4/intl.m4: New file, from GNU gettext.
71182         * m4/intldir.m4: New file, from GNU gettext.
71183         * config/srclist.txt: Update
71184
71185 2006-10-27  Eric Blake  <ebb9@byu.net>
71186
71187         * MODULES.html.sh: Document tempname.
71188         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71189         dependencies.
71190         (Files): Move lib/tempname.c...
71191         * modules/tempname: ...to this new module.
71192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71193         (gl_PREREQ_TEMPNAME): Move...
71194         * m4/tempname.m4: ...to this new file.
71195         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71196         * modules/sys_stat (Depends-on): Add stat-macros.
71197         * lib/stat_.h (includes): Pick up stat macros.
71198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71199         if stat macros are broken.
71200         * lib/tempname.c (includes): No need to include "stat-macros.h".
71201         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71202         (direxists, __path_search) [!_LIBC]: Don't compile these in
71203         gnulib; the tmpdir module covers that.
71204         * lib/tempname.h: New file.
71205
71206 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * COPYING: Explain how gnulib-tool converts licence headers.
71209         Almost all wording by Eric Blake.
71210
71211 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * lib/mbchar.h (is_basic_table): Make read-only.
71214         * lib/mbchar.c (is_basic_table): Likewise.
71215         Reported by John Darrington.
71216
71217 2006-10-25  Bruno Haible  <bruno@clisp.org>
71218
71219         * lib/progname.h (set_program_name): Undefine before defining.
71220
71221 2006-10-25  Bruno Haible  <bruno@clisp.org>
71222
71223         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71224         false for non-gcc C++ compilers.
71225         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71226
71227 2006-10-24  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71230         iconv implementations like Irix iconv.
71231
71232 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71233
71234         * modules/vararrays: New file.
71235         * m4/vararrays.m4: New file, taken from diffutils.
71236         * MODULES.html.sh: New module vararrays.
71237
71238 2006-10-24  Karl Berry  <karl@gnu.org>
71239
71240         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71241         Don't call GNU Unix.
71242
71243 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71244
71245         * users.txt: Add Libtool.
71246
71247         Sync from Libtool:
71248
71249         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71252         to gnulib's policy of including config.h unconditionally.
71253
71254 2006-10-24  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/wcwidth (Files): Add m4/wint_t.m4.
71257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71258         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71259
71260 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71261
71262         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71263         to pacify GCC with some -W flags enabled.  Problem reported by
71264         Bruno Haible.
71265
71266 2006-10-24  Jim Meyering  <jim@meyering.net>
71267
71268         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71269         Reported by Karl Berry.
71270
71271 2006-10-23  Bruno Haible  <bruno@clisp.org>
71272
71273         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71274
71275 2006-10-24  Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/gl_list.h: Use C comment style, not C++ comment style.
71278
71279 2006-10-23  Eric Blake  <ebb9@byu.net>
71280
71281         * lib/getaddrinfo.c (includes): Add missing include.
71282
71283 2006-10-23  Bruno Haible  <bruno@clisp.org>
71284             Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         Ability to rename obstack_free.
71287         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71288         obstack_free.
71289         (obstack_free): Invoke the __obstack_free macro.
71290         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71291
71292 2006-10-23  Bruno Haible  <bruno@clisp.org>
71293             Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71296         __argc, __argv from the declaration. (They are defined as macros on
71297         mingw.)
71298
71299 2006-10-22  Bruno Haible  <bruno@clisp.org>
71300
71301         * doc/gnulib-intro.texi: New file.
71302         * doc/gnulib.texi: Include it.
71303
71304 2006-10-21  Bruno Haible  <bruno@clisp.org>
71305
71306         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71307         "Introduction", "Miscellanous Notes", "Particular Modules".
71308
71309 2006-10-21  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71312         Change mostlyclean-local rule to avoid sh syntax error from bash
71313         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71314
71315 2006-10-23  Jim Meyering  <jim@meyering.net>
71316
71317         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71318         in place of snprintf.
71319
71320         * modules/inttostr (Files): Add lib/uinttostr.c.
71321         * lib/uinttostr.c (inttostr): New file/function.
71322         * lib/inttostr.h (uinttostr): Declare.
71323         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71324         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71325         Add uinttostr.
71326         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71327
71328 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * lib/canonicalize.c (ELOOP): Define if not already defined.
71331         Problem reported by Bruno Haible in
71332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71333
71334 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71337         Problem reported by Perry Smith and Ville Laurikari.
71338
71339         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71340         uses.
71341
71342 2006-10-19  Bruno Haible  <bruno@clisp.org>
71343
71344         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71345         for mingw.
71346
71347 2006-10-19  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71350         Needed for mingw.
71351
71352 2006-10-19  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71355
71356 2006-10-19  Bruno Haible  <bruno@clisp.org>
71357
71358         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71359         it.
71360
71361 2006-10-19  Bruno Haible  <bruno@clisp.org>
71362
71363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71364         invocation.
71365
71366 2006-10-19  Bruno Haible  <bruno@clisp.org>
71367
71368         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71369         mountlist by default.
71370
71371 2006-10-16  Bruno Haible  <bruno@clisp.org>
71372
71373         * lib/c-strstr.c: Include c-strstr.h.
71374
71375 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71376
71377         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71378         in a slash.
71379
71380 2006-10-18  Bruno Haible  <bruno@clisp.org>
71381
71382         * lib/lock.h [C++]: Wrap definitions in extern "C".
71383
71384 2006-10-18  Bruno Haible  <bruno@clisp.org>
71385
71386         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71387         gl_LIBOBJS list.
71388
71389 2006-10-18  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71392
71393 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * lib/xstrtol.h: Include gettext.h.
71396         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71397         Problem reported by Eric Blake.
71398         * modules/xstrtol (Depends-on): Add gettext-h.
71399
71400 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71401
71402         * lib/strftime.c (advance): New macro.
71403         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71404         incomplete type, so you can't add 0 to it.  Problem and patch
71405         reported by Eelco Dolstra for dietlibc.
71406
71407 2006-10-18  Jim Meyering  <jim@meyering.net>
71408
71409         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71410         type for a local, and rename it: s/up/user_proc/.
71411
71412 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71413
71414         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71415         READ_UTMP_USER_PROCESS.
71416         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71417
71418 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71421         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71422
71423 2006-10-17  Eric Blake  <ebb9@byu.net>
71424
71425         * lib/sigprocmask.c (sigprocmask): Fix typo.
71426
71427         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71428
71429         * modules/clean-temp (Makefile.am): Don't add to make output...
71430         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71431         config.h.
71432
71433 2006-10-17  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71436         differently if DEFAULT_TEXT_DOMAIN is set.
71437
71438 2006-10-16  Bruno Haible  <bruno@clisp.org>
71439
71440         * lib/clean-temp.c: Include fwriteerror.h.
71441
71442 2006-10-16  Bruno Haible  <bruno@clisp.org>
71443
71444         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71445
71446 2006-10-16  Bruno Haible  <bruno@clisp.org>
71447
71448         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71449         * lib/sigprocmask.h: Include <sys/types.h>.
71450         (sigset_t): Use the system's definition if present.
71451
71452 2006-10-17  Eric Blake  <ebb9@byu.net>
71453
71454         * lib/xvasprintf.c (includes): Assume config.h.
71455         * lib/xasprintf.c (includes): Likewise.
71456
71457 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71460         at least as wide as intmax_t.
71461
71462 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71463
71464         (Imported from Automake.)
71465         * build-aux/gnupload: Update to version 1.1 of directive file.
71466
71467 2006-10-16  Eric Blake  <ebb9@byu.net>
71468
71469         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71470         match Automake 1.10a.
71471
71472 2006-10-14  Bruno Haible  <bruno@clisp.org>
71473
71474         * modules/sigprocmask: New file.
71475         * lib/sigprocmask.h: New file.
71476         * lib/sigprocmask.c: New file.
71477         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71478         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71479         request sigprocmask.o.
71480         (gl_PREREQ_SIGPROCMASK): New macro.
71481         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71482         (Depends-on): Add sigprocmask.
71483         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71484         gt_SIGNALBLOCKING. Test for 'raise' only once.
71485         * lib/fatal-signal.c: Include sigprocmask.h.
71486         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71487         unblock_fatal_signals): Define always.
71488         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71489         sigprocmask.
71490
71491 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         Sync from Automake.
71494         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71495         which incorrectly sets the mode of an existing destination
71496         directory.  In some cases the unpatched install-sh could do the
71497         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71498         system.  We hope this is rare in practice, but it's clearly worth
71499         fixing.  Problem reported by Alex Unleashed in
71500         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71501         Also, don't bother to check for -m bugs unless we're using -m;
71502         suggested by Stepan Kasal.
71503
71504 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71505
71506         Sync from Automake.
71507         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71508         `-c' flag, so they appear at the same position as in %FASTDEP%
71509         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71510         which ignores unknown options only after the first non-option.
71511         Bug report against M4 by Nelson H. F. Beebe.
71512
71513 2006-10-13  Jim Meyering  <jim@meyering.net>
71514
71515         Fix a bug in yesterday's change.
71516         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71517         p->fts_statp->st_dev would be used uninitialized.
71518         Ensures that we always call fts_stat on the very first entry.
71519         Miklos Szeredi reported that find -xdev stopped working.
71520
71521 2006-10-12  Bruno Haible  <bruno@clisp.org>
71522
71523         * gnulib-tool (func_get_automake_snippet): Append an automatically
71524         computed EXTRA_DIST augmentation.
71525         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71526         * modules/alloca-opt (Makefile.am): Likewise.
71527         * modules/allocsa (Makefile.am): Likewise.
71528         * modules/arcfour (Makefile.am): Likewise.
71529         * modules/arctwo (Makefile.am): Likewise.
71530         * modules/argmatch (Makefile.am): Likewise.
71531         * modules/argz (Makefile.am): Likewise.
71532         * modules/atexit (Makefile.am): Likewise.
71533         * modules/backupfile (Makefile.am): Likewise.
71534         * modules/byteswap (Makefile.am): Likewise.
71535         * modules/c-strtod (Makefile.am): Likewise.
71536         * modules/c-strtold (Makefile.am): Likewise.
71537         * modules/calloc (Makefile.am): Likewise.
71538         * modules/canon-host (Makefile.am): Likewise.
71539         * modules/canonicalize (Makefile.am): Likewise.
71540         * modules/chdir-long (Makefile.am): Likewise.
71541         * modules/chdir-safer (Makefile.am): Likewise.
71542         * modules/check-version (Makefile.am): Likewise.
71543         * modules/chown (Makefile.am): Likewise.
71544         * modules/cloexec (Makefile.am): Likewise.
71545         * modules/close-stream (Makefile.am): Likewise.
71546         * modules/closeout (Makefile.am): Likewise.
71547         * modules/crc (Makefile.am): Likewise.
71548         * modules/csharpexec (Makefile.am): Likewise.
71549         * modules/cycle-check (Makefile.am): Likewise.
71550         * modules/des (Makefile.am): Likewise.
71551         * modules/dev-ino (Makefile.am): Likewise.
71552         * modules/dirfd (Makefile.am): Likewise.
71553         * modules/dirname (Makefile.am): Likewise.
71554         * modules/dup2 (Makefile.am): Likewise.
71555         * modules/eealloc (Makefile.am): Likewise.
71556         * modules/error (Makefile.am): Likewise.
71557         * modules/euidaccess (Makefile.am): Likewise.
71558         * modules/exclude (Makefile.am): Likewise.
71559         * modules/exitfail (Makefile.am): Likewise.
71560         * modules/fcntl-safer (Makefile.am): Likewise.
71561         * modules/fcntl (Makefile.am): Likewise.
71562         * modules/file-type (Makefile.am): Likewise.
71563         * modules/fileblocks (Makefile.am): Likewise.
71564         * modules/filemode (Makefile.am): Likewise.
71565         * modules/filenamecat (Makefile.am): Likewise.
71566         * modules/fnmatch (Makefile.am): Likewise.
71567         * modules/fopen-safer (Makefile.am): Likewise.
71568         * modules/fpending (Makefile.am): Likewise.
71569         * modules/fprintftime (Makefile.am): Likewise.
71570         * modules/free (Makefile.am): Likewise.
71571         * modules/fsusage (Makefile.am): Likewise.
71572         * modules/ftruncate (Makefile.am): Likewise.
71573         * modules/fts (Makefile.am): Likewise.
71574         * modules/gc-arcfour (Makefile.am): Likewise.
71575         * modules/gc-des (Makefile.am): Likewise.
71576         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71577         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71578         * modules/gc-md4 (Makefile.am): Likewise.
71579         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71580         * modules/gc-sha1 (Makefile.am): Likewise.
71581         * modules/gc (Makefile.am): Likewise.
71582         * modules/getaddrinfo (Makefile.am): Likewise.
71583         * modules/getcwd (Makefile.am): Likewise.
71584         * modules/getdelim (Makefile.am): Likewise.
71585         * modules/getdomainname (Makefile.am): Likewise.
71586         * modules/getgroups (Makefile.am): Likewise.
71587         * modules/gethostname (Makefile.am): Likewise.
71588         * modules/gethrxtime (Makefile.am): Likewise.
71589         * modules/getline (Makefile.am): Likewise.
71590         * modules/getloadavg (Makefile.am): Likewise.
71591         * modules/getlogin_r (Makefile.am): Likewise.
71592         * modules/getndelim2 (Makefile.am): Likewise.
71593         * modules/getopt (Makefile.am): Likewise.
71594         * modules/getpagesize (Makefile.am): Likewise.
71595         * modules/getpass-gnu (Makefile.am): Likewise.
71596         * modules/getpass (Makefile.am): Likewise.
71597         * modules/getsubopt (Makefile.am): Likewise.
71598         * modules/gettime (Makefile.am): Likewise.
71599         * modules/gettimeofday (Makefile.am): Likewise.
71600         * modules/getugroups (Makefile.am): Likewise.
71601         * modules/getusershell (Makefile.am): Likewise.
71602         * modules/glob (Makefile.am): Likewise.
71603         * modules/group-member (Makefile.am): Likewise.
71604         * modules/hard-locale (Makefile.am): Likewise.
71605         * modules/hash (Makefile.am): Likewise.
71606         * modules/hmac-md5 (Makefile.am): Likewise.
71607         * modules/hmac-sha1 (Makefile.am): Likewise.
71608         * modules/human (Makefile.am): Likewise.
71609         * modules/idcache (Makefile.am): Likewise.
71610         * modules/imaxabs (Makefile.am): Likewise.
71611         * modules/imaxdiv (Makefile.am): Likewise.
71612         * modules/inet_ntop (Makefile.am): Likewise.
71613         * modules/inet_pton (Makefile.am): Likewise.
71614         * modules/intprops (Makefile.am): Likewise.
71615         * modules/inttostr (Makefile.am): Likewise.
71616         * modules/inttypes (Makefile.am): Likewise.
71617         * modules/isapipe (Makefile.am): Likewise.
71618         * modules/javaversion (Makefile.am): Likewise.
71619         * modules/lchmod (Makefile.am): Likewise.
71620         * modules/lchown (Makefile.am): Likewise.
71621         * modules/localcharset (Makefile.am): Likewise.
71622         * modules/long-options (Makefile.am): Likewise.
71623         * modules/lstat (Makefile.am): Likewise.
71624         * modules/malloc (Makefile.am): Likewise.
71625         * modules/mathl (Makefile.am): Likewise.
71626         * modules/mbchar (Makefile.am): Likewise.
71627         * modules/md2 (Makefile.am): Likewise.
71628         * modules/md4 (Makefile.am): Likewise.
71629         * modules/md5 (Makefile.am): Likewise.
71630         * modules/memcasecmp (Makefile.am): Likewise.
71631         * modules/memchr (Makefile.am): Likewise.
71632         * modules/memcmp (Makefile.am): Likewise.
71633         * modules/memcoll (Makefile.am): Likewise.
71634         * modules/memcpy (Makefile.am): Likewise.
71635         * modules/memmem (Makefile.am): Likewise.
71636         * modules/memmove (Makefile.am): Likewise.
71637         * modules/mempcpy (Makefile.am): Likewise.
71638         * modules/memrchr (Makefile.am): Likewise.
71639         * modules/memset (Makefile.am): Likewise.
71640         * modules/memxor (Makefile.am): Likewise.
71641         * modules/mkancesdirs (Makefile.am): Likewise.
71642         * modules/mkdir-p (Makefile.am): Likewise.
71643         * modules/mkdir (Makefile.am): Likewise.
71644         * modules/mkdtemp (Makefile.am): Likewise.
71645         * modules/mkstemp (Makefile.am): Likewise.
71646         * modules/mktime (Makefile.am): Likewise.
71647         * modules/modechange (Makefile.am): Likewise.
71648         * modules/mountlist (Makefile.am): Likewise.
71649         * modules/nanosleep (Makefile.am): Likewise.
71650         * modules/obstack (Makefile.am): Likewise.
71651         * modules/openat (Makefile.am): Likewise.
71652         * modules/pagealign_alloc (Makefile.am): Likewise.
71653         * modules/pathmax (Makefile.am): Likewise.
71654         * modules/physmem (Makefile.am): Likewise.
71655         * modules/poll (Makefile.am): Likewise.
71656         * modules/posixtm (Makefile.am): Likewise.
71657         * modules/posixver (Makefile.am): Likewise.
71658         * modules/putenv (Makefile.am): Likewise.
71659         * modules/quote (Makefile.am): Likewise.
71660         * modules/quotearg (Makefile.am): Likewise.
71661         * modules/raise (Makefile.am): Likewise.
71662         * modules/read-file (Makefile.am): Likewise.
71663         * modules/readline (Makefile.am): Likewise.
71664         * modules/readlink (Makefile.am): Likewise.
71665         * modules/readtokens (Makefile.am): Likewise.
71666         * modules/readutmp (Makefile.am): Likewise.
71667         * modules/realloc (Makefile.am): Likewise.
71668         * modules/regex (Makefile.am): Likewise.
71669         * modules/rename-dest-slash (Makefile.am): Likewise.
71670         * modules/rename (Makefile.am): Likewise.
71671         * modules/rijndael (Makefile.am): Likewise.
71672         * modules/rmdir (Makefile.am): Likewise.
71673         * modules/rpmatch (Makefile.am): Likewise.
71674         * modules/safe-read (Makefile.am): Likewise.
71675         * modules/safe-write (Makefile.am): Likewise.
71676         * modules/same-inode (Makefile.am): Likewise.
71677         * modules/same (Makefile.am): Likewise.
71678         * modules/save-cwd (Makefile.am): Likewise.
71679         * modules/savedir (Makefile.am): Likewise.
71680         * modules/setenv (Makefile.am): Likewise.
71681         * modules/settime (Makefile.am): Likewise.
71682         * modules/sha1 (Makefile.am): Likewise.
71683         * modules/sig2str (Makefile.am): Likewise.
71684         * modules/snprintf (Makefile.am): Likewise.
71685         * modules/stat-macros (Makefile.am): Likewise.
71686         * modules/stat-time (Makefile.am): Likewise.
71687         * modules/stdbool (Makefile.am): Likewise.
71688         * modules/stdint (Makefile.am): Likewise.
71689         * modules/stdlib-safer (Makefile.am): Likewise.
71690         * modules/stpcpy (Makefile.am): Likewise.
71691         * modules/stpncpy (Makefile.am): Likewise.
71692         * modules/strcase (Makefile.am): Likewise.
71693         * modules/strcasestr (Makefile.am): Likewise.
71694         * modules/strchrnul (Makefile.am): Likewise.
71695         * modules/strcspn (Makefile.am): Likewise.
71696         * modules/strdup (Makefile.am): Likewise.
71697         * modules/strerror (Makefile.am): Likewise.
71698         * modules/strftime (Makefile.am): Likewise.
71699         * modules/strndup (Makefile.am): Likewise.
71700         * modules/strnlen (Makefile.am): Likewise.
71701         * modules/strpbrk (Makefile.am): Likewise.
71702         * modules/strsep (Makefile.am): Likewise.
71703         * modules/strstr (Makefile.am): Likewise.
71704         * modules/strtod (Makefile.am): Likewise.
71705         * modules/strtoimax (Makefile.am): Likewise.
71706         * modules/strtok_r (Makefile.am): Likewise.
71707         * modules/strtol (Makefile.am): Likewise.
71708         * modules/strtoll (Makefile.am): Likewise.
71709         * modules/strtoul (Makefile.am): Likewise.
71710         * modules/strtoull (Makefile.am): Likewise.
71711         * modules/strtoumax (Makefile.am): Likewise.
71712         * modules/strverscmp (Makefile.am): Likewise.
71713         * modules/sys_socket (Makefile.am): Likewise.
71714         * modules/sys_stat (Makefile.am): Likewise.
71715         * modules/sysexits (Makefile.am): Likewise.
71716         * modules/time_r (Makefile.am): Likewise.
71717         * modules/timegm (Makefile.am): Likewise.
71718         * modules/timespec (Makefile.am): Likewise.
71719         * modules/tmpfile-safer (Makefile.am): Likewise.
71720         * modules/trim (Makefile.am): Likewise.
71721         * modules/unistd-safer (Makefile.am): Likewise.
71722         * modules/unlinkdir (Makefile.am): Likewise.
71723         * modules/unlocked-io (Makefile.am): Likewise.
71724         * modules/userspec (Makefile.am): Likewise.
71725         * modules/utime (Makefile.am): Likewise.
71726         * modules/utimecmp (Makefile.am): Likewise.
71727         * modules/utimens (Makefile.am): Likewise.
71728         * modules/vasnprintf (Makefile.am): Likewise.
71729         * modules/vasprintf (Makefile.am): Likewise.
71730         * modules/vsnprintf (Makefile.am): Likewise.
71731         * modules/xalloc (Makefile.am): Likewise.
71732         * modules/xgetcwd (Makefile.am): Likewise.
71733         * modules/xnanosleep (Makefile.am): Likewise.
71734         * modules/xreadlink (Makefile.am): Likewise.
71735         * modules/xstrtod (Makefile.am): Likewise.
71736         * modules/xstrtol (Makefile.am): Likewise.
71737         * modules/xstrtold (Makefile.am): Likewise.
71738         * modules/yesno (Makefile.am): Likewise.
71739         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71740
71741 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         * modules/error (Makefile.am): Distribute files through
71744         EXTRA_DIST, not lib_SOURCES.
71745
71746 2006-10-12  Eric Blake  <ebb9@byu.net>
71747
71748         * modules/error (Makefile.am): Distribute files in /lib.
71749         * modules/obstack (Makefile.am): Likewise.
71750
71751 2006-10-12  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/acl (Makefile.am): Distribute all files in lib/ through
71754         EXTRA_DIST.
71755         * modules/arcfour (Makefile.am): Likewise.
71756         * modules/arctwo (Makefile.am): Likewise.
71757         * modules/argmatch (Makefile.am): Likewise.
71758         * modules/argz (Makefile.am): Likewise.
71759         * modules/atexit (Makefile.am): Likewise.
71760         * modules/backupfile (Makefile.am): Likewise.
71761         * modules/c-strtod (Makefile.am): Likewise.
71762         * modules/c-strtold (Makefile.am): Likewise.
71763         * modules/calloc (Makefile.am): Likewise.
71764         * modules/canon-host (Makefile.am): Likewise.
71765         * modules/canonicalize (Makefile.am): Likewise.
71766         * modules/chdir-long (Makefile.am): Likewise.
71767         * modules/chdir-safer (Makefile.am): Likewise.
71768         * modules/check-version (Makefile.am): Likewise.
71769         * modules/chown (Makefile.am): Likewise.
71770         * modules/cloexec (Makefile.am): Likewise.
71771         * modules/close-stream (Makefile.am): Likewise.
71772         * modules/closeout (Makefile.am): Likewise.
71773         * modules/crc (Makefile.am): Likewise.
71774         * modules/cycle-check (Makefile.am): Likewise.
71775         * modules/des (Makefile.am): Likewise.
71776         * modules/dirfd (Makefile.am): Likewise.
71777         * modules/dirname (Makefile.am): Likewise.
71778         * modules/dup2 (Makefile.am): Likewise.
71779         * modules/euidaccess (Makefile.am): Likewise.
71780         * modules/exclude (Makefile.am): Likewise.
71781         * modules/exitfail (Makefile.am): Likewise.
71782         * modules/fcntl-safer (Makefile.am): Likewise.
71783         * modules/file-type (Makefile.am): Likewise.
71784         * modules/fileblocks (Makefile.am): Likewise.
71785         * modules/filemode (Makefile.am): Likewise.
71786         * modules/filenamecat (Makefile.am): Likewise.
71787         * modules/fnmatch (Makefile.am): Likewise.
71788         * modules/fopen-safer (Makefile.am): Likewise.
71789         * modules/fpending (Makefile.am): Likewise.
71790         * modules/fprintftime (Makefile.am): Likewise.
71791         * modules/free (Makefile.am): Likewise.
71792         * modules/fsusage (Makefile.am): Likewise.
71793         * modules/ftruncate (Makefile.am): Likewise.
71794         * modules/fts (Makefile.am): Likewise.
71795         * modules/gc (Makefile.am): Likewise.
71796         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71797         * modules/getaddrinfo (Makefile.am): Likewise.
71798         * modules/getcwd (Makefile.am): Likewise.
71799         * modules/getdelim (Makefile.am): Likewise.
71800         * modules/getdomainname (Makefile.am): Likewise.
71801         * modules/getgroups (Makefile.am): Likewise.
71802         * modules/gethostname (Makefile.am): Likewise.
71803         * modules/gethrxtime (Makefile.am): Likewise.
71804         * modules/getline (Makefile.am): Likewise.
71805         * modules/getloadavg (Makefile.am): Likewise.
71806         * modules/getlogin_r (Makefile.am): Likewise.
71807         * modules/getopt (Makefile.am): Likewise.
71808         * modules/getpass (Makefile.am): Likewise.
71809         * modules/getpass-gnu (Makefile.am): Likewise.
71810         * modules/getsubopt (Makefile.am): Likewise.
71811         * modules/gettime (Makefile.am): Likewise.
71812         * modules/gettimeofday (Makefile.am): Likewise.
71813         * modules/getugroups (Makefile.am): Likewise.
71814         * modules/getusershell (Makefile.am): Likewise.
71815         * modules/glob (Makefile.am): Likewise.
71816         * modules/group-member (Makefile.am): Likewise.
71817         * modules/hard-locale (Makefile.am): Likewise.
71818         * modules/hash (Makefile.am): Likewise.
71819         * modules/hmac-md5 (Makefile.am): Likewise.
71820         * modules/hmac-sha1 (Makefile.am): Likewise.
71821         * modules/human (Makefile.am): Likewise.
71822         * modules/idcache (Makefile.am): Likewise.
71823         * modules/imaxabs (Makefile.am): Likewise.
71824         * modules/imaxdiv (Makefile.am): Likewise.
71825         * modules/inet_ntop (Makefile.am): Likewise.
71826         * modules/inet_pton (Makefile.am): Likewise.
71827         * modules/inttostr (Makefile.am): Likewise.
71828         * modules/isapipe (Makefile.am): Likewise.
71829         * modules/lchown (Makefile.am): Likewise.
71830         * modules/long-options (Makefile.am): Likewise.
71831         * modules/lstat (Makefile.am): Likewise.
71832         * modules/malloc (Makefile.am): Likewise.
71833         * modules/mathl (Makefile.am): Likewise.
71834         * modules/mbchar (Makefile.am): Likewise.
71835         * modules/md2 (Makefile.am): Likewise.
71836         * modules/md4 (Makefile.am): Likewise.
71837         * modules/md5 (Makefile.am): Likewise.
71838         * modules/memcasecmp (Makefile.am): Likewise.
71839         * modules/memchr (Makefile.am): Likewise.
71840         * modules/memcmp (Makefile.am): Likewise.
71841         * modules/memcoll (Makefile.am): Likewise.
71842         * modules/memcpy (Makefile.am): Likewise.
71843         * modules/memmem (Makefile.am): Likewise.
71844         * modules/memmove (Makefile.am): Likewise.
71845         * modules/mempcpy (Makefile.am): Likewise.
71846         * modules/memrchr (Makefile.am): Likewise.
71847         * modules/memset (Makefile.am): Likewise.
71848         * modules/memxor (Makefile.am): Likewise.
71849         * modules/mkancesdirs (Makefile.am): Likewise.
71850         * modules/mkdir (Makefile.am): Likewise.
71851         * modules/mkdir-p (Makefile.am): Likewise.
71852         * modules/mkdtemp (Makefile.am): Likewise.
71853         * modules/mkstemp (Makefile.am): Likewise.
71854         * modules/mktime (Makefile.am): Likewise.
71855         * modules/modechange (Makefile.am): Likewise.
71856         * modules/mountlist (Makefile.am): Likewise.
71857         * modules/nanosleep (Makefile.am): Likewise.
71858         * modules/openat (Makefile.am): Likewise.
71859         * modules/pagealign_alloc (Makefile.am): Likewise.
71860         * modules/physmem (Makefile.am): Likewise.
71861         * modules/poll (Makefile.am): Likewise.
71862         * modules/posixtm (Makefile.am): Likewise.
71863         * modules/posixver (Makefile.am): Likewise.
71864         * modules/putenv (Makefile.am): Likewise.
71865         * modules/quote (Makefile.am): Likewise.
71866         * modules/quotearg (Makefile.am): Likewise.
71867         * modules/raise (Makefile.am): Likewise.
71868         * modules/read-file (Makefile.am): Likewise.
71869         * modules/readline (Makefile.am): Likewise.
71870         * modules/readlink (Makefile.am): Likewise.
71871         * modules/readtokens (Makefile.am): Likewise.
71872         * modules/readutmp (Makefile.am): Likewise.
71873         * modules/realloc (Makefile.am): Likewise.
71874         * modules/regex (Makefile.am): Likewise.
71875         * modules/rename (Makefile.am): Likewise.
71876         * modules/rename-dest-slash (Makefile.am): Likewise.
71877         * modules/rijndael (Makefile.am): Likewise.
71878         * modules/rmdir (Makefile.am): Likewise.
71879         * modules/rpmatch (Makefile.am): Likewise.
71880         * modules/safe-read (Makefile.am): Likewise.
71881         * modules/safe-write (Makefile.am): Likewise.
71882         * modules/same (Makefile.am): Likewise.
71883         * modules/save-cwd (Makefile.am): Likewise.
71884         * modules/savedir (Makefile.am): Likewise.
71885         * modules/setenv (Makefile.am): Likewise.
71886         * modules/settime (Makefile.am): Likewise.
71887         * modules/sha1 (Makefile.am): Likewise.
71888         * modules/sig2str (Makefile.am): Likewise.
71889         * modules/snprintf (Makefile.am): Likewise.
71890         * modules/stdlib-safer (Makefile.am): Likewise.
71891         * modules/stpcpy (Makefile.am): Likewise.
71892         * modules/stpncpy (Makefile.am): Likewise.
71893         * modules/strcase (Makefile.am): Likewise.
71894         * modules/strcasestr (Makefile.am): Likewise.
71895         * modules/strchrnul (Makefile.am): Likewise.
71896         * modules/strcspn (Makefile.am): Likewise.
71897         * modules/strdup (Makefile.am): Likewise.
71898         * modules/strerror (Makefile.am): Likewise.
71899         * modules/strftime (Makefile.am): Likewise.
71900         * modules/strndup (Makefile.am): Likewise.
71901         * modules/strnlen (Makefile.am): Likewise.
71902         * modules/strpbrk (Makefile.am): Likewise.
71903         * modules/strsep (Makefile.am): Likewise.
71904         * modules/strstr (Makefile.am): Likewise.
71905         * modules/strtod (Makefile.am): Likewise.
71906         * modules/strtoimax (Makefile.am): Likewise.
71907         * modules/strtok_r (Makefile.am): Likewise.
71908         * modules/strtol (Makefile.am): Likewise.
71909         * modules/strtoll (Makefile.am): Likewise.
71910         * modules/strtoul (Makefile.am): Likewise.
71911         * modules/strtoull (Makefile.am): Likewise.
71912         * modules/strtoumax (Makefile.am): Likewise.
71913         * modules/strverscmp (Makefile.am): Likewise.
71914         * modules/time_r (Makefile.am): Likewise.
71915         * modules/timegm (Makefile.am): Likewise.
71916         * modules/tmpfile-safer (Makefile.am): Likewise.
71917         * modules/unistd-safer (Makefile.am): Likewise.
71918         * modules/unlinkdir (Makefile.am): Likewise.
71919         * modules/userspec (Makefile.am): Likewise.
71920         * modules/utime (Makefile.am): Likewise.
71921         * modules/utimecmp (Makefile.am): Likewise.
71922         * modules/utimens (Makefile.am): Likewise.
71923         * modules/vasnprintf (Makefile.am): Likewise.
71924         * modules/vasprintf (Makefile.am): Likewise.
71925         * modules/vsnprintf (Makefile.am): Likewise.
71926         * modules/xalloc (Makefile.am): Likewise.
71927         * modules/xgetcwd (Makefile.am): Likewise.
71928         * modules/xnanosleep (Makefile.am): Likewise.
71929         * modules/xreadlink (Makefile.am): Likewise.
71930         * modules/xstrtod (Makefile.am): Likewise.
71931         * modules/xstrtol (Makefile.am): Likewise.
71932         * modules/xstrtold (Makefile.am): Likewise.
71933         * modules/yesno (Makefile.am): Likewise.
71934
71935 2006-10-12  Jim Meyering  <jim@meyering.net>
71936
71937         * m4/getloadavg.m4: Revert the change below.
71938
71939         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71940         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71941         fail with a symlink, which is what coreutils' ./bootstrap now
71942         creates by default.
71943
71944 2006-10-12  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71947         mingw.
71948         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71949         MSVC and mingw explicitly.
71950
71951 2006-10-11  Simon Josefsson  <jas@extundo.com>
71952             Bruno Haible  <bruno@clisp.org>
71953
71954         Add support for multiple gnulib-tool invocations in the scope of a
71955         single configure.ac file.
71956         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71957         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71958         with the same contents as the _LIBADD variable.
71959         (func_emit_initmacro_start, func_emit_initmacro_end,
71960         func_emit_initmacro_done): New functions.
71961         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71962         gl_LIBOBJS and gl_LTLIBOBJS.
71963
71964 2006-10-11  Bruno Haible  <bruno@clisp.org>
71965
71966         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71967         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71968         autoreconf. Instead, invoke autopoint explicitly but move back the
71969         *.m4 files from gnulib.
71970
71971 2006-10-11  Bruno Haible  <bruno@clisp.org>
71972
71973         * gnulib-tool (func_usage): Make module names after --create-testdir
71974         optional.
71975         (func_create_testdir): If no module was specified, use nearly all
71976         modules.
71977
71978 2006-10-12  Jim Meyering  <jim@meyering.net>
71979
71980         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71981         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71982         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71983         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71984         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71985         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71986         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71987         (fts_set_stat_required): New function.
71988         (fts_open): Defer the calls to fts_stat, if possible or requested.
71989         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71990         into fts_stat itself.
71991         (fts_read): Perform any required (deferred) fts_stat call.
71992         (fts_build): Likewise, for the directory we're about to open and read.
71993         In the readdir loop, carefully decide whether each entry will require
71994         an eventual call to fts_stat, using dirent.d_type info if available.
71995         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71996         a command line argument into this function.  Update all callers.
71997         Map a return value of FTS_DOT to FTS_D for a command line argument.
71998         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71999         Thanks to Miklos Szeredi for his tenacity and for the initial
72000         bug report about "find" failing on a FUSE-based file system.
72001
72002         * lib/fts.c (fts_open): Use consistent indentation.
72003
72004 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72007         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72008         reported by Jim Meyering.  All uses of cache variables renamed
72009         to match Autoconf's.
72010         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72011         the other one.
72012
72013         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72014         Fix misspelling in diagnostic.
72015
72016 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72019         defined.  Problem reported by Matthew Woehlke.
72020
72021         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72022         Add support for Tandem NonStop R series.
72023         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72024         Use new macro.
72025
72026         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72027         (has_trailing_slash): Omit size arg; all callers changed.
72028         Omit 'inline', since it doesn't help performance and we'd
72029         need to configure it.
72030         Don't count //, ///, etc. as having a trailing slash.
72031         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72032         (rpl_rename_dest_slash): On failure, use rename's errno rather
72033         than (in some cases) an incorrect or junk errno.
72034         Simplify code by removing need to compute length; this does
72035         cause it to make two passes instead of one over the file name,
72036         but it's worth it.
72037
72038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72039         change, since Autoconf's version may no longer be appropriate now
72040         that we are using CVS Autoconf's version.  Add support for Tandem.
72041
72042 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72043             Bruno Haible  <bruno@clisp.org>
72044
72045         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72046         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72047         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72048         gl_AC_TYPE_LONG_LONG.
72049
72050         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72051         instead of HAVE_LONG_LONG.
72052         * lib/printf-args.c (printf_fetchargs): Likewise.
72053         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72054         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72055         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72056         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72057         gl_AC_TYPE_LONG_LONG.
72058
72059 2006-10-11  Bruno Haible  <bruno@clisp.org>
72060
72061         * m4/longlong.m4: Add comments.
72062         * m4/ulonglong.m4: Likewise.
72063
72064 2006-10-10  Bruno Haible  <bruno@clisp.org>
72065
72066         Make it possible to #define stpcpy, strdup to aliases.
72067         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72068         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72069
72070 2006-10-10  Bruno Haible  <bruno@clisp.org>
72071
72072         Make it possible to #define gcd to an alias.
72073         * lib/gcd.c: Include config.h.
72074
72075 2006-10-10  Bruno Haible  <bruno@clisp.org>
72076
72077         Make it possible to #define c_isascii to an alias.
72078         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72079         defined. Undefine the macros before defining them, to avoid gcc
72080         warnings.
72081         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72082         define NO_C_CTYPE_MACROS early.
72083
72084 2006-10-10  Bruno Haible  <bruno@clisp.org>
72085
72086         Make it possible to #define set_program_name to an alias.
72087         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72088         ENABLE_RELOCATABLE early.
72089
72090 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72093         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72094         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72095         More generally, don't assume that 64-bit signed int is available
72096         if unsigned int is, and vice versa.
72097         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72098         unsigned symbols, not on their signed counterparts.
72099         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72100         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72101         (UINT64_C, UINTMAX_C):
72102         Likewise.
72103         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72104         unsigned counterparts.
72105         (Have_long_long, Unsigned): New macros.
72106         (Int): Renamed from INT.
72107         (strtoimax): Use the new macros.
72108         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72109         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72110         * modules/inttypes (inttypes.h): Substitute
72111         HAVE_UNSIGNED_LONG_LONG_INT.
72112         * modules/stdint (stdint.h): Likewise.
72113         (Files): Add m4/ulonglong.m4.
72114
72115 2006-10-10  Bruno Haible  <bruno@clisp.org>
72116
72117         Fix a gcc -Wshadow warning.
72118         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72119         to 'bucket'.
72120         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72121         gl_linked_indexof_from_to): Likewise.
72122         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72123         Likewise.
72124         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72125         Likewise.
72126         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72127         Reported by Eric Blake.
72128
72129 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72132         for NetBSD.  Problem reported by Bruno Haible.
72133
72134 2006-10-09  Jim Meyering  <jim@meyering.net>
72135
72136         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72137         Patch from Bruno Haible.
72138
72139 2006-10-09  Jim Meyering  <jim@meyering.net>
72140
72141         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72142         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72143         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72144
72145 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         Don't include <config.h> twice; this doesn't work in some cases,
72148         e.g., when config.h has "#define intmax_t long long int" and
72149         we include <config.h>, <inttypes.h>, <config.h> in that order.
72150         Problem reported by Matthew Woehlke in:
72151         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72152         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72153         * lib/fts-cycle.c: Don't include config.h.
72154         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72155         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72156         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72157         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72158         inttypes.h.
72159         * lib/xstrtoumax.c: Likewise.
72160         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72161         __strtol and the like, so that this module is more like its siblings.
72162         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72163         Remove; no longer needed now that we assume gnulib inttypes.h.
72164
72165 2006-10-08  Bruno Haible  <bruno@clisp.org>
72166
72167         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72168         option.
72169
72170 2006-10-07  Jim Meyering  <jim@meyering.net>
72171
72172         * modules/inttypes (inttypes.h): Revert what seems to have been
72173         an inadvertent part of today's change: use "|", not "/" in the
72174         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72175
72176 2006-10-07  Bruno Haible  <bruno@clisp.org>
72177
72178         * modules/sublist: New file.
72179
72180 2006-10-07  Bruno Haible  <bruno@clisp.org>
72181
72182         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72183         * modules/argz (argz.h): Likewise.
72184         * modules/arpa_inet (arpa/inet.h): Likewise.
72185         * modules/byteswap (byteswap.h): Likewise.
72186         * modules/configmake (configmake.h): Likewise.
72187         * modules/fcntl (fcntl.h): Likewise.
72188         * modules/fnmatch (fnmatch.h): Likewise.
72189         * modules/getopt (getopt.h): Likewise.
72190         * modules/glob (glob.h): Likewise.
72191         * modules/inttypes (inttypes.h): Likewise.
72192         * modules/netinet_in (netinet/in.h): Likewise.
72193         * modules/poll (poll.h): Likewise.
72194         * modules/stdbool (stdbool.h): Likewise.
72195         * modules/stdint (stdint.h): Likewise.
72196         * modules/sys_select (sys/select.h): Likewise.
72197         * modules/sys_socket (sys/socket.h): Likewise.
72198         * modules/sys_stat (sys/stat.h): Likewise.
72199         * modules/sysexits (sysexits.h): Likewise.
72200         * modules/unistd (unistd.h): Likewise.
72201         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72202         Add a "DO NOT EDIT" comment to the generated file.
72203         (func_import): Likewise for gnulib-comp.m4.
72204
72205 2006-10-07  Bruno Haible  <bruno@clisp.org>
72206
72207         * lib/gl_sublist.h: New file.
72208         * lib/gl_sublist.c: New file.
72209
72210 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72213         name (relative to the original working directory) and the file
72214         name component (relative to the temporary working directory).  All
72215         callers changed.
72216         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72217         * lib/mkdir-p.c (make_dir_parents): Likewise.
72218         * lib/mkdir-p.h (make_dir_parents): Likewise.
72219
72220 2006-10-06  Eric Blake  <ebb9@byu.net>
72221
72222         Define several macros for use by the clean-temp module.
72223         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72224         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72225         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72226
72227         * lib/clean-temp.h (close_stream_temp): New declaration.
72228         * lib/clean-temp.c (includes): Pull in headers according to what
72229         other modules are in use.
72230         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72231
72232 2006-10-06  Bruno Haible  <bruno@clisp.org>
72233
72234         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72235         instead of fopen, fwriteerror.
72236
72237 2006-10-06  Bruno Haible  <bruno@clisp.org>
72238
72239         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72240         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72241         int.
72242         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72243         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72244         Return an error indicator.
72245         Suggested by Eric Blake.
72246
72247 2006-10-06  Bruno Haible  <bruno@clisp.org>
72248
72249         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72250         Reported by Eric Blake.
72251
72252 2006-10-06  Bruno Haible  <bruno@clisp.org>
72253
72254         * modules/closeout (Description): Mention stderr too.
72255
72256 2006-10-06  Bruno Haible  <bruno@clisp.org>
72257         and Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * lib/closeout.c (close_stdout): Also close stderr.
72260         * lib/closeout.h: Update comment.
72261
72262 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72265         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72266         * lib/dirchownmod.c: Include lchown.h.
72267         * lib/lchown.c: Don't include files that lchown.h now includes.
72268         Don't declare chown, since lchown.h now does that.
72269         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72270         (lchown): Define to rpl_chown if lchown is declared but
72271         does not exist.  Declare using a prototype if lchown is not
72272         declared.  Add a copyright notice.
72273         * lib/mkstemp.h: Include <unistd.h>.
72274         * lib/openat.c: Include lchown.h.
72275
72276         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72277         we now test for that separately.
72278         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72279         rather than O_NOFOLLOW, when testing whether it's possible to
72280         avoid a race condition reliably.
72281         * lib/savewd.c (savewd_chdir): Likewise.
72282
72283         Remove macros that are no longer needed now that stdint.h is
72284         reliable.
72285         * lib/fsusage.c (UINTMAX_MAX): Remove.
72286         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72287         * lib/utimecmp.c (SIZE_MAX): Remove.
72288
72289         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72290
72291         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72292         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72293         O_NOATIME works.
72294
72295 2006-10-05  Bruno Haible  <bruno@clisp.org>
72296
72297         * lib/gl_list.h (gl_sortedlist_search_from_to,
72298         gl_sortedlist_indexof_from_to): New declarations.
72299         (gl_list_implementation): New fields sortedlist_search_from_to,
72300         sortedlist_indexof_from_to.
72301         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72302         inline functions.
72303         * lib/gl_list.c (gl_sortedlist_search_from_to,
72304         gl_sortedlist_indexof_from_to): New functions.
72305         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72306         function.
72307         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72308         (gl_array_sortedlist_search_from_to): New function.
72309         (gl_array_list_implementation): Update.
72310         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72311         function.
72312         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72313         (gl_carray_sortedlist_search_from_to): New function.
72314         (gl_carray_list_implementation): Update.
72315         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72316         gl_linked_sortedlist_indexof_from_to): New functions.
72317         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72318         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72319         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72320         gl_tree_sortedlist_indexof_from_to): New functions.
72321         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72322         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72323         Update.
72324         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72325         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72326         Update.
72327
72328 2006-10-05  Bruno Haible  <bruno@clisp.org>
72329
72330         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72331         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72332         (struct gl_list_implementation): Add fields search_from_to,
72333         indexof_from_to. Remove fields search, indexof.
72334         (gl_list_search): Use the search_from_to method.
72335         (gl_list_search_from, gl_list_search_from_to): New functions.
72336         (gl_list_indexof): Use the indexof_from_to method.
72337         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72338         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72339         (gl_list_search_from, gl_list_search_from_to): New functions.
72340         (gl_list_indexof): Use the indexof_from_to method.
72341         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72342         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72343         gl_array_indexof. Add start_index, end_index arguments.
72344         (gl_array_search_from_to): Renamed from gl_array_search. Add
72345         start_index, end_index arguments.
72346         (gl_array_remove, gl_array_list_implementation): Update.
72347         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72348         gl_carray_indexof. Add start_index, end_index arguments.
72349         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72350         start_index, end_index arguments.
72351         (gl_carray_remove, gl_carray_list_implementation): Update.
72352         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72353         gl_linked_search. Add start_index, end_index arguments.
72354         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72355         start_index, end_index arguments.
72356         (gl_linked_remove): Update.
72357         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72358         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72359         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72360         field to 'size_t'.
72361         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72362         gl_tree_search. Add start_index, end_index arguments.
72363         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72364         start_index, end_index arguments.
72365         (gl_tree_remove): Update.
72366         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72367         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72368         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72369         function.
72370         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72371         gl_tree_search. Add start_index, end_index arguments.
72372         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72373         start_index, end_index arguments.
72374         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72375         Update.
72376         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72377
72378 2006-10-05  Bruno Haible  <bruno@clisp.org>
72379
72380         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72381
72382         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72383         fwriteerror_temp): New declarations.
72384         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72385         (descriptors): New variable.
72386         (cleanup): First, close the descriptors.
72387         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72388         fclose_temp, fwriteerror_temp): New functions.
72389
72390 2006-10-04  Jim Meyering  <jim@meyering.net>
72391
72392         * lib/fts.c (fts_open): Tiny comment change.
72393
72394 2006-10-04  Bruno Haible  <bruno@clisp.org>
72395
72396         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72397         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72398         gl_LOCK_BODY.
72399         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72400         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72401         gl_LOCK_EARLY_BODY.
72402         (gl_LOCK): Require gl_LOCK_BODY.
72403
72404 2006-10-04  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72407         (gl_oset_search_atleast): New declaration.
72408         (struct gl_oset_implementation): Add field 'search_atleast'.
72409         (gl_oset_search_atleast): New inline function.
72410         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72411         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72412         (gl_array_oset_implementation): Update.
72413         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72414         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72415         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72416
72417 2006-10-04  Bruno Haible  <bruno@clisp.org>
72418
72419         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72420
72421 2006-10-03  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72424         from gl_avltreehash_list_implementation.
72425
72426 2006-10-03  Bruno Haible  <bruno@clisp.org>
72427
72428         * lib/gl_oset.c (gl_oset_add): Fix return type.
72429
72430 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72431
72432         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72433
72434 2006-10-02  Eric Blake  <ebb9@byu.net>
72435
72436         * modules/strnlen (Depends-on): Add extensions.
72437
72438 2006-10-02  Eric Blake  <ebb9@byu.net>
72439
72440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72441         definition in 2.60+.
72442
72443 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72444
72445         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72446         checks.
72447
72448 2006-10-02  Bruno Haible  <bruno@clisp.org>
72449
72450         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72451         to the AUTOMAKE_OPTIONS.
72452         Reported by Jim Meyering.
72453
72454 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         Work around bug in Solaris 10 /proc file system:
72457         /proc/self/fd/NNN/.. isn't the parent directory of
72458         the directory whose file descriptor is NNN.  This needs to
72459         be worked around at run time, not compile time, since a
72460         program might be built on Solaris 8, where things work, and
72461         run on Solaris 10.
72462         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72463         to use the following interface instead:
72464         (OPENAT_BUFFER_SIZE): New macro.
72465         (openat_proc_name): New function.
72466         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72467         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72468         Likewise.
72469         * lib/openat-proc.c: New file.
72470         * modules/openat (Files): Add lib/openat-proc.c.
72471         (Depends-on): Add same-inode, stdbool.
72472         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72473
72474 2006-09-29  Bruno Haible  <bruno@clisp.org>
72475
72476         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72477         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72478         argument. Set stdout_closed before testing for ferror, not after.
72479         (fwriteerror, fwriteerror_no_ebadf): New functions.
72480
72481 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72482
72483         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72484
72485 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72486
72487         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72488         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72489
72490 2006-09-28  Jim Meyering  <jim@meyering.net>
72491
72492         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72493         Include <unistd.h>.
72494
72495 2006-09-28  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72498         * modules/linkedhash-list (Depends-on): Likewise.
72499         * modules/rbtreehash-list (Depends-on): Likewise.
72500
72501 2006-09-28  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/strndup.h: Simplify the redefinition of strndup.
72504         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72506
72507 2006-09-28  Bruno Haible  <bruno@clisp.org>
72508
72509         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72510         * lib/gl_linkedhash_list.c: Likewise.
72511         * lib/gl_rbtreehash_list.c: Likewise.
72512
72513 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72516         getaddrinfo.
72517
72518         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72519         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72520         it causes <stdio_ext.h> to cause a compile-time error.
72521         Problem reported by Nelson H. F. Beebe.
72522         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72523         of HAVE_DECL___PENDING.
72524
72525         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72526         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72527         declaration.
72528
72529 2006-09-27  Jim Meyering  <jim@meyering.net>
72530
72531         This file could end up with a definition for a function
72532         named __strndup, rather than rpl_strndup on a system with
72533         incomplete weak_alias support.
72534         * lib/strndup.c (strndup): Rename from __strndup.
72535         Remove #defines that used to map __strndup to strndup.
72536         Don't use K&R prototypes.
72537         Remove LIBC-related code, since this file is not sync'd with glibc.
72538         * lib/strndup.h: Revamp, accordingly.
72539         * m4/strndup.m4: Modernize.
72540
72541 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * modules/savewd (Depends-on): Add 'raise'.
72544         * lib/savewd.c: Include <signal.h>, for 'raise'.
72545
72546 2006-09-26  Jim Meyering  <jim@meyering.net>
72547
72548         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72549         when we detect Darwin 8.7.0's acl_get_file bug.
72550         Rearrange to perform the new (below) run-test while $LIBS
72551         contains any acl-related library.  Set USE_ACL at the end.
72552         (gl_ACL_GET_FILE): New function.
72553
72554 2006-09-26  Eric Blake  <ebb9@byu.net>
72555
72556         * lib/verror.c: Include <config.h> unconditionally.
72557
72558 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         * modules/clock-time (Maintainer): Add self.
72561         * modules/getlogin_r (Depends-on): Add extensions.
72562
72563 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72564
72565         * modules/clock-time: New module.
72566         * modules/nanosleep (Depends-on): Add clock-time.
72567         * modules/gethrxtime (Depends-on): Likewise.
72568         * modules/gettime (Depends-on): Likewise.
72569         * modules/settime (Depends-on): Likewise.
72570
72571         * modules/fts-lgpl: Depend on openat.
72572         * modules/mkancesdirs: Depend on savewd.
72573         * modules/mkdir-p: Likewise.
72574
72575 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72576
72577         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72578
72579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72580         `gl_have_arbitrary_file_name_length_limit' to
72581         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72582         actually works between configure runs.
72583
72584 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72585             Bruno Haible  <bruno@clisp.org>
72586
72587         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72588
72589 2006-09-25  Jim Meyering  <jim@meyering.net>
72590
72591         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72592         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72593
72594 2006-09-25  Eric Blake  <ebb9@byu.net>
72595
72596         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72597         exec's in 2006-09-18 patch when shuffling fds.
72598
72599 2006-09-25  Bruno Haible  <bruno@clisp.org>
72600
72601         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72602         Reported by Jim Meyering.
72603
72604 2006-09-24  Jim Meyering  <jim@meyering.net>
72605
72606         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72607         compare a pointer against a literal "0".  That caused failures with
72608         at least HP-UX's hpcc.
72609
72610 2006-09-22  Simon Josefsson  <jas@extundo.com>
72611
72612         * modules/gc-sha1:
72613         * modules/gc-md4:
72614         * modules/gc-hmac-sha1:
72615         * modules/gc-hmac-md5:
72616         * modules/gc-des:
72617         * modules/gc-arcfour: Distribute more files.
72618
72619 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72620
72621         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72622         (gl_linked_iterator_from_to): Initialize struct completely.
72623         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72624         (gl_tree_iterator_from_to): Likewise
72625         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72626         * lib/gl_array_list.c [lint] (gl_array_iterator)
72627         (gl_array_iterator_from_to): Likewise.
72628         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72629         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72630         (gl_carray_iterator_from_to): Likewise.
72631
72632         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72633         * lib/md4.c (md4_process_block): Remove unused variable.
72634         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72635         parentheses for clarity.
72636
72637 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72638
72639         * modules/bison-i18n (Depends-on): Add gettext.
72640
72641 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72642
72643         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72644         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72645         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72646         also add missing comma that caused broken test.
72647         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72648         stdlib.h, for `abort'.
72649         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72650         variables.
72651         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72652         include unistd.h if present, for `rmdir'.
72653         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72654         variables.
72655         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72656         in the process include standard headers for prototypes.
72657         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72658         gets declared on GNU/Linux.
72659         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72660         unistd.h, for `rmdir'.
72661         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72662
72663         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72664         always true.
72665         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72666
72667         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72668
72669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72670
72671         * gnulib-tool (func_version): Create output all at once.  This
72672         may help avoid triggering unnecessary SIGPIPEs, and at any
72673         rate it doesn't hurt.
72674
72675 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72676             Bruno Haible  <bruno@clisp.org>
72677
72678         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72679         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72680         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72681
72682         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72683         (gl_FUNC_VASPRINTF): Invoke it.
72684
72685 2006-09-22  Bruno Haible  <bruno@clisp.org>
72686
72687         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72688         getloadavg.c as first argument.
72689
72690 2006-09-22  Bruno Haible  <bruno@clisp.org>
72691
72692         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72693         at the beginning of the gl_INIT macro.
72694         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72695         gl_GETLOADAVG.
72696
72697 2006-09-22  Bruno Haible  <bruno@clisp.org>
72698
72699         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72700         module.
72701         Suggested by Ralf Wildenhues.
72702
72703 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         Import this patch from libc:
72706
72707         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72708
72709         * lib/regex_internal.c (re_string_reconstruct): Handle
72710         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72711         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72712         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72713         re_string_context_at.
72714
72715         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72716         now requires it.
72717         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72718         gl_REGEX now does it for us.
72719         (gl_REGEX): Add test taken from
72720         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72721
72722         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72723         Check that large offsets work.  Modernize Autoconf usages.
72724         Prefer "yes" to mean a good thing rather than a bad.
72725         Don't put "#define mkstemp" in config.h, as this might interfere
72726         with standard system headers that "#define mkstemp mkstemp64".
72727
72728         * modules/mkstemp (Depends-on): Add extensions, so that
72729         mkstemp is visible on some platforms.
72730         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72731         (Include): Change to "mkstemp.h" from <stdlib.h>.
72732         (Files): Add mkstemp.h.
72733
72734         * lib/mkstemp.h: New file, since some standard headers
72735         #define mkstemp.
72736         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72737         Include "mkstemp.h".
72738         Make the _LIBC code resemble glibc original more,
72739         e.g., use K&R style.
72740         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72741         (mkstemp): Remove, since mkstemp.h does this for us.
72742         * lib/stdlib--.h: Include mkstemp.h.
72743
72744         Import this patch from libc:
72745
72746         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72747
72748         * lib/tempname.c (__gen_tempname): Change attempts_min
72749         into a macro.  Use preprocessor to decide how to initialize
72750         attempts [Coverity CID 67].
72751
72752 2006-09-20  Bruno Haible  <bruno@clisp.org>
72753
72754         * lib/mkdtemp.c: Import from libc.
72755         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72756                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72757                 attempts_min into a macro.  Use preprocessor to decide how to
72758                 initialize attempts [Coverity CID 67].
72759         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72760                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72761                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72762
72763 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72764
72765         * gnulib-tool (func_exit): New function, to allow to pass the
72766         exit status portably through the trap.  Use everywhere.
72767         (--help, --version): Signal a write error.
72768         (trap): catch SIGPIPE, for write errors.
72769         Exit at the end of the trap, with the correct exit status.
72770
72771 2006-09-19  Karl Berry  <karl@gnu.org>
72772
72773         * doc/gnulib.texi: note about the license texinfo files.
72774
72775 2006-09-19  Eric Blake  <ebb9@byu.net>
72776
72777         * gnulib-tool: Avoid space-tab.
72778
72779 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72782         that prevented coreutils 6.1 from building.  Problem reported
72783         by Petter Reinholdtsen.
72784
72785 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * gnulib-tool (avoidlist): Fix typo that broke options like
72788         --avoid=lock that are used by coreutils bootstrap.
72789
72790 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72791
72792         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72793         more systematically.
72794
72795 2006-09-18  Jim Meyering  <jim@meyering.net>
72796
72797         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72798
72799 2006-09-18  Bruno Haible  <bruno@clisp.org>
72800
72801         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72802
72803 2006-09-18  Bruno Haible  <bruno@clisp.org>
72804
72805         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72806         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72807         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72808         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72809         * m4/gettext.m4: Require autoconf >= 2.52.
72810         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72811         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72812         of gl_cv_header_inttypes_h.
72813
72814 2006-09-18  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/javaversion.c: Include configmake.h.
72817
72818 2006-09-18  Bruno Haible  <bruno@clisp.org>
72819
72820         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72821         avoid that the while loops be executed in a subshell.
72822
72823 2006-09-18  Bruno Haible  <bruno@clisp.org>
72824
72825         * MODULES.html.sh (func_module): Break long lines.
72826         Suggested by Bruce Korb <bkorb@gnu.org>.
72827
72828 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72829
72830         Speed up by a factor of 1.12.
72831         * gnulib-tool (nl): New variable.
72832         (func_import): Rewrite include directive extraction to only read each
72833         directive once.
72834
72835 2006-09-17  Bruno Haible  <bruno@clisp.org>
72836
72837         * modules/javaversion (Makefile.am): Remove DEFS setting.
72838         (Depends-on): Add configmake, for PKGDATADIR definition.
72839
72840 2006-09-17  Bruno Haible  <bruno@clisp.org>
72841
72842         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72843
72844 2006-09-17  Bruno Haible  <bruno@clisp.org>
72845
72846         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72847         (func_modules_transitive_closure, func_modules_add_dummy,
72848         func_modules_to_filelist, func_import, func_create_testdir,
72849         func_create_megatestdir, ...): Use it wherever possible.
72850         Suggested by Ralf Wildenhues.
72851
72852 2006-09-16  Karl Berry  <karl@gnu.org>
72853
72854         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72855         to avoid sectioning errors.
72856         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72857         [ifinfo]: blank line after @center-ed titles.
72858         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72859         Spell FSF address consistently with others.
72860         (These changes approved by rms.)
72861
72862 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72863
72864         Speed up by a factor of 1.61.
72865         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72866         already checked module names again.
72867
72868 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72869
72870         Speed up by a factor of 1.13.
72871         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72872         for new_files, and the input to func_add_or_update.
72873
72874 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72875
72876         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72877         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72878
72879 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * modules/mkancesdirs (Depends-on): Add fcntl.
72882         * modules/savewd: New file.
72883         * MODULES.html.sh (File system functions): Add savewd.
72884
72885         * modules/configmake (Makefile.am): Add support for the
72886         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72887
72888 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * m4/savewd.m4: New file.
72891
72892 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72895         (dirchownmod): New arg FD.  All callers changed.
72896         Use FD rather than opening the directory ourself, as opening is
72897         now the caller's responsibility.
72898         * lib/dirchownmod.h: Likewise.
72899         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72900         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72901         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72902         (test_dir): Remove.
72903         (mkancesdirs): Return length of prefix of FILE that has already
72904         been made, or -2 if there is a child doing the work.  Redo
72905         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72906         ".", and treat ".." specially since it might stray back into
72907         already-created areas.  Use a subprocess if necessary.  New arg
72908         WD; all users changed.  MAKE_DIR function should now return 1
72909         if it creates a directory that is not readable.  Return -2 if
72910         a child process is spun off.
72911         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72912         Adjust signature to match code.
72913         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72914         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72915         all users changed.
72916         * lib/savewd.c, lib/savewd.h: New files.
72917
72918 2006-09-15  Jim Meyering  <jim@meyering.net>
72919
72920         * modules/rename-dest-slash: New module.
72921         * MODULES.html.sh (posix_compat): Add it here.
72922
72923         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72924
72925 2006-09-15  Jim Meyering  <jim@meyering.net>
72926
72927         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72928         file.
72929
72930         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72931
72932 2006-09-15  Jim Meyering  <jim@meyering.net>
72933
72934         * lib/rename-dest-slash.c (has_trailing_slash): Use
72935         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72936         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72937         test before testing whether SRC is a directory.
72938         Suggestions from Bruno Haible.
72939
72940         Avoid a warning about an unused variable.
72941         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72942         into the #ifdef block where it's used.
72943
72944         * lib/rename-dest-slash.c: New file.
72945
72946 2006-09-14  Bruno Haible  <bruno@clisp.org>
72947
72948         * lib/allocsa.c: Include <config.h> unconditionally.
72949         * lib/asnprintf.c: Likewise.
72950         * lib/asprintf.c: Likewise.
72951         * lib/c-strcasecmp.c: Likewise.
72952         * lib/c-strcasestr.c: Likewise.
72953         * lib/c-strncasecmp.c: Likewise.
72954         * lib/c-strstr.c: Likewise.
72955         * lib/classpath.c: Likewise.
72956         * lib/clean-temp.c: Likewise.
72957         * lib/concatpath.c: Likewise.
72958         * lib/copy-file.c: Likewise.
72959         * lib/csharpcomp.c: Likewise.
72960         * lib/csharpexec.c: Likewise.
72961         * lib/execute.c: Likewise.
72962         * lib/fatal-signal.c: Likewise.
72963         * lib/findprog.c: Likewise.
72964         * lib/fwriteerror.c: Likewise.
72965         * lib/gl_array_list.c: Likewise.
72966         * lib/gl_array_oset.c: Likewise.
72967         * lib/gl_avltree_list.c: Likewise.
72968         * lib/gl_avltree_oset.c: Likewise.
72969         * lib/gl_avltreehash_list.c: Likewise.
72970         * lib/gl_carray_list.c: Likewise.
72971         * lib/gl_linked_list.c: Likewise.
72972         * lib/gl_linkedhash_list.c: Likewise.
72973         * lib/gl_list.c: Likewise.
72974         * lib/gl_oset.c: Likewise.
72975         * lib/gl_rbtree_list.c: Likewise.
72976         * lib/gl_rbtree_oset.c: Likewise.
72977         * lib/gl_rbtreehash_list.c: Likewise.
72978         * lib/imaxabs.c: Likewise.
72979         * lib/imaxdiv.c: Likewise.
72980         * lib/javacomp.c: Likewise.
72981         * lib/javaexec.c: Likewise.
72982         * lib/javaversion.c: Likewise.
72983         * lib/linebreak.c: Likewise.
72984         * lib/localcharset.c: Likewise.
72985         * lib/lock.c: Likewise.
72986         * lib/mbchar.c: Likewise.
72987         * lib/mbswidth.c: Likewise.
72988         * lib/mkdtemp.c: Likewise.
72989         * lib/pipe.c: Likewise.
72990         * lib/printf-args.c: Likewise.
72991         * lib/printf-parse.c: Likewise.
72992         * lib/progname.c: Likewise.
72993         * lib/progreloc.c: Likewise.
72994         * lib/readlink.c: Likewise.
72995         * lib/sh-quote.c: Likewise.
72996         * lib/stpcpy.c: Likewise.
72997         * lib/stpncpy.c: Likewise.
72998         * lib/strcasecmp.c: Likewise.
72999         * lib/strcasestr.c: Likewise.
73000         * lib/strcspn.c: Likewise.
73001         * lib/striconv.c: Likewise.
73002         * lib/strncasecmp.c: Likewise.
73003         * lib/strnlen1.c: Likewise.
73004         * lib/strstr.c: Likewise.
73005         * lib/strtok_r.c: Likewise.
73006         * lib/tls.c: Likewise.
73007         * lib/tmpdir.c: Likewise.
73008         * lib/unicodeio.c: Likewise.
73009         * lib/unsetenv.c: Likewise.
73010         * lib/vasnprintf.c: Likewise.
73011         * lib/vasprintf.c: Likewise.
73012         * lib/wait-process.c: Likewise.
73013         * lib/xallocsa.c: Likewise.
73014         * lib/xsetenv.c: Likewise.
73015         * lib/xstriconv.c: Likewise.
73016
73017 2006-09-13  Simon Josefsson  <jas@extundo.com>
73018
73019         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73020         that internally, suggested by Ralf Wildenhues
73021         <Ralf.Wildenhues@gmx.de>.
73022
73023 2006-09-13  Simon Josefsson  <jas@extundo.com>
73024
73025         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73026         @LIBOBJS@.
73027         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73028
73029 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73032         longer worry about uses that don't define HAVE_CONFIG_H.
73033         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73034         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73035         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73036         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73037         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73038         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73039         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73040         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73041         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73042         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73043         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73044         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73045         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73046         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73047         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73048         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73049         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73050         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73051         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73052         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73053         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73054         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73055         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73056         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73057         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73058         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73059         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73060         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73061         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73062         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73063         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73064         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73065         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73066         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73067         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73068         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73069         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73070         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73071         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73072         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73073         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73074         Likewise.
73075
73076 2006-09-13  Eric Blake  <ebb9@byu.net>
73077
73078         * lib/getopt.c: Fix typo in last commit.
73079
73080 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73081
73082         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73083         dgettext.
73084
73085 2006-09-12  Jim Meyering  <jim@meyering.net>
73086
73087         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73088         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73089         Reported by Nelson H. F. Beebe.
73090
73091 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73092
73093         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73094         program_invocation_name and program_invocation_short_name are
73095         initialized.
73096         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73097         and program_invocation_short_name to argp.h, so they are visible
73098         to user programs.
73099         * lib/argp.h: Likewise
73100
73101 2006-09-10  Bruno Haible  <bruno@clisp.org>
73102
73103         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73104         m4/inttypes_h.m4, m4/uintmax_t.m4.
73105
73106 2006-09-10  Bruno Haible  <bruno@clisp.org>
73107
73108         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73109         gl_AC_TYPE_UINTMAX_T.
73110
73111 2006-09-10  Bruno Haible  <bruno@clisp.org>
73112
73113         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73114
73115 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73116
73117         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73118         convention.  Text proposed by Bruno Haible.
73119         (struct argp_option): Document the use of N_() wrappers.
73120
73121         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73122         '\v', and translate the two parts separately, instead of feeding
73123         the whole string to gettext.  This allows to exclude
73124         '\v' from the strings visible to the translator by writing doc
73125         strings as N_("..") "\v" N_("..").
73126
73127 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73128
73129         * config/srclist.txt: Undo latest change; the bug was fixed.
73130
73131 2006-09-09  Bruno Haible  <bruno@clisp.org>
73132
73133         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73134         assignments if building a library without libtool.
73135         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73136         in func_emit_lib_Makefile_am.
73137         (func_import): When building a static library libfoo.a, arrange to
73138         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73139         (func_create_testdir): Likewise.
73140         * modules/gc (configure.ac, Makefile.am): If building statically,
73141         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73142         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73143         * modules/striconv (configure.ac, Makefile.am): Likewise.
73144         Based on a suggestion by Ralf Wildenhues.
73145
73146 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73149         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73150         Also:
73151
73152         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73153         Add year_2050_test to catch glibc bug 2821
73154         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73155
73156         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73157         Prefer #ifdef to #if.
73158
73159         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73160         Return from 'main' instead of calling 'exit'.
73161
73162 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73165         returned the maximum time_t value rather than (time_t) -1.
73166         Problem originally reported by William Bardwell
73167         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73168
73169         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73170         Moved to here ...
73171         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73172         ... from here.
73173
73174 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73177         2821 is fixed.
73178
73179 2006-09-08  Jim Meyering  <jim@meyering.net>
73180
73181         Don't make generated files read-only.  That would bother too many
73182         people.  However, do retain the ability to work when targets are
73183         read-only: remove the destination and temporary files before writing
73184         them (when generated via sed or echo), or by using the -f option for
73185         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73186         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73187         * modules/byteswap, modules/configmake, modules/fcntl:
73188         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73189         * modules/localcharset, modules/netinet_in, modules/poll:
73190         * modules/stdbool, modules/stdint, modules/sys_select:
73191         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73192
73193 2006-09-08  Jim Meyering  <jim@meyering.net>
73194
73195         Avoid new build failure on FreeBSD 6.0.
73196         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73197         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73198         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73199
73200 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73201
73202         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73203
73204 2006-09-07  Jim Meyering  <jim@meyering.net>
73205
73206         Fix global typo in last change: use chmod u-w, not chmod u-x.
73207         Spotted by Paul Eggert and Bruce Korb.
73208         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73209         * modules/byteswap, modules/configmake, modules/fcntl:
73210         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73211         * modules/localcharset, modules/netinet_in, modules/poll:
73212         * modules/stdbool, modules/stdint, modules/sys_select:
73213         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73214
73215 2006-09-06  Jim Meyering  <jim@meyering.net>
73216
73217         Make generated files be read-only.
73218         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73219         Ensure that each generated file is now read-only.
73220         * modules/argz: Likewise.
73221         * modules/arpa_inet: Likewise.
73222         * modules/byteswap: Likewise.
73223         * modules/configmake: Likewise.
73224         * modules/fcntl: Likewise.
73225         * modules/fnmatch: Likewise.
73226         * modules/getopt: Likewise.
73227         * modules/glob: Likewise.
73228         * modules/inttypes: Likewise.
73229         * modules/netinet_in: Likewise.
73230         * modules/poll: Likewise.
73231         * modules/stdbool: Likewise.
73232         * modules/stdint: Likewise.
73233         * modules/sys_select: Likewise.
73234         * modules/sys_socket: Likewise.
73235         * modules/sys_stat: Likewise.
73236         * modules/sysexits: Likewise.
73237         * modules/localcharset: Same as above, but continue using temporary
73238         file named "t-$@" (why different?) rather than the "$@-t" used
73239         everywhere else.
73240
73241         * modules/sysexits (Makefile.am): Replace literal occurrences
73242         of "sysexit.h" more readable, and more consistent, "$@".
73243
73244 2006-09-06  Bruno Haible  <bruno@clisp.org>
73245
73246         * modules/striconv: New file.
73247         * modules/xstriconv: New file.
73248         * MODULES.html.sh (Internationalization functions): Add striconv,
73249         xstriconv.
73250
73251 2006-09-06  Bruno Haible  <bruno@clisp.org>
73252
73253         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73254         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73255         not using libtool correctly.
73256
73257 2006-09-06  Bruno Haible  <bruno@clisp.org>
73258
73259         * lib/striconv.h: New file.
73260         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73261         iconvstring.c.
73262         * lib/xstriconv.h: New file.
73263         * lib/xstriconv.c: New file.
73264
73265 2006-09-06  Bruno Haible  <bruno@clisp.org>
73266
73267         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73268         lib_..._LDFLAGS.
73269
73270 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73271
73272         * lib/argz_.h: Sync from Libtool.
73273
73274         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73275                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73276
73277         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73278
73279 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73280
73281         * modules/trim: New file.
73282
73283 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73284
73285         * lib/trim.h: New file.
73286         * lib/trim.c: New file.
73287
73288 2006-09-05  Bruno Haible  <bruno@clisp.org>
73289
73290         * MODULES.html.sh (String handling): Add trim.
73291
73292 2006-09-04  Karl Berry  <karl@gnu.org>
73293
73294         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73295         until next release.
73296
73297 2006-09-03  Bruno Haible  <bruno@clisp.org>
73298
73299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73300         correctly.
73301
73302 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73305         not gl_GETLOADAVG.  Omit unneeded semicolons.
73306         Problems reported by Ralf Wildenhues in
73307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73308         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73309         at the end, which is the usual gnulib style.
73310
73311         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73312         of doing all the work ourselves.
73313         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73314         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73315
73316 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73319         Problem reported by Ralf Wildenhues in
73320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73321
73322         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73323         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73324
73325 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73328         yesterday's patch by changing test -n to test -z.
73329
73330 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73333         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73334         the former is now obsolescent.
73335
73336         * modules/chdir-long (Depends-on): Add fcntl.
73337
73338 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73341         obsolescent, and programs should use gnulib instead.
73342         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73343         but with prefixes changed.
73344
73345 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73346
73347         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73348         or stdbool.h, because they might not exist while configuring.
73349
73350         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73351         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73352         does that for us.
73353         (O_DIRECTORY): Remove.
73354
73355 2006-08-31  Eric Blake  <ebb9@byu.net>
73356
73357         * gnulib-tool: Don't let emacs change spaces to TAB.
73358
73359 2006-08-31  Bruno Haible  <bruno@clisp.org>
73360
73361         * gnulib-tool: When calling func_import more than once, do it in a
73362         subshell.
73363         Reported by Eric Blake <ebb9@byu.net>.
73364
73365 2006-08-31  Bruno Haible  <bruno@clisp.org>
73366
73367         * gnulib-tool (nl): Remove variable.
73368         (sed_transform_lib_file): Use more robust test for config-h module.
73369         (func_import): Fix typo in 2006-08-25 patch.
73370
73371 2006-08-31  Bruno Haible  <bruno@clisp.org>
73372
73373         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73374         specified, augment Makefile.am variables instead of assigning them.
73375
73376 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73377
73378         Work around a bug in both the Linux and SunOS 64-bit kernels:
73379         nanosleep mishandles sleeps for longer than 2**31 seconds.
73380         Problem reported by Frank v Waveren in
73381         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73383         Check for nanosleep bug.
73384         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73385
73386 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         Work around a bug in both the Linux and SunOS 64-bit kernels:
73389         nanosleep mishandles sleeps for longer than 2**31 seconds.
73390         Problem reported by Frank v Waveren in
73391         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73392         * lib/nanosleep.c (BILLION): New constant.
73393         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73394         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73395         implementation.
73396
73397 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * modules/nanosleep (Depends-on): Add gettime.
73400
73401 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73402         and Simon Josefsson  <jas@extundo.com>
73403         and Oskar Liljeblad  <oskar@osk.mine.nu>
73404
73405         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73406         * gnulib-tool (func_import): New license type 'unmodifiable license
73407         text'.
73408         * modules/fdl: Use it.  Longer description.
73409         * module/gpl, module/lgpl: New files.
73410
73411 2006-08-30  Jim Meyering  <jim@meyering.net>
73412
73413         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73414         shadowing the parameter.
73415
73416 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73417
73418         Sync from Libtool:
73419
73420         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73421
73422         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73423         sharing with gnulib.  Report by Eric Blake.
73424
73425 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * modules/isapipe: New file.
73428         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73429
73430 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         * modules/configmake (Makefile.am): Add a comment, and omit
73433         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73434         by Bruno Haible.
73435
73436 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * m4/isapipe.m4: New file.
73439
73440 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73441
73442         * lib/isapipe.c, lib/isapipe.h: New files.
73443
73444 2006-08-29  Jim Meyering  <jim@meyering.net>
73445
73446         * modules/configmake (Makefile.am): Make configmake.h depend on
73447         Makefile.  Otherwise, a stale configmake.h could hang around.
73448
73449 2006-08-29  Eric Blake  <ebb9@byu.net>
73450
73451         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73452         resolution of upstream bug 3044.
73453
73454 2006-08-29  Bruno Haible  <bruno@clisp.org>
73455
73456         * modules/localcharset (Depends-on): Add configmake.
73457         (Makefile.am): Remove setting of LIBDIR through DEFS.
73458
73459 2006-08-29  Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73462         defined.
73463
73464 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * modules/fcntl: New file.
73467         * modules/chdir-safer (Depends-on): Add fcntl.
73468         * modules/fts: Likewise.
73469         * modules/mkdir-p: Likewise.
73470
73471         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73472         This undoes the most recent change, since we're now addressing the
73473         problem in a different way.
73474
73475         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73476         into output, since the output might be called Makefile.am even
73477         if $makefile_name is something different.
73478         (func_import): Use $makefile_am rather than
73479         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73480         empty.
73481
73482         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73483
73484 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73487         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73488         recent change to stdint.m4, since we're now addressing the problem in a
73489         different way.
73490
73491 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73492
73493         * m4/fcntl_h.m4: New file.
73494
73495 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * lib/fcntl_.h: New file.
73498         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73499         the fcntl module.
73500         * lib/dirchownmod.c: Likewise.
73501         * lib/fts.c: Likewise.
73502
73503         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73504         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73505         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73506         just before including <inttypes.h>, to avoid circular inclusion.
73507
73508 2006-08-28  Jim Meyering  <jim@meyering.net>
73509
73510         * doc/visibility.texi: Actually read and correct the grammar of the
73511         sentence affected by yesterday's change.
73512
73513 2006-08-28  Eric Blake  <ebb9@byu.net>
73514
73515         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73516         needs wrapper.
73517
73518 2006-08-28  Eric Blake  <ebb9@byu.net>
73519
73520         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73521
73522 2006-08-28  Eric Blake  <ebb9@byu.net>
73523
73524         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73525
73526 2006-08-28  Bruno Haible  <bruno@clisp.org>
73527
73528         * modules/c-strstr: New file, from GNU gettext.
73529         * MODULES.html.sh (String handling): Add c-strstr.
73530
73531 2006-08-28  Bruno Haible  <bruno@clisp.org>
73532
73533         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73534         macros.
73535         Reported by Eric Blake.
73536
73537 2006-08-28  Bruno Haible  <bruno@clisp.org>
73538
73539         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73540         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73541         * lib/vasprintf.c: Include errno.h, limits.h.
73542         (EOVERFLOW): New fallback definition.
73543         (vasprintf): Test here whether the string length is > INT_MAX.
73544         * lib/vsnprintf.c: Include errno.h, limits.h.
73545         (EOVERFLOW): New fallback definition.
73546         (vsnprintf): Fix bug when generated string was too long for the buffer.
73547         Test here whether the string length is > INT_MAX.
73548
73549 2006-08-28  Bruno Haible  <bruno@clisp.org>
73550
73551         * lib/inttypes_.h (SCNX*): Remove definitions.
73552         Reported by Eric Blake.
73553
73554 2006-08-28  Bruno Haible  <bruno@clisp.org>
73555
73556         * lib/c-strstr.h: New file, from GNU gettext.
73557         * lib/c-strstr.c: New file, from GNU gettext.
73558
73559 2006-08-28  Bruno Haible  <bruno@clisp.org>
73560
73561         * gnulib-tool: Reorder some statements.
73562
73563 2006-08-28  Bruno Haible  <bruno@clisp.org>
73564
73565         * gnulib-tool: New option --makefile-name.
73566         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73567         $makefile_name.
73568         (func_import): Write $makefile_name to the cache file, and read it from
73569         there unless explicitly specified. Use $makefile_name as file name
73570         instead of Makefile.am. Adjust the recommendations accordingly.
73571
73572 2006-08-28  Bruno Haible  <bruno@clisp.org>
73573
73574         * gnulib-tool (func_verify_module): Check against misapplying patch.
73575
73576 2006-08-28  Bruno Haible  <bruno@clisp.org>
73577
73578         * gnulib-tool (func_relativize, func_relconcat): New functions.
73579         Give an error if --local-dir is given with --update.
73580         Remove trailing slashes from $local_gnulib_dir.
73581         (func_import): Store the relativized $local_gnulib_dir in
73582         gnulib-cache.m4, and read it from there if not specified explicitly.
73583
73584 2006-08-28  Bruno Haible  <bruno@clisp.org>
73585
73586         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73587         is the current directory. Respect also $local_gnulib_dir.
73588
73589 2006-08-28  Bruno Haible  <bruno@clisp.org>
73590             Simon Josefsson  <jas@extundo.com>
73591
73592         BeOS portability.
73593         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73594
73595 2006-08-27  Jim Meyering  <jim@meyering.net>
73596
73597         * doc/visibility.texi: Remove duplicate word: "pointer".
73598
73599 2006-08-26  Bruno Haible  <bruno@clisp.org>
73600
73601         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73602         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73603         (Makefile.am): Create inttypes.h from inttypes_.h.
73604         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73605
73606         * modules/imaxabs: New file.
73607
73608         * modules/imaxdiv: New file.
73609
73610 2006-08-26  Bruno Haible  <bruno@clisp.org>
73611
73612         * m4/inttypes.m4: New file.
73613         * m4/_inttypes_h.m4: Remove file.
73614         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73615         PRI_MACROS_BROKEN.
73616         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73617
73618         * m4/imaxabs.m4: New file.
73619
73620         * m4/imaxdiv.m4: New file.
73621
73622 2006-08-26  Bruno Haible  <bruno@clisp.org>
73623
73624         * lib/inttypes_.h: New file.
73625         * lib/inttypes.h: Remove file.
73626         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73627
73628         * lib/imaxabs.c: New file.
73629
73630         * lib/imaxdiv.c: New file.
73631
73632 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         New config-h module, so that "make" output needn't be cluttered
73635         by -DHAVE_CONFIG_H.
73636         * MODULES.html.sh (Support for building libraries and executables):
73637         Add config-h.
73638         * modules/config-h: New file.
73639         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73640         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73641         the config-h module is used.
73642
73643         New configmake module, so that "make" output needn't be cluttered
73644         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73645         * MODULES.html.sh (Support for building libraries and executables):
73646         Add configmake.
73647         * modules/configmake: New file.
73648
73649 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * m4/config-h.m4: New file.
73652
73653 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73654
73655         * config/srclist.txt: Add elisp-comp.
73656
73657 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73658
73659         * MODULES.html.sh (Support for building libraries and executables):
73660         Add elisp-comp.
73661         * build-aux/elisp-comp: New file.
73662         * modules/elisp-comp: New file.
73663
73664 2006-08-24  Bruno Haible  <bruno@clisp.org>
73665
73666         * gnulib-tool (func_create_testdir): Use non-default values of
73667         sourcebase and m4base.
73668
73669 2006-08-24  Bruno Haible  <bruno@clisp.org>
73670
73671         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73672         HTML structure.
73673
73674 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * modules/openat (Depends-on): Add lchown.
73677
73678 2006-08-23  Bruno Haible  <bruno@clisp.org>
73679
73680         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73681         of gl_LOCK_EARLY instead of gl_LOCK.
73682
73683 2006-08-23  Bruno Haible  <bruno@clisp.org>
73684
73685         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73686         on OSF/1 to no.
73687         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73688
73689 2006-08-23  Bruno Haible  <bruno@clisp.org>
73690
73691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73692         as unusable.
73693
73694         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73695         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73696         (gl_LOCK): New macro.
73697
73698 2006-08-22  Simon Josefsson  <jas@extundo.com>
73699
73700         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73701         to md5 module.
73702
73703 2006-08-22  Simon Josefsson  <jas@extundo.com>
73704
73705         * MODULES.html.sh: Add "Support for maintaining and release
73706         projects".
73707
73708         * build-aux/gnupload: New file, from coreutils.
73709
73710 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         Avoid the need for AC_LIBSOURCES in m4 macros.
73713         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73714         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73715         * modules/check-version (EXTRA_DIST): Add check-version.h.
73716         * modules/crc (EXTRA_DIST): Add crc.h.
73717         * modules/des (EXTRA_DIST): Add des.h.
73718         * modules/gc (EXTRA_DIST): Add gc.h.
73719         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73720         * modules/getline (EXTRA_DIST): Add getline.h.
73721         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73722         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73723         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73724         * modules/md2 (EXTRA_DIST): Add md2.h.
73725         * modules/md4 (EXTRA_DIST): Add md4.h.
73726         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73727         * modules/read-file (EXTRA_DIST): Add read-file.h.
73728         * modules/readline (EXTRA_DIST): Add readline.h.
73729         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73730         rijndael-api-fst.h.
73731
73732 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * m4/rijndael.m4 (gl_ARCFOUR):
73735         * m4/arctwo.m4 (gl_ARCTWO):
73736         * m4/check-version.m4 (gl_CHECK_VERSION):
73737         * m4/crc.m4 (gl_CRC):
73738         * m4/des.m4 (gl_DES):
73739         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73740         * m4/gc.m4 (gl_GC):
73741         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73742         * m4/getline.m4 (gl_FUNC_GETLINE):
73743         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73744         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73745         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73746         * m4/md2.m4 (gl_MD2):
73747         * m4/md4.m4 (gl_MD4):
73748         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73749         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73750         * m4/readline.m4 (gl_FUNC_READLINE):
73751         * m4/rijndael.m4 (gl_RIJNDAEL):
73752         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73753         to get the necessary .h files and whatnot.
73754
73755 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73758         gnulib rather than the other way around.
73759         * config/srclistvars.sh (COREUTILS): Remove.
73760
73761 2006-08-22  Jim Meyering  <jim@meyering.net>
73762
73763         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73764
73765         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73766
73767 2006-08-22  Eric Blake  <ebb9@byu.net>
73768
73769         * modules/regexprops-generic: New file.
73770         * MODULES.html.sh (Support for building documentation): List it.
73771
73772 2006-08-22  Eric Blake  <ebb9@byu.net>
73773
73774         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73775         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73776         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73777         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73778
73779 2006-08-22  Bruno Haible  <bruno@clisp.org>
73780
73781         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73782         and lib_LTLIBRARIES like the other lib_* variables.
73783
73784 2006-08-22  Bruno Haible  <bruno@clisp.org>
73785
73786         * build-aux/x-to-1.in: New file, from GNU gettext.
73787
73788 2006-08-22  Bruno Haible  <bruno@clisp.org>
73789
73790         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73791         <utmpx.h> exists.
73792
73793 2006-08-22  Bruno Haible  <bruno@clisp.org>
73794
73795         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73796         <utmpx.h> exists.
73797
73798 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         BeOS portability.
73801         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73802         exist.
73803         Problem reported by Bruno Haible.
73804
73805 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         Avoid the need for AC_LIBSOURCES in m4 macros.
73808         * modules/acl (EXTRA_DIST): Add acl.h.
73809         * modules/argmatch (Files): Add m4/argmatch.m4.
73810         (configure.ac): Add gl_ARGMATCH.
73811         (EXTRA_DIST): Renamed from lib_SOURCES, for
73812         consistency with the other modules.  Remove argmatch.c.
73813         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73814         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73815         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73816         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73817         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73818         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73819         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73820         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73821         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73822         * modules/closeout (EXTRA_DIST): Add closeout.h.
73823         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73824         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73825         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73826         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73827         dirname.h; remove basename.c and stripslash.c.
73828         * modules/exclude (EXTRA_DIST): Add exclude.h.
73829         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73830         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73831         * modules/file-type (EXTRA_DIST): Add file-type.h.
73832         * modules/filemode (EXTRA_DIST): Add filemode.h.
73833         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73834         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73835         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73836         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73837         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73838         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73839         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73840         * modules/getdate (EXTRA_DIST): Add getdate.c.
73841         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73842         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73843         * modules/getpass (EXTRA_DIST): Add getpass.h.
73844         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73845         * modules/group-member (EXTRA_DIST): Add group-member.h.
73846         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73847         * modules/hash (EXTRA_DIST): Add hash.h.
73848         * modules/human (EXTRA_DIST): Add human.h.
73849         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73850         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73851         * modules/lchown (EXTRA_DIST): Add lchown.h.
73852         * modules/long-options (EXTRA_DIST): Add long-options.h.
73853         * modules/lstat (EXTRA_DIST): Add lstat.h.
73854         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73855         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73856         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73857         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73858         * modules/memxor (EXTRA_DIST): Add memxor.h.
73859         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73860         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73861         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73862         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73863         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73864         * modules/physmem (EXTRA_DIST): Add physmem.h.
73865         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73866         * modules/posixver (EXTRA_DIST): Add posixver.h.
73867         * modules/quote (EXTRA_DIST): Add quote.h.
73868         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73869         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73870         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73871         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73872         regex_internal.h regexec.c.
73873         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73874         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73875         * modules/same (EXTRA_DIST): Add same.h.
73876         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73877         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73878         * modules/savedir (EXTRA_DIST): Add savedir.h.
73879         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73880         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73881         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73882         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73883         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73884         * modules/strdup (EXTRA_DIST): Add strdup.h.
73885         * modules/strftime (EXTRA_DIST): Add strftime.h.
73886         * modules/strndup (EXTRA_DIST): Add strndup.h.
73887         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73888         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73889         * modules/time_r (EXTRA_DIST): Add time_r.h.
73890         * modules/timespec (EXTRA_DIST): Add timespec.h.
73891         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73892         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73893         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73894         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73895         * modules/userspec (EXTRA_DIST): Add userspec.h.
73896         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73897         * modules/utimens (EXTRA_DIST): Add utimens.h.
73898         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73899         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73900         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73901         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73902         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73903         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73904         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73905         * modules/yesno (EXTRA_DIST): Add yesno.h.
73906
73907 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73910
73911         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73912         * m4/dev-ino.m4, same-inode.m4: Remove.
73913
73914         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73915         * m4/acl.m4 (AC_FUNC_ACL):
73916         * m4/backupfile.m4 (gl_BACKUPFILE):
73917         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73918         * m4/canon-host.m4 (gl_CANON_HOST):
73919         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73920         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73921         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73922         * m4/cloexec.m4 (gl_CLOEXEC):
73923         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73924         * m4/closeout.m4 (gl_CLOSEOUT):
73925         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73926         * m4/dirname.m4 (gl_DIRNAME):
73927         * m4/exclude.m4 (gl_EXCLUDE):
73928         * m4/exitfail.m4 (gl_EXITFAIL):
73929         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73930         * m4/file-type.m4 (gl_FILE_TYPE):
73931         * m4/filemode.m4 (gl_FILEMODE):
73932         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73933         * m4/fpending.m4 (gl_FUNC_FPENDING):
73934         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73935         * m4/fts.m4 (gl_FUNC_FTS):
73936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73937         * m4/getdate.m4 (gl_GETDATE):
73938         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73939         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73940         * m4/getpass.m4 (gl_FUNC_GETPASS):
73941         * m4/gettime.m4 (gl_GETTIME):
73942         * m4/getugroups.m4 (gl_GETUGROUPS):
73943         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73944         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73945         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73946         * m4/hash.m4 (gl_HASH):
73947         * m4/idcache.m4 (gl_IDCACHE):
73948         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73949         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73950         * m4/long-options.m4 (gl_LONG_OPTIONS):
73951         * m4/lstat.m4 (gl_FUNC_LSTAT):
73952         * m4/md5.m4 (gl_MD5):
73953         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73954         * m4/memcoll.m4 (gl_MEMCOLL):
73955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73957         * m4/memxor.m4 (gl_MEMXOR):
73958         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73960         * m4/modechange.m4 (gl_MODECHANGE):
73961         * m4/mountlist.m4 (gl_MOUNTLIST):
73962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73963         * m4/openat.m4 (gl_FUNC_OPENAT):
73964         * m4/pathmax.m4 (gl_PATHMAX):
73965         * m4/physmem.m4 (gl_PHYSMEM):
73966         * m4/posixtm.m4 (gl_POSIXTM):
73967         * m4/posixver.m4 (gl_POSIXVER):
73968         * m4/quote.m4 (gl_QUOTE):
73969         * m4/quotearg.m4 (gl_QUOTEARG):
73970         * m4/readtokens.m4 (gl_READTOKENS):
73971         * m4/readutmp.m4 (gl_READUTMP):
73972         * m4/regex.m4 (gl_REGEX):
73973         * m4/safe-read.m4 (gl_SAFE_READ):
73974         * m4/safe-write.m4 (gl_SAFE_WRITE):
73975         * m4/same.m4 (gl_SAME):
73976         * m4/save-cwd.m4 (gl_SAVE_CWD):
73977         * m4/savedir.m4 (gl_SAVEDIR):
73978         * m4/settime.m4 (gl_SETTIME):
73979         * m4/sha1.m4 (gl_SHA1):
73980         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73981         * m4/stat-macros.m4 (gl_STAT_MACROS):
73982         * m4/stat-time.m4 (gl_STAT_TIME):
73983         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73984         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73985         * m4/strdup.m4 (gl_FUNC_STRDUP):
73986         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73987         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73988         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73989         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73990         * m4/time_r.m4 (gl_TIME_R):
73991         * m4/timespec.m4 (gl_TIMESPEC):
73992         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73993         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73994         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73995         * m4/userspec.m4 (gl_USERSPEC):
73996         * m4/utimecmp.m4 (gl_UTIMECMP):
73997         * m4/utimens.m4 (gl_UTIMENS):
73998         * m4/xalloc.m4 (gl_XALLOC):
73999         * m4/xgetcwd.m4 (gl_XGETCWD):
74000         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74001         * m4/xreadlink.m4 (gl_XREADLINK):
74002         * m4/xstrtod.m4 (gl_XSTRTOD):
74003         * m4/yesno.m4 (gl_YESNO):
74004         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74005         to get the necessary .h files and whatnot.
74006
74007 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74008             Bruno Haible  <bruno@clisp.org>
74009
74010         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74011         /bin/sh understanding of '!' conditional negation.
74012
74013 2006-08-21  Jim Meyering  <jim@meyering.net>
74014
74015         * modules/openat (Depends-on): Really alphabetize.
74016
74017         * modules/acl (Depends-on): Add error and quote.
74018
74019         * check-module (find_included_lib_files): Add at-func.c to the
74020         ok-to-include-more-than-once white list.
74021
74022         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74023
74024 2006-08-21  Bruno Haible  <bruno@clisp.org>
74025
74026         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74027         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74028         Reported by Martin Lambers <marlam@marlam.de>.
74029
74030 2006-08-21  Bruno Haible  <bruno@clisp.org>
74031
74032         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74033         specify an installation location, don't emit a noinst_LIBRARIES or
74034         noinst_LTLIBRARIES assignment.
74035
74036 2006-08-21  Bruno Haible  <bruno@clisp.org>
74037
74038         BeOS portability.
74039         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74040         BeOS has mbrtowc() but no <wctype.h>.
74041
74042 2006-08-21  Bruno Haible  <bruno@clisp.org>
74043
74044         BeOS portability.
74045         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74046         exist.
74047
74048 2006-08-21  Bruno Haible  <bruno@clisp.org>
74049
74050         BeOS portability.
74051         * lib/mbchar.h: Include <wctype.h> only if it exists.
74052
74053 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74054
74055         Remove files that are no longer needed by their respective modules.
74056         * m4/obstack.m4: Remove.
74057         * m4/strerror_r.m4: Remove.
74058         * m4/uint32_t.m4: Remove.
74059         * m4/uintptr_t.m4: Remove.
74060         * m4/ullong_max.m4: Remove.
74061         * m4/xstrtoimax.m4: Remove.
74062         * m4/xstrtoumax.m4: Remove.
74063
74064         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74065         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74066         dependencies now capture this.
74067
74068         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74069         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74070         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74071         * m4/human.m4 (gl_HUMAN): Likewise.
74072         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74073         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74074
74075         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74076
74077         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74078         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74079         stdint.
74080         * m4/human.m4 (gl_HUMAN): Likewise.
74081         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74082         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74083         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74084         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74085         * m4/xstrtol (gl_XSTRTOL): Likewise.
74086
74087         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74088         AC_TYPE_LONG_LONG_INT.
74089         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74090         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74091         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74092         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74093
74094         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74095         on stdbool.
74096
74097         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74098         (gl_PREREQ_XSTRTOUL): Remove.
74099
74100         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74101
74102         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74103         mode.
74104
74105 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         Add and change modules to make it easier for coreutils to use
74108         gnulib-tool.
74109         * modules/backupfile (Files): Remove m4/d-ino.m4.
74110         (Depends-on): Add d-ino.
74111         * modules/cycle-check (Depends-on): Add stdint.
74112         (lib_SOURCES): Add cycle-check.h.
74113         * modules/d-ino: New module.
74114         * modules/d-type: New module.
74115         * modules/error (Files): Remove m4/strerror_r.m4.
74116         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74117         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74118         m4/inttypes_h.m4, m4/uintmax_t.m4.
74119         (Depends-on): Add stdint.
74120         (lib_SOURCES): Add fsusage.h.
74121         * modules/getcwd (Files): Remove d-ino.m4.
74122         (Depends-on): Add d-ino.
74123         * modules/getndelim2 (Depends-on): Add stdint.
74124         * modules/glob (Files): Remove m4/d-type.m4.
74125         (Depends-on): Add d-type.
74126         * modules/host-os: New module.
74127         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74128         m4/inttypes_h.m4, m4/uintmax_t.m4.
74129         * Depends-on: Add stdint.
74130         (lib_SOURCES): Add human.h.
74131         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74132         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74133         m4/uintmax_t.m4, m4/ulonglong.m4.
74134         (Depends-on): Add stdint.
74135         (EXTRA_DIST): Add inttostr.h.
74136         * modules/lchmod: New module.
74137         * modules/link-follow: New module.
74138         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74139         (Depends-on): Add lchmod.
74140         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74141         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74142         (Depends-on): Add stdint.
74143         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74144         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74145         (Depends-on): Add stdint.
74146         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74147         * modules/perl: New module.
74148         * modules/regex (Depends-on): Add stdint.
74149         * modules/rmdir-errno: New module.
74150         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74151         m4/intmax_t.m4.
74152         (Depends-on): Add stdint.
74153         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74154         m4/uintmax_t.m4.
74155         (Depends-on): Add stdint.
74156         * modules/unlink-busy: New module.
74157         * modules/utimecmp (Depends-on): Add stdint.
74158         * modules/uptime: New module.
74159         * modules/winsz-ioctl: New module.
74160         * modules/winsz-termios: New module.
74161         * modules/xnanosleep (Depends-on): Add nanosleep.
74162         * modules/ullong_max: Remove.
74163         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74164         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74165         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74166         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74167         (Depends-on): Add inttypes.
74168         (lib_SOURCES): Add xstrtol.h.
74169         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74170         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74171         * MODULES.html.sh: Move 'assert' into the assert section.
74172         Move 'dummy' into the linking section.
74173         Remove ullong_max.
74174         Add section for compatibility checks for POSIX:2001 functions,
74175         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74176         winsz-ioctl, and winsz-termios into it.
74177         Add lchmod.
74178         Add top-level Misc section and put host-os, perl, and uptime
74179         into it.
74180
74181 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74184         now assume the stdint module.  Do not include inttypes.h.
74185         * lib/fsusage.h: Likewise.
74186         * lib/getndelim2.c: Likewise.
74187         * lib/human.h: Likewise.
74188         * lib/inttostr.h: Likewise.
74189         * lib/obstack.c: Likewise.
74190         * lib/regex_internal.h: Likewise.
74191         * lib/tempname.c: Likewise.
74192         * lib/utimecmp.c: Likewise.
74193         * lib/xstrtol.h: Likewise.
74194
74195         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74196
74197         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74198         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74199         * lib/xtime.h: Likewise.
74200
74201 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * modules/openat (Files): Add lib/fchmodat.c.
74204         Fixes problem reported by Jay Youngman.
74205
74206 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74207
74208         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74209         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74210
74211 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74212             Bruno Haible  <bruno@clisp.org>
74213
74214         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74215         and is a script that invokes bison. Tighten the code. Add comments.
74216
74217 2006-08-18  Jim Meyering  <jim@meyering.net>
74218
74219         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74220         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74221         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74222         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74223
74224 2006-08-18  Bruno Haible  <bruno@clisp.org>
74225
74226         * modules/bison-i18n: New file.
74227         * MODULES.html.sh (Internationalization functions): Add it.
74228
74229 2006-08-18  Bruno Haible  <bruno@clisp.org>
74230
74231         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74232         sys/statvfs.h. When getmntinfo was found, check its declaration and
74233         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74234
74235 2006-08-18  Bruno Haible  <bruno@clisp.org>
74236
74237         * m4/bison-i18n.m4: New file, from bison.
74238
74239 2006-08-18  Bruno Haible  <bruno@clisp.org>
74240
74241         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74242         (ME_DUMMY): Treat "kernfs" as a dummy.
74243         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74244
74245 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         Update from coreutils.
74248
74249         2006-08-15  Jim Meyering  <jim@meyering.net>
74250
74251         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74252
74253         2006-01-17  Jim Meyering  <jim@meyering.net>
74254
74255         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74256
74257         2006-01-11  Jim Meyering  <jim@meyering.net>
74258
74259         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74260         Check for the lchmod function.
74261
74262 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         Update from coreutils.
74265
74266         * lib/__fpending.h: Add copyright notice.
74267         * lib/fprintftime.h: Likewise.
74268         * lib/savedir.c: Use (C) in copyright notice.
74269         * lib/savedir.h: Likewise.
74270
74271         2006-08-15  Jim Meyering  <jim@meyering.net>
74272
74273         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74274         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74275         in support of the EXPECTED_ERRNO macro.
74276         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74277         definitions.  Instead, define the appropriate symbols and include
74278         "at-func.c".
74279         * lib/mkdirat.c (mkdirat): Likewise.
74280         * lib/fchmodat.c (fchmodat): Likewise.
74281         (ENOSYS): Remove definition.
74282         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74283         it.  Don't include "unistd--.h" -- it wasn't ever used.
74284
74285         2006-01-17  Jim Meyering  <jim@meyering.net>
74286
74287         Rewrite fts.c not to change the current working directory,
74288         by using openat, fstatat, fdopendir, etc..
74289
74290         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74291         (HAVE_OPENAT_SUPPORT): Define.
74292         [_LIBC] (fchdir): Don't undef or define; no longer used.
74293         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74294         Now, this `function' always succeeds, and consumes its file descriptor
74295         parameter -- so callers must not close such FDs.  Update callers.
74296         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74297         (diropen): Add parameter, SP.  Adjust all callers.
74298         Implement using diropen_fd, rather than open.
74299         (fts_open): Initialize new member, fts_cwd_fd.
74300         Remove fts_rft-setting code.
74301         (fts_close): Close fts_cwd_fd, if necessary.
74302         (__opendir2): Define in terms of opendir or opendirat,
74303         depending on whether the FST_NOCHDIR flag is set.
74304         (fts_build): Since fts_safe_changedir consumes its FD, and since
74305         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74306         and close the dup'd file descriptor upon failure.
74307         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74308         (fts_safe_changedir): Tweak semantics to reflect that this function
74309         now calls cwd_advance_fd and hence consumes its FD argument.
74310         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74311         [struct FTS] (fts_rft): Remove now-unused member.
74312         [struct FTS] (fts_cycle.state): Improve comment.
74313
74314         * lib/openat.c (openat_needs_fchdir): New function.
74315         * lib/openat.h (openat_needs_fchdir): Declare it.
74316
74317 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74320         Problem and fix reported by Pádraig Brady in
74321         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74322
74323 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74326
74327 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         * lib/memcoll.c (memcoll): Optimize for the common case where the
74330         arguments are bytewise equal.
74331
74332 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * doc/regexprops-generic.texi: Add a copyright notice.
74335
74336 2006-08-15  Bruno Haible  <bruno@clisp.org>
74337
74338         * modules/tmpdir (License): Change to LGPL.
74339
74340 2006-08-15  Bruno Haible  <bruno@clisp.org>
74341
74342         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74343         module.
74344
74345 2006-08-14  Simon Josefsson  <jas@extundo.com>
74346
74347         * config/srclist.txt: Add gnupload.
74348
74349 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         Change copyright notice from LGPL 2 to GPL 2, since that's the
74352         standard form used in the gnulib repository.
74353         * tests/test-lock.c: Likewise.
74354         * tests/test-stdint.c: Likewise.
74355         * tests/test-tls.c: Likewise.
74356
74357         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74358         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74359         Add copyright notice.
74360
74361         * check-module: Add copyright notice.  Output a copyright
74362         notice if "--version" is specified.
74363         * modules/COPYING: New file.
74364         * tests/test-getaddrinfo.c: Add copyright notice.
74365         * tests/test-verify.c: Likewise.
74366
74367 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         Change copyright notice from LGPL 2 to GPL 2, since that's the
74370         standard form used in the gnulib repository.
74371         * lib/lock.c: LGPL -> GPL.
74372         * lib/lock.h: Likewise.
74373         * lib/strnlen1.c: Likewise.
74374         * lib/strnlen1.h: Likewise.
74375         * lib/tls.c: Likewise.
74376         * lib/tls.h: Likewise.
74377         * lib/tmpdir.c: Likewise.
74378
74379         * lib/TODO: Remove; this belongs only in coreutils.
74380
74381 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         Add copyright notices to long-enough files that lack them, since
74384         otherwise the files aren't clearly free.  Use the same notice that
74385         getdate.texi already uses.
74386         * doc/alloca-opt.texi: Add copyright notice.
74387         * doc/alloca.texi: Likewise.
74388         * doc/ctime.texi: Likewise.
74389         * doc/functions.texi: Likewise.
74390         * doc/gcd.texi: Likewise.
74391         * doc/gnulib-tool.texi: Likewise.
74392         * doc/inet_ntoa.texi: Likewise.
74393         * doc/visibility.texi: Likewise.
74394
74395         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74396         * doc/quote.texi: Add copyright notice.
74397
74398         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74399         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74400         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74401         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74402         is now obsolete, and give a pointer to the Sun list.
74403         Add copyright notice.
74404
74405 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * config/srclistvars.sh: Add copyright notice.
74408
74409 2006-08-14  Eric Blake  <ebb9@byu.net>
74410
74411         Import the following change from libc:
74412
74413         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74414
74415         Upstream bug 2997.
74416         * lib/misc/error.c: Add space between program name and message if file
74417         name is missing.
74418
74419 2006-08-12  Karl Berry  <karl@gnu.org>
74420
74421         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74422         remove, these originate in gnulib now.
74423
74424 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74425
74426         * doc/Makefile (standards.info standards.html standards.dvi):
74427         Also depend on make-stds.texi.
74428
74429 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74432         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74433
74434         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74435         in wchar_t.  Problem reported by Eric Blake.
74436
74437         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74438         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74439         Also, help the compiler to keep LEN in a register.
74440
74441 2006-08-11  Eric Blake  <ebb9@byu.net>
74442
74443         * users.txt: Sort.  Add tar.
74444
74445 2006-08-11  Bruno Haible  <bruno@clisp.org>
74446
74447         * users.txt: New file.
74448
74449 2006-08-11  Bruno Haible  <bruno@clisp.org>
74450
74451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74452         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74453
74454 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * modules/snprintf (Depends-on): Remove minmax.
74457         (Maintainer): Add self and Bruno.
74458
74459 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74462         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74463         (EOVERFLOW): Define if the system does not.
74464         Do not include "minmax.h"; it wasn't used.
74465         (snprintf): Don't assume size_t promotes to an unsigned type.
74466         Fix bug when generated string was too long for the buffer: the
74467         buffer's contents are supposed to be the initial prefix of the
74468         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74469         exceeds INT_MAX; do the check ourselves.
74470
74471         Import the following changes from libc:
74472
74473         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74474
74475         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74476         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74477         set wc to the byte which couldn't be converted.
74478         (re_string_reconstruct): Don't clear valid_raw_len before calling
74479         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74480         tip_context using re_string_context_at.
74481
74482         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74483
74484         * lib/posix/regex.h: g++ still cannot handled [restrict].
74485
74486         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74487
74488         * lib/posix/regex.h: Remove special handling for VMS.
74489
74490 2006-08-10  Jim Meyering  <jim@meyering.net>
74491
74492         * modules/same-inode: New module.
74493         * modules/dev-ino: New module.
74494         * modules/cycle-check: Depend on these modules, rather than simply
74495         including their .h files.
74496         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74497         required via m4/cycle-check.m4.
74498         * modules/same: Depend on new same-inode module, rather than
74499         including same-inode.h.
74500         * modules/chdir-safer: New file.
74501
74502         * modules/chown (Depends-on): Add stat-macros.
74503
74504 2006-08-10  Jim Meyering  <jim@meyering.net>
74505
74506         * m4/cycle-check.m4: New file.
74507         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74508         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74509
74510 2006-08-10  Eric Blake  <ebb9@byu.net>
74511
74512         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74513         in from original proposal.
74514
74515 2006-08-10  Eric Blake  <ebb9@byu.net>
74516         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74517
74518         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74519         namespace.
74520
74521 2006-08-10  Bruno Haible  <bruno@clisp.org>
74522
74523         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74524         as well.
74525
74526 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         Sync from coreutils.
74529
74530         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74531
74532         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74533         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74534
74535 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74536
74537         * modules/restrict: Remove; no longer needed now that we assume
74538         Autoconf 2.59 or later.
74539         * MODULES.html.sh: Remove 'restrict'.
74540         * modules/argp (Depends-on): Remove 'restrict'.
74541         * modules/base64 (Depends-on): Likewise.
74542         * modules/gc (Depends-on): Likewise.
74543         * modules/getaddrinfo (Depends-on): Likewise.
74544         * modules/glob (Depends-on): Likewise.
74545         * modules/inet_ntop (Depends-on): Likewise.
74546         * modules/inet_pton (Depends-on): Likewise.
74547         * modules/memxor (Depends-on): Likewise.
74548         * modules/regex (Depends-on): Likewise.
74549         * modules/strtok_r (Depends-on): Likewise.
74550         * modules/time_r (Depends-on): Likewise.
74551
74552 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74555         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74556         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74557         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74558         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74559         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74560         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74561         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74562
74563         Merge from coreutils.
74564         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74565         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74566         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74567         * m4/time_r.m4 (gl_TIME_R): Likewise.
74568
74569 2006-08-09  Karl Berry  <karl@gnu.org>
74570
74571         * config/srclist.txt: no more gettext-tools, per Bruno.
74572
74573 2006-08-08  Eric Blake  <ebb9@byu.net>
74574
74575         * modules/verror: New module.
74576         * MODULES.html.sh: Document it.
74577
74578 2006-08-08  Eric Blake  <ebb9@byu.net>
74579
74580         * lib/verror.h, lib/verror.c: New files.
74581
74582 2006-08-08  Eric Blake  <ebb9@byu.net>
74583
74584         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74585         verror_at_line output complies with GNU Coding Standards even when
74586         file is NULL.
74587
74588 2006-08-07  Bruno Haible  <bruno@clisp.org>
74589
74590         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74591         versions of AIX.
74592         Reported by Ralf Wildenhues.
74593
74594 2006-08-07  Bruno Haible  <bruno@clisp.org>
74595
74596         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74597         in an AC_DEFUN. Needed so that the autoconf snippets can use
74598         AC_REQUIRE.
74599
74600 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74601
74602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74603         Initialize pkgdata_DATA.
74604         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74605         overriding it.
74606
74607 2006-08-06  Eric Blake  <ebb9@byu.net>
74608
74609         * lib/error.h: Fold in some upstream changes from glibc.
74610         * lib/error.c: Likewise.
74611
74612 2006-08-04  Bruno Haible  <bruno@clisp.org>
74613
74614         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74615         Make the mostlyclean-local rule depend on mostlyclean-generic.
74616         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74617
74618 2006-07-31  Bruno Haible  <bruno@clisp.org>
74619
74620         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74621         <stdlib.h>, <string.h>.
74622
74623 2006-07-30  Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/readlink (License): Change to LGPL.
74626
74627 2006-07-30  Bruno Haible  <bruno@clisp.org>
74628
74629         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74630         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74631         set PKGDATADIR to point to it.
74632
74633 2006-07-30  Bruno Haible  <bruno@clisp.org>
74634
74635         * modules/csharpexec (configure.ac): Comment out macro invocation.
74636         * modules/javaexec (configure.ac): Likewise.
74637         * modules/javacomp-script (configure.ac): Likewise.
74638
74639         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74640
74641 2006-07-30  Bruno Haible  <bruno@clisp.org>
74642
74643         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74644         linked-list.
74645
74646 2006-07-30  Bruno Haible  <bruno@clisp.org>
74647
74648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74649
74650 2006-07-30  Bruno Haible  <bruno@clisp.org>
74651
74652         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74653         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74654         get removed.
74655
74656 2006-07-29  Bruno Haible  <bruno@clisp.org>
74657
74658         Make it possible for gnulib-tool to work with locally modified or
74659         augmented gnulib repositories.
74660         * gnulib-tool (func_usage): Document --local-dir option.
74661         (local_gnulib_dir): New variable.
74662         Handle --local-dir option.
74663         (func_lookup_file): New function.
74664         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74665         (func_get_description, func_get_filelist, func_get_description,
74666         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74667         func_get_automake_snippet, func_get_include_directive,
74668         func_get_license, func_get_maintainer): Use func_lookup_file.
74669         (func_import, func_create_testdir): Use func_lookup_file.
74670
74671 2006-07-29  Bruno Haible  <bruno@clisp.org>
74672
74673         * modules/setenv (Depends-on): Add unistd.
74674
74675 2006-07-29  Bruno Haible  <bruno@clisp.org>
74676
74677         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74678
74679 2006-07-29  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74682
74683 2006-07-29  Bruno Haible  <bruno@clisp.org>
74684
74685         * gnulib-tool (import, update): If there is no Makefile.am, look at
74686         aclocal.m4, instead of bailing out.
74687
74688 2006-07-29  Bruno Haible  <bruno@clisp.org>
74689
74690         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74691         Categorize the options by when they are useful.
74692
74693 2006-07-29  Bruno Haible  <bruno@clisp.org>
74694
74695         * gnulib-tool (func_usage): Document option --no-libtool.
74696         Handle option --no-libtool.
74697         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74698         for changed semantics of $libtool variable.
74699         (func_import): Likewise. If libtool is not used, show this through
74700         an option --no-libtool.
74701         (func_create_testdir): Update.
74702
74703 2006-07-29  Bruno Haible  <bruno@clisp.org>
74704
74705         * gnulib-tool (func_import): Extend error message about missing
74706         --doc-base.
74707
74708 2006-07-29  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool (func_import): Don't create the $docbase directory if
74711         there is no file to store there.
74712
74713 2006-07-29  Bruno Haible  <bruno@clisp.org>
74714
74715         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74716         relevant, look for configure.ac there, not in the current directory.
74717         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74718
74719 2006-07-29  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool (SORT): New variable.
74722         (func_usage): Undocument --assume-autoconf option.
74723         Remove --assume-autoconf option handling.
74724         (autoconf_minversion): Determine from the contents of configure.ac.
74725         (func_import): Remove autoconf_minversion handling.
74726         Suggested by Eric Blake.
74727
74728 2006-07-29  Bruno Haible  <bruno@clisp.org>
74729
74730         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74731
74732 2006-07-29  Bruno Haible  <bruno@clisp.org>
74733
74734         * config/srclist.txt (*setenv.[ch]): Remove rules.
74735
74736 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74737
74738         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74739
74740 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74741
74742         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74743         arpa/inet.h.
74744
74745 2006-07-28  Simon Josefsson  <jas@extundo.com>
74746
74747         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74748         * modules/inet_pton (Depends-on): Likewise.
74749
74750 2006-07-28  Simon Josefsson  <jas@extundo.com>
74751
74752         * m4/netinet_in_h.m4: New file.
74753
74754 2006-07-28  Simon Josefsson  <jas@extundo.com>
74755
74756         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74757         #include's.
74758
74759 2006-07-28  Simon Josefsson  <jas@extundo.com>
74760
74761         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74762         #include's.
74763
74764 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74765
74766         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74767         setgid on directories only if they set these bits.
74768         * lib/modechange.h: Remove obsolete comment about masks.
74769
74770 2006-07-28  Eric Blake  <ebb9@byu.net>
74771
74772         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74773         macro expansion.
74774
74775 2006-07-28  Bruno Haible  <bruno@clisp.org>
74776
74777         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74778
74779 2006-07-28  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74782
74783 2006-07-28  Bruno Haible  <bruno@clisp.org>
74784
74785         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74786         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74787         Define fallbacks.
74788         Avoids link error on FreeBSD 4.x.
74789         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74790
74791         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74792         encoding.
74793         * lib/mbswidth.c (iswcntrl): Likewise.
74794
74795 2006-07-27  Bruno Haible  <bruno@clisp.org>
74796
74797         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74798         test.
74799
74800 2006-07-27  Bruno Haible  <bruno@clisp.org>
74801
74802         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74803         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74804         defined.
74805
74806 2006-07-26  Eric Blake  <ebb9@byu.net>
74807
74808         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74809
74810 2006-07-26  Eric Blake  <ebb9@byu.net>
74811
74812         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74813         like mingw that lack mkstemp.
74814         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74815         avoid compilation warning on mingw.
74816
74817 2006-07-26  Bruno Haible  <bruno@clisp.org>
74818
74819         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74820         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74821         INT_FAST*_MIN, INTPTR_MIN.
74822
74823 2006-07-25  Bruno Haible  <bruno@clisp.org>
74824
74825         * modules/version-etc (Depends-on): Add stdarg.
74826
74827 2006-07-25  Bruno Haible  <bruno@clisp.org>
74828
74829         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74830         complex commands.
74831
74832 2006-07-25  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74835         defined in <stdarg.h> or config.h.
74836
74837 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74840         (gl_STDIO_SAFER): Remove.
74841
74842 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * MODULES.html.sh (File stream based Input/Output):
74845         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74846         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74847         * modules/fopen-safer, modules/tmpfile-safer: New files.
74848         * modules/stdio-safer: Remove.
74849
74850 2006-07-24  Bruno Haible  <bruno@clisp.org>
74851
74852         * modules/tmpdir: New file.
74853         * MODULES.html.sh (File system functions): Add it.
74854
74855 2006-07-24  Bruno Haible  <bruno@clisp.org>
74856
74857         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74858         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74859
74860 2006-07-24  Bruno Haible  <bruno@clisp.org>
74861
74862         * modules/clean-temp: New file.
74863
74864 2006-07-24  Bruno Haible  <bruno@clisp.org>
74865
74866         * m4/tmpdir.m4: New file, from GNU gettext.
74867
74868 2006-07-24  Bruno Haible  <bruno@clisp.org>
74869
74870         * lib/tmpdir.h: New file, from GNU gettext.
74871         * lib/tmpdir.c: New file, from GNU gettext.
74872
74873 2006-07-24  Bruno Haible  <bruno@clisp.org>
74874
74875         * lib/clean-temp.h: New file, from GNU gettext.
74876         * lib/clean-temp.c: New file, from GNU gettext.
74877
74878 2006-07-23  Eric Blake  <ebb9@byu.net>
74879
74880         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74881         (Depends-on): Add binary-io.
74882
74883 2006-07-23  Eric Blake  <ebb9@byu.net>
74884
74885         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74886
74887 2006-07-23  Eric Blake  <ebb9@byu.net>
74888
74889         * lib/tmpfile-safer.c: New file.
74890         * lib/stdio-safer.h (fopen_safer): Add prototype.
74891         * lib/stdio--.h (tmpfile): Make safer.
74892
74893 2006-07-23  Bruno Haible  <bruno@clisp.org>
74894
74895         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74896         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74897         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74898         gl_linked_remove_at): Use it.
74899
74900 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74901         and Simon Josefsson <jas@extundo.com>
74902
74903         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74904
74905         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74906
74907 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * modules/close-stream: New file.
74910         * modules/closeout (Description): Make it clear that it exits
74911         with a diagnostic on error.
74912         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74913         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74914
74915 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74916
74917         * m4/close-stream.m4: New file.
74918
74919 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         * lib/close-stream.c, lib/close-stream.h: New files.
74922
74923 2006-07-22  Bruno Haible  <bruno@clisp.org>
74924
74925         Merge from GNU gettext 0.15.
74926
74927         2006-05-01  Bruno Haible  <bruno@clisp.org>
74928
74929                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74930
74931         2006-07-22  Bruno Haible  <bruno@clisp.org>
74932
74933                 * modules/javaversion: New file.
74934                 * MODULES.html.sh (Java): Add javaversion.
74935
74936         2006-03-12  Bruno Haible  <bruno@clisp.org>
74937
74938                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74939
74940         2005-12-04  Bruno Haible  <bruno@clisp.org>
74941
74942                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74943                 (untested).
74944
74945         2006-06-21  Bruno Haible  <bruno@clisp.org>
74946
74947                 Avoid warnings from recent versions of mcs.
74948                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74949                 -o, -L, -r any more. Use options documented since mcs-1.0
74950                 instead. Similarly for -g.
74951
74952         2005-12-04  Bruno Haible  <bruno@clisp.org>
74953
74954                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74955                 .resources, not .resource.
74956
74957         2005-07-09  Bruno Haible  <bruno@clisp.org>
74958
74959                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74960                 add a .dll suffix.
74961                 Reported by Mark Junker <mjscod@gmx.de>.
74962
74963         2006-07-22  Bruno Haible  <bruno@clisp.org>
74964
74965                 * modules/gettext: Upgrade to gettext-0.15.
74966                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74967                 m4/visibility.m4.
74968                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74969
74970 2006-07-22  Bruno Haible  <bruno@clisp.org>
74971
74972         Merge from GNU gettext 0.15.
74973
74974         2006-03-25  Bruno Haible  <bruno@clisp.org>
74975
74976                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74977
74978         2006-07-21  Bruno Haible  <bruno@clisp.org>
74979
74980                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74981                 "1.1".
74982
74983         2006-05-09  Bruno Haible  <bruno@clisp.org>
74984
74985                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74986                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74987                 for the conftestver execution.
74988
74989         2006-05-01  Bruno Haible  <bruno@clisp.org>
74990
74991                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74992                 optional target-version argument. Verify that the compiler
74993                 groks source of the specified source-version, or add -source
74994                 option as necessary. Verify that the compiler produces
74995                 bytecode in the specified target-version, or add -target and
74996                 -source options as necessary. Make the result of the test
74997                 available as variable CONF_JAVAC. Also log error output in
74998                 config.log.
74999
75000         2006-03-11  Bruno Haible  <bruno@clisp.org>
75001
75002                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75003
75004         2006-05-09  Bruno Haible  <bruno@clisp.org>
75005
75006                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75007                 CLASSPATH_SEPARATOR to a semicolon.
75008
75009         2006-03-12  Bruno Haible  <bruno@clisp.org>
75010
75011                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75012                 available as variable CONF_JAVA, for subsequent autoconf
75013                 tests. Also log error output in config.log.
75014
75015         2006-07-19  Bruno Haible  <bruno@clisp.org>
75016
75017                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75018                 that getline works on glibc2 systems. Needed to avoid trouble
75019                 in relocatable.c.
75020                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75021
75022         2005-12-04  Bruno Haible  <bruno@clisp.org>
75023
75024                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75025                 launcher (untested).
75026
75027         2005-12-04  Bruno Haible  <bruno@clisp.org>
75028
75029                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75030
75031         2006-07-22  Bruno Haible  <bruno@clisp.org>
75032
75033                 * gettext.m4: Update from GNU gettext-0.15.
75034                 * nls.m4: Likewise.
75035                 * po.m4: Likewise.
75036                 * inttypes-pri.m4: Likewise.
75037                 * inttypes-h.m4: Renamed from inttypes.m4.
75038                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75039
75040 2006-07-22  Bruno Haible  <bruno@clisp.org>
75041
75042         Merge from GNU gettext 0.15.
75043
75044         2005-07-05  Bruno Haible  <bruno@clisp.org>
75045
75046                 * printf-args.c (printf_fetchargs): Work around broken
75047                 definition of wint_t on mingw.
75048
75049         2005-02-12  Bruno Haible  <bruno@clisp.org>
75050
75051                 * xallocsa.h: Add extern "C" for C++.
75052
75053         2006-05-17  Bruno Haible  <bruno@clisp.org>
75054
75055                 Cygwin portability.
75056                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75057
75058         2006-04-30  Bruno Haible  <bruno@clisp.org>
75059
75060                 * progreloc.c: Include <mach-o/dyld.h> if available.
75061                 (find_executable): Use _NSGetExecutablePath when possible.
75062
75063         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75064
75065                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75066                 function.
75067
75068         2005-12-29  Bruno Haible  <bruno@clisp.org>
75069
75070                 * progreloc.c (set_program_name_and_installdir): Fix
75071                 compilation error.
75072
75073         2005-12-04  Bruno Haible  <bruno@clisp.org>
75074
75075                 Cygwin portability.
75076                 * progreloc.c: Include <windows.h> also on Cygwin.
75077                 (find_executable): Add support for Cygwin.
75078                 (set_program_name_and_installdir): Handle also platforms with
75079                 nonempty EXEEXT.
75080
75081         2006-07-11  Bruno Haible  <bruno@clisp.org>
75082
75083                 * javacomp.c: Fix a comment.
75084                 Reported by Jim Meyering.
75085
75086         2006-04-30  Bruno Haible  <bruno@clisp.org>
75087
75088                 * javacomp.h (compile_java_class): Add source_version,
75089                 target_version arguments.
75090                 * javacomp.c: Rewritten to choose only a compiler that
75091                 respects the specified source_version and target_version.
75092
75093         2006-06-27  Bruno Haible  <bruno@clisp.org>
75094
75095                 Assume correct S_ISDIR macro.
75096                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75097
75098         2006-07-22  Bruno Haible  <bruno@clisp.org>
75099
75100                 * javaversion.h: New file, from GNU gettext.
75101                 * javaversion.c: New file, from GNU gettext.
75102                 * javaversion.java: New file, from GNU gettext.
75103                 * javaversion.class: New file, from GNU gettext.
75104
75105         2006-05-17  Bruno Haible  <bruno@clisp.org>
75106
75107                 Cygwin portability.
75108                 * javaexec.c (execute_java_class): Test for jview program
75109                 also on Cygwin.
75110
75111         2006-04-09  Bruno Haible  <bruno@clisp.org>
75112
75113                 * fatal-signal.c: Don't include string.h.
75114                 (at_fatal_signal): Use a copying loop instead of memcpy.
75115
75116         2005-12-04  Bruno Haible  <bruno@clisp.org>
75117
75118                 * csharpexec.c: Add support for 'clix' launcher (untested).
75119                 (execute_csharp_using_sscli): New function.
75120                 (execute_csharp_program): Call it.
75121
75122         2006-06-21  Bruno Haible  <bruno@clisp.org>
75123
75124                 Avoid warnings from recent versions of mcs.
75125                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75126                 -o, -L, -r any more. Use options documented since mcs-1.0
75127                 instead. Similarly for -g.
75128
75129         2005-07-09  Bruno Haible  <bruno@clisp.org>
75130
75131                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75132                 add a .dll suffix.
75133                 Reported by Mark Junker <mjscod@gmx.de>.
75134
75135         2006-06-17  Bruno Haible  <bruno@clisp.org>
75136
75137                 * config.charset: Update for NetBSD 3.0.
75138
75139         2006-05-17  Bruno Haible  <bruno@clisp.org>
75140
75141                 Cygwin portability.
75142                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75143
75144         2006-05-16  Bruno Haible  <bruno@clisp.org>
75145
75146                 * localcharset.c [CYGWIN]: Include <windows.h>.
75147                 (get_charset_aliases): For Cygwin, return the same CPxxx
75148                 aliases list as under WIN32.
75149                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75150                 the environment variables. Fall back to GetACP().
75151
75152         2006-04-05  Bruno Haible  <bruno@clisp.org>
75153
75154                 * config.charset: Update Juan Manuel Guerrero's address.
75155
75156         2005-02-12  Bruno Haible  <bruno@clisp.org>
75157
75158                 * allocsa.h: Add extern "C" for C++.
75159
75160         2005-02-10  Bruno Haible  <bruno@clisp.org>
75161
75162                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75163                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75164
75165         2006-07-22  Bruno Haible  <bruno@clisp.org>
75166
75167                 * gettext.h: Update to GNU gettext-0.15.
75168
75169 2006-07-22  Bruno Haible  <bruno@clisp.org>
75170
75171         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75172         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75173         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75174
75175 2006-07-21  Eric Blake  <ebb9@byu.net>
75176
75177         * modules/stdlib-safer: New file.
75178         * MODULES.html.sh (File stream based Input/Output): Add
75179         stdlib-safer.
75180
75181 2006-07-21  Eric Blake  <ebb9@byu.net>
75182
75183         * lib/stdlib-safer.h: New file from coreutils, required by
75184         stdlib--.h.
75185
75186 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75189
75190 2006-07-20  Bruno Haible  <bruno@clisp.org>
75191
75192         * gnulib-tool: Recognize new option --assume-autoconf.
75193         (autoconf_minversion): New variable.
75194         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75195
75196 2006-07-20  Bruno Haible  <bruno@clisp.org>
75197
75198         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75199
75200 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75201
75202         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75203         Reindent and repaginate.
75204
75205 2006-07-19  Derek Price  <derek@ximbiot.com>
75206
75207         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75208         Correct grammar.
75209
75210 2006-07-17  Bruno Haible  <bruno@clisp.org>
75211
75212         * modules/list: New file.
75213         * modules/array-list: New file.
75214         * modules/carray-list, modules/carray-list-tests: New files.
75215         * modules/linked-list, modules/linked-list-tests: New files.
75216         * modules/avltree-list, modules/avltree-list-tests: New files.
75217         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75218         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75219         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75220         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75221         * modules/oset: New file.
75222         * modules/array-oset: New file.
75223         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75224         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75225         * tests/test-carray_list.c: New file.
75226         * tests/test-linked_list.c: New file.
75227         * tests/test-avltree_list.c: New file.
75228         * tests/test-rbtree_list.c: New file.
75229         * tests/test-linkedhash_list.c: New file.
75230         * tests/test-avltreehash_list.c: New file.
75231         * tests/test-rbtreehash_list.c: New file.
75232         * tests/test-avltree_oset.c: New file.
75233         * tests/test-rbtree_oset.c: New file.
75234         * MODULES.html.sh (Container data structures): New section.
75235
75236 2006-07-17  Bruno Haible  <bruno@clisp.org>
75237
75238         * m4/gl_list.m4: New file.
75239
75240 2006-07-17  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/gl_list.h: New file.
75243         * lib/gl_list.c: New file.
75244         * lib/gl_array_list.h: New file.
75245         * lib/gl_array_list.c: New file.
75246         * lib/gl_carray_list.h: New file.
75247         * lib/gl_carray_list.c: New file.
75248         * lib/gl_linked_list.h: New file.
75249         * lib/gl_linked_list.c: New file.
75250         * lib/gl_anylinked_list1.h: New file.
75251         * lib/gl_anylinked_list2.h: New file.
75252         * lib/gl_avltree_list.h: New file.
75253         * lib/gl_avltree_list.c: New file.
75254         * lib/gl_anyavltree_list1.h: New file.
75255         * lib/gl_anyavltree_list2.h: New file.
75256         * lib/gl_rbtree_list.h: New file.
75257         * lib/gl_rbtree_list.c: New file.
75258         * lib/gl_anyrbtree_list1.h: New file.
75259         * lib/gl_anyrbtree_list2.h: New file.
75260         * lib/gl_anytree_list1.h: New file.
75261         * lib/gl_anytree_list2.h: New file.
75262         * lib/gl_linkedhash_list.h: New file.
75263         * lib/gl_linkedhash_list.c: New file.
75264         * lib/gl_anyhash_list1.h: New file.
75265         * lib/gl_anyhash_list2.h: New file.
75266         * lib/gl_avltreehash_list.h: New file.
75267         * lib/gl_avltreehash_list.c: New file.
75268         * lib/gl_rbtreehash_list.h: New file.
75269         * lib/gl_rbtreehash_list.c: New file.
75270         * lib/gl_anytreehash_list1.h: New file.
75271         * lib/gl_anytreehash_list2.h: New file.
75272
75273         * lib/gl_oset.h: New file.
75274         * lib/gl_oset.c: New file.
75275         * lib/gl_array_oset.h: New file.
75276         * lib/gl_array_oset.c: New file.
75277         * lib/gl_avltree_oset.h: New file.
75278         * lib/gl_avltree_oset.c: New file.
75279         * lib/gl_rbtree_oset.h: New file.
75280         * lib/gl_rbtree_oset.c: New file.
75281         * lib/gl_anytree_oset.h: New file.
75282
75283 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         * m4/mkancesdirs.m4: New file.
75286         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75287         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75288         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75289         it.
75290
75291 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75294         * lib/mkancesdirs.h: New files.
75295         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75296         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75297         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75298         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75299         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75300         callers changed.  Revamp internals significantly, by not
75301         attempting to create directories that are temporarily more
75302         permissive than the final results.  Do not attempt to use
75303         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75304         This removes some race conditions, fixes some bugs, and simplifies
75305         things.  Use new dirchownmod function to do owner and mode changes.
75306         * lib/mkdir-p.h: Likewise.
75307         * lib/modechange.c (octal_to_mode): New function.
75308         (struct mode_change): New member mentioned.
75309         (make_node_op_equals): New arg mentioned.  All callers changed.
75310         (mode_compile): Keep track of which mode bits the user has explicitly
75311         mentioned.
75312         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75313         New arg PMODE_BITS, to keep track of which mode bits the user
75314         mentioned; it treats S_ISUID and S_ISGID speciall.
75315         All callers changed.
75316         * lib/modechange.h: Likewise.
75317
75318 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * MODULES.html.sh: Add mkancestors.
75321         * modules/mkancesdirs: New module.
75322         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75323         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75324         The chdir-safer and afs files are now orphans; I'll remove them
75325         unless someone speaks up.
75326         Add lib/dirchownmod.c, lib/dirchownmod.h.
75327         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75328         Add lchown, mkancesdirs.
75329         (Maintainer): Add self.
75330
75331 2006-07-15  Karl Berry  <karl@gnu.org>
75332
75333         * gnulib-tool: help message wording/arrangement.
75334
75335 2006-07-14  Simon Josefsson  <jas@extundo.com>
75336
75337         * doc/gnulib.texi (Libtool and Windows): New section.
75338
75339 2006-07-12  Simon Josefsson  <jas@extundo.com>
75340
75341         * modules/gendocs (License): Fix license, approved by Karl.
75342
75343 2006-07-12  Eric Blake  <ebb9@byu.net>
75344
75345         * MODULES.html.sh: Add gendocs.
75346
75347 2006-07-11  Eric Blake  <ebb9@byu.net>
75348
75349         * modules/fdl: New module, to install doc/fdl.texi.
75350         * MODULES.html.sh: Add new section for documentation modules.
75351         * gnulib-tool: Avoid space-tab.
75352         (--doc-base): New option, to manage files from doc.
75353
75354 2006-07-11  Eric Blake  <ebb9@byu.net>
75355
75356         * m4/absolute-header.m4: Fix comments to match recent change.
75357
75358 2006-07-11  Eric Blake  <ebb9@byu.net>
75359
75360         * gnulib-tool: List --doc-base before --tests-base.
75361
75362 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75363
75364         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75365
75366 2006-07-11  Bruno Haible  <bruno@clisp.org>
75367
75368         * README: Mention where to put documentation.
75369
75370 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75371
75372         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75373
75374 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75377         to stdint.m4.
75378
75379 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75382         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75383         "no/such/file/stdint.h" when there is no such file, so that
75384         the resulting C code can be parsed by dodgy compilers.
75385         Problems reported by Bob Proulx.
75386
75387 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75388
75389         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75390         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75391         macros into the GNU _D_EXACT_NAMLEN.
75392         * lib/savedir.c:  Likewise.
75393         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75394
75395 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75396         and Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75399         * m4/savedir.m4:
75400         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75401         macros into the GNU _D_EXACT_NAMLEN.
75402
75403 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75406         around the absolute name, to work around a problem with the HP-UX
75407         11.23 native C compiler, reported by Bob Proulx.
75408
75409 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75410
75411         * doc/maintain.texi, make-stds.texi: Sync from
75412         <http://savannah.gnu.org/projects/gnustandards>.
75413
75414 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75417
75418 2006-07-09  Jim Meyering  <jim@meyering.net>
75419
75420         * m4/glob.m4: Remove a doubled word in a comment.
75421
75422 2006-07-09  Jim Meyering  <jim@meyering.net>
75423
75424         * lib/argp-pv.c: Remove a doubled word in a comment.
75425         * lib/check-version.c (check_version): Likewise.
75426         * lib/javacomp.c (compile_java_class): Likewise.
75427
75428 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75429
75430         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75431         for the benefit of people using Autoconf 2.60.  If you want to
75432         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75433         (or m4/onceonly.m4, if pre-2.57) manually.
75434
75435 2006-07-08  Jim Meyering  <jim@meyering.net>
75436
75437         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75438         comment.
75439         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75440         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75441         comment.
75442
75443 2006-07-08  Jim Meyering  <jim@meyering.net>
75444
75445         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75446
75447 2006-07-07  Simon Josefsson  <jas@extundo.com>
75448
75449         * tests/test-crc.c: Change expected crc value, the test vector
75450         were probably computed using the old broken crc.c?
75451
75452 2006-07-06  Simon Josefsson  <jas@extundo.com>
75453
75454         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75455         now the canonical place for the M4 file).
75456
75457         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75458         from the sys_socket dependency now.
75459
75460         * modules/inet_pton (Files): Ditto.
75461
75462         * modules/inet_ntop (Files): Ditto.
75463
75464 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75465
75466         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75467         not gl_PREREQ_GETUSERSHELL.
75468
75469 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75470
75471         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75472         with only one argument, for Autoconf 2.60.
75473         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75474         expand to nothing, so add a shell command to avoid syntax error.
75475         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75476
75477 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75478
75479         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75480
75481 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75484         no longer needed.  Check for isblank decl.
75485         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75486         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75487         of existence.
75488
75489 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * lib/getloadavg.c: Use __VMS, not VMS.
75492         * lib/getopt.c: Likewise.
75493         * lib/getpagesize.h: Likewise.
75494         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75495         and probably does not work.
75496
75497 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/.cppi-disable: Add wcwidth.
75500         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75501         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75502         (ISGRAPH): Remove.  All uses changed to isgraph.
75503         (FOLD) [!defined _LIBC]: Remove special case.
75504         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75505         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75506         HAVE_ISBLANK.
75507         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75508         case.
75509
75510 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75511
75512         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75513         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75514         brackets.  Other minor changes to suppress some compiler
75515         warnings.
75516
75517 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75518         and Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75521         of invoking obsolescent AC_HEADER_DIRENT macro.
75522         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75523         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75524         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75525         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75526         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75527         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75528         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75529         * m4/readdir.m4: Remove; no longer needed.
75530
75531 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75532         and Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75535         Don't worry about this obsolete case any more.
75536         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75537         directories.
75538         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75539         worry about this obsolete case any more.
75540         * lib/fts.c: Likewise.
75541         * lib/getcwd.c: Likewise.
75542         * lib/glob.h: Likewise.
75543         * lib/savedir.c: Likewise.
75544
75545 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75546
75547         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75548         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75549         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75550         needed.
75551         All uses removed.
75552         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75553         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75554         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75555         needed.
75556         * m4/getdate.m4 (gl_GETDATE): Likewise.
75557         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75558         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75559         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75560         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75561         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75562         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75563         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75564         needed.
75565
75566 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75567
75568         * lib/memcasecmp.c: Include <limits.h>.
75569         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75570         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75571         Don't assume isdigit succeeds only on '0' through '9'.
75572
75573 2006-07-05  Eric Blake  <ebb9@byu.net>
75574
75575         * modules/getaddrinfo (Depends-on): Add snprintf.
75576
75577 2006-07-05  Eric Blake  <ebb9@byu.net>
75578
75579         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75580         to avoid 'header present but could not be compiled' on cygwin.
75581
75582 2006-07-05  Eric Blake  <ebb9@byu.net>
75583
75584         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75585         missing from netdb.h.
75586         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75587
75588 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75589
75590         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75591         no longer needed.
75592         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75593         * m4/getdate.m4 (gl_GETDATE): Likewise.
75594         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75595         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75596         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75597         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75598         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75599
75600 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75601
75602         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75603         All uses of is_space replaced by isspace.
75604         * lib/exit.h: Don't talk about STDC_HEADERS.
75605         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75606         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75607         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75608         replaced by isprint etc.
75609         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75610         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75611         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75612         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75613         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75614         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75615
75616 2006-07-05  Bruno Haible  <bruno@clisp.org>
75617
75618         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75619         the function exists, before testing against AIX.
75620         Reported by Martin Lambers <marlam@marlam.de>.
75621
75622 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75625         From Mark D. Baushke.
75626
75627 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75630         to the absolute name, not just one, to bypass Sun C 5.8's
75631         "warning: #include of /usr/include/... may be non-portable".
75632
75633 2006-07-04  Eric Blake  <ebb9@byu.net>
75634
75635         * modules/dirname-tests: New test module.
75636         * tests/test-dirname.c: New file, replacing dirname.c
75637         TEST_DIRNAME section that was recently deleted.
75638
75639 2006-07-04  Bruno Haible  <bruno@clisp.org>
75640
75641         Assume ANSI C header files and <ctype.h> functions.
75642         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75643         (mbsnwidth): Use isprint, iscntrl instead.
75644
75645 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         Merge from coreutils.
75648         * MODULES.html.sh: Add xstrtold.
75649         * modules/xstrtold: New file.
75650         * modules/cycle-check (Files): Add lib/same-inode.h.
75651         * modules/dirname (Files): Add m4/double-slash-root.m4.
75652         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75653         * modules/mkdir-p (Files): Add lib/same-inode.h.
75654         * modules/same (Files): Add lib/same-inode.h.
75655
75656 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75657
75658         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75659         This is to keep the terminology clean; POSIX talks about
75660         "absolute pathnames", not "full pathnames", but the GNU
75661         Coding Standards say to use "path" for something else;
75662         so use "absolute" to keep both sides happy.
75663         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75664         Set gl_absolute_header, not gl_full_header_path.
75665         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75666         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75667         All uses changed.
75668
75669         Merge from coreutils.
75670
75671         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75674         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75675         want to require the building of c-strtod.o.
75676         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75677         needs -lm directly.
75678         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75679
75680         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75683         --as-needed option if available.  Problem reported by Albert Chin in
75684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75685         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75686         cc merely issues a bunch of annoying warnings for --as-needed
75687         (this problem was reported by Bob Proulx).  Also, try linking with
75688         -lm to detect a bug in binutils 2.16 (this problem was reported
75689         by Ralf Wildenhues).
75690
75691         2006-06-18  Jim Meyering  <jim@meyering.net>
75692
75693         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75694         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75695         macro.
75696         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75697         also check for glibc-2.4's abort-inducing bug.
75698
75699         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75700         Low-probability clean-up should be to use rmdir to get rid of
75701         the just-created directory, not unlink.
75702
75703         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75704         configure fail, and request a bug report to inform us about it.
75705         Add a comment that, barring reports to the contrary, in 2007 we'll
75706         assume ftruncate is universally available.
75707
75708         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75711
75712         2006-03-12  Jim Meyering  <jim@meyering.net>
75713
75714         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75715         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75716         * m4/same.m4 (gl_SAME): Likewise.
75717         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75718
75719         2006-03-11  Eric Blake  <ebb9@byu.net>
75720
75721         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75722         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75723         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75724         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75725
75726 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75729         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75730         reported by Mark D. Baushke, one in
75731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75732
75733         Merge from coreutils.
75734
75735         * lib/.cppi-disable: Add stdint_.h.
75736         * lib/.cvsignore: Add stdint.h.
75737
75738         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75739
75740         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75741         both double and long double versions.
75742         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75743         * lib/xstrtold.c: New file.
75744         * lib/xstrtod.h (xstrtold): New decl.
75745
75746         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * lib/filemode.c (setst): Remove.
75749         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75750         (arguably) clearer, and the generated code is a bit smaller on my
75751         Debian GNU/Linux stable x86 host.
75752
75753         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75756         Assume that filemode.h includes sys/types.h and sys/stat.h.
75757         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75758         (ftypelet): Reorder to put common cases first, for efficiency.
75759         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75760         to do 'M'.
75761         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75762         of 10, for compatibility with FreeBSD.  All callers changed.
75763         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75764         types that can't be deduced solely from st_mode.  First arg is now a
75765         const pointer.
75766         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75767         (strmode): Renamed from mode_string.
75768         (filemodestring): New decl.
75769         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75770         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75771         needed.
75772         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75773
75774         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75777         fsusage.h now does that.  Include fsusage.h first, to test interface.
75778         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75779         at most one method (the old code could have generated decls that
75780         didn't conform to C89, not that this was ever exercised).
75781         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75782
75783         2006-03-19  Jim Meyering  <jim@meyering.net>
75784
75785         Work even in a chroot where d_ino values for entries in "/"
75786         don't match the stat.st_ino values for the same names.
75787         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75788         number, iterate through all entries again, using lstat instead.
75789         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75790         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75791
75792         * lib/getcwd.c (__getcwd): Clarify a comment.
75793         Use memcpy in place of a call to strcpy.
75794
75795         2006-03-12  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75798         matches that of the current directory (which we're about to chdir ".."
75799         out of), then save the dev-ino of the parent, instead.
75800
75801         * lib/same-inode.h (SAME_INODE): New file/macro.
75802         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75803         Include "same-inode.h", instead.
75804         * lib/same.c: Likewise.
75805         * lib/cycle-check.h: Include "same-inode.h".
75806         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75807         * lib/cycle-check.c (SAME_INODE): Remove definition.
75808         * lib/root-dev-ino.h: Include "same-inode.h".
75809
75810         2006-03-11  Eric Blake  <ebb9@byu.net>
75811
75812         * lib/same.c (same_name): s/base_name/last_component/
75813         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75814         * lib/filenamecat.c (file_name_concat): Likewise.
75815
75816         2006-03-11  Eric Blake  <ebb9@byu.net>,
75817                     Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75820         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75821         drive prefix.
75822         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75823         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75824         (last_component): New method.
75825         * lib/dirname.c (dir_len): Determine when drive letters need a
75826         subsequent slash.  Preserve // when it is special.
75827         (dir_name): Don't append dot when drive letter is absolute.
75828         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75829         * lib/basename.c (base_name): New semantics - malloc the result.
75830         Preserve // when it is special.  Preserve relative files that look
75831         like drive letters.
75832         (base_len): Preserve // when it is special.
75833         (last_component): New method, similar to old base_name semantics.
75834         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75835         base_name.  Strip redundant slashes from ///.
75836
75837 2006-07-03  Jim Meyering  <jim@meyering.net>
75838
75839         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75840         macro is used before the first cycle_check call.
75841
75842 2006-07-03  Eric Blake  <ebb9@byu.net>
75843
75844         * modules/dirname (Depends-on): Add xstrndup.
75845
75846 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75849         test cases, so that config.log is a bit easier to follow.
75850
75851 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75854         both are 64 bits, since this seems to be the tradition, and this
75855         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75856         we ever run into a host that prefers long long to long in this
75857         case, we'll need another configure-time test.  Problem reported by
75858         Jim Meyering.
75859
75860 2006-07-02  Eric Blake  <ebb9@byu.net>
75861
75862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75863
75864 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * modules/inttypes (Depends-on): No longer depends on stdint.
75867         * modules/stdint (Description): Say more about assumptions.
75868         Say that the fast types might differ.  Say macros are used.
75869         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75870         (Makefile.am): Revise list of substituted symbols to match
75871         new stdint.m4.
75872         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75873         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75874         * tests/test-stdint.c (verify_same_types)
75875         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75876         the code conforms to C99/C89.
75877         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75878         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75879
75880 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75883         but fix a bug, by requiring at least 64 bits.
75884         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75885         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75886         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75887         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75888
75889         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75890         changes.  Make 2.59 a prerequisite.  Check and substitute for
75891         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75892         inttypes.h.  Do not use special include files; just use the
75893         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75894         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75895         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75896         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75897         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75898         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75899         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75900         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75901         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75902         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75903         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75904         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75905         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75906         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75907         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75908         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75909         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75910         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75911         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75912         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75913         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75914         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75915         not check for things that C99 does not require, e.g., int8_t.  If
75916         a test isn't needed unless <stdint.h> isn't working, and is
75917         unlikely to be needed for any other reason, then don't do it
75918         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75919         size_t, since we assume C89 freestanding at least.  Do not check
75920         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75921         the right thing even if the types are not defined.  Instead use:
75922         (gl_STDINT_TYPE_PROPERTIES): New macro.
75923         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75924         testing whether <sys/types.h> clashes, as Autoconf does this for
75925         us now.  All uses removed.
75926         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75927         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75928         (gl_CHECK_TYPE_SAME):
75929         Remove; no longer needed.
75930         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75931         exists, since we'll return 0 anyway in that case.
75932         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75933
75934 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75937         possible collision with system files.
75938         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75939         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75940         WCHAR_MIN and WCHAR_MAX in this case.
75941         (<stddef.h>): Do not include; no longer needed.
75942         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75943         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75944         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75945         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75946         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75947         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75948         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75949         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75950         !defined(__c99))]: Include in this case too, since it's harmless
75951         now.
75952         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75953         dangerous to do so.
75954         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75955         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75956         (_STDINT_MIN, _STDINT_MAX): New macros.
75957         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75958         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75959         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75960         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75961         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75962         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75963         macros, not typedefs; this simplifies things quite a bit.
75964         Use long int for all types narrower than int64_t.
75965         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75966         Define in terms of long long int or int64_t or long int,
75967         not int64_t or int32_t.  This saves some compile-time testing.
75968         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75969         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75970         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75971         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75972         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75973         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75974         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75975         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75976         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75977         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75978         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75979         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75980         undef any previous version and define our own version, for
75981         simplicity and consistency with the new macros for types.
75982         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75983         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75984         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75985         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75986         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75987         @WINT_T_SUFFIX@ to keep things simple here.
75988         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75989         Simplify by assuming typical 8/16/32/64 host, since we're
75990         already doing that elsewhere anyway.
75991         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75992         and assume long long int is 64 bits if available.  This
75993         speeds up 'configure'.
75994
75995 2006-07-01  Eric Blake  <ebb9@byu.net>
75996
75997         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75998         Reported by Andreas Buening.
75999
76000 2006-07-01  Eric Blake  <ebb9@byu.net>
76001
76002         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76003
76004 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76005
76006         * lib/getaddrinfo.c: fixed typo
76007
76008 2006-06-29  Jim Meyering  <jim@meyering.net>
76009
76010         * modules/strftime (Maintainer): Add my name, since with the
76011         FPRINTFTIME changes strftime.c has forked from glibc.
76012
76013 2006-06-29  Eric Blake  <ebb9@byu.net>
76014
76015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76016
76017 2006-06-29  Eric Blake  <ebb9@byu.net>
76018
76019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76020
76021 2006-06-29  Eric Blake  <ebb9@byu.net>
76022
76023         * lib/stat_.h: New file.
76024
76025 2006-06-29  Eric Blake  <ebb9@byu.net>
76026
76027         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76028         unused static function.
76029
76030 2006-06-29  Eric Blake  <ebb9@byu.net>
76031
76032         * doc/functions.texi (Function Portability): Document missing lstat
76033         on mingw.
76034
76035 2006-06-29  Eric Blake  <ebb9@byu.net>
76036
76037         * MODULES.html.sh: Add sys_stat.
76038         * modules/sys_stat: New module.
76039         * modules/mkstemp (Depends-on): Add sys_stat.
76040
76041 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76042
76043         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76044
76045 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76046
76047         * m4/c-bs-a.m4: Removed.
76048
76049 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76050
76051         * lib/strftime.c: Assume strftime() exists.
76052
76053 2006-06-29  Derek Price  <derek@ximbiot.com>
76054
76055         * modules/c-bs-a: Removed - \a is C89.
76056         * MODULES.html.sh: Remove c-bs-a.
76057
76058 2006-06-29  Bruno Haible  <bruno@clisp.org>
76059
76060         * modules/wcwidth (License): Change to LGPL.
76061
76062 2006-06-28  Simon Josefsson  <jas@extundo.com>
76063
76064         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76065         on _WIN32.
76066
76067         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76068         getnameinfo.
76069
76070 2006-06-28  Simon Josefsson  <jas@extundo.com>
76071
76072         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76073
76074 2006-06-28  Simon Josefsson  <jas@extundo.com>
76075
76076         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76077         functions there.  It will succeed on Windows XP, but on Windows
76078         2000 and (presumably) earlier, it will fail, and use the internal
76079         re-implementation.
76080         (use_win32_p): New function.
76081         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76082         Support AI_NUMERICSERV to disable getservbyname.
76083         (getnameinfo): New function, only supports
76084         NI_NUMERICHOST|NI_NUMERICSERV for now.
76085
76086         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76087         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76088         getnameinfo.
76089
76090 2006-06-28  Eric Blake  <ebb9@byu.net>
76091
76092         * modules/wcwidth: New file.
76093         * modules/mbchar (Depends-on): Add wcwidth.
76094         * modules/mbswidth (Depends-on): Add wcwidth.
76095         * MODULES.html.sh: Add wcwidth.
76096
76097 2006-06-28  Eric Blake  <ebb9@byu.net>
76098
76099         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76101
76102 2006-06-28  Eric Blake  <ebb9@byu.net>
76103
76104         * lib/xvasprintf.h: Fix comments.
76105
76106 2006-06-28  Eric Blake  <ebb9@byu.net>
76107
76108         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76109         * lib/mbswidth.c (wcwidth): Move from here...
76110         * lib/wcwidth.h: ...to this new file.
76111
76112 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76113
76114         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76115
76116         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76117         it's obsolete.
76118         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76119
76120 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76121
76122         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76123         Autoconf 2.60 says this stuff was obsolete.
76124
76125 2006-06-28  Bruno Haible  <bruno@clisp.org>
76126
76127         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76128
76129 2006-06-28  Bruno Haible  <bruno@clisp.org>
76130
76131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76132         gt_TYPE_WCHAR_T.
76133
76134 2006-06-28  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76137         declaration for wcwidth.
76138         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76139
76140 2006-06-28  Bruno Haible  <bruno@clisp.org>
76141
76142         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76143         (mkdir): Define using _mkdir.
76144
76145 2006-06-28  Bruno Haible  <bruno@clisp.org>
76146
76147         * lib/getaddrinfo.h: Fix POSIX URL.
76148         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76149         _WIN32.
76150         (use_win32_p): Make static.
76151         (getaddrinfo): Reject service name if it is empty or does not consist
76152         solely of decimal digits, or if its value is > 65535.
76153         (getnameinfo): Remove useless casts.
76154
76155 2006-06-27  Simon Josefsson  <jas@extundo.com>
76156
76157         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76158         Eggert and Martin Lambers.
76159
76160 2006-06-27  Simon Josefsson  <jas@extundo.com>
76161
76162         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76163         Eggert and Martin Lambers.
76164
76165 2006-06-27  Bruno Haible  <bruno@clisp.org>
76166
76167         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76168         result to 0, not to empty.
76169         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76170
76171 2006-06-27  Bruno Haible  <bruno@clisp.org>
76172
76173         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76174
76175 2006-06-26  Simon Josefsson  <jas@extundo.com>
76176
76177         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76178         present.
76179
76180 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76183         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76185
76186 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76187
76188         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76189
76190 2006-06-26  Bruno Haible  <bruno@clisp.org>
76191
76192         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76193
76194 2006-06-26  Bruno Haible  <bruno@clisp.org>
76195
76196         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76197
76198 2006-06-26  Bruno Haible  <bruno@clisp.org>
76199
76200         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76201         SGI C compiler in pre-C99 mode.
76202         Suggested by Mark D. Baushke and Larry Jones.
76203
76204 2006-06-26  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76207         WCHAR_MAX.
76208         Reported by Mark D. Baushke and Larry Jones.
76209
76210 2006-06-26  Bruno Haible  <bruno@clisp.org>
76211
76212         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76213         in pre-C99 mode.
76214         Suggested by Mark D. Baushke and Larry Jones.
76215
76216 2006-06-23  Simon Josefsson  <jas@extundo.com>
76217             Bruno Haible  <bruno@clisp.org>
76218
76219         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76220         Emit mostlyclean-local rule.
76221         (func_emit_tests_Makefile_am): Likewise.
76222         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76223
76224 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76225
76226         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76227
76228 2006-06-23  Bruno Haible  <bruno@clisp.org>
76229
76230         * tests/test-stdint.c: Update to match ISO C 99 Technical
76231         Corrigendum 1.
76232
76233 2006-06-23  Bruno Haible  <bruno@clisp.org>
76234
76235         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76236
76237 2006-06-23  Bruno Haible  <bruno@clisp.org>
76238
76239         * lib/stdint_.h: Treat IRIX like OpenBSD.
76240
76241 2006-06-23  Bruno Haible  <bruno@clisp.org>
76242
76243         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76244         ISO C 99 Technical Corrigendum 1.
76245
76246 2006-06-22  Simon Josefsson  <jas@extundo.com>
76247
76248         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76249         MinGW.
76250
76251 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76254         needed.  Some compiler complained about some of them.  Problem reported
76255         by Larry Jones in
76256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76257
76258 2006-06-21  Simon Josefsson  <jas@extundo.com>
76259
76260         * tests/test-getaddrinfo.c: New file.
76261
76262         * modules/getaddrinfo-tests: New file.
76263
76264         * MODULES.html.sh: Add inet_pton.
76265
76266         * modules/inet_pton: New file.
76267
76268 2006-06-21  Simon Josefsson  <jas@extundo.com>
76269
76270         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76271         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76272         of using the (limited) gnulib implementation on Windows XP.
76273
76274         * m4/inet_pton.m4: New file.
76275
76276 2006-06-21  Simon Josefsson  <jas@extundo.com>
76277
76278         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76279         variable.
76280
76281         * lib/socket_.h: Don't define WINVER.
76282
76283         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76284         slightly modified to work in gnulib.
76285
76286 2006-06-21  Simon Josefsson  <jas@extundo.com>
76287
76288         * doc/gnulib.texi (Windows sockets): Add.
76289
76290 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * lib/read-file.c (fread_file): Start with buffer allocation of
76293         0 bytes rather than 1 byte; this simplifies the code.
76294         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76295         code to free buffer and save/restore errno.
76296         (internal_read_file): Remove unused local.
76297
76298 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76301         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76302         Problem reported by Denis Excoffier in
76303         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76304
76305 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76306
76307         * modules/sys_socket, modules/socklen: Include sys/types since
76308         FreeBSD 4.x's sys/socket.h needs it.
76309
76310 2006-06-19  Simon Josefsson  <jas@extundo.com>
76311
76312         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76313
76314 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76317
76318 2006-06-19  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76321         and FULL_PATH_INTTYPES_H in angle brackets.
76322         Reported by Mark D. Baushke <mdb@gnu.org>.
76323
76324 2006-06-17  Eric Blake  <ebb9@byu.net>
76325
76326         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76327         errno.
76328
76329 2006-06-17  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76332         <sys/inttypes.h>.
76333
76334 2006-06-17  Bruno Haible  <bruno@clisp.org>
76335
76336         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76337         whether errno is declared. Assume <errno.h> declares errno.
76338
76339 2006-06-17  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76342
76343 2006-06-17  Bruno Haible  <bruno@clisp.org>
76344
76345         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76346         problem on Solaris 2.5.1.
76347
76348 2006-06-16  Eric Blake  <ebb9@byu.net>
76349
76350         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76351         * lib/unicodeio.c [!defined errno]: Likewise.
76352         * lib/strtol.c [!defined errno]: Likewise.
76353         * lib/strtod.c [!defined errno]: Likewise.
76354
76355 2006-06-15  Eric Blake  <ebb9@byu.net>
76356
76357         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76358
76359 2006-06-15  Eric Blake  <ebb9@byu.net>
76360
76361         * config/srclist.txt (ssize_t.m4): Lose sync.
76362
76363 2006-06-15  Bruno Haible  <bruno@clisp.org>
76364
76365         * modules/stdint (Files): Include m4/full-header-path.m4,
76366         m4/size_max.m4, m4/wchar_t.m4.
76367         (Makefile.am): Many more substitutions.
76368         * modules/stdint-tests: New file.
76369         * tests/test-stdint.c: New file.
76370
76371 2006-06-15  Bruno Haible  <bruno@clisp.org>
76372
76373         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76374         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76375         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76376         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76377         gl_CHECK_TYPE_SAME): New macros.
76378
76379 2006-06-15  Bruno Haible  <bruno@clisp.org>
76380
76381         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76382
76383 2006-06-15  Bruno Haible  <bruno@clisp.org>
76384
76385         * lib/stdint_.h: Rewritten to be fully auto-configured.
76386         Fixes bug on HP-UX/IA64.
76387
76388 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/getdate.y (__attribute__): Don't define if already defined.
76391         Problem reported by Larry Jones.
76392         * lib/utimens.c (__attribute__): Likewise.
76393
76394 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76397         reported by Andreas Schwab.
76398
76399 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76400             Bruno Haible  <bruno@clisp.org>
76401
76402         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76403         check for the declaration of strnlen and a run test that exposes the
76404         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76405         rpl_strndup.
76406
76407 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76408             Bruno Haible  <bruno@clisp.org>
76409
76410         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76411
76412 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76413
76414         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76415         compile test, for Tru64 4.0D.
76416
76417 2006-05-28  Karl Berry  <karl@gnu.org>
76418
76419         * config/srclist.txt (printf-args.c): lose sync.
76420
76421 2006-05-26  Martin Lambers  <marlam@marlam.de>
76422
76423         * lib/getpass.c: Updates the test for the native W32 API, and adds
76424         missing includes, thus fixing compilation warnings.
76425
76426 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76427
76428         * lib/exclude.c (exclude_fnmatch): New function.
76429         (excluded_file_name): Call exclude_fnmatch.
76430         * lib/exclude.h (excluded_file_name): New prototype
76431
76432 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76433
76434         * lib/tempname.c (small_open, large_open): New macros.
76435         (__open, __open64) [!_LIBC]: Remove.
76436         (__gen_tempname): Use small_open and large_open instead of __open
76437         and __open64.  This fixes a portability bug on HP-UX 11.11i
76438         reported by Simon Wing-Tang in
76439         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76440
76441 2006-05-24  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76444         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76445         Reported by Thorsten Maerz <torte@netztorte.de> via
76446         Aaron Stone <aaron@serendipity.cx>.
76447
76448 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76451         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76452         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76453         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76454         not really conditional on the cache.
76455         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76456
76457 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76460         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76461         (my_usleep): Don't mishandle maximum value.
76462
76463 2006-05-19  Jim Meyering  <jim@meyering.net>
76464
76465         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76466
76467 2006-05-17  Bruno Haible  <bruno@clisp.org>
76468
76469         Cygwin portability.
76470         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76471
76472 2006-05-17  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/stdint_.h: Fix recognition of Cygwin.
76475
76476 2006-05-15  Bruno Haible  <bruno@clisp.org>
76477
76478         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76479         on libtool patch by Ralf Wildenhues.
76480
76481 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76482
76483         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76484         test for C99 conformance; (bool) 0.5 is an integer constant
76485         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76486         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76487
76488 2006-05-11  Simon Josefsson  <jas@extundo.com>
76489
76490         * m4/xvasprintf.m4: Fix obvious typo.
76491
76492 2006-05-11  Jim Meyering  <jim@meyering.net>
76493
76494         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76495         James Lemley.
76496
76497 2006-05-10  Simon Josefsson  <jas@extundo.com>
76498
76499         * lib/md4.c: Typo fix, update copyright years.
76500         (K1, K2): Don't use L because it turn computations into 64-bit on
76501         64-bit platforms.
76502
76503 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76504
76505         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76506         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76507         unwanted sign propagation, e.g., on hosts with 64-bit int.
76508         There still are some problems with reeelly weird theoretical hosts
76509         (e.g., 33-bit int) but it's not worth worrying about now.
76510         * lib/sha1.c (rol): Likewise.
76511         (K1, K2, K3, K4): Remove unnecessary L suffix.
76512
76513 2006-05-10  Bruno Haible  <bruno@clisp.org>
76514
76515         * lib/des.c: Cast to avoid warnings.
76516
76517 2006-05-09  Bruno Haible  <bruno@clisp.org>
76518
76519         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76520         (Depends-on): Depend also on xsize, stdarg.
76521         (configure.ac): Add gl_XVASPRINTF.
76522
76523 2006-05-09  Bruno Haible  <bruno@clisp.org>
76524
76525         * m4/xvasprintf.m4: New file.
76526
76527 2006-05-09  Bruno Haible  <bruno@clisp.org>
76528
76529         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76530         (EOVERFLOW): Define fallback value.
76531         (xstrcat): New function.
76532         (xvasprintf): Recognize the special case of a string concatenation.
76533
76534 2006-05-08  Eric Blake  <ebb9@byu.net>
76535
76536         * gnulib-tool (func_version): Base copyright year on CVS date.
76537         (func_emit_copyright_notice): New function.
76538         (func_emit_lib_Makefile_am): Use it.
76539         (func_emit_tests_Makefile_am): Likewise.
76540         (func_import): Likewise.
76541
76542 2006-05-08  Bruno Haible  <bruno@clisp.org>
76543
76544         * modules/stdarg: New file.
76545         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76546
76547 2006-05-08  Bruno Haible  <bruno@clisp.org>
76548
76549         * m4/stdarg.m4: New file, from GNU gettext.
76550
76551 2006-05-08  Bruno Haible  <bruno@clisp.org>
76552
76553         * config/srclist.txt (build-aux/config.rpath): different from latest
76554         release.
76555
76556 2006-05-08  Bruno Haible  <bruno@clisp.org>
76557
76558         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76559
76560 2006-05-05  Jim Meyering  <jim@meyering.net>
76561
76562         * m4/warning.m4: New file, derived from bison's file by the same name.
76563
76564 2006-05-03  Bruno Haible  <bruno@clisp.org>
76565
76566         * lib/stdint_.h: Shorter URL.
76567         * lib/inttypes.h: Likewise.
76568
76569 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76572
76573 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         * lib/verify.h: Document the internals better.  Most of this change
76576         was written by Bruno Haible.
76577
76578 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * doc/verify.texi: New file, partly based on a proposal by
76581         Bruno Haible.
76582
76583 2006-05-02  Bruno Haible  <bruno@clisp.org>
76584
76585         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76586         test from here...
76587         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76588
76589 2006-04-29  Bruno Haible  <bruno@clisp.org>
76590
76591         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76592         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76593
76594 2006-04-29  Bruno Haible  <bruno@clisp.org>
76595
76596         * gnulib-tool: Make --update option actually work.
76597
76598 2006-04-29  Bruno Haible  <bruno@clisp.org>
76599
76600         * doc/gcd.texi: New file.
76601         * doc/gnulib.texi: Include it.
76602
76603 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * lib/getdate.y (get_date): When adding relative date, start with the
76606         initial time, not with the result of the first mktime call.
76607
76608 2006-04-25  Bruno Haible  <bruno@clisp.org>
76609
76610         * gnulib-tool (func_import): Output the include directives in three
76611         blocks, sorted separately.
76612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76613
76614 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76617         to define main with arguments, for C++.  Reported by Eric Blake.
76618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76619         Prefer 'int main ()' to 'int main (void)', for C++.
76620         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76621         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76622         for 'main', for C99 and C++.
76623
76624 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76625
76626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76627         Don't assume that exit status -1 is valid.
76628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76629         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76630         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76631         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76632         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76633         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76634         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76635         functions can be used without declaring them, or that you can
76636         exit with status -1.
76637         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76638
76639 2006-04-24  Karl Berry  <karl@gnu.org>
76640
76641         * config/srclist.txt (longdouble.m4): sync lost.
76642
76643 2006-04-24  Eric Blake  <ebb9@byu.net>
76644
76645         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76646
76647 2006-04-24  Bruno Haible  <bruno@clisp.org>
76648
76649         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76650         poll() implementation in AIX.
76651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76652
76653 2006-04-24  Bruno Haible  <bruno@clisp.org>
76654
76655         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76656         assigned exactly once.
76657
76658 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76659             Bruno Haible  <bruno@clisp.org>
76660
76661         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76662         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76663         for AM_CPPFLAGS.
76664
76665 2006-04-23  Bruno Haible  <bruno@clisp.org>
76666
76667         * modules/copy-file: Depend on unistd.
76668         * modules/execute: Likewise.
76669         * modules/fatal-signal: Likewise.
76670         * modules/findprog: Likewise.
76671         * modules/mkdtemp : Likewise.
76672         * modules/pipe: Likewise.
76673         * modules/wait-process: Likewise.
76674
76675 2006-04-23  Bruno Haible  <bruno@clisp.org>
76676
76677         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76678         condition was already detected.
76679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76680
76681 2006-04-23  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/copy-file.c: Include <unistd.h> unconditionally.
76684         * lib/execute.c: Likewise.
76685         * lib/fatal-signal.c: Likewise.
76686         * lib/findprog.c: Likewise.
76687         * lib/mkdtemp.c: Likewise.
76688         * lib/pipe.h: Likewise.
76689         * lib/pipe.c: Likewise.
76690         * lib/wait-process.h: Likewise.
76691
76692 2006-04-23  Bruno Haible  <bruno@clisp.org>
76693
76694         * gnulib-tool (func_usage): Fix --import description. Document
76695         --update.
76696         (func_import): Create temporary file in a temporary directory, if
76697         --dry-run is specified. Silence errors from 'grep' when there are no
76698         m4 files in $m4dir.
76699         (func_create_testdir): Silence errors from 'grep' when there are no
76700         m4 files in $m4dir.
76701         Reported by Karl Berry <karl@freefriends.org>.
76702
76703 2006-04-20  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76706         one argument, so that the code will be portable to Autoconf 2.60.
76707         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76708         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76709         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76710
76711 2006-04-19  Derek Price  <derek@ximbiot.com>
76712             Eric Blake  <ebb9@byu.net>
76713
76714         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76715         rather than "/full/path.h".  Update comment to match.  Shorten &
76716         generalize m4_translit call via AS_TR_CPP.
76717
76718 2006-04-19  Derek Price  <derek@ximbiot.com>
76719             Eric Blake  <ebb9@byu.net>
76720
76721         * lib/inttypes.h: Correct grammar in comment.
76722
76723 2006-04-18  Derek Price  <derek@ximbiot.com>
76724             Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * modules/inttypes: New file.
76727         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76728
76729 2006-04-18  Derek Price  <derek@ximbiot.com>
76730             Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76733         New files.
76734
76735 2006-04-18  Derek Price  <derek@ximbiot.com>
76736             Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * lib/inttypes.h: New file.
76739         * lib/strtoimax.c: Assume <inttypes.h>.
76740
76741 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76744         isn't mounted.  Problem reported by Kir Kolyshkin.
76745
76746 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76749         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76750         Derek R. Price.
76751         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76752         implementation.
76753
76754 2006-04-12  Eric Blake  <ebb9@byu.net>
76755
76756         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76757         is now done automatically by the corresponding Autoconf macro.
76758
76759 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76762         time_r.h.
76763
76764 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         Merge regex changes from libc, removing some of our
76767         POSIX-conformance changes that were rejected and redoing them in a
76768         less-intrusive way.
76769
76770         * lib/regcomp.c (re_compile_internal, init_dfa):
76771         Length arg is now size_t, not Idx.  All uses changed.
76772         (peek_token): Forward decl now says internal_function.
76773         (__re_error_msgid, __re_error_msgid_idx):
76774         Now static rather than extern with attribute_hidden.
76775         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76776         For some reason libc prefers K&R style defns for external functions.
76777         (regerror) [!defined _LIBC]: Likewise.
76778         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76779         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76780         (build_range_exp, build_collating_symbol):
76781         Use K&R-style defn.
76782         (re_compile_fastmap): Use '\0' to memset, not 0.
76783         (utf8_sb_map): Make the calculations more obvious.
76784         (init_dfa, parse_bracket_exp, build_charclass_op):
76785         Call calloc and cast result, as glibc does.
76786         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76787         (build_range_exp, build_collating_symbol):
76788         Now internal functions.
76789
76790         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76791
76792         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76793         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76794         Don't depend on VMS; depend on __VMS instead, for POSIX
76795         namespace cleanness.
76796         (regoff_t): Define to ssize_t, not long int.
76797
76798         Remove the REG_ macros named below.  Instead, make the old names
76799         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76800         __USE_GNU_REGEX.
76801         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76802         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76803         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76804         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76805         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76806         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76807         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76808         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76809         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76810         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76811         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76812         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76813         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76814         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76815         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76816         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76817         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76818         (REG_NREGS):
76819         Remove.  All uses replaced by the old RE_* names.
76820         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76821         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76822         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76823         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76824         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76825         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76826         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76827         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76828         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76829         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76830         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76831         Don't bother having these macros be independent of each others'
76832         values, since they no longer exist in the POSIX name space.
76833
76834         Rename the following member names back to their old names,
76835         unless !__USE_GNU_REGEX.  All uses changed back.
76836         (buffer): Renamed from re_buffer.
76837         (allocated): Renamed from re_allocated.
76838         (used): Renamed from re_used.
76839         (syntax): Renamed from re_syntax.
76840         (fastmap): Renamed from re_fastmap.
76841         (translate): Renamed from re_translate.
76842         (can_be_null): Renamed from re_can_be_null.
76843         (regs_allocated): Renamed from re_regs_allocated.
76844         (fastmap_accurate): Renamed from re_fastmap_accurate.
76845         (no_sub): Renamed from re_no_sub.
76846         (not_bol): Renamed from re_not_bol.
76847         (not_eol): Renamed from re_not_eol.
76848         (newline_anchor): Renamed from re_newline_anchor.
76849         (num_regs): Renamed from rm_num_regs.
76850         (start): Renamed from rm_start.
76851         (end): Renamed from rm_end.
76852
76853         (free_state): Move up a bit.
76854
76855         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76856         #define to be empty.
76857         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76858         when that is what is intended.
76859         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76860         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76861         (MAX): New macro.
76862         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76863         All uses changed back to re_malloc, etc.  It's now the caller's
76864         responsibility to check for overflow; all callers changed.
76865         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76866         (re_x2nrealloc): Remove.
76867         (free_state): Remove decl.
76868
76869         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76870         (re_set_registers, re_exec):
76871         Use K&R-style defn.
76872
76873         2006-01-31  Roland McGrath  <roland@redhat.com>
76874
76875         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76876         Reported by Mike Frysinger <vapier@gentoo.org>.
76877
76878         2006-01-15  Andreas Jaeger  <aj@suse.de>
76879
76880         [BZ #1950]
76881         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76882         build_wcs_upper_buffer change.
76883         (build_wcs_upper_buffer): Change return type.
76884
76885         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76886
76887         * lib/regex_internal.h: Include <stdint.h> if available.
76888
76889         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76890
76891         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76892
76893         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76894
76895         * lib/regcomp.c: Adjust for changed secondary hash function.
76896
76897         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76898
76899         * lib/regex.h: Pretty printing.
76900         Clean up namespace a bit.
76901
76902         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76903
76904         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76905         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76906
76907         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76908                     Ulrich Drepper  <drepper@redhat.com>
76909
76910         [BZ #1302]
76911         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76912         changed.
76913         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76914
76915         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76916
76917         [BZ #281]
76918         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76919         * lib/regcomp.c: Remove unnecessary uses of
76920         unsigned RE_TRANSLATE_TYPE.
76921         * lib/regex_internal.h: Likewise.
76922         * lib/regex_internal.c: Likewise.
76923         * lib/regexec.c: Likewise.
76924         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76925
76926         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76927
76928         * lib/regexec.c (find_recover_state): Remove unnecessary
76929         initialization.
76930         (transit_state_bkref): Make DFA a const pointer.
76931         (get_subexp): Likewise.
76932         (check_arrival): Likewise.
76933         (update_cur_sifted_state): Likewise.
76934         (re_search_internal): Likewise.
76935         (prune_impossible_nodes): Likewise.
76936         (acquire_init_state_context): Likewise.
76937         (proceed_next_node): Likewise.
76938         (set_regs): Likewise.
76939         (free_fail_stack_return): Likewise.
76940         (check_arrival_expand_ecl): Mark DFA parameter as const.
76941         (check_arrival_expand_ecl_sub): Likewise.
76942         (check_subexp_limits): Likewise.
76943         (sub_epsilon_src_nodes):  Likewise.
76944         (add_epsilon_src_nodes):  Likewise.
76945         (merge_state_array): Likewise.
76946         (update_regs): Likewise.
76947         (build_trtable): Likewise.
76948         (sift_states_backward): Mark MCTX parameter as const.
76949         (build_sifted_states): Likewise.
76950         (update_cur_sifted_state): Likewise.
76951         (sift_states_mkref): Likewise.
76952         (check_arrival_expand_ecl): Mark eclosure as const.
76953         (check_dst_limits_calc_pos_1): Likewise.
76954         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76955         pointer.
76956
76957         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76958
76959         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76960         (transit_state_sb): Likewise.
76961         (transit_state_mb): Likewise.
76962         (sift_states_iter_mb): Likewise.
76963         (check_arrival_add_next_nodes): Likewise.
76964         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76965         [_LIBC] (re_search_2_stub): Use mempcpy.
76966
76967         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76968         mbrtowc for very simple UTF-8 case.
76969
76970         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76971         a pointer-to-const.
76972         (re_acquire_state_context): Likewise.
76973         * lib/regex_internal.h: Adjust prototypes.
76974
76975         * lib/regex.c: Prevent using C++ compilers.
76976
76977         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76978         (re_acquire_state_context): Likewise.
76979
76980 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * modules/regex (Depends-on): Add ssize_t.
76983
76984 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76987         translation table.
76988
76989 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76992
76993 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76994             Bruno Haible  <bruno@clisp.org>
76995
76996         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76997         <sys/types.h> and <inttypes.h>.
76998
76999 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77000
77001         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77002         `__error_t_defined', so argp.h will not typedef the former.
77003
77004 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77007         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77008         glibc names.  Even if glibc is changed to conform to POSIX, the
77009         traditional names will be available anyway, since regex depends on
77010         the extensions module.  Also, fix a longstanding typo in the
77011         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77012         reported by Emanuele Giaquinta.  Also, change sense of cached
77013         variable, so that the message makes sense.
77014
77015 2006-03-24  Simon Josefsson  <jas@extundo.com>
77016
77017         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77018         including some doc fixes.
77019         (base64_encode_alloc): Fix +1 bug on allocation failures.
77020
77021 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77022
77023         * lib/base64.c (base64_encode): Do not read past end of array with
77024         unsanitized input on systems with CHAR_BIT > 8.
77025
77026 2006-03-24  Eric Blake  <ebb9@byu.net>
77027
77028         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77029
77030 2006-03-22  Karl Berry  <karl@gnu.org>
77031
77032         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77033         * config/srclistvars.sh (COREUTILS): new var.
77034
77035 2006-03-17  Jim Meyering  <jim@meyering.net>
77036
77037         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77038         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77039
77040 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77043         no longer needs it.  Instead, check that regoff_t is as least
77044         as wide as ptrdiff_t.
77045
77046         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77047         so that our regex.h stays compatible with the installed regex.
77048         This is helpful for installers who configure --without-included-regex.
77049         Problem reported by Emanuele Giaquinta.
77050
77051 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77054         Typedef to long int, not to off_, as POSIX will likely change
77055         in that direction.
77056
77057 2006-03-15  Eric Blake  <ebb9@byu.net>
77058
77059         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77060
77061 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77062
77063         * lib/argp-help.c (validate_uparams): Fix typo
77064         * lib/argp-parse.c (argp_default_options): Consistently begin help
77065         messages with a lowercase letter.
77066
77067 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77070         overrun buffers and shouldn't be used (much as gets shouldn't be
77071         used).
77072         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77073
77074 2006-03-08  Simon Josefsson  <jas@extundo.com>
77075
77076         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77077         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77078
77079 2006-03-08  Simon Josefsson  <jas@extundo.com>
77080
77081         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77082         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77083
77084 2006-03-08  Simon Josefsson  <jas@extundo.com>
77085
77086         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77087         signal that configure disabled the device.
77088
77089 2006-03-08  Simon Josefsson  <jas@extundo.com>
77090
77091         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77092         languages.
77093
77094 2006-03-07  Simon Josefsson  <jas@extundo.com>
77095
77096         * modules/getopt (Depends-on): Add unistd.
77097
77098         * modules/unistd: New file.
77099
77100 2006-03-07  Simon Josefsson  <jas@extundo.com>
77101
77102         * modules/gc-random: New file.
77103
77104 2006-03-07  Simon Josefsson  <jas@extundo.com>
77105
77106         * m4/unistd_h.m4: New file.
77107
77108 2006-03-07  Simon Josefsson  <jas@extundo.com>
77109
77110         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77111         test to be side-effect free by storing the result in the cache
77112         variable gl_cv_lib_readline, and moving the assignment of
77113         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77114         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77115
77116 2006-03-07  Simon Josefsson  <jas@extundo.com>
77117
77118         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77119         error on missing devices (the functions will return an error).
77120
77121         * m4/gc.m4: Move random stuff to gc-random.m4
77122
77123 2006-03-07  Simon Josefsson  <jas@extundo.com>
77124
77125         * lib/unistd_.h: New file.
77126
77127 2006-03-07  Simon Josefsson  <jas@extundo.com>
77128
77129         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77130
77131 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77134         Problem reported by Juan Manuel Guerrero.
77135
77136 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77139         the unistd module.
77140         * lib/getlogin_r.c: Likewise.
77141         * lib/getlogin_r.h: Likewise.
77142         * lib/glob.c: Likewise.
77143         * lib/pagealign_alloc.c: Likewise.
77144         * lib/unistd_.h: Remove; no longer needed.
77145
77146 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77149         Add unistd.
77150         * modules/c-stack (Depends-on): Add unistd.
77151         * modules/getlogin_r: Likewise.
77152         * modules/glob: Likewise.
77153         * modules/pagealign_alloc: Likewise.
77154         * modules/unistd (Files): Remove lib/unistd_.h.
77155         (EXTRA_DIST): Remove.
77156         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77157         need unistd_.h.
77158         (MOSTLYCLEANFILES): Remove unistd.h-t.
77159
77160 2006-03-03  Simon Josefsson  <jas@extundo.com>
77161
77162         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77163
77164 2006-03-03  Simon Josefsson  <jas@extundo.com>
77165
77166         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77167         libidn and bison.
77168
77169 2006-03-03  Simon Josefsson  <jas@extundo.com>
77170
77171         * build-aux/maint.mk: Add indent target.
77172
77173 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77174
77175         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77176         our replacement poll.h in any case, to avoid a differing
77177         declaration from a system header.  Seen on AIX.
77178
77179 2006-03-01  Simon Josefsson  <jas@extundo.com>
77180
77181         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77182         <kasal@ucw.cz>.
77183
77184 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * modules/gettime (Depends-on): Add extensions module.
77187         * modules/nanosleep (Depends-on): Likewise.
77188         * modules/settime (Depends-on): Likewise.
77189
77190 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77193         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77194         pedantically.
77195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77196         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77197
77198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77199         not "==".  Reported by Ralf Wildenhues.
77200
77201 2006-03-01  Karl Berry  <karl@gnu.org>
77202
77203         * doc/Copyright/request-*: new files, synced from gnuorg.
77204
77205 2006-03-01  Karl Berry  <karl@gnu.org>
77206
77207         * config/srclist.txt (Copyright/*): new entries.
77208
77209 2006-02-28  Simon Josefsson  <jas@extundo.com>
77210
77211         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77212
77213 2006-02-27  Simon Josefsson  <jas@extundo.com>
77214
77215         * lib/base64.h: Indent #define's.  From Jim Meyering
77216         <jim@meyering.net>.
77217
77218 2006-02-27  Jim Meyering  <jim@meyering.net>
77219
77220         Revert the change of 2006-02-24, so these files can continue
77221         to be sync'd from gettext.
77222         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77223         of `config.h'.
77224
77225 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * modules/intprops: New file.
77228         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77229         Add intprops.
77230         * modules/getloadavg (Files): Remove lib/intprops.h.
77231         (Depends-on): Add intprops.
77232         * modules/human: Likewise.
77233         * modules/inttostr: Likewise.
77234         * modules/openat: Likewise.
77235         * modules/sig2str: Likewise.
77236         * modules/userspec: Likewise.
77237         * modules/utimecmp: Likewise.
77238         * modules/xnanosleep: Likewise.
77239         * modules/xstrtol: Likewise.
77240
77241 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77242
77243         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77244         * modules/lock-tests (TESTS): Use $(EXEEXT).
77245         * modules/tls-tests: Likewise.
77246         * modules/argp-tests: Likewise.
77247         (check_PROGRAMS): New var, replacing...
77248         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77249
77250 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77251
77252         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77253         `config.h'.
77254
77255 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77258
77259 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77260
77261         Sync from coreutils.
77262         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77263         gl_CHDIR_SAFER.
77264
77265 2006-02-22  Jim Meyering  <jim@meyering.net>
77266
77267         Sync from coreutils.
77268         * m4/chdir-safer.m4: New file.
77269
77270 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77273         AT_FDCWD exceeds INT_MAX.
77274         * lib/openat.h (AT_FDCWD): Likewise.
77275
77276 2006-02-17  Eric Blake  <address@hidden>
77277
77278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77279
77280 2006-02-16  Simon Josefsson  <jas@extundo.com>
77281
77282         * modules/getaddrinfo (Depends-on): Add sys_socket.
77283
77284 2006-02-15  Simon Josefsson  <jas@extundo.com>
77285
77286         * build-aux/maint.mk: Add dsyntax-check rule.
77287
77288 2006-02-15  Eric Blake  <ebb9@byu.net>
77289
77290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77291         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77292         'present but cannot compile' warnings on cygwin.
77293         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77294         use ws2tcpip.h if sys/socket.h works.
77295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77296         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77297
77298 2006-02-14  Simon Josefsson  <jas@extundo.com>
77299
77300         * modules/maintainer-makefile (Files): Rename.
77301
77302         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77303         and (the local) Makefile.cfg to maint-cfg.mk.
77304
77305         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77306         to the latter.
77307
77308         * modules/maintainer-makefile: New module.
77309
77310         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77311         severaly stripped to make it possible to build it up from scratch
77312         with reliable tests.
77313
77314         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77315         fixes to permit overriding the default actions when configure and
77316         makefile are not available.
77317
77318 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77319
77320         Sync from coreutils.
77321         * modules/lstat (Depends-on): Don't depend on xalloc.
77322         (License): Change from GPL to LGPL, since this is now simply a
77323         replacement for a libc function.
77324
77325 2006-02-14  Jim Meyering  <jim@meyering.net>
77326
77327         Sync from coreutils.
77328
77329         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77330         failure on deficient systems, and simplify gnulib lgpl dependencies.
77331         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77332         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77333
77334         * lib/xalloc-die.c: Remove unused definition of N_.
77335
77336 2006-02-14  Jim Meyering  <jim@meyering.net>
77337
77338         Sync from coreutils.
77339         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77340         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77341         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77342         double-quote uses of that variable, to accommodate the rare case in
77343         which getmntent is available in none of the libraries checked.  This
77344         happens at least on FreeBSD 5.0.
77345
77346 2006-02-13  Simon Josefsson  <jas@extundo.com>
77347
77348         * gnulib-tool (Usage): Fix --import, from
77349         karl@freefriends.org (Karl Berry).
77350
77351 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77352
77353         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77354
77355 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77356
77357         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77358         "autoupdate" on 2005-12-12.
77359
77360 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * modules/closeout (Depends-on): Remove atexit.
77363
77364 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77367         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77368
77369 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77372         __EXTENSIONS__ if this causes compilation to fail.  Problem
77373         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77374         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77375
77376 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77379         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77381         All uses changed.
77382
77383 2006-01-26  Simon Josefsson  <jas@extundo.com>
77384
77385         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77386         prototype is visible on mingw32.
77387
77388         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77389         for mingw32.
77390
77391         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77392         mingw32).
77393
77394 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77397         attempt to open for write; this always fails, at least on POSIX
77398         hosts.  This reinstates the 2006-01-09 change, which was
77399         inadvertently removed.
77400
77401 2006-01-26  Bruno Haible  <bruno@clisp.org>
77402
77403         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77404         Reported by Paul Eggert.
77405
77406 2006-01-26  Bruno Haible  <bruno@clisp.org>
77407             Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/stdbool_.h (_Bool)
77410         [(! (defined __cplusplus || defined __BEOS__)
77411           && !defined __GNUC__
77412           && !(defined __HP_cc || defined __xlc__
77413                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77414                || defined __sgi))]:
77415         #define to signed char in these cases too; this simplifies
77416         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77417         etc., separately) and makes it more conservative.
77418
77419 2006-01-25  Simon Josefsson  <jas@extundo.com>
77420
77421         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77422         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77423         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77424
77425 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77426
77427         * lib/argp-namefrob.h: Bugfix. Remove stray #
77428
77429 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77432         so that we test the test.
77433         Check for yet another HP-UX cc bug involving *bool |= bool.
77434
77435 2006-01-25  Karl Berry  <karl@gnu.org>
77436
77437         * config/srclist.txt (vasnprintf.c): sync lost.
77438
77439 2006-01-25  Jim Meyering  <jim@meyering.net>
77440
77441         Sync from the stable (b5) branch of coreutils:
77442
77443         * lib/fts.c (fts_children): Don't let close() clobber errno from
77444         failed fchdir().
77445
77446         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77447         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77448         a dangling symlink.  That can also happen at least for ELOOP.
77449         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77450         FYI, this bug predates the inclusion of fts.c in coreutils.
77451
77452         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77453         in their own block, so pre-c99 compilers don't object.
77454
77455         Avoid the double-free (first in fts_read, second in fts_close) that
77456         would occur when an `active' directory is made inaccessible (e.g.,
77457         via chmod a-x) during a traversal.
77458         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77459         before returning.  Reproduce this failure by
77460         mkdir -p a/b; cd a; chmod a-x . b
77461         Reported by Stavros Passas.
77462
77463 2006-01-25  Jim Meyering  <jim@meyering.net>
77464
77465         * lib/fileblocks.c: Remove more useless parentheses.
77466         * lib/readutmp.h: Likewise.
77467
77468 2006-01-25  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77471         warnings.
77472         Reported by Paul Eggert.
77473
77474 2006-01-25  Bruno Haible  <bruno@clisp.org>
77475
77476         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77477         rid of a trap command. For Solaris sh.
77478         Reported by Mark D. Baushke <mdb@gnu.org>.
77479
77480 2006-01-24  Simon Josefsson  <jas@extundo.com>
77481
77482         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77483         Bruno.
77484
77485 2006-01-24  Karl Berry  <karl@gnu.org>
77486
77487         * config/srclist.txt (argp-namefrob.h): sync lost.
77488
77489 2006-01-24  Jim Meyering  <jim@meyering.net>
77490
77491         * modules/openat (Files): Add lib/intprops.h.
77492         From Mark D. Baushke.
77493
77494 2006-01-24  Jim Meyering  <jim@meyering.net>
77495
77496         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77497         Reported by Mark D. Baushke.
77498
77499 2006-01-24  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77502
77503 2006-01-24  Bruno Haible  <bruno@clisp.org>
77504
77505         * modules/strnlen (Maintainer): Change from glibc to all.
77506
77507 2006-01-24  Bruno Haible  <bruno@clisp.org>
77508
77509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77510         Patch by Paul Eggert.
77511
77512 2006-01-24  Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77515         already has it.
77516         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77517         2005-11-26.
77518
77519         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77520         'signed char' to avoid problems with the built-in _Bool type.
77521         Reported by Paul Eggert on 2005-11-26.
77522
77523 2006-01-24  Bruno Haible  <bruno@clisp.org>
77524
77525         * gnulib-tool (func_import): Avoid constructing complicated sed
77526         expressions inside backquote.
77527         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77528
77529 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77530
77531         These changes imported from libc.
77532         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77533         test and two separate function calls.
77534         * lib/strndup.c (__strndup): Add libc_hidden_def.
77535
77536 2006-01-23  Simon Josefsson  <jas@extundo.com>
77537
77538         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77539         Remove the test_*_SOURCES variable: automake infers it by default.
77540         * modules/tls-tests: Likewise.
77541
77542 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77543
77544         Work around porting bugs reported by Dieter in
77545         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77546         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77547         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77548         Include "getopt.h" first, to check interface.
77549         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77550         !HAVE_DECL_GETENV.
77551         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77552         (__strndup): Revert to K&R-style function dfns, the glibc style.
77553         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77554         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77555         Include strnlen.h first, to get prototype properly.
77556         (strnlen): Renamed from __strnlen.
77557         Remove weak alias.
77558
77559 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77562
77563 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * config/srclist.txt: Adjust to reflect glibc reorganization.
77566         This affects only comments.
77567
77568 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77569
77570          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77571          Reported by Bruce Korb <bkorb@gnu.org>.
77572
77573 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77576         to pacify gcc -Wswitch-default.
77577
77578 2006-01-22  Bruno Haible  <bruno@clisp.org>
77579
77580         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77581         temporary buffer for sprintf, take into account the precision also
77582         for 'd', 'i', 'u', 'o', 'x', 'X'.
77583
77584 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77585
77586         * modules/argp-tests: New module
77587         * tests/test-argp.c: New file
77588         * tests/test-argp-2.sh: New file
77589
77590 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77591
77592         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77593         (__argp_base_name): Removed
77594         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77595         typo.
77596         (__argp_base_name): Provide macro definition or extern declaration
77597         depending on the configuration
77598
77599 2006-01-20  Simon Josefsson  <jas@extundo.com>
77600
77601         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77602
77603 2006-01-20  Simon Josefsson  <jas@extundo.com>
77604
77605         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77606
77607 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77610         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77611         Suggested by Bruno Haible.
77612
77613 2006-01-20  Karl Berry  <karl@gnu.org>
77614
77615         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77616         until changes propagate, I guess.
77617
77618 2006-01-19  Simon Josefsson  <jas@extundo.com>
77619
77620         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77621
77622 2006-01-19  Simon Josefsson  <jas@extundo.com>
77623
77624         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77625
77626 2006-01-19  Simon Josefsson  <jas@extundo.com>
77627
77628         * gnulib-tool: Set check_PROGRAMS.
77629
77630         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77631         modules/des-tests, modules/gc-arcfour-tests,
77632         modules/gc-arctwo-tests, modules/gc-des-tests,
77633         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77634         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77635         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77636         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77637         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77638         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77639         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77640         test_*_SOURCES.
77641
77642 2006-01-18  Simon Josefsson  <jas@extundo.com>
77643
77644         * modules/socklen (Depends-on): Depend on sys_socket.
77645
77646 2006-01-18  Simon Josefsson  <jas@extundo.com>
77647
77648         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77649         modules/des-tests, modules/gc-arcfour-tests,
77650         modules/gc-arctwo-tests, modules/gc-des-tests,
77651         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77652         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77653         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77654         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77655         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77656         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77657         $(EXEEXT) to automake TESTS variable, for mingw32.
77658
77659 2006-01-17  Simon Josefsson  <jas@extundo.com>
77660
77661         * modules/socklen (Include): Need sys/socket.h.
77662
77663 2006-01-17  Bruno Haible  <bruno@clisp.org>
77664
77665         * modules/ssize_t (Include): Add <sys/types.h>.
77666
77667 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77670         it's not portable and it doesn't work with cross-compiles.
77671         Problem reported by Bruno Haible.  Fix missing-$ typo in
77672         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77673         -zignore from being used with Sun's C compiler.
77674
77675 2006-01-12  Simon Josefsson  <jas@extundo.com>
77676
77677         * lib/base64.c: Fix warning, reported by Bruno Haible
77678         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77679
77680 2006-01-12  Bruno Haible  <bruno@clisp.org>
77681
77682         * modules/ldd: New file.
77683         * build-aux/ldd.sh.in: New file.
77684         * MODULES.html.sh (Support for building libraries and executables): Add
77685         ldd.
77686
77687 2006-01-12  Bruno Haible  <bruno@clisp.org>
77688
77689         * m4/ldd.m4: New file.
77690
77691 2006-01-12  Bruno Haible  <bruno@clisp.org>
77692
77693         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77694         endless loop while replacing $auxdir with build-aux.
77695
77696 2006-01-11  Simon Josefsson  <jas@extundo.com>
77697
77698         * lib/stdint_.h (SIZE_MAX): Add missing (.
77699
77700 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         Sync from coreutils.
77703         * lib/md5.c: Fix commentary typos.
77704         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77705         * lib/md5.h (__attribute__): Remove; unused.
77706         * lib/sha1.c: Fix commentary to match md5 better.
77707         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77708         so that we don't need to worry about alignment.  All uses changed.
77709         This merges the 2005-10-28 md5 change into sha1.
77710
77711 2006-01-11  Jim Meyering  <jim@meyering.net>
77712
77713         Sync from coreutils.
77714         * lib/md5.c (OP): Fix spacing.
77715
77716 2006-01-11  Bruno Haible  <bruno@clisp.org>
77717
77718         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77719         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77720         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77721
77722 2006-01-11  Bruno Haible  <bruno@clisp.org>
77723
77724         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77725         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77726         the "early" section as well.
77727
77728 2006-01-11  Bruno Haible  <bruno@clisp.org>
77729
77730         Avoid "ar: no archive members specified" error on MacOS X.
77731         * gnulib-tool (func_modules_add_dummy): New function.
77732         (func_import, func_create_testdir): Invoke it.
77733
77734 2006-01-11  Bruno Haible  <bruno@clisp.org>
77735
77736         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77737         with $auxdir in AC_CONFIG_FILES statements.
77738
77739 2006-01-11  Bruno Haible  <bruno@clisp.org>
77740
77741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77742         Initialize also noinst_HEADERS to empty.
77743
77744 2006-01-11  Bruno Haible  <bruno@clisp.org>
77745
77746         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77747         variables.
77748         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77749         autoreconf.
77750
77751 2006-01-11  Bruno Haible  <bruno@clisp.org>
77752
77753         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77754         overridable by the user.
77755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77756
77757 2006-01-10  Simon Josefsson  <jas@extundo.com>
77758
77759         * modules/sys_socket: New file.
77760
77761 2006-01-10  Simon Josefsson  <jas@extundo.com>
77762
77763         * m4/sys_socket_h.m4: New file.
77764
77765 2006-01-10  Simon Josefsson  <jas@extundo.com>
77766
77767         * lib/socket_.h: New file.
77768
77769 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * modules/readutmp (Maintainer): Add myself.
77772
77773 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77776         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77777         People who are still concerned with buggy memcmp implementations
77778         can invoke gl_FUNC_MEMCMP themselves.
77779
77780 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/regex_internal.h (BITSET_WORD_BITS):
77783         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77784         preprocessor mishandles large unsigned values as if they were signed.
77785         Problem reported by Claudio Fontana in
77786         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77787
77788 2006-01-10  Jim Meyering  <jim@meyering.net>
77789
77790         Avoid the double-free (first in fts_read, second in fts_close) that
77791         would occur when an `active' directory is made inaccessible (e.g.,
77792         via chmod a-x) during a traversal.
77793         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77794         before returning.  Reproduce this failure by
77795         mkdir -p a/b; cd a; chmod a-x . b
77796         Reported by Stavros Passas.
77797
77798         Sync from coreutils.
77799         * lib/sha1.c: Tweak grammar in a comment.
77800
77801 2006-01-10  Jim Meyering  <jim@meyering.net>
77802
77803         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77804         Patch by Joerg Sonnenberger.
77805
77806 2006-01-10  Bruno Haible  <bruno@clisp.org>
77807
77808         * modules/readutmp: Depend on module free.
77809         * modules/strtok_r: Depend on module restrict.
77810
77811 2006-01-10  Bruno Haible  <bruno@clisp.org>
77812
77813         * modules/gettext (configure.ac): Add an invocation of
77814         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77815
77816 2006-01-10  Bruno Haible  <bruno@clisp.org>
77817
77818         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77819         Reported by Werner Lemberg <wl@gnu.org>.
77820
77821 2006-01-10  Bruno Haible  <bruno@clisp.org>
77822
77823         * lib/localcharset.c: Update from GNU gettext.
77824
77825 2006-01-10  Bruno Haible  <bruno@clisp.org>
77826
77827         * lib/argp.h (__const): Remove macro. Use const instead.
77828         * lib/argp-fmtstream.h (__const): Likewise.
77829         * lib/glob_.h (__const): Remove macro.
77830         * lib/glob-libc.h: Use const instead of __const.
77831
77832 2006-01-10  Bruno Haible  <bruno@clisp.org>
77833
77834         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77835         variable.
77836         Needed to avoid an automake error regarding the 'gettext' module.
77837
77838 2006-01-09  Simon Josefsson  <jas@extundo.com>
77839
77840         * modules/inet_ntop (Depends-on): Add restrict.
77841
77842 2006-01-09  Simon Josefsson  <jas@extundo.com>
77843
77844         * modules/gc-rijndael-tests (License): Put under LGPL.
77845
77846         * modules/gc-des-tests (License): Likewise.
77847
77848         * modules/gc-arcfour-tests (License): Likewise.
77849
77850         * modules/gc-arctwo-tests (License): Likewise.
77851
77852         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77853
77854         * modules/gc-hmac-sha1-tests (Files): Likewise.
77855
77856         * modules/gc-hmac-md5-tests (License): Likewise.
77857
77858         * modules/gc-sha1-tests (License): Likewise.
77859
77860         * modules/gc-md5-tests (License): Likewise.
77861
77862         * modules/gc-md4-tests (License): Likewise.
77863
77864         * modules/gc-md2-tests (License): Likewise.
77865
77866         * modules/gc-tests (License): Likewise.
77867
77868         * modules/des-tests (License): Likewise.
77869
77870         * modules/md4-tests (License): Likewise.
77871
77872         * modules/md2-tests (License): Likewise.
77873
77874 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         Sync from coreutils:
77877
77878         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77879         * modules/lib-ignore: New file.
77880         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77881         chdir-safer.m4, lchmod.m4.
77882         * modules/openat: Add mkdirat.c, openat-priv.h.
77883
77884 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         Sync from coreutils.
77887         * m4/lib-ignore.m4: New file.
77888         * m4/lchmod.m4: New file.
77889
77890 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         Sync from coreutils.
77893         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77894         for write access: POSIX says that must fail.
77895         * lib/fts.c (diropen): Likewise.
77896         * lib/save-cwd.c (save_cwd): Likewise.
77897         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77898         well, for minor improvements on hosts that lack O_DIRECTORY.
77899         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77900         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77901         Fall back on chown if open failed with EACCES.
77902
77903         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77904         Report an error at compile-time if only a 1-second nominal clock
77905         resolution is found.
77906
77907         * lib/lchmod.h: New file.
77908         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77909         (make_dir_parents): Use lchown rather than chown, and
77910         lchmod rather than chmod.
77911
77912         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77913         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77914         "proc" reported by n0dalus.
77915
77916         * lib/mountlist.c: Include <limits.h>.
77917         (dev_from_mount_options)
77918         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77919         New function.  It no longer assumes "dev=" has the System V meaning
77920         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77921         (read_file_system_list)
77922         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77923         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77924         dev= in that case.
77925
77926         * lib/posixtm.h (PDS_PRE_2000): New macro.
77927         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77928         allow_century.  All usages changed.  Reject dates outside the range
77929         1969-1999 if PDS_PRE_2000 is used.
77930
77931 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77932
77933         Sync from coreutils.
77934         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77935         (Time of day items): Mention the possibility of leap seconds.
77936         Problem reported by Dr. David Alan Gilbert.
77937
77938 2006-01-09  Jim Meyering  <jim@meyering.net>
77939
77940         Sync from coreutils.
77941
77942         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77943
77944         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77945
77946         * lib/modechange.c (mode_compile): Reject an invalid mode string
77947         that starts with an octal digit.  From Andreas Gruenbacher.
77948
77949         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77950         and dup to open_safer and dup_safer, respectively.
77951         (openat_permissive): Fix typo in comment.
77952
77953         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77954         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77955         (_): Remove; no longer needed.
77956         (openat): Renamed from rpl_openat; no need for rpl_openat
77957         since openat.h renames openat for us.
77958         Replace most of the body with a call to openat_permissive,
77959         to avoid duplicate code.
77960         Port to (probably hypothetical) environments were mode_t is
77961         wider than int.
77962         (openat_permissive): Require mode arg, so that we can check
77963         types better.  Put it just after flags.  Change cwd failure
77964         indicator from pointer-to-bool to pointer-to-errno-value.
77965         All callers changed.
77966         Invoke openat_save_fail and/or openat_restore_fail if
77967         cwd_errno is null, so that openat can call us.
77968         (openat_permissive, fdopendir, fstatat, unlinkat):
77969         Simplify errno handling to avoid some duplicate code,
77970         as it's OK to set errno on success.
77971         * lib/openat.h: Revamp code so that function macros depend on
77972         __OPENAT_PREFIX only, not also on AT_FDCWD.
77973         (openat_ro): Remove.  Caller changed to use openat_permissive.
77974         (openat_permissive): Now a macro, if not a function.
77975         (openat_restore_fail, openat_save_fail): Now always functions,
77976         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77977
77978         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77979         and openat.c.
77980         * lib/mkdirat.c: Include openat-priv.h.
77981         Remove definitions of macros defined therein.
77982         * lib/openat.c: Likewise.
77983
77984         * lib/mkdirat.c (mkdirat): New file and function.
77985         * lib/openat.h (mkdirat): Declare.
77986
77987         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77988
77989         * lib/openat.h (openat_permissive): Declare.
77990         (openat_ro): Define.
77991
77992         * lib/openat.c (EXPECTED_ERRNO): New macro.
77993         (openat_permissive): New function -- used in remove.c rewrite.
77994         (all functions): Set errno just before returning, only if there
77995         was an actual failure.
77996         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77997
77998         Emulate openat-family functions using Linux's procfs, if possible.
77999         Idea and some code based on Ulrich Drepper's glibc changes.
78000
78001         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78002         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78003         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78004         before falling back on save_cwd and restore_cwd.
78005         (fdopendir, fstatat, unlinkat): Likewise.
78006
78007         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78008         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78009
78010         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78011         as second argument to va_arg.  Otherwise, some versions of gcc
78012         warn that `if this code is reached, the program will abort'.
78013
78014 2006-01-09  Jim Meyering  <jim@meyering.net>
78015
78016         Sync from coreutils.
78017         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78018         Require openat-priv.h.
78019
78020 2006-01-09  Bruno Haible  <bruno@clisp.org>
78021
78022         * modules/strnlen (Include): Use strnlen.h.
78023
78024 2006-01-09  Bruno Haible  <bruno@clisp.org>
78025
78026         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78027
78028 2006-01-09  Bruno Haible  <bruno@clisp.org>
78029
78030         * lib/sysexit_.h (EX_OK): New macro.
78031         Suggested by Martin Lambers <marlam@marlam.de>.
78032
78033 2006-01-09  Bruno Haible  <bruno@clisp.org>
78034
78035         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78036         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78037
78038 2006-01-09  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78041         numbers.
78042
78043 2006-01-09  Bruno Haible  <bruno@clisp.org>
78044
78045         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78046         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78047         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78048         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78049
78050 2006-01-09  Bruno Haible  <bruno@clisp.org>
78051
78052         * build-aux/javacomp.sh.in: New file, moved from lib/.
78053         * modules/javacomp-script (Files): Update.
78054         (configure.ac): Add AC_CONFIG_FILES invocation.
78055         (EXTRA_DIST): Remove variable.
78056
78057         * build-aux/javaexec.sh.in: New file, moved from lib/.
78058         * modules/javaexec (Files): Update.
78059         (configure.ac): Add AC_CONFIG_FILES invocation.
78060         (EXTRA_DIST): Remove javaexec.sh.in.
78061
78062         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78063         * modules/csharpcomp-script (Files): Update.
78064         (configure.ac): Add AC_CONFIG_FILES invocation.
78065         (EXTRA_DIST): Remove variable.
78066
78067         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78068         * modules/csharpexec (Files): Update.
78069         (configure.ac): Add AC_CONFIG_FILES invocation.
78070         (EXTRA_DIST): Remove csharpexec.sh.in.
78071
78072 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78073
78074         Sync from coreutils.
78075
78076         Add POSIX ACL support
78077         * lib/acl.h (copy_acl, set_acl): Add declarations.
78078         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78079         systems other than Linux.
78080         (chmod_or_fchmod): New function: use fchmod when possible,
78081         and chmod otherwise.
78082         (file_has_acl): Add a POSIX ACL implementation, with a
78083         Linux-specific subcase.
78084         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78085         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78086         acls are unsupported.
78087         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78088         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78089         are unsupported.
78090
78091 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78092
78093         Sync from coreutils.
78094         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78095
78096 2006-01-07  Bruno Haible  <bruno@clisp.org>
78097
78098         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78099         gl_EARLY.
78100
78101 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78102
78103         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78104         Problem reported for Mingw by Mark Junker.
78105
78106 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         * README: Gnulib normally doesn't generate a tarball.
78109
78110 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78111
78112         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78113         long int, not int, for nanosecond counts, so that people who are
78114         used to POSIX struct timespec won't be surprised.  Reported by Jim
78115         Meyering.
78116
78117 2005-12-28  Bruno Haible  <bruno@clisp.org>
78118
78119         * build-aux/config.rpath: Update from GNU gettext.
78120
78121 2005-12-16  Jim Meyering  <jim@meyering.net>
78122
78123         * modules/fprintftime: New module.
78124         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78125
78126 2005-12-16  Jim Meyering  <jim@meyering.net>
78127
78128         * m4/fprintftime.m4: New file.
78129
78130 2005-12-16  Jim Meyering  <jim@meyering.net>
78131
78132         * lib/fprintftime.c, lib/fprintftime.h: New files.
78133
78134 2005-12-15  Simon Josefsson  <jas@extundo.com>
78135
78136         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78137         new m4/socklen.m4.
78138
78139 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78140
78141         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78142         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78143
78144 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78145
78146         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78147         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78148         struct uparams is valid. Fall back to the default values if it is
78149         not.
78150
78151 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78152
78153         * modules/argp (Files): Add argp-pin.c
78154         (Depends-on): dirname
78155         (lib_SOURCES): Add argp-pin.c
78156
78157 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78158
78159         * m4/argp.m4:  Check if program_invocation_name and
78160         program_invocation_short_name are declared and define appropriate
78161         macros if they are not.
78162
78163 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78164
78165         * lib/argp-help.c (__argp_base_name): New function
78166         (__argp_short_program_name): Rewrite using __argp_base_name
78167         * lib/argp-namefrob.h: Define program_invocation_name and
78168         program_invocation_short_name if requested
78169         (__argp_base_name): Add prototype
78170         * lib/argp-parse.c (argp_def): Use gettext wrappers
78171         (argp_default_parser): Use __argp_base_name
78172         * lib/argp-pin.c: New file. Defines program_invocation_name and
78173         program_invocation_short_name on systems that lack them.
78174
78175 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78178         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78179         porting problem reported by Georg Schwarz in
78180         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78181
78182 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78185         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78186         porting problem reported by Georg Schwarz in
78187         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78188
78189 2005-12-05  Bruno Haible  <bruno@clisp.org>
78190
78191         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78192         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78193         Reported by Mark Junker <mjscod@gmx.de>.
78194
78195 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78198         Use implementation from Albert Chin, with some
78199         comments/corrections by Stepan Kasal and myself.
78200
78201 2005-12-02  Bruno Haible  <bruno@clisp.org>
78202
78203         * gnulib-tool (func_import): Accept GPLed build tool modules when
78204         --lgpl is given.
78205         * modules/csharpcomp-script: New file.
78206         * modules/csharpcomp: Depend on it.
78207         * modules/javacomp-script: New file.
78208         * modules/javacomp: Depend on it.
78209         Suggested by Simon Josefsson.
78210
78211 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78214         statement, to work around an HP-UX 10.20 compiler bug reported by
78215         Peter O'Gorman.
78216
78217 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * modules/savedir (Depends-on): Add openat.
78220
78221 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78224         (uintmax_t) [defined uintmax_t]: Do not declare.
78225         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78226         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78227         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78228         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78229         sake of portability to weird hosts that C allows (though we don't
78230         know of any practical examples).
78231
78232         * lib/savedir.h (fdsavedir): New decl.
78233         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78234         contains most of the former guts of savedir.
78235         (savedir): Use savedirstream.
78236         Include "openat.h".
78237
78238 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * modules/obstack (Files): Add m4/ulonglong.m4.
78241         Problem reported by Davide Angelocola.
78242
78243 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78246         coreutils no longer futzes with rounding modes.
78247
78248 2005-11-14  Jim Meyering  <jim@meyering.net>
78249
78250         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78251         replacement of mkstemp.
78252
78253 2005-11-10  Simon Josefsson  <jas@extundo.com>
78254
78255         * lib/readline.c: Remove EOL.
78256
78257 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * modules/gethrxtime (Depends-on): Add gettime.
78260
78261 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78264         or gettimeofday; no longer needed.
78265
78266 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78269         time business.
78270         (gethrxtime) [! (HAVE_NANOUPTIME
78271         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78272         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78273         our own approximation.
78274
78275 2005-11-08  Eric Blake  <ebb9@byu.net>
78276
78277         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78278
78279 2005-11-08  Eric Blake  <ebb9@byu.net>
78280
78281         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78282
78283 2005-11-04  Bruno Haible  <bruno@clisp.org>
78284
78285         * gnulib-tool: Implement --update mode.
78286
78287 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         Fix porting problem reported by Theodoros V. Kalamatianos.
78290         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78291         Don't assume that futimes failing means we must fail.
78292
78293 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78296         variables to suggest the intended function of the PATH_MAX check.
78297
78298 2005-10-30  Kean Johnston  <jkj@sco.com>
78299
78300         Trivial changes to support SCO systems.
78301         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78302         as PATH_MAX.
78303         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78304         where __ptr is null when no I/O is pending.
78305
78306 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78309         leave errno alone.  Problem reported by Dmitry V. Levin.
78310
78311 2005-10-28  Simon Josefsson  <jas@extundo.com>
78312
78313         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78314         Test more.
78315
78316         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78317
78318         * modules/md2, modules/md2-tests: New files.
78319
78320 2005-10-28  Simon Josefsson  <jas@extundo.com>
78321
78322         * m4/inet_ntop.m4: More tests.
78323
78324         * m4/gc-md2.m4, md2.m4: New file.
78325
78326 2005-10-28  Simon Josefsson  <jas@extundo.com>
78327
78328         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78329         "restrict" keywords, as per POSIX.  Protect the function
78330         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78331         Don't use K&R prototypes.  Check the sprintf return values.
78332         Re-define EAFNOSUPPORT if not present.  Indent.
78333
78334         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78335         suggested by Bruno Haible <bruno@clisp.org>.
78336
78337         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78338
78339         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78340
78341         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78342         libgcrypt).
78343
78344         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78345
78346         * lib/md2.h, lib/md2.c: New files.
78347
78348 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78351         errno alone.  Problem reported by Frederic Jolliton.
78352
78353 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * modules/verify (License): Change from GPL to LGPL.  This is a
78356         tiny module and there are apparently near-equivalents that are
78357         under the BSD license.
78358
78359 2005-10-24  Simon Josefsson  <jas@extundo.com>
78360
78361         * modules/sha1: Relicense to LGPL.
78362
78363 2005-10-24  Simon Josefsson  <jas@extundo.com>
78364
78365         * lib/md4.h: Shrink buffer size, now that we changed the type.
78366
78367 2005-10-23  Simon Josefsson  <jas@extundo.com>
78368
78369         * gnulib-tool (func_import): Fix --tests-base.
78370
78371 2005-10-22  Simon Josefsson  <jas@extundo.com>
78372
78373         * modules/arcfour (Depends-on): Need stdint.
78374
78375 2005-10-22  Simon Josefsson  <jas@extundo.com>
78376
78377         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78378         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78379
78380 2005-10-22  Simon Josefsson  <jas@extundo.com>
78381
78382         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78383         suggested by Bruno Haible <bruno@clisp.org>.
78384
78385 2005-10-22  Simon Josefsson  <jas@extundo.com>
78386
78387         * lib/crc.h: Include stddef.h, for size_t.
78388
78389 2005-10-22  Simon Josefsson  <jas@extundo.com>
78390
78391         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78392         arcfour_context struct (simplify test vector testing in GNU
78393         Shishi).
78394
78395 2005-10-21  Simon Josefsson  <jas@extundo.com>
78396
78397         * modules/des, modules/des-tests: New files.
78398
78399         * modules/gc-des, modules/gc-des-tests: New files.
78400
78401         * tests/test-des.c, tests/test-gc-des.c: New file.
78402
78403 2005-10-21  Simon Josefsson  <jas@extundo.com>
78404
78405         * modules/arctwo, modules/arctwo-tests: New files.
78406
78407         * tests/test-arctwo.c: New file.
78408
78409         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78410
78411         * tests/test-gc-arctwo.c: New file.
78412
78413 2005-10-21  Simon Josefsson  <jas@extundo.com>
78414
78415         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78416         Bruno Haible <bruno@clisp.org>.
78417
78418         * m4/gc-des.m4: New file.
78419
78420 2005-10-21  Simon Josefsson  <jas@extundo.com>
78421
78422         * m4/arctwo.m4: New file.
78423
78424         * m4/gc-arctwo.m4: New file.
78425
78426 2005-10-21  Simon Josefsson  <jas@extundo.com>
78427
78428         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78429         block.
78430
78431 2005-10-21  Simon Josefsson  <jas@extundo.com>
78432
78433         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78434         <bruno@clisp.org>.
78435
78436         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78437
78438         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78439         Bruno Haible <bruno@clisp.org>.
78440
78441         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78442         <bruno@clisp.org>.
78443
78444 2005-10-21  Simon Josefsson  <jas@extundo.com>
78445
78446         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78447
78448 2005-10-21  Simon Josefsson  <jas@extundo.com>
78449
78450         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78451
78452 2005-10-21  Simon Josefsson  <jas@extundo.com>
78453
78454         * lib/des.h, lib/des.c: New files.
78455
78456         * lib/gc-gnulib.c: Support DES.c
78457
78458 2005-10-21  Simon Josefsson  <jas@extundo.com>
78459
78460         * lib/arctwo.h, lib/arctwo.c: New files.
78461
78462         * lib/gc-gnulib.c: Support ARCTWO.
78463
78464 2005-10-21  Simon Josefsson  <jas@extundo.com>
78465
78466         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78467         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78468
78469 2005-10-21  Simon Josefsson  <jas@extundo.com>
78470
78471         * gnulib-tool (func_import, func_create_testdir): Define automake
78472         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78473         Makefile.am snippet),
78474         suggested by Bruno Haible <bruno@clisp.org>.
78475
78476         * modules/gc (Makefile.am): Use it.
78477
78478 2005-10-21  Bruno Haible  <bruno@clisp.org>
78479
78480         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78481         patch.
78482
78483 2005-10-19  Simon Josefsson  <jas@extundo.com>
78484
78485         * tests/test-gc-rijndael.c: New file.
78486
78487         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78488
78489 2005-10-19  Simon Josefsson  <jas@extundo.com>
78490
78491         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78492         interface too.
78493
78494 2005-10-19  Simon Josefsson  <jas@extundo.com>
78495
78496         * tests/test-gc-arcfour.c: New file.
78497
78498         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78499
78500 2005-10-19  Simon Josefsson  <jas@extundo.com>
78501
78502         * modules/gc-md4, modules/gc-md4-tests: New file.
78503
78504         * tests/test-gc-md4.c: New file.
78505
78506 2005-10-19  Simon Josefsson  <jas@extundo.com>
78507
78508         * m4/gc-md4.m4: New file.
78509
78510 2005-10-19  Simon Josefsson  <jas@extundo.com>
78511
78512         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78513         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78514         <kasal@ucw.cz>.
78515
78516 2005-10-19  Simon Josefsson  <jas@extundo.com>
78517
78518         * m4/gc-arcfour.m4: New file.
78519
78520         * m4/gc-rijndael.m4: New file.
78521
78522 2005-10-19  Simon Josefsson  <jas@extundo.com>
78523
78524         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78525
78526 2005-10-19  Simon Josefsson  <jas@extundo.com>
78527
78528         * lib/gc-gnulib.c: Support ARCFOUR.
78529
78530 2005-10-19  Simon Josefsson  <jas@extundo.com>
78531
78532         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78533         support.
78534
78535         * lib/gc.h: Add ECB enum type.
78536
78537         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78538
78539 2005-10-18  Simon Josefsson  <jas@extundo.com>
78540
78541         * tests/test-md5.c: New file.
78542
78543         * modules/md5-tests: New file.
78544
78545 2005-10-18  Simon Josefsson  <jas@extundo.com>
78546
78547         * tests/test-md4.c: New file.
78548
78549         * modules/md4, modules/md4-tests: New files.
78550
78551 2005-10-18  Simon Josefsson  <jas@extundo.com>
78552
78553         * m4/md4.m4: New file.
78554
78555 2005-10-18  Simon Josefsson  <jas@extundo.com>
78556
78557         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78558
78559 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78560
78561         * gnulib-tool (func_create_testdir): Omit the second check whether
78562         BUILT_SOURCES in nonempty.
78563
78564 2005-10-17  Simon Josefsson  <jas@extundo.com>
78565
78566         * tests/test-rijndael.c: New file.
78567
78568 2005-10-17  Simon Josefsson  <jas@extundo.com>
78569
78570         * modules/sha1: Depend on stdint instead of md5.
78571
78572         * modules/md5: Depend on stdint, remove uint32_t.
78573
78574 2005-10-17  Simon Josefsson  <jas@extundo.com>
78575
78576         * modules/gc-sha1-tests: New file.
78577
78578         * tests/test-gc-sha1.c: New file.
78579
78580 2005-10-17  Simon Josefsson  <jas@extundo.com>
78581
78582         * m4/md5.m4: Remove call to uint32_t.m4.
78583
78584 2005-10-17  Simon Josefsson  <jas@extundo.com>
78585
78586         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78587
78588         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78589         md5.h.
78590
78591         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78592
78593         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78594
78595 2005-10-17  Simon Josefsson  <jas@extundo.com>
78596
78597         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78598
78599 2005-10-17  Simon Josefsson  <jas@extundo.com>
78600
78601         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78602
78603 2005-10-17  Simon Josefsson  <jas@extundo.com>
78604
78605         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78606
78607         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78608
78609 2005-10-17  Bruno Haible  <bruno@clisp.org>
78610
78611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78612         that it can also be used in a test.
78613
78614 2005-10-16  Bruno Haible  <bruno@clisp.org>
78615
78616         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78617         TESTS_ENVIRONMENT, so that individual tests can augment it.
78618
78619         * gnulib-tool (func_create_testdir): Use an intermediate target for
78620         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78621         macros, like $(ALLOCA_H), which cannot be passed through the command
78622         line.
78623
78624 2005-10-15  Simon Josefsson  <jas@extundo.com>
78625
78626         * modules/rijndael-tests: New file.
78627
78628         * modules/rijndael: New file.
78629
78630 2005-10-15  Simon Josefsson  <jas@extundo.com>
78631
78632         * m4/rijndael.m4: New file.
78633
78634 2005-10-15  Simon Josefsson  <jas@extundo.com>
78635
78636         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78637
78638         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78639
78640 2005-10-14  Simon Josefsson  <jas@extundo.com>
78641
78642         * tests/test-arcfour.c: New file.
78643
78644         * modules/arcfour, modules/arcfour-tests: New files.
78645
78646 2005-10-14  Simon Josefsson  <jas@extundo.com>
78647
78648         * m4/arcfour.m4: New file.
78649
78650 2005-10-14  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/arcfour.h, lib/arcfour.c: New files.
78653
78654 2005-10-14  Roland McGrath  <roland@redhat.com>
78655
78656         Import from libc.  [BZ #1331]
78657         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78658         macro argument.
78659         Reported by Matej Vela <vela@debian.org>.
78660
78661 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78664         include <wchar.h>; no longer needed.
78665
78666 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78669
78670 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78671         and  Ulrich Drepper  <drepper@redhat.com>
78672
78673         Import from libc.
78674         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78675         instead of inline stream orientation test and two separate
78676         function calls.  Pay no attention to USE_IN_LIBIO.
78677
78678 2005-10-13  Simon Josefsson  <jas@extundo.com>
78679
78680         * modules/gc-hmac-md5-tests: New file.
78681
78682         * tests/test-gc-hmac-sha1.c: New file.
78683
78684         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78685
78686         * modules/gc-hmac-md5-tests: New file.
78687
78688         * tests/test-gc-md5.c: New file.
78689
78690         * modules/gc-md5-tests: New file.
78691
78692 2005-10-13  Simon Josefsson  <jas@extundo.com>
78693
78694         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78695         Move memory allocation outside of loop.
78696
78697 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78700         intermediate directory is in a read-only file system.  Problem
78701         reported by Eric Blake.
78702
78703 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78704
78705         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78706
78707 2005-10-12  Simon Josefsson  <jas@extundo.com>
78708
78709         * tests/test-hmac-sha1.c: New file.
78710
78711         * modules/hmac-sha1-tests: New file.
78712
78713         * modules/hmac-sha1: New file.
78714
78715 2005-10-12  Simon Josefsson  <jas@extundo.com>
78716
78717         * modules/gc-sha1: New file.
78718
78719 2005-10-12  Simon Josefsson  <jas@extundo.com>
78720
78721         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78722
78723         * tests/test-gc-pbkdf2-sha1.c: New file.
78724
78725 2005-10-12  Simon Josefsson  <jas@extundo.com>
78726
78727         * modules/gc-md5, modules/gc-hmac-md5: New files.
78728
78729         * modules/gc (Files): Remove md5, memxor and hmac files.
78730
78731 2005-10-12  Simon Josefsson  <jas@extundo.com>
78732
78733         * m4/gc-pbkdf2-sha1.m4: New file.
78734
78735         * m4/gc-hmac-sha1.m4: New file.
78736
78737         * m4/gc-sha1: New file.
78738
78739         * m4/hmac-sha1.m4: New file.
78740
78741 2005-10-12  Simon Josefsson  <jas@extundo.com>
78742
78743         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78744
78745         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78746
78747 2005-10-12  Simon Josefsson  <jas@extundo.com>
78748
78749         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78750         suggested by Bruno Haible <bruno@clisp.org>.
78751
78752 2005-10-12  Simon Josefsson  <jas@extundo.com>
78753
78754         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78755
78756 2005-10-12  Simon Josefsson  <jas@extundo.com>
78757
78758         * lib/gc-pbkdf2-sha1.c: New file.
78759
78760         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78761
78762 2005-10-12  Simon Josefsson  <jas@extundo.com>
78763
78764         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78765
78766         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78767
78768 2005-10-12  Simon Josefsson  <jas@extundo.com>
78769
78770         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78771         GC_USE_HMAC_MD5, respectively.
78772
78773         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78774         (gc_md5): Fix typo.
78775
78776         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78777
78778         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78779
78780         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78781
78782 2005-10-12  Bruno Haible  <bruno@clisp.org>
78783
78784         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78785         Reported by Stepan Kasal <kasal@ucw.cz>.
78786
78787 2005-10-11  Simon Josefsson  <jas@extundo.com>
78788
78789         * tests/test-crc.c: New file.
78790
78791         * modules/crc, modules/crc-tests: New files.
78792
78793 2005-10-11  Simon Josefsson  <jas@extundo.com>
78794
78795         * m4/crc.m4: New file.
78796
78797 2005-10-11  Simon Josefsson  <jas@extundo.com>
78798
78799         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78800
78801         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78802
78803         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78804
78805 2005-10-11  Simon Josefsson  <jas@extundo.com>
78806
78807         * lib/crc.h, lib/crc.c: New files.
78808
78809         * lib/gc.h (gc_hash_buffer): Add doc.
78810
78811 2005-10-11  Bruno Haible  <bruno@clisp.org>
78812
78813         * modules/c-strcasestr: New file.
78814         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78815
78816 2005-10-11  Bruno Haible  <bruno@clisp.org>
78817
78818         * modules/c-strcase: New file.
78819         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78820
78821 2005-10-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/strcasecmp.c: Include limits.h.
78824         (strcasecmp): Avoid integer overflow on exotic platforms.
78825         * lib/strncasecmp.c: Include limits.h.
78826         (strncasecmp): Avoid integer overflow on exotic platforms.
78827         Reported by Paul Eggert.
78828
78829 2005-10-11  Bruno Haible  <bruno@clisp.org>
78830
78831         * lib/c-strcasestr.h: New file, from GNU gettext.
78832         * lib/c-strcasestr.c: New file, from GNU gettext.
78833
78834 2005-10-11  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/c-strcase.h: New file, from GNU gettext.
78837         * lib/c-strcasecmp.c: New file, from GNU gettext.
78838         * lib/c-strncasecmp.c: New file, from GNU gettext.
78839
78840 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         * modules/mempcpy (License): GPL -> LGPL.
78843         * modules/strchrnul (License): Likewise.
78844         * modules/sysexits (License): Likewise.
78845
78846 2005-10-08  Simon Josefsson  <jas@extundo.com>
78847
78848         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78849
78850 2005-10-07  Simon Josefsson  <jas@extundo.com>
78851
78852         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78853
78854 2005-10-06  Simon Josefsson  <jas@extundo.com>
78855
78856         * tests/test-hmac-md5.c: New file.
78857
78858         * modules/hmac-md5-tests: New file.
78859
78860         * modules/hmac-md5: New file.
78861
78862 2005-10-06  Simon Josefsson  <jas@extundo.com>
78863
78864         * m4/hmac-md5.m4: New file.
78865
78866         * m4/memxor.m4: Require gl_C_RESTRICT.
78867
78868 2005-10-06  Simon Josefsson  <jas@extundo.com>
78869
78870         * lib/memxor.c (memxor): Avoid casts and warnings.
78871
78872 2005-10-06  Simon Josefsson  <jas@extundo.com>
78873
78874         * lib/hmac-md5.c: New file.
78875
78876         * lib/hmac.h: New file.
78877
78878 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78881         promotes to int, not unsigned int, to catch the AIX 5.3
78882         compiler bug.
78883
78884 2005-10-05  Simon Josefsson  <jas@extundo.com>
78885
78886         * modules/memxor: New file.
78887
78888         * modules/iconv (Files): Move config.rpath to havelib, it is used
78889         there.
78890
78891         * modules/havelib (Files): Add config.rpath.
78892
78893 2005-10-05  Simon Josefsson  <jas@extundo.com>
78894
78895         * m4/memxor.m4: New file.
78896
78897 2005-10-05  Simon Josefsson  <jas@extundo.com>
78898
78899         * lib/memxor.c (memxor): Fix compiler error.
78900
78901         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78902         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78903
78904         * lib/memxor.h, lib/memxor.c: New files.
78905
78906         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78907         we assume all systems have it, suggested by Jim Meyering
78908         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78909         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78910         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78911         same reasons.
78912
78913 2005-10-05  Simon Josefsson  <jas@extundo.com>
78914
78915         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78916
78917 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78920         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78921         needed, since the source code now assumes these .h files.
78922
78923 2005-10-05  Derek Price  <derek@ximbiot.com>
78924
78925         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78926
78927 2005-10-05  Bruno Haible  <bruno@clisp.org>
78928
78929         * modules/stdint (License): Change to LGPL.
78930
78931 2005-10-04  Simon Josefsson  <jas@extundo.com>
78932
78933         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78934         D. Baushke" <mdb@gnu.org>.
78935
78936 2005-10-04  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/verify.h (verify_true): Provide alternative definition for C++.
78939
78940 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78943         (SSIZE_MAX): New macro, if not already defined.
78944         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78945         than 2 GiB.
78946
78947 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Sync from coreutils.
78950         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78951         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78952         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78953         ULLONG_MAX doesn't work with 2.7.2.1.
78954
78955 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78958         From Ben Pfaff.
78959
78960         * modules/exclude (Depends-on): Depend on verify.
78961         * modules/strtoimax (Depends-on): Likewise.
78962         * modules/utimecmp (Depends-on): Likewise.
78963
78964 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * lib/exclude.c: Include verify.h.
78967         (verify): Remove.  All callers changed to use verify.h's version.
78968         * lib/strtoimax.c: Likewise.
78969         * lib/utimecmp.c: Likewis.e
78970
78971         Sync from coreutils.
78972         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78973         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78974         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78975         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78976         bother returning ENOSYS if settimeofday or stime fails; just let
78977         them return whatever errno they want to return.
78978         * lib/utimens.c: Include unistd.h, for dup2.
78979         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78980         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78981
78982 2005-10-02  Jim Meyering  <jim@meyering.net>
78983
78984         Sync from coreutils.
78985         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78986         from glibc-2.2.5 that fails for read-only files.
78987
78988 2005-10-02  Jim Meyering  <jim@meyering.net>
78989
78990         Sync from coreutils.
78991         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78992         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78993         `#if HAVE_CONFIG_H'.
78994         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78995         Remove AT_FDCWD test.
78996         Do not consume the fd unless successful.
78997         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78998         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78999         block, so that we don't even try to compile it if settimeofday is
79000         available.  This works around a compilation failure on OSF1 V5.1,
79001         due to stime requiring a `long int*' while tv_sec is `int'.
79002
79003 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79004
79005         Sync from coreutils.
79006         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79007         against `yes', rather than just testing for nonempty.
79008
79009 2005-10-01  Simon Josefsson  <jas@extundo.com>
79010
79011         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79012         and Darwin.
79013
79014         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79015         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79016         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79017         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79018         Check if struct addrinfo is declared.
79019
79020 2005-10-01  Simon Josefsson  <jas@extundo.com>
79021
79022         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79023         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79024         AI_* and EAI_* definitions.  Protect function declarations.
79025
79026 2005-10-01  Jim Meyering  <jim@meyering.net>
79027
79028         Sync from coreutils.
79029
79030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79031         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79032         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79034         in the inet and nsl libraries.  Required on Solaris 5.7.
79035
79036 2005-10-01  Jim Meyering  <jim@meyering.net>
79037
79038         Sync from coreutils.
79039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79040         in the inet and nsl libraries.  Required on Solaris 5.7.
79041
79042 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79043
79044         * lib/getdelim.c (getdelim): Remove unused variables.
79045
79046 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79049         so that the code works even with ancient cpp.  Portability problem
79050         with GCC 2.7.2.1 reported by Thomas M.Ott.
79051
79052 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * modules/regex (Depends-on): Add strcase.
79055
79056         * modules/gethostname (Licence): Change from GPL to LGPL, since
79057         gethostname.c is a trivial implementation of a standard library
79058         function.
79059         * modules/poll (License): Change from GPL to LGPL, since it's
79060         derived from LGPL code.
79061
79062 2005-09-27  Jim Meyering  <jim@meyering.net>
79063
79064         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79065         HAVE_CONFIG_H.
79066
79067         * lib/intprops.h (signed_type_or_expr__): Define.
79068         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79069         for unsigned types.
79070
79071 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/verify.h (verify_expr): Remove, replacing with:
79074         (verify_true): New macro that returns true instead of void.
79075         (verify_type__): Remove.
79076         (verify): Use verify_true rather than verify_type__.
79077
79078 2005-09-26  Bruno Haible  <bruno@clisp.org>
79079
79080         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79081         is necessary.
79082         (lib_SOURCES): Remove mbchar.c.
79083         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79084         (Files): Add m4/mbrtowc.m4.
79085         * modules/mbiter: Likewise.
79086         * modules/mbuiter: Likewise.
79087
79088 2005-09-26  Bruno Haible  <bruno@clisp.org>
79089
79090         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79091         compile mbchar.c if they are not both present.
79092         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79093         * m4/mbiter.m4 (gl_MBITER): Likewise.
79094         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79095         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79096         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79097
79098 2005-09-25  Jim Meyering  <jim@meyering.net>
79099
79100         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79101         also uses socklen_t.
79102
79103 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * lib/utimens.c (ENOSYS): Define if not already defined.
79106         (futimens): Support having a null PATH if the file descriptor
79107         is nonnegative.
79108
79109         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79110         Remove.
79111         (__attribute): Define to empty unless GCC 3.1 or later.
79112         This works around a core dump on OpenBSD 3.4, which has GCC
79113         2.95.3, which dumps core when given __attribute__(()).  It also
79114         simplifies other tests, since we really don't want to bother with
79115         worrying about which ancient version of GCC supported what.
79116         Original problem reported by Yoann Vandoorselaere, with part of
79117         the fix suggested by Derek Price.
79118
79119 2005-09-24  Jim Meyering  <jim@meyering.net>
79120
79121         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79122         so we can once again use a positive bitfield width of 1 -- now we
79123         don't have to explain why we were using a bitfield width of 2.
79124
79125 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79126
79127         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79128         and similarly for the other external symbols.  Problem reported
79129         by James Gallager.
79130
79131         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79132         bug reported by Jim Meyering.
79133
79134         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79136         not needed, since socklen is a prerequisite module.
79137
79138 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79141         Problem reported by Eric Blake.
79142         (getaddrinfo): Initialize se so that it's not garbage.
79143         Redo internal storage allocation so that it doesn't make unportable
79144         assumptions about alignment.
79145         Fix a memory leak.
79146
79147         * lib/utimens.c (futimens): Use futimesat if available.
79148         Prefer it to futimes since it doesn't have the futimes bug.
79149
79150         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79151         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79152         Instead, declare a function that returns a pointer to an array,
79153         and use verify_type__ to declare the size of the array.
79154         Problem and germ of a solution reported by Bruno Haible.
79155         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79156         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79157
79158 2005-09-23  Jim Meyering  <jim@meyering.net>
79159
79160         Sync from coreutils.
79161         Correct build failure (socklen_t not defined) on at least
79162         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79164
79165 2005-09-23  Jim Meyering  <jim@meyering.net>
79166
79167         * modules/getaddrinfo (Depends-on): Add socklen.
79168
79169 2005-09-23  Bruno Haible  <bruno@clisp.org>
79170
79171         * tests/test-verify.c: New file.
79172
79173 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79174
79175         Sync from coreutils.
79176
79177         * modules/argmatch (Depends-on): Add verify.
79178         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79179         unistd-safer.
79180         * modules/save-cwd (Depends-on): Likewise.
79181
79182         * modules/openat (Files): Add lib/openat-die.c.
79183         (Depends-on): Remove error, exitfail.
79184         Add dirname.
79185
79186         * modules/verify: New file.
79187         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79188         with "verify" module.
79189
79190 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         Sync from coreutils.
79193
79194         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79195         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79196         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79197         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79198         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79199         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79200         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79201         Don't bother checking for string.h, stdlib.h, unistd.h.
79202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79203         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79204         module's job.
79205         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79206         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79207
79208         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79209         (gl_GETDATE): Use it.
79210
79211         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79212
79213 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         Sync from coreutils.
79216
79217         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79218         stat-time.h.
79219         * lib/argmatch.h: Include verify.h
79220         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79221         (ARGMATCH_ASSERT): Remove; unused.
79222         * lib/canonicalize.c: Assume STDC_HEADERS.
79223         * lib/exclude.c: Include "strcase.h".
79224         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79225         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79226         and stdio-safer.h.
79227         (getusershell): Call fopen, not fopen_safer.
79228         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79229         Do not include unistd-safer.h.
79230         (save_cwd): Don't call fd_safer; no longer needed
79231         now that we include fcntl--.h.
79232
79233         * lib/getdate.y (relative_time): New type.
79234         (RELATIVE_TIME_0): New constant.
79235         (parser_control): Use relative_time instead of doing it ourselves.
79236         (%union): Add new relative_time rel member.
79237         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79238         Now typeless.
79239         (relunit, relunit_snumber): Now of type rel.
79240         (zone, rel, relunit, get_date): Adjust to above changes.
79241
79242         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79243         Do not include unistd-safer.h.
79244         (getloadavg): Don't call fd_safer; no longer needed
79245         now that we include fcntl--.h.
79246
79247         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79248         (make_dir_parents): Treat ENOSYS like EEXIST.
79249
79250         Improve quality of diagnostics on restore_cwd failure.
79251         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79252         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79253         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79254         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79255         each time through the loop.  Do not diagnose restore_cwd failure;
79256         that is the caller's job (and perhaps the caller does not care).
79257
79258         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79259         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79260         If the file already exists but is not a directory, don't bother
79261         to try to make its parents.
79262         Close potential file descriptor leak if we can't chdir("/") (!).
79263         Don't always return true if chdir($PWD) fails; return true only
79264         if the requested action was done successfully (except for the
79265         chdir($PWD)).
79266         Don't log final directory unless we actually made it.
79267         Refactor to avoid duplicate code to fix up permissions.
79268         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79269
79270         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79271         to make it a bit faster and (I hope) clearer.
79272         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79273         Fix bug in formats like %2N.
79274
79275         * lib/verify.h: New file.
79276
79277 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         Sync from coreutils.
79280         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79281
79282 2005-09-22  Jim Meyering  <jim@meyering.net>
79283
79284         Sync from coreutils.
79285
79286         * m4/lstat.m4 (gl_FUNC_LSTAT):
79287         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79288         Remove obsolete comment.
79289         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79290         * m4/xstrtod.m4: Likewise.
79291
79292         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79293
79294 2005-09-22  Jim Meyering  <jim@meyering.net>
79295
79296         Sync from coreutils.
79297
79298         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79299
79300         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79301         the .tm_year member, since otherwise gcc-4.0 would now warn about
79302         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79303
79304         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79305         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79306
79307         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79308         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79309         when run in a time zone for which daylight savings time is in effect
79310         for the starting date.
79311
79312         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79313         stop us from restricting permissions of just-created absolute-named
79314         directories.
79315         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79316         to restore initial working directory.
79317         * lib/mkdir-p.c (make_dir_parents): New parameter:
79318         different_working_dir, to tell caller if/when we change the working
79319         directory and are unable to return to the initial one.
79320         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79321         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79322         `return false'.  This fixes a bug introduced on 2004-07-30.
79323
79324         * lib/openat.c (fdopendir): Be sure to close the supplied
79325         file descriptor before returning.  This makes our replacement
79326         implementation a little closer to Solaris's, where fdopendir
79327         ties the file descriptor to the returned DIR* pointer.
79328         * lib/openat.c (unlinkat): New function.
79329         * lib/openat.h (unlinkat): Add prototype.
79330         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79331         (openat_restore_fail): Rename from openat_restore_die.
79332         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79333
79334         Provide an alternative to exiting immediately upon save_cwd or
79335         restore_cwd failure.  Now, an application can arrange e.g.,
79336         to perform a longjump in that case.
79337         * lib/openat.c: Include dirname.h.
79338         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79339         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79340         and openat_restore_die rather than calling error directly.
79341         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79342
79343         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79344         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79345         define.
79346
79347         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79348         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79349                             int utc, int nanoseconds);
79350         Background:
79351         date should not have to allocate a megabyte of virtual memory to
79352         handle a format argument like +%1048575T.  When implemented with
79353         strftime, it must allocate such a buffer, use strftime to fill it
79354         in, print it, then free it.
79355         With fprintftime, it simply prints everything and exits.
79356         With no need for memory allocation, that's one fewer way to fail.
79357         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79358         optional field width, not before, so we accept %9:z, not %:9z.
79359         (my_strftime): Be sure to use L_('x') for literals.
79360
79361         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79362         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79363         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79364         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79365         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79366         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79367         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79368         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79369         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79370         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79371         * lib/xgethostname.c, lib/xreadlink.c:
79372         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79373
79374         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79375         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79376         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79377         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79378         and don't include <sys/file.h>).
79379
79380 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79381
79382         Sync from coreutils.
79383
79384         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79385         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79386         [!LDAV_DONE]: Avoid unused variable warning.
79387
79388 2005-09-21  Bruno Haible  <bruno@clisp.org>
79389
79390         * lib/unicodeio.h (unicode_to_mb): New declaration.
79391
79392 2005-09-20  Derek Price  <derek@ximbiot.com>
79393
79394         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79395         getaddrinfo.h.
79396
79397 2005-09-20  Bruno Haible  <bruno@clisp.org>
79398
79399         * gnulib-tool: Remove trailing slashes from the values specified for
79400         --source-base, --m4-base, --tests-base, --aux-dir.
79401         Suggested by Simon Josefsson <jas@extundo.com>.
79402
79403 2005-09-20  Bruno Haible  <bruno@clisp.org>
79404
79405         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79406         func_modules_to_filelist, func_import, func_create_testdir): Make all
79407         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79408         change when gnulib-tool is invoked in a different locale.
79409
79410 2005-09-19  Simon Josefsson  <jas@extundo.com>
79411
79412         * m4/socklen.m4: Fix typo.
79413
79414 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79415
79416         Use a consistent style for including <config.h>.
79417         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79418         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79419         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79420         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79421         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79422         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79423         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79424         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79425         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79426         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79427         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79428         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79429         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79430         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79431         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79432         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79433         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79434         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79435         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79436         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79437         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79438         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79439         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79440         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79441         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79442         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79443         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79444         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79445         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79446         lib/xstrtoumax.c, lib/yesno.c:
79447         Standardize inclusion of config.h.
79448         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79449         lib/inttostr.h:  Removed inclusion of config.h from header files.
79450         * lib/inttostr.c:  Adjusted in-tree users.
79451         * lib/timespec.h: Remove superfluous warning to include config.h.
79452         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79453         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79454         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79455         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79456         config.h with HAVE_CONFIG_H.
79457
79458 2005-09-19  Jim Meyering  <jim@meyering.net>
79459
79460         * modules/pathmax (License): Change to LGPL.
79461
79462 2005-09-19  Derek Price  <derek@ximbiot.com>
79463
79464         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79465
79466 2005-09-19  Bruno Haible  <bruno@clisp.org>
79467
79468         * gnulib-tool (import): Provide default for --tests-base.
79469
79470 2005-09-19  Bruno Haible  <bruno@clisp.org>
79471
79472         * doc/quote.texi: New file, extracted from gnulib.texi.
79473         * doc/ctime.texi: New file, extracted from gnulib.texi.
79474         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79475         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79476         * doc/gnulib.texi: Include them.
79477
79478 2005-09-18  Bruno Haible  <bruno@clisp.org>
79479
79480         Portability fix.
79481         * gnulib-tool (func_readlink): New function.
79482         (func_ln_if_changed): Use it.
79483
79484 2005-09-18  Bruno Haible  <bruno@clisp.org>
79485
79486         * gnulib-tool: Support --with-tests also with --import.
79487         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79488         (func_import): Use variables $testsbase and $inctests. Emit a
79489         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79490         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79491         SUBDIRS += $testsdir.
79492         (func_create_testdir): Update.
79493
79494 2005-09-18  Bruno Haible  <bruno@clisp.org>
79495
79496         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79497         instead of $dry_run.
79498         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79499         (func_ln_if_changed): Don't handle dry-run here.
79500         (func_import): In dry-run mode, detect more precisely which actions
79501         would be performed, and don't use "...ing" verbs.
79502
79503 2005-09-18  Bruno Haible  <bruno@clisp.org>
79504
79505         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79506         (func_import): Use join on two temporary files instead of three nested
79507         loops, in order to determine which files are new or old.
79508
79509 2005-09-18  Bruno Haible  <bruno@clisp.org>
79510
79511         * gnulib-tool (func_import): Comment out code that spits out the
79512         new files with --dry-run.
79513
79514 2005-09-18  Bruno Haible  <bruno@clisp.org>
79515
79516         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79517
79518 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79519
79520         * lib/stat-time.h: New file.
79521         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79522         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79523         in a different way.
79524         (timespec_cmp): New function.
79525         * lib/utimecmp.c: Include stat-time.h.
79526         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79527         members exist, not on the obsolescent ST_MTIM_NSEC.
79528         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79529
79530 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79533
79534 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         * MODULES.html.sh (File system functions): Add stat-time.
79537         * modules/stat-time: New file.
79538         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79539         is now done in a different way, by the stat-time module.
79540         * modules/utimecmp (Depends-on): Add stat-time.
79541
79542 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * m4/st_mtim.m4: Remove.  Superseded by...
79545         * m4/stat-time.m4: New file.
79546         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79547         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79548
79549 2005-09-15  Derek Price  <derek@ximbiot.com>
79550
79551         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79552
79553 2005-09-15  Derek Price  <derek@ximbiot.com>
79554
79555         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79556         * lib/regex_internal.c: Ditto, using this...
79557         (__GNUC_PREREQ): ...new macro.
79558         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79559         using...
79560         (__GNUC_PREREQ): ...this new macro.
79561
79562         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79563
79564 2005-09-15  Derek Price  <derek@ximbiot.com>
79565             Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79568         changes, consolidating in...
79569         * lib/regex_internal.h: ...this file.
79570
79571 2005-09-13  Jim Meyering  <jim@meyering.net>
79572
79573         * lib/canon-host.c: Filter through gnu indent and reword comments
79574         slightly.
79575         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79576
79577 2005-09-13  Derek Price  <derek@ximbiot.com>
79578
79579         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79580         failure.
79581         Reported by Jim Meyering  <jim@meyering.net>.
79582
79583 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79584
79585         * lib/base64.c: Typo.
79586         (base64_encode): Put b64str in initialized data section.
79587
79588 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         Merge glibc and coreutils changes into gnulib, plus a few
79591         extra fixes.
79592         * lib/md5.c: Use #error rather than a string.
79593         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79594         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79595         (__attribute__): Define to empty for non recent-GCC.
79596         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79597         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79598         Renamed from their non-__ counterparts, with new macros replacing
79599         them if not _LIBC.  Add __THROW attribute.
79600         (rol): Remove.
79601         (struct md5_ctx): Align buffer if using GCC.
79602         * lib/sha1.h (struct sha1_ctx): Likewise.
79603         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79604         The old name was backwards.
79605         (NOTSWAP): Remove; not used.
79606         (rol): New macro, moved here from md5.h.
79607         (sha1_process_block): Remove a FIXME that doesn't make sense.
79608
79609 2005-09-12  Derek Price  <derek@ximbiot.com>
79610
79611         Return usable errors from canon-host.
79612         * lib/canon-host.h: New file.
79613         * lib/canon-host.c (canon_host): Wrap...
79614         (canon_host_r): ...this new function, which now relies exclusively on
79615         getaddrinfo.
79616         (ch_strerror): New function.
79617         (last_cherror): New global.
79618         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79619         interface.
79620         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79621         void *.
79622         (freeaddrinfo): Free ai->ai_canonname when set.
79623
79624 2005-09-12  Derek Price  <derek@ximbiot.com>
79625
79626         Make canon-host require getaddrinfo.
79627         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79628         AC_LIBSOURCE canon-host.h.  Call...
79629         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79630         gl_GETADDRINFO.
79631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79632
79633 2005-09-12  Derek Price  <derek@ximbiot.com>
79634
79635         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79636         LGPL.
79637         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79638
79639 2005-09-12  Derek Price  <derek@ximbiot.com>
79640
79641         * lib/gai_strerror.c: Include config.h when available.  Include
79642         getaddrinfo.h before other headers to test interface.
79643         Reported by Larry Jones <lawrence.jones@ugs.com>.
79644
79645 2005-09-12  Derek Price  <derek@ximbiot.com>
79646             Paul Eggert  <eggert@cs.ucla.edu>
79647
79648         * modules/glob (Files): Add glob-libc.h.
79649
79650 2005-09-12  Derek Price  <derek@ximbiot.com>
79651             Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79654         glob_.h, glob-libc.h.
79655         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79656
79657 2005-09-12  Derek Price  <derek@ximbiot.com>
79658             Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79661         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79662         protecting things that should be done only in gnulib contexts.
79663         * lib/glob_.h: New file, containing only the glob things needed for
79664         gnulib.
79665         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79666         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79667         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79668         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79669         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79670         and to respect the namespace rules better.
79671
79672 2005-09-08  Simon Josefsson  <jas@extundo.com>
79673
79674         * modules/socklen: New file.
79675
79676 2005-09-08  Simon Josefsson  <jas@extundo.com>
79677
79678         * m4/socklen.m4: New file.
79679
79680 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * modules/utimens (Files): Add m4/utimbuf.m4, since
79683         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79684         Reported by Sergey Poznyakoff.
79685
79686 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79689         definitions, since that's the preferred style in glibc.
79690         Fix a minor spacing issue, and update copyright notice to match
79691         glibc's.
79692
79693 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79696
79697 2005-09-06  Simon Josefsson  <jas@extundo.com>
79698
79699         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79700         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79701
79702 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79705         warning.
79706
79707 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         * config/srclist.txt: Add glibc bug 1302.
79710
79711 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         Change bitset word type from unsigned int to unsigned long int,
79714         as this has better performance on typical 64-bit hosts.
79715         Port bitset code to hosts with unusual word sizes.
79716         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79717         (build_collating_symbol):
79718         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79719         argument is a bitset.  This is merely a style issue, but it makes
79720         it clearer that an entire array is expected.
79721         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79722         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79723         Port to the case where bitset_word is not the same as unsigned int.
79724         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79725         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79726         Likewise.
79727         * lib/regexec.c (check_dst_limits_calc_pos_1,
79728         check_subexp_matching_top):
79729         (build_trtable, group_nodes_into_DFAstates):
79730         Likewise.
79731         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79732         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79733         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79734         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79735         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79736         * lib/regcomp.c (optimize_subexps, lower_subexp):
79737         Work even if bitset_word has holes in its bitwise representation.
79738         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79739         * lib/regexec.c (check_dst_limits_calc_pos_1,
79740         check_subexp_matching_top):
79741         Likewise.
79742         * lib/regex_internal.c (re_string_reconstruct):
79743         Don't assume UCHAR_MAX == 255.
79744         * lib/regex_internal.h (bitset_set_all): Likewise.
79745         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79746         All uses changed.
79747         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79748         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79749         All uses changed.
79750         (BITSET_WORD_MAX): New macro.
79751         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79752         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79753         (bitset_empty, bitset_copy):
79754         Prefer sizeof (bitset) to multiplying it out ourselves.
79755         (bitset_not_merge): Remove; unused.
79756         (bitset_contain): Return bool, not unsigned int with one bit on.
79757         All callers changed.
79758         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79759         alignment than re_node_set; do this by defining a new internal
79760         type struct dests_alloc and using it to allocate memory.
79761
79762 2005-09-05  Bruno Haible  <bruno@clisp.org>
79763
79764         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79765         links.
79766
79767 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79768
79769         * modules/size_max (Makefile.am): Add size_max.h
79770
79771 2005-09-04  Derek Price  <derek@ximbiot.com>
79772
79773         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79774
79775 2005-09-03  Simon Josefsson  <jas@extundo.com>
79776
79777         * gnulib-tool: Fix typo.
79778
79779 2005-09-03  Simon Josefsson  <jas@extundo.com>
79780
79781         * config/srclist.txt: Add glibc bug 1293.
79782
79783 2005-09-03  Derek Price  <derek@ximbiot.com>
79784
79785         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79786         From Larry Jones <lawrence.jones@ugs.com>.
79787
79788 2005-09-02  Simon Josefsson  <jas@extundo.com>
79789
79790         * modules/socklen: New file.
79791
79792 2005-09-02  Simon Josefsson  <jas@extundo.com>
79793
79794         * modules/havelib: New module.
79795
79796         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79797         Use havelib.
79798
79799 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         Check for arithmetic overflow when calculating sizes, to prevent
79802         some buffer-overflow issues.  These patches are conservative, in the
79803         sense that when I couldn't determine whether an overflow was possible,
79804         I inserted a run-time check.
79805         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79806         macros.
79807         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79808         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79809         (re_xnrealloc, re_x2nrealloc): New inline functions.
79810         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79811         parse_bracket_exp):
79812         (build_equiv_class, build_charclass): Check for arithmetic overflow
79813         in size expression calculations.
79814         * lib/regex_internal.c (re_string_realloc_buffers):
79815         (build_wcs_upper_buffer, re_node_set_add_intersect):
79816         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79817         (re_dfa_add_node, register_state): Likewise.
79818         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79819         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79820         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79821         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79822
79823 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79826         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79827
79828 2005-09-02  Bruno Haible  <bruno@clisp.org>
79829
79830         Support for lib vs. lib64 distinction on biarch platforms.
79831         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79832         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79834
79835 2005-09-02  Bruno Haible  <bruno@clisp.org>
79836
79837         * gnulib-tool (import): In the other first-use case, provide defaults
79838         as well.
79839
79840 2005-09-02  Bruno Haible  <bruno@clisp.org>
79841
79842         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79843         patches not yet found in the latest gettext release.
79844
79845 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79848         to avoid a collision with bits/local_lim.h in glibc.
79849         All uses changed.  Problem reported by Dmitry V. Levin in
79850         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79851
79852         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79853         bugs in int versus size_t comparisons.
79854         (re_string_context_at): Fix bug where the code assumed that
79855         Idx is signed.
79856
79857         Use bool where appropriate.
79858         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79859         All callers changed.
79860         (calc_eclosure_iter): Likewise, for ROOT arg.
79861         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79862         (build_charclass_op): Likewise, for NON_MATCH arg.
79863         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79864         (re_string_construct_common): Likewise, for ICASE arg.
79865         * lib/regexec.c (re_search_2_stub, re_search_stub):
79866         Likewise, for RET_LEN arg.
79867         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79868         (set_regs): Likewise, for FL_BACKTRACK arg.
79869         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79870         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79871         (calc_eclosure_iter, parse_bracket_exp):
79872         Use bool for internal variables that are booleans.
79873         * lib/regexec.c (re_search_internal, check_matching,
79874         proceed_next_node):
79875         (set_regs, build_sifted_states, sift_states_bkref):
79876         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79877         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79878         (find_collation_sequence_value):
79879         Likewise.
79880         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79881         (re_node_set_compare):
79882         Return bool, not int. All callers changed.
79883         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79884         (build_trtable, check_node_accept): Likewise.
79885         * lib/regex_internal.h: Include stdbool.h.
79886
79887         Fix bugs uncovered when converting to bool.
79888         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79889         failure instead of charging ahead blindly.
79890         * lib/regex_internal.c (register_state): Likewise.
79891         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79892         for freeing internal storage.
79893         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79894         bitset pieces used as boolean, to avoid undefined behavior
79895         on hosts that do int overflow checking.
79896
79897 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * config/srclist.txt: Add glibc bugs 1285-1287.
79900
79901 2005-09-01  Jim Meyering  <jim@meyering.net>
79902
79903         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79904         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79905         Require gl_STAT_MACROS, too.
79906
79907 2005-09-01  Bruno Haible  <bruno@clisp.org>
79908
79909         * gnulib-tool (import): In the first-use case, provide defaults.
79910
79911 2005-09-01  Bruno Haible  <bruno@clisp.org>
79912
79913         * gnulib-tool (func_import): Remove the .tmp files.
79914
79915 2005-09-01  Bruno Haible  <bruno@clisp.org>
79916
79917         * gnulib-tool (func_import): Fix handling of symbolic links.
79918
79919 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79922         old glibc regex code mishandles strings longer than 2**31 bytes.
79923         This patch fixes this when the regex code is used in gnulib
79924         (i.e., outside glibc).
79925
79926         This patch should not affect the use of the regex code inside
79927         glibc.  No doubt this problem also needs to be handled for glibc
79928         as well, but the result will be an incompatible change to the
79929         glibc ABI, and the old ABI will have to be supported too.  That
79930         can be the the subject for another patch.
79931
79932         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79933         governing whether the rest of this patch is active.  By default,
79934         the macro is disabled and the patch has no effect.
79935         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79936         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79937         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79938         (re_match_2, re_set_registers): Use the new types.
79939         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79940         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79941         New macros.
79942         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79943         (re_string_context_at, bin_tree_t, re_dfastate_t):
79944         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79945         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79946         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79947         (re_string_char_size_at, re_string_wchar_at):
79948         (re_string_elem_size_at):
79949         Use the new types and macros to port to 64-bit hosts.
79950         Use unsigned types for internal values, so that the code
79951         mostly works even for arrays larger than SSIZE_MAX.
79952         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79953         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79954         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79955         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79956         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79957         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79958         (calc_inveclosure, parse_dup_op, build_range_exp):
79959         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79960         (fetch_number, create_token_tree, mark_opt_subexp):
79961         Likewise.
79962         * lib/regex_internal.c (re_string_construct_common,
79963         create_ci_newstate):
79964         (create_cd_newstate, re_string_allocate, re_string_construct):
79965         (re_string_realloc_buffers, build_wcs_upper_buffer):
79966         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79967         (re_string_reconstruct, re_string_peek_byte_case):
79968         (re_string_fetch_byte_case, re_string_context_at):
79969         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79970         (re_node_set_init_copy, re_node_set_add_intersect):
79971         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79972         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79973         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79974         (re_acquire_state, re_acquire_state_context, register_state):
79975         Likewise.
79976         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79977         search_cur_bkref_entry):
79978         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79979         (re_search_internal, re_search_2_stub, re_search_stub)
79980         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79981         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79982         (update_cur_sifted_state, check_dst_limits):
79983         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79984         (check_subexp_limits, sift_states_bkref, merge_state_array):
79985         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79986         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79987         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79988         (expand_bkref_cache, check_node_accept_bytes):
79989         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79990         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79991         (acquire_init_state_context, check_halt_node_context):
79992         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79993         (sift_states_backward, clean_state_log_if_needed):
79994         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79995         (find_recover_state, transit_state_sb, transit_state_mb):
79996         (transit_state_bkref, build_trtable, match_ctx_clean):
79997         Likewise.
79998         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79999         to work around an assumption that REG_MISSING is negative.
80000
80001         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80002         (seek_collating_symbol_entry) [defined _LIBC]:
80003         (lookup_collation_sequence_value) [defined _LIBC]:
80004         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80005         Use prototypes rather than old-style function definitions.
80006         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80007         (transit_state_sb) [0]:
80008         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80009
80010         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80011         rm_eo.
80012
80013         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80014         (optimize_subexps, lower_subexp):
80015         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80016         since the signed shift might overflow.  Use 1u<<31 instead.
80017         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80018         Likewise.
80019         * lib/regexec.c (check_dst_limits_calc_pos_1,
80020         check_subexp_matching_top): Likewise.
80021
80022         * lib/regcomp.c (optimize_subexps, lower_subexp):
80023         Use CHAR_BIT rather than 8, for clarity.
80024         * lib/regexec.c (check_dst_limits_calc_pos_1):
80025         (check_subexp_matching_top): Likewise.
80026         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80027         have to worry about portability issues when shifting it left.
80028         Remove no-longer-needed test for table_size > 0.
80029         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80030         in a word, as the resulting behavior is undefined.
80031         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80032         in one case, a <= should have been an <, and in another case the
80033         whole test was missing.
80034         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80035         the standard name CHAR_BIT.
80036         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80037         this is not true on one's complement and signed-magnitude hosts.
80038
80039         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80040         next_last_offset.
80041         (struct re_dfa_t): Remove unused member states_alloc.
80042         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80043
80044 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80047         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80048         and large-file glibc and in 32-bit large-file Solaris.
80049
80050 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80053         lengths fit in regoff_t; this isn't true if regoff_t is the same
80054         width as size_t.
80055         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80056         (= START + RANGE) instead of RANGE.  This avoids overflow
80057         problems when regoff_t is the same width as size_t.
80058         All callers changed.
80059         (re_search_2_stub): Check for overflow when adding the
80060         sizes of the two strings.
80061         (re_search_stub): Check for overflow when adding START
80062         to RANGE; if it occurs, substitute the extreme value.
80063
80064 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80067
80068 2005-08-31  Jim Meyering  <jim@meyering.net>
80069
80070         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80071         a pointer-to-const.
80072         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80073         (register_state): Likewise.
80074         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80075         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80076         (group_nodes_into_DFAstates): Likewise.
80077
80078 2005-08-31  Jim Meyering  <jim@meyering.net>
80079
80080         * check-module: Add a FIXME comment.
80081
80082 2005-08-31  Eric Blake  <ebb9@byu.net>
80083
80084         * modules/unistd-safer (Files): Add unistd--.h.
80085         * modules/stdio-safer (Files): Add stdio--.h.
80086
80087 2005-08-31  Derek Price  <derek@ximbiot.com>
80088
80089         * lib/getdelim.c (getdelim): Return EOF on EOF.
80090         Reported by Larry Jones <lawrence.jones@ugs.com>.
80091
80092 2005-08-31  Bruno Haible  <bruno@clisp.org>
80093
80094         Avoid unnecessary diffs in the generated lib/Makefile.am.
80095         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80096         the generated files.
80097         (func_import): Don't set cmd.
80098
80099 2005-08-31  Bruno Haible  <bruno@clisp.org>
80100
80101         * lib/strstr.c: Include <stddef.h>, for NULL.
80102         * lib/strcasestr.c: Likewise.
80103         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80104
80105 2005-08-31  Bruno Haible  <bruno@clisp.org>
80106
80107         * gnulib-tool: New option --macro-prefix.
80108         (func_import): Use macro_prefix.
80109         (import): Handle option --macro-prefix.
80110
80111 2005-08-31  Bruno Haible  <bruno@clisp.org>
80112
80113         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80114         Also use new variables cached_lgpl, cached_libtool.
80115
80116 2005-08-31  Bruno Haible  <bruno@clisp.org>
80117
80118         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80119         always instantiating them.
80120
80121 2005-08-31  Bruno Haible  <bruno@clisp.org>
80122
80123         * gnulib-tool (func_import): Read the previous cached settings
80124         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80125         earlier added by gnulib but are now dropped. Warn when a gnulib file
80126         overwrites a non-gnulib file.
80127
80128 2005-08-31  Bruno Haible  <bruno@clisp.org>
80129
80130         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80131         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80132         projects that don't keep autogenerated files in CVS. Put into
80133         actioncmd only the specified modules, not the transitive closure.
80134
80135 2005-08-31  Bruno Haible  <bruno@clisp.org>
80136
80137         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80138         Create directories that shall be filled.
80139         (import): Don't look for gl_* macros in configure.ac. Recurse across
80140         all directories containing a gnulib-cache.m4 files, if meaningful.
80141
80142 2005-08-31  Bruno Haible  <bruno@clisp.org>
80143
80144         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80145         (import): Set seen_libtool when we see gl_LIBTOOL.
80146
80147 2005-08-31  Bruno Haible  <bruno@clisp.org>
80148
80149         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80150         declaration macro definitions from generated gnulib.m4.
80151
80152 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80153
80154         * lib/iconvme.h: Add prototype for iconv_alloc.
80155
80156 2005-08-29  Simon Josefsson  <jas@extundo.com>
80157
80158         * lib/iconvme.c: Fix errno.
80159
80160 2005-08-29  Bruno Haible  <bruno@clisp.org>
80161
80162         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80163         that it works when the directory contains spaces.
80164
80165 2005-08-29  Bruno Haible  <bruno@clisp.org>
80166
80167         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80168
80169 2005-08-29  Bruno Haible  <bruno@clisp.org>
80170
80171         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80172         Emit more advice.
80173
80174 2005-08-29  Bruno Haible  <bruno@clisp.org>
80175         and Stepan Kasal  <kasal@ucw.cz>
80176
80177         * check-module: If more parameters are given, check each of them
80178         separately; add more exceptions, as noted by Jim Meyering.
80179         (check_module): New procedure.
80180         (%exempt_header): Now contains all exceptions.
80181
80182 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80183
80184         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80185
80186 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80187
80188         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80189
80190 2005-08-28  Bruno Haible  <bruno@clisp.org>
80191
80192         * m4/gnulib-tool.m4: New file.
80193
80194 2005-08-27  Jim Meyering  <jim@meyering.net>
80195
80196         * modules/unistd-safer (Files): Add pipe-safer.c.
80197         * modules/fcntl-safer (Files): Add creat-safer.c.
80198
80199 2005-08-27  Jim Meyering  <jim@meyering.net>
80200
80201         * m4/stdlib-safer.m4: New file.  From coreutils.
80202         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80203         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80204         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80205         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80206         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80207
80208 2005-08-27  Jim Meyering  <jim@meyering.net>
80209
80210         * lib/fopen-safer.c: Merge minor changes from coreutils.
80211         * lib/dup-safer.c: Likewise.
80212         * lib/fd-safer.c: Likewise.
80213
80214         Merge from coreutils.
80215         * lib/stdio--.h: New file.
80216         * lib/stdlib--.h: New file.
80217         * lib/mkstemp-safer.c: New file.
80218
80219         GNU tar needs these.
80220         * lib/pipe-safer.c: New file.
80221         * lib/creat-safer.c: New file.
80222         * lib/fcntl--.h (creat): Define to creat_safer.
80223         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80224         * lib/unistd--.h (pipe): Define to pipe_safer.
80225         * lib/unistd-safer.h: Declare pipe_safer.
80226
80227 2005-08-26  Simon Josefsson  <jas@extundo.com>
80228
80229         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80230         Haible <bruno@clisp.org>.
80231
80232 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * lib/regex_internal.h: Remove all references to
80235         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80236         or better.
80237         (bitset_not, bitset_merge, bitset_not_merge):
80238         (bitset_mask, re_string_allocate, re_string_construct):
80239         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80240         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80241         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80242         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80243         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80244         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80245         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80246         (re_acquire_state_context):
80247         Remove unnecessary forward decls.
80248         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80249         Put __attribute at function definition,
80250         now that the function decl has been removed.
80251         * lib/regex_internal.c (re_string_peek_byte_case):
80252         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80253         Likewise.
80254
80255 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80256
80257         * m4/regex.m4: Add AC_PREREQ(2.50).
80258         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80259
80260 2005-08-25  Simon Josefsson  <jas@extundo.com>
80261
80262         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80263         __fsetlocking.
80264
80265 2005-08-25  Simon Josefsson  <jas@extundo.com>
80266
80267         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80268         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80269         GLIBC specific code.
80270
80271 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80272
80273         Make regex safe for g++.  This fixes one real bug (an "err"
80274         that should have been "*err").  g++ problem reported by
80275         Sam Steingold.
80276         * lib/regex_internal.h (re_calloc): New macro, consistent with
80277         re_malloc etc.  All callers of calloc changed to use re_calloc.
80278         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80279         not int.  All callers changed.
80280         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80281         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80282         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80283         (find_recover_state): Change "err" to "*err"; this fixes what
80284         appears to be a real bug.
80285         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80286         versus int.
80287
80288 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * modules/regex (Depends-on): Add malloc, since the code
80291         assumes that !malloc(0) means failure.
80292
80293 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80296
80297         alloca modernization/simplification for regex.
80298         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80299         needs to be at the start of the file, and can be moved into
80300         regex_internal.h and simplified.
80301         * lib/regex_internal.h: Include <alloca.h>.
80302         (__libc_use_alloca) [!defined _LIBC]: New macro.
80303         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80304         now works outside glibc.
80305
80306 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80307
80308         * config/srclist.txt: Add glibc bugs 1241, 1245.
80309
80310 2005-08-25  Jim Meyering  <jim@meyering.net>
80311
80312         * lib/open-safer.c: Include <config.h>.
80313         Otherwise, we'd lose LARGEFILE support in any file using
80314         e.g. "fcntl--.h"
80315
80316 2005-08-25  Bruno Haible  <bruno@clisp.org>
80317
80318         * m4/minmax.m4: Require autoconf 2.52.
80319         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80320         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80321         alternatives of translit over the alphabet.
80322         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80323
80324 2005-08-24  Simon Josefsson  <jas@extundo.com>
80325
80326         * tests/test-getpass.c: New file.
80327
80328 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80329
80330         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80331         for GNU regex features.
80332
80333 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80334
80335         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80336         * lib/regex.h (regerror): Likewise.
80337
80338         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80339         requires this.  (The code never needed it.)
80340
80341         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80342         All uses of recently-renamed identifiers changed to use the new,
80343         POSIX-compliant names.  The code will build and run just fine
80344         without these changes, but it's better to eat our own dog food
80345         and use the standard-conforming names.
80346
80347         * lib/regex.h: Fix a multitude of POSIX name space violations.
80348         These changes have an effect only for programs that define
80349         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80350         do not change anything for programs compiled in the normal way.
80351         Also, there is no effect on the ABI.
80352
80353         (_REGEX_SOURCE): New macro.
80354         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80355         defined and _GNU_SOURCE is not; this fixes a name space violation.
80356
80357         Rename the following macros to obey POSIX requirements.
80358         The old names are still visible as macros if _REGEX_SOURCE is defined.
80359         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80360         RE_BACKSLASH_ESCAPE_IN_LISTS.
80361         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80362         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80363         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80364         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80365         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80366         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80367         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80368         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80369         (REG_INTERVALS): renamed from RE_INTERVALS.
80370         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80371         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80372         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80373         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80374         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80375         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80376         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80377         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80378         RE_UNMATCHED_RIGHT_PAREN_ORD.
80379         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80380         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80381         (REG_DEBUG): renamed from RE_DEBUG.
80382         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80383         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80384         unusual, since we can't clash with the POSIX REG_ICASE.
80385         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80386         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80387         (REG_NO_SUB): renamed from RE_NO_SUB.
80388         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80389         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80390         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80391         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80392         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80393         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80394         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80395         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80396         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80397         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80398         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80399         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80400         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80401         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80402         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80403         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80404         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80405         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80406         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80407         (REG_FIXED): Renamed from REGS_FIXED.
80408         (REG_NREGS): Renamed from RE_NREGS.
80409
80410         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80411         of other REG_* macros, since POSIX says the user is allowed to
80412         #undef these macros selectively.
80413
80414         (reg_errcode_t): Update comment stating what other tables need
80415         to be consistent.
80416
80417         Rename the following enum values to obey POSIX requirements.
80418         The old names are still visible as macros.
80419         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80420         is not defined, since GNU is supposed to be a superset of POSIX as
80421         much as possible, and since we want reg_errcode_t to be a signed
80422         type for implementation consistency.
80423         (_REG_NOERROR): Renamed from REG_NOERROR.
80424         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80425         (_REG_BADPAT): Renamed from REG_BADPAT.
80426         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80427         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80428         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80429         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80430         (_REG_EBRACK): Renamed from REG_EBRACK.
80431         (_REG_EPAREN): Renamed from REG_EPAREN.
80432         (_REG_EBRACE): Renamed from REG_EBRACE.
80433         (_REG_BADBR): Renamed from REG_BADBR.
80434         (_REG_ERANGE): Renamed from REG_ERANGE.
80435         (_REG_ESPACE): Renamed from REG_ESPACE.
80436         (_REG_BADRPT): Renamed from REG_BADRPT.
80437         (_REG_EEND): Renamed from REG_EEND.
80438         (_REG_ESIZE): Renamed from REG_ESIZE.
80439         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80440         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80441         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80442         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80443         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80444
80445         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80446         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80447         changed.  But support the old name if the new one is not defined
80448         and if _REGEX_SOURCE.
80449
80450         Change the following member names in struct re_pattern_buffer.
80451         The old names are still supported if !_REGEX_SOURCE.
80452         The new names are always supported, regardless of _REGEX_SOURCE.
80453         (re_buffer): Renamed from buffer.
80454         (re_allocated): Renamed from allocated.
80455         (re_used): Renamed from used.
80456         (re_syntax): Renamed from syntax.
80457         (re_fastmap): Renamed from fastmap.
80458         (re_translate): Renamed from translate.
80459         (re_can_be_null): Renamed from can_be_null.
80460         (re_regs_allocated): Renamed from regs_allocated.
80461         (re_fastmap_accurate): Renamed from fastmap_accurate.
80462         (re_no_sub): Renamed from no_sub.
80463         (re_not_bol): Renamed from not_bol.
80464         (re_not_eol): Renamed from not_eol.
80465         (re_newline_anchor): Renamed from newline_anchor.
80466
80467         Change the following member names in struct re_registers.
80468         The old names are still supported if !_REGEX_SOURCE.
80469         The new names are always supported, regardless of _REGEX_SOURCE.
80470         (rm_num_regs): Renamed from num_regs.
80471         (rm_start): Renamed from start.
80472         (rm_end): Renamed from end.
80473
80474         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80475         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80476         Prepend __ to parameter names.
80477
80478         Undo yesterday's changes.
80479
80480 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80483         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80484         lib/regex.c.
80485
80486 2005-08-24  Jim Meyering  <jim@meyering.net>
80487
80488         Sync from coreutils.
80489         * m4/fcntl-safer.m4: New file.
80490
80491         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80492         and object files for this module.
80493
80494 2005-08-24  Jim Meyering  <jim@meyering.net>
80495
80496         Sync from coreutils.
80497         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80498
80499 2005-08-24  Jim Meyering  <jim@meyering.net>
80500
80501         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80502         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80503
80504 2005-08-24  Jim Meyering  <jim@meyering.net>
80505
80506         * modules/fcntl-safer: New module.
80507         * modules/fts (Depends-on): Add fcntl-safer.
80508         * MODULES.html.sh (File descriptor based Input/Output):
80509         Add fcntl-safer.
80510
80511 2005-08-24  Bruno Haible  <bruno@clisp.org>
80512
80513         Support for unit test modules.
80514         * modules/README: Mention tests modules.
80515         * modules/TEMPLATE-TESTS: New file.
80516         * gnulib-tool: New options --extract-tests-module, --with-tests and
80517         --tests-base (unused for the moment).
80518         (testsbase, inctests): New variables.
80519         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80520         (func_verify_module): Exclude TEMPLATE-TESTS.
80521         (func_verify_nontests_module, func_verify_tests_module): New functions.
80522         (func_get_dependencies): Add implicit dependency for tests modules.
80523         (func_get_tests_module): New function.
80524         (func_modules_transitive_closure): When --with-tests was specified,
80525         include the unit tests as well, unless explicitly avoided.
80526         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80527         (func_emit_tests_Makefile_am): New function.
80528         (func_create_testdir): When --with-tests was specified, emit a
80529         tests/ directory.
80530         * MODULES.html.sh (Future developments): Update.
80531
80532 2005-08-24  Bruno Haible  <bruno@clisp.org>
80533
80534         * modules/tls-tests: New file.
80535         * tests/test-tls.c: New file, from GNU gettext.
80536
80537 2005-08-24  Bruno Haible  <bruno@clisp.org>
80538
80539         * modules/lock-tests: New file.
80540         * tests/test-lock.c: New file, from GNU gettext.
80541
80542 2005-08-24  Bruno Haible  <bruno@clisp.org>
80543
80544         * lib/lock.h: Add multiple inclusion guard.
80545         * lib/tls.h: Add multiple inclusion guard.
80546
80547 2005-08-24  Bruno Haible  <bruno@clisp.org>
80548
80549         * gnulib-tool: Add support for the --aux-dir option to
80550         --create-testdir, --create-megatestdir, --test, --megatest.
80551         (func_create_testdir, func_create_megatestdir): Optionally emit a
80552         AC_CONFIG_AUX_DIR directive.
80553         (create-testdir, create-megatestdir, test, megatest): Provide a
80554         default value for $auxdir.
80555
80556 2005-08-24  Bruno Haible  <bruno@clisp.org>
80557
80558         * gnulib-tool (import): Use compound statement instead of subshell
80559         where possible.
80560
80561 2005-08-24  Bruno Haible  <bruno@clisp.org>
80562
80563         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80564
80565 2005-08-24  Bruno Haible  <bruno@clisp.org>
80566
80567         * gnulib-tool (func_version): Update.
80568
80569 2005-08-24  Bruno Haible  <bruno@clisp.org>
80570
80571         * gnulib-tool (func_import, func_create_testdir,
80572         func_create_megatestdir): Quote all autoconf macro arguments.
80573
80574 2005-08-24  Bruno Haible  <bruno@clisp.org>
80575
80576         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80577         option --force, because --force causes the aclocal.m4 of each
80578         subdirectory to be newer than the corresponding config.h.in.
80579
80580 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80583         All contents moved to gl_REGEX.
80584         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80585         assume that it does.
80586
80587 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80588
80589         * lib/regex.h (REG_NOSYS)
80590         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80591         Define, since POSIX requires it as of 2001.
80592         (_REG_ENOSYS)
80593         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80594         New private symbol, used to keep the enum signed in all cases.
80595         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80596         Youngman in
80597         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80598
80599         * lib/regex_internal.c (re_string_skip_chars, register_state):
80600         (calc_state_hash):
80601         Remove forward decls; no longer needed now that we use prototypes.
80602         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80603         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80604         (clean_state_log_if_needed): Likewise.
80605
80606 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * config/srclist.txt: Add glibc bugs 1231-1233.
80609
80610 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         Fix problems reported by Sam Steingold in
80613         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80614         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80615         assumed that reg_errcode_t is a signed type, which is not
80616         necessarily true if _XOPEN_SOURCE is not defined.
80617         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80618         since some compilers warn about it otherwise.
80619
80620 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80623         (init_word_char, create_initial_state, duplicate_node_closure):
80624         (fetch_token, peek_token_bracket, build_range_exp):
80625         (build_collating_symbol): Remove forward decls; no longer needed
80626         now that we use prototypes.
80627
80628         * lib/regcomp.c:
80629         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80630         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80631         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80632         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80633         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80634         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80635         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80636         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80637         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80638         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80639         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80640         (build_charclass, build_charclass_op, fetch_number, create_tree):
80641         (create_token_tree, mark_opt_subexp, duplicate_tree):
80642         Use prototypes rather than old-style definitions.
80643
80644         * lib/regex_internal.c:
80645         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80646         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80647         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80648         (re_string_reconstruct, re_string_peek_byte_case):
80649         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80650         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80651         (re_node_set_init_copy, re_node_set_add_intersect):
80652         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80653         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80654         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80655         (re_acquire_state, re_acquire_state_context, register_state):
80656         (create_ci_newstate, create_cd_newstate, free_state):
80657         Likewise.
80658         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80659         re_search_2):
80660         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80661         (re_search_internal, prune_impossible_nodes):
80662         (acquire_init_state_context, check_matching, static):
80663         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80664         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80665         (update_regs, sift_states_backward, build_sifted_states):
80666         (clean_state_log_if_needed, merge_state_array):
80667         (update_cur_sifted_state, add_epsilon_src_nodes):
80668         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80669         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80670         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80671         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80672         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80673         (check_arrival, check_arrival_add_next_nodes):
80674         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80675         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80676         (check_node_accept_bytes, check_node_accept, extend_buffers):
80677         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80678         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80679         (sift_ctx_init):
80680         Likewise.
80681
80682         * lib/regex_internal.h:
80683         (re_string_allocate, re_string_construct, re_string_reconstruct):
80684         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80685         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80686         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80687         (re_string_context_at, re_string_peek_byte_case):
80688         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80689         is defined, since we now use prototypes always.
80690
80691         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80692         C89 or better.  All uses removed.
80693
80694 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * config/srclist.txt: Add glibc bugs 1220-1227.
80697
80698 2005-08-20  Jim Meyering  <jim@meyering.net>
80699
80700         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80701         of unused local, dfa.
80702
80703 2005-08-20  Bruno Haible  <bruno@clisp.org>
80704
80705         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80706
80707 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80710         (re_node_set_insert_last, re_dfa_add_node):
80711         Rename local variables to avoid GCC shadowing warnings.
80712
80713 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80716         [defined lint]: Suppress bogus uninitialized-variable warnings.
80717
80718         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80719         and let the caller return REG_ESPACE if out of space.  This
80720         removes an uninitialied-variable warning with GCC 4.0.1, and also
80721         avoids taking the address of a local variable.  All callers
80722         changed.
80723
80724 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80725
80726         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80727         $LIBCSRC/posix/regexec.c.
80728         Add glibc bug 1217 for regcomp.c.
80729
80730 2005-08-19  Jim Meyering  <jim@meyering.net>
80731
80732         * lib/regexec.c (proceed_next_node): Redo local variables to
80733         avoid GCC shadowing warnings.
80734
80735 2005-08-18  Bruno Haible  <bruno@clisp.org>
80736
80737         * lib/strstr.c (strstr): Fix return value in multibyte case.
80738         * lib/strcasestr.c (strcasestr): Likewise.
80739
80740 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80741
80742         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80743
80744 2005-08-17  Jim Meyering  <jim@meyering.net>
80745
80746         Make the %s format (seconds since the epoch) work for a negative
80747         number and when used with a zero-padded field width, e.g. %015s.
80748
80749         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80750         label so that it precedes the code to set `digits'.  Otherwise,
80751         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80752         print `00-22'.  Now, it prints `-0022', as it should.
80753
80754 2005-08-17  Bruno Haible  <bruno@clisp.org>
80755
80756         * modules/strstr (Files): Add m4/mbrtowc.m4.
80757         (Depends-on): Add mbuiter.
80758
80759 2005-08-17  Bruno Haible  <bruno@clisp.org>
80760
80761         * modules/strcasestr: New file.
80762         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80763         strcasestr.
80764
80765 2005-08-17  Bruno Haible  <bruno@clisp.org>
80766
80767         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80768
80769 2005-08-17  Bruno Haible  <bruno@clisp.org>
80770
80771         * modules/mbuiter: New file.
80772         * MODULES.html.sh (Extended multibyte and wide character utilities):
80773         Add mbuiter.
80774
80775 2005-08-17  Bruno Haible  <bruno@clisp.org>
80776
80777         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80778         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80779
80780 2005-08-17  Bruno Haible  <bruno@clisp.org>
80781
80782         * m4/strcasestr.m4: New file.
80783
80784 2005-08-17  Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80787         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80788
80789 2005-08-17  Bruno Haible  <bruno@clisp.org>
80790
80791         * lib/strcasestr.h: New file.
80792         * lib/strcasestr.c: New file.
80793
80794 2005-08-17  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/strcasecmp.c: Use mbuiter.h.
80797
80798 2005-08-17  Bruno Haible  <bruno@clisp.org>
80799
80800         * lib/mbuiter.h: New file.
80801
80802 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80803
80804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80805         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80806         and gl_GETOPT are both invoked via different paths (as happens
80807         with GNU tar CVS because it uses both argp and getopt), the former
80808         wins.
80809
80810 2005-08-16  Bruno Haible  <bruno@clisp.org>
80811
80812         * modules/tls: New file.
80813         * MODULES.html.sh (Multithreading): Add tls.
80814
80815 2005-08-16  Bruno Haible  <bruno@clisp.org>
80816
80817         * modules/strnlen1: New file.
80818         * MODULES.html.sh (String handling): Add strnlen1.
80819
80820 2005-08-16  Bruno Haible  <bruno@clisp.org>
80821
80822         * modules/strcase (Files): Add m4/mbrtowc.m4.
80823         (Depends-on): Add strnlen1, mbchar.
80824
80825 2005-08-16  Bruno Haible  <bruno@clisp.org>
80826
80827         * modules/mbiter: New file.
80828         * MODULES.html.sh (Extended multibyte and wide character utilities):
80829         Add mbiter.
80830
80831 2005-08-16  Bruno Haible  <bruno@clisp.org>
80832
80833         * modules/mbfile: New file.
80834         * MODULES.html.sh (Extended multibyte and wide character utilities):
80835         Add mbfile.
80836
80837 2005-08-16  Bruno Haible  <bruno@clisp.org>
80838
80839         * modules/mbchar: New file.
80840         * MODULES.html.sh (Extended multibyte and wide character utilities):
80841         New section.
80842
80843 2005-08-16  Bruno Haible  <bruno@clisp.org>
80844
80845         * m4/tls.m4: New file, from GNU gettext.
80846
80847 2005-08-16  Bruno Haible  <bruno@clisp.org>
80848
80849         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80850         always.
80851         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80852
80853 2005-08-16  Bruno Haible  <bruno@clisp.org>
80854
80855         * m4/mbiter.m4: New file.
80856
80857 2005-08-16  Bruno Haible  <bruno@clisp.org>
80858
80859         * m4/mbfile.m4: New file.
80860
80861 2005-08-16  Bruno Haible  <bruno@clisp.org>
80862
80863         * m4/mbchar.m4: New file.
80864
80865 2005-08-16  Bruno Haible  <bruno@clisp.org>
80866
80867         * lib/tls.h: New file, from GNU gettext.
80868         * lib/tls.c: New file, from GNU gettext.
80869
80870 2005-08-16  Bruno Haible  <bruno@clisp.org>
80871
80872         * lib/strnlen1.h: New file.
80873         * lib/strnlen1.c: New file.
80874
80875 2005-08-16  Bruno Haible  <bruno@clisp.org>
80876
80877         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80878         (mbi_init): Update.
80879         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80880         NUL byte, not after it.
80881
80882 2005-08-16  Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/strcase.h (strcasecmp): Add note in comments.
80885         * lib/strncasecmp.c: Use code from strcasecmp.c.
80886         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80887         (strcasecmp): Work correctly in multibyte locales.
80888
80889 2005-08-16  Bruno Haible  <bruno@clisp.org>
80890
80891         * lib/mbiter.h: New file.
80892
80893 2005-08-16  Bruno Haible  <bruno@clisp.org>
80894
80895         * lib/mbfile.h: New file.
80896
80897 2005-08-16  Bruno Haible  <bruno@clisp.org>
80898
80899         * lib/mbchar.h: New file.
80900         * lib/mbchar.c: New file.
80901
80902 2005-08-16  Bruno Haible  <bruno@clisp.org>
80903
80904         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80905         the valid ones. Makes the comparison operations transitive:
80906         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80907         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80908
80909 2005-08-15  Simon Josefsson  <jas@extundo.com>
80910
80911         * modules/ssize_t (License): Change to 'unlimited'.
80912
80913         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80914
80915 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80916
80917         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80918         Add comments for each pending glibc patch.
80919
80920 2005-08-15  Bruno Haible  <bruno@clisp.org>
80921
80922         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80923         __cplusplus is defined.
80924
80925 2005-08-14  Jim Meyering  <jim@meyering.net>
80926
80927         Sync from coreutils.
80928
80929         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80930         Use the hash-table-based cycle-detection code not just when
80931         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80932         Reported by James Youngman in
80933         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80934         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80935         FTS_TIGHT_CYCLE_CHECK.
80936         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80937         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80938         once again.
80939         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80940         * lib/fts.c (fd_safer): Remove decl.
80941         Include fcntl--.h rather than unistd-safer.h
80942         (fts_safe_changedir): Don't call fd_safer; no longer needed
80943         now that we include fcntl--.h.
80944
80945 2005-08-12  Simon Josefsson  <jas@extundo.com>
80946
80947         * modules/getndelim2: Use ssize_t module.
80948         * modules/getnline: Likewise.
80949         * modules/safe-read: Likewise.
80950         * modules/xreadlink: Likewise.
80951
80952         * modules/ssize_t: New file.
80953
80954 2005-08-12  Simon Josefsson  <jas@extundo.com>
80955
80956         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80957
80958 2005-08-12  Simon Josefsson  <jas@extundo.com>
80959
80960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80961         ssize_t.
80962
80963 2005-08-12  Simon Josefsson  <jas@extundo.com>
80964
80965         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80966         readline, getdelim and check_version.
80967         (Support for systems lacking ISO C 99: Sizes of integer types):
80968         Add size_max.
80969
80970 2005-08-12  Bruno Haible  <bruno@clisp.org>
80971
80972         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80973
80974 2005-08-11  Simon Josefsson  <jas@extundo.com>
80975
80976         * modules/readline: New file.
80977
80978         * modules/strnlen (Files): Add strnlen.h.
80979
80980 2005-08-11  Simon Josefsson  <jas@extundo.com>
80981
80982         * m4/readline.m4: New file.
80983
80984 2005-08-11  Simon Josefsson  <jas@extundo.com>
80985
80986         * lib/readline.h, readline.c: New file.
80987
80988 2005-08-11  Simon Josefsson  <jas@extundo.com>
80989
80990         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80991         gl_AVOID.
80992
80993 2005-08-11  Bruno Haible  <bruno@clisp.org>
80994
80995         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80996
80997 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80998
80999         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81000
81001 2005-08-10  Simon Josefsson  <jas@extundo.com>
81002
81003         * tests/test-iconvme.c: New file.
81004
81005 2005-08-10  Simon Josefsson  <jas@extundo.com>
81006
81007         * m4/strnlen.m4: New file.
81008
81009         * m4/strndup.m4: Don't check for strnlen declaration, done in
81010         strnlen.m4.
81011
81012 2005-08-10  Simon Josefsson  <jas@extundo.com>
81013
81014         * lib/strndup.c: Use strnlen.h.
81015
81016         * lib/strnlen.h: New file.
81017
81018 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81019
81020         * README: Typos.
81021
81022 2005-08-02  Simon Josefsson  <jas@extundo.com>
81023
81024         * modules/readline: New file.
81025
81026 2005-08-02  Simon Josefsson  <jas@extundo.com>
81027
81028         * modules/getdelim: New file.
81029
81030         * modules/getline: Rewrite, don't use getndelim2.
81031
81032 2005-08-02  Simon Josefsson  <jas@extundo.com>
81033
81034         * m4/getline.m4: Separate out getdelim stuff into separate module.
81035
81036         * m4/getdelim.m4: New file.
81037
81038 2005-08-02  Simon Josefsson  <jas@extundo.com>
81039
81040         * lib/getline.h, getline.c: Rewrite.
81041
81042         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81043
81044 2005-07-31  Bruno Haible  <bruno@clisp.org>
81045
81046         * lib/lock.h (gl_lock_initializer): New macro.
81047         (gl_lock_define_initialized): Use it.
81048         (gl_rwlock_initializer): New macro.
81049         (gl_rwlock_define_initialized): Use it.
81050         (gl_recursive_lock_initializer): New macro.
81051         (gl_recursive_lock_define_initialized): Use it.
81052
81053 2005-07-30  Karl Berry  <karl@gnu.org>
81054
81055         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81056         Report from Ben Pfaff, regarding getopt.
81057
81058 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81059
81060         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81061         normal way.
81062         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81063         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81064         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81065         (gl_GETOPT): Use the new macros.  Most of the implementation
81066         is moved to the new macros.  This is for programs like Emacs
81067         that don't want all the functionality of gl_GETOPT.
81068
81069 2005-07-26  Bruno Haible  <bruno@clisp.org>
81070
81071         * m4/lock.m4: Update from GNU gettext.
81072
81073 2005-07-26  Bruno Haible  <bruno@clisp.org>
81074
81075         * lib/lock.h: Update from GNU gettext.
81076         * lib/lock.c: Update from GNU gettext.
81077
81078 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81081         obsolescent AC_TRY_RUN.  Include the default includes files, for
81082         'exit'.
81083
81084 2005-07-24  Bruno Haible  <bruno@clisp.org>
81085
81086         * modules/visibility: New file.
81087         * MODULES.html.sh (Misc): Add visibility.
81088
81089 2005-07-24  Bruno Haible  <bruno@clisp.org>
81090
81091         * m4/visibility.m4: New file.
81092
81093 2005-07-24  Bruno Haible  <bruno@clisp.org>
81094
81095         * doc/visibility.texi: New file.
81096
81097 2005-07-22  Bruno Haible  <bruno@clisp.org>
81098
81099         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81100         $(ALLOCA_H), redundant through BUILT_SOURCES.
81101         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81102         redundant through BUILT_SOURCES.
81103         * modules/byteswap (Makefile.am): Remove explicit dependency on
81104         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81105         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81106         $(FNMATCH_H), redundant through BUILT_SOURCES.
81107         * modules/getopt (Makefile.am): Remove explicit dependency on
81108         $(GETOPT_H), redundant through BUILT_SOURCES.
81109         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81110         redundant through BUILT_SOURCES.
81111         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81112         redundant through BUILT_SOURCES.
81113         * modules/stdbool (Makefile.am): Remove explicit dependency on
81114         $(STDBOOL_H), redundant through BUILT_SOURCES.
81115         * modules/stdint (Makefile.am): Remove explicit dependency on
81116         $(STDINT_H), redundant through BUILT_SOURCES.
81117         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81118         Remove explicit dependency on $(SYSEXITS_H).
81119         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81120
81121 2005-07-18  Simon Josefsson  <jas@extundo.com>
81122
81123         * lib/check-version.c (check_version): Accept identical versions too.
81124
81125 2005-07-18  Bruno Haible  <bruno@clisp.org>
81126
81127         * modules/lock: New file.
81128         * MODULES.html.sh (Multithreading): New section.
81129
81130 2005-07-18  Bruno Haible  <bruno@clisp.org>
81131
81132         * m4/lock.m4: New file, from GNU gettext.
81133
81134 2005-07-18  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/lock.h: New file, from GNU gettext.
81137         * lib/lock.c: New file, from GNU gettext.
81138
81139 2005-07-18  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/lock.h (gl_once_t): New type.
81142         (gl_once_define, gl_once): New macros.
81143         * lib/lock.c (fresh_once): New variable.
81144         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81145         functions.
81146
81147 2005-07-16  Simon Josefsson  <jas@extundo.com>
81148
81149         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81150         workaround, suggested by Bruno.
81151
81152 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * modules/xalloc (Depends-on): Add xalloc-die.
81155         * modules/xvasprintf (Depends-on): Add xalloc-die.
81156
81157 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81158
81159         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81160         with a minor change.
81161
81162 2005-07-15  Bruno Haible  <bruno@clisp.org>
81163
81164         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81165         When using lib/poll.c, define poll as rpl_poll.
81166
81167 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         * modules/argp (Depends-on): Remove unlocked-io.
81170
81171 2005-07-14  Derek Price  <derek@ximbiot.com>
81172
81173         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81174         for glob symlink bug.
81175
81176 2005-07-14  Bruno Haible  <bruno@clisp.org>
81177
81178         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81179         Instead, test for *_unlocked function declarations directly.
81180
81181 2005-07-11  Simon Josefsson  <jas@extundo.com>
81182
81183         * modules/size_max: New file.
81184
81185         * modules/xsize: Depend on size_max module for size_max.m4.
81186
81187 2005-07-11  Simon Josefsson  <jas@extundo.com>
81188
81189         * lib/size_max.h: New file.
81190
81191 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81194         copyright symbol and the year.
81195         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81196         (version_etc_va): Use parameterized copyright notice.
81197         Reword to conform to the current GNU coding standards.
81198
81199 2005-07-11  Karl Berry  <karl@gnu.org>
81200
81201         * doc/gnulib.texi (Quoting): new node.
81202         (Initial import): more info, from Patrice.
81203
81204 2005-07-11  Bruno Haible  <bruno@clisp.org>
81205
81206         * gnulib-tool (func_usage): Document option --avoid.
81207         (Command line options): Handle --avoid.
81208         (func_acceptable): New function.
81209         (func_modules_transitive_closure): Use it.
81210
81211 2005-07-11  Bruno Haible  <bruno@clisp.org>
81212
81213         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81214         Reported by Jim Meyering.
81215
81216 2005-07-10  Bruno Haible  <bruno@clisp.org>
81217
81218         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81219         Needed when size_t is smaller than 'unsigned int'.
81220         Reported by Paul Eggert.
81221
81222 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81223
81224         * modules/argp (Depends-on): Add unlocked-io
81225
81226 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81227
81228         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81229         block of defines.
81230
81231 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81234         fix now.
81235
81236 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81237         and Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81240         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81241
81242 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * modules/regex (Files): Add lib/regex_internal.c,
81245         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81246         (Depends-on): Add extensions.
81247         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81248
81249 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81252         pathconf.
81253         * m4/same.m4 (gl_SAME): Likewise.
81254         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81255
81256         * m4/regex.m4: Adjust to new libc regex implementation.
81257         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81258         all the .c and .h parts of (the new) regex.
81259         Quote the m4 stuff better.
81260         Check for RE_ICASE bug of old gnulib.
81261         Check for REG_STARTEND of recent libc.
81262         Rename local variables from jm_* to gl_*.
81263         Quote operand of "test -f".
81264         Say "recent enough" version of libc, not "version 2".
81265         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81266         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81267         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81268         Remove check for btowc, isascii.
81269         Require AM_LANGINFO_CODESET.
81270
81271 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81272
81273         * lib/regex.c, regex.h: Sync from libc.
81274         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81275         * lib/regexec.c:
81276         New files, synced from libc, except that regex_internal.h
81277         currently has a small porting fix.
81278
81279 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81282         regex_internal.c, regexec.c.
81283         Add regex_internal.h too, but as a comment, since the libc version
81284         is currently broken in gnulib mode.
81285
81286 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81287
81288         Support programs like Emacs that use gnulib but not gettext.
81289         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81290         * modules/gettext-h: New file.
81291         * modules/gettext (Files): Remove lib/gettext.h.
81292         (Depends-on): Add gettext-h.
81293         (Makefile.am): Remove lib_SOURCES.
81294         * modules/argmatch, modules/c-stack, modules/closeout:
81295         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81296         * modules/execute, modules/file-type, modules/getaddrinfo:
81297         * modules/getopt, modules/human, modules/javacomp:
81298         * modules/javaexec, modules/mkdir-p, modules/obstack:
81299         * modules/openat, modules/pagealign_alloc, modules/pipe:
81300         * modules/quotearg, modules/regex, modules/rpmatch:
81301         * modules/unicodeio, modules/userspec, modules/version-etc:
81302         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81303         * modules/xsetenv:
81304         Depend on gettext-h, not gettext.
81305
81306 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81307
81308         * gnulib-tool (func_import): Add support for 'public domain' license.
81309         * modules/alloca, modules/atexit, modules/memmove:
81310         Now public domain, not GPL.
81311         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81312         * modules/realloc, modules/strerror, modules/strtod:
81313         Now LGPL, not GPL.
81314
81315 2005-07-05  Bruno Haible  <bruno@clisp.org>
81316
81317         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81318         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
81324
81325 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         Remove the dependency of the strftime module on the tzset module.
81328         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81329         gl_FUNC_TZSET_CLOBBER.
81330
81331 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81332
81333         Remove the dependency of the strftime module on the tzset module.
81334         * lib/strftime.c (my_strftime)
81335         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81336         Copy the input structure, to work around some of the bug with
81337         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81338         Solaris releases, you should also use the tzset module, but we won't
81339         require it as a dependency any more since we don't want LGPLed code
81340         to depend on GPLed code.
81341
81342 2005-07-02  Jim Meyering  <jim@meyering.net>
81343
81344         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81345         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81346         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81347         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81348
81349 2005-07-02  Jim Meyering  <jim@meyering.net>
81350
81351         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81352
81353 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81356         declares only 'struct timespec;' (!).
81357
81358 2005-07-01  Jim Meyering  <jim@meyering.net>
81359
81360         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81361         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81362         * lib/save-cwd.c, tempname.c:
81363         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81364         and don't include <sys/file.h>).
81365
81366 2005-06-29  Jim Meyering  <jim@meyering.net>
81367
81368         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81369         type name.  Use the variable name instead.
81370         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81371         Likewise.
81372
81373 2005-06-28  Simon Josefsson  <jas@extundo.com>
81374
81375         * modules/check-version (Files): Add check-version.m4.
81376
81377 2005-06-28  Simon Josefsson  <jas@extundo.com>
81378
81379         * m4/check-version.m4: New file, suggested by Jim Meyering
81380         <jim@meyering.net>.
81381
81382 2005-06-28  Simon Josefsson  <jas@extundo.com>
81383
81384         * lib/check-version.h, lib/check-version.c: New files.
81385
81386 2005-06-28  Simon Josefsson  <jas@extundo.com>
81387
81388         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81389         collision with global variable.  Better indentation.  Don't
81390         increment buffer pointer beyond buffer end.  Based on comments
81391         from Paul Eggert <eggert@cs.ucla.edu>.
81392
81393         * lib/base64.h: Indent.
81394
81395 2005-06-28  Simon Josefsson  <jas@extundo.com>
81396
81397         * doc/gnulib.texi (Library version handling): New section.
81398
81399 2005-06-28  Jim Meyering  <jim@meyering.net>
81400
81401         * check-module (find_included_lib_files): Hard-code another
81402         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81403         but modules/fts-lgpl (correctly) does not list those files.
81404
81405         * modules/canonicalize (Files): Add lib/pathmax.h.
81406
81407 2005-06-25  Simon Josefsson  <jas@extundo.com>
81408
81409         * modules/check-version: New file.
81410
81411 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81412
81413         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81414         initializer of struct addrinfo, as an indication that we don't
81415         care how many members the structure has.
81416
81417 2005-06-24  Derek Price  <derek@ximbiot.com>
81418         and Bruno Haible  <bruno@clisp.org>
81419
81420         Remove stat module & update lstat.
81421         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81422         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81423         * m4/stat.m4: Remove this file.
81424
81425 2005-06-24  Derek Price  <derek@ximbiot.com>
81426         and Bruno Haible  <bruno@clisp.org>
81427
81428         Remove stat module & update lstat.
81429         * lib/stat.c: Remove this file...
81430         (slash_aware_lstat): ...moving this content and its support...
81431         * lib/lstat.c (rpl_lstat): ...into here.
81432         * lib/lstat.h: New file.
81433
81434 2005-06-24  Derek Price  <derek@ximbiot.com>
81435         and Bruno Haible  <bruno@clisp.org>
81436
81437         Remove stat module & update lstat.
81438         * config/srclist.txt (libc sources): Remove stat.
81439
81440 2005-06-24  Derek Price  <derek@ximbiot.com>
81441         and Bruno Haible  <bruno@clisp.org>
81442
81443         Remove stat module & update lstat.
81444         * MODULES.html.sh (stat): Remove.
81445         * MODULES.html: Regenerated.
81446         * modules/lstat (Description): Correct function name.
81447         (Files): Add "lstat.h".
81448         (Depends-on): Remove stat, add xalloc, stat-macros.
81449         * modules/stat: Remove this file.
81450         (Include): Add "lstat.h", remove <sys/stat.h>.
81451
81452 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81455         (ranged_convert): Don't save conversion in a temporary struct.
81456         This causes a warning with GCC 4.0.0, and anyway in the typical
81457         case it's not worth the extra 100 bytes or so of code.
81458         (ranged_convert, __mktime_internal): When calling a function via a
81459         pointer P, use P () rather than (*P) (), as we now assume C89 or
81460         better.
81461
81462 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81465         "who -r" failed to give output.  Problem reported by Tim Waugh.
81466
81467         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81468         (xcalloc): Use it to avoid needless tests.
81469         Problem reported by Jim Meyering.
81470
81471 2005-06-20  Derek Price  <derek@ximbiot.com>
81472
81473         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81474         unnecessary for Autoconfs > 2.59c.
81475
81476 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81477
81478         * lib/argp.h (__option_is_short): Check upper limit of
81479         __key. Isprint() requires its argument to have the value
81480         of an unsigned char or EOF.
81481
81482 2005-06-16  Jim Meyering  <jim@meyering.net>
81483
81484         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81485         when either N or S is zero.
81486
81487 2005-06-16  Derek Price  <derek@ximbiot.com>
81488
81489         * m4/bison.m4: Declare YACC & YFLAGS precious.
81490
81491 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81494         multibyte string or pattern, fall back on unibyte matching.
81495         Problem reported by James Youngman.
81496
81497 2005-06-08  Bruno Haible  <bruno@clisp.org>
81498
81499         * modules/csharpcomp: New file.
81500         * MODULES.html.sh (C#): Add csharpcomp.
81501
81502 2005-06-08  Bruno Haible  <bruno@clisp.org>
81503
81504         * m4/csharpcomp.m4: New file, from GNU gettext.
81505
81506 2005-06-08  Bruno Haible  <bruno@clisp.org>
81507
81508         * lib/csharpcomp.h: New file, from GNU gettext.
81509         * lib/csharpcomp.c: New file, from GNU gettext.
81510         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81511
81512 2005-06-08  Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81515         warning on mingw.
81516
81517 2005-06-07  Derek Price  <derek@ximbiot.com>
81518
81519         Sync from CVS.
81520         * lib/glob_.h: Indent nested #ifdef.
81521
81522 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         Sync from coreutils.
81525         Use "file name" when talking about file names, instead of "filename"
81526         or "path", as per the GNU coding standards.
81527         * lib/mkdir-p.c: Renamed from makepath.c.
81528         (make_dir_parents): Renamed from make_path.  All callers changed.
81529         * lib/mkdir-p.h: Likewise.  All includers changed.
81530         * lib/filenamecat.c: Renamed from path-concat.c.
81531         (file_name_concat): Renamed from path_concat.  All callers changed.
81532         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81533         * lib/filenamecat.h: Likewise.  All includers changed.
81534         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81535         in comments or local variable names.
81536         * lib/basename.c: Likewise.
81537         * lib/canonicalize.c, canonicalize.h: Likewise.
81538         * lib/dirname.c, dirname.h: Likewise.
81539         * lib/euidaccess.c: Likewise.
81540         * lib/exclude.c: Likewise
81541         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81542         * lib/fsusage.c, fsuage.h: Likewise.
81543         * lib/fts.c, fts_.h: Likewise.
81544         * lib/getcwd.c: Likewise.
81545         * lib/getloadavg.c: Likewise.
81546         * lib/mkstemp.c: Likewise.
81547         * lib/mountlist.c, mountlist.h: Likewise.
81548         * lib/openat.c, openat.h: Likewise.
81549         * lib/readlink-stub.c: Likewise.
81550         * lib/readutmp.c, readutmp.h: Likewise.
81551         * lib/rename.c: Likewise.
81552         * lib/rmdir.c: Likewise.
81553         * lib/same.c: Likewise.
81554         * lib/savedir.c: Likewise.
81555         * lib/stripslash.c: Likewise.
81556         * lib/tempname.c: Likewise.
81557         * lib/xreadlink.c: Likewise.
81558         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81559         All uses changed.
81560         * lib/exclude.h: Likewise.
81561
81562         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81563         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81564         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81565         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81566         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81567         files have been getting away with it for years (MORE/BSD 4.3
81568         is extinct now).
81569         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81570         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81571
81572         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81573         Define to 256, not 255, as per modern POSIX.
81574
81575 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         Sync from coreutils.
81578         Use "file name" when talking about file names, instead of "filename"
81579         or "path", as per the GNU coding standards.
81580         * MODULES.html.sh: mkdir-p renamed from makepath.
81581         filenamecat renamed from path-concat.
81582         * modules/filenamecat: Renamed from modules/path-concat.
81583         (Files): filenamecat.h and filenamecat.c renamed from
81584         path-concat.h and path-concat.c.
81585         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81586         (Include): filenamecat.h, not path-concat.h.
81587         * modules/mkdir-p: Renamed from modules/makepath.
81588         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81589         makepath.c.
81590         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81591         (Include): mkdir-p.h, not makepath.h.
81592
81593 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81594
81595         Sync from coreutils.
81596         * m4/mkdir-p.m4: Renamed from makepath.m4.
81597         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81598         Rename files from makepath.c to mkdir-p.c, and from
81599         makepath.h to mkdir-p.h.
81600         * m4/filenamecat.m4: Renamed from path-concat.m4.
81601         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81602         Rename files from path-concat.c to filenamecat.c,
81603         and from path-concat.h to filenamecat.h.
81604         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81605         "file name" in local variables or comments.
81606         * m4/rename.m4: Likewise.
81607
81608 2005-06-01  Bruno Haible  <bruno@clisp.org>
81609
81610         * modules/csharpexec: New file.
81611         * MODULES.html.sh (C#): New section.
81612
81613 2005-06-01  Bruno Haible  <bruno@clisp.org>
81614
81615         * m4/csharp.m4: New file, from GNU gettext.
81616         * m4/csharpexec.m4: New file, from GNU gettext.
81617
81618 2005-06-01  Bruno Haible  <bruno@clisp.org>
81619
81620         * lib/csharpexec.h: New file, from GNU gettext.
81621         * lib/csharpexec.c: New file, from GNU gettext.
81622         * lib/csharpexec.sh.in: New file, from GNU gettext.
81623
81624 2005-05-31  Derek Price  <derek@ximbiot.com>
81625             Paul Eggert  <eggert@cs.ucla.edu>
81626
81627         Sync from cvs.
81628         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81629
81630 2005-05-31  Derek Price  <derek@ximbiot.com>
81631             Paul Eggert  <eggert@cs.ucla.edu>
81632
81633         Sync from cvs.
81634         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81635
81636 2005-05-29  Derek Price  <derek@ximbiot.com>
81637
81638         * config/srclist.txt (glob_.h, glob.c): Add these files.
81639
81640 2005-05-29  Derek Price  <derek@ximbiot.com>
81641
81642         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81643         * modules/glob: New file.
81644         * modules/getlogin_r: Add link to POSIX spec in description.
81645
81646 2005-05-29  Derek Price  <derek@ximbiot.com>
81647             Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * m4/glob.m4: New file.
81650
81651 2005-05-29  Derek Price  <derek@ximbiot.com>
81652             Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * lib/glob_.h, lib/glob.c: New files.
81655
81656 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81659         * modules/fts-lgpl (Depends-on): Remove gettext.
81660
81661 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81664         and don't require gt_INTTYPES_PRI.
81665
81666 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81669
81670         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81671         the configuration hassle isn't worth it.
81672         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81673         (LONGEST_MODIFIER, PRIuMAX): Remove.
81674
81675 2005-05-27  Bruno Haible  <bruno@clisp.org>
81676
81677         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81678
81679 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81680
81681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81682         _POSIX_PTHREAD_SEMANTICS for Solaris.
81683
81684 2005-05-25  Derek Price  <derek@ximbiot.com>
81685
81686         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81687
81688 2005-05-25  Derek Price  <derek@ximbiot.com>
81689             Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81692         * lib/getlogin_r.c, getlogin_r.h: New files.
81693
81694 2005-05-25  Bruno Haible  <bruno@clisp.org>
81695             Derek Price  <derek@ximbiot.com>
81696
81697         * lib/getlogin_r.h: Simplify API documentation.
81698
81699 2005-05-23  Derek Price  <derek@ximbiot.com>
81700
81701         * modules/minmax (Files): Add m4/minmax.m4.
81702         (configure.ac): Add gl_MINMAX.
81703
81704 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81707         so that unistd-safer.h (GPL'ed code) need not be included.
81708
81709 2005-05-22  Bruno Haible  <bruno@clisp.org>
81710
81711         * m4/minmax.m4: New file.
81712         Based on a patch by Derek Price <derek@ximbiot.com>.
81713
81714 2005-05-22  Bruno Haible  <bruno@clisp.org>
81715
81716         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81717         (INT64_MIN): Fix definition.
81718         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81719
81720         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81721         NEED_SIGNED_INT_TYPES.
81722
81723         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81724         HAVE_SYSTEM_INTTYPES.
81725
81726 2005-05-22  Bruno Haible  <bruno@clisp.org>
81727
81728         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81729         Also include <sys/param.h> if it defines MIN, MAX.
81730         Based on a patch by Derek Price <derek@ximbiot.com>.
81731
81732 2005-05-21  Jim Meyering  <jim@meyering.net>
81733
81734         * modules/fts (Files): Add m4/inttypes-pri.m4.
81735         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81736
81737 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81738
81739         New fts module.
81740         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81741         (setup_dir, free_dir): New functions.
81742         (enter_dir, leave_dir): Define trivial
81743         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81744         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81745         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81746         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81747         Move to fts-cycle.c.
81748         (fts_open): Use setup_dir.
81749         (fts_close): Use free_dir.
81750         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81751         This adds a label and some gotos, but the alternatives were messier.
81752         Check for memory allocation failure when entering a dir.
81753         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81754         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81755         (FTS): New member fts_cycle, that is a union that contains the
81756         old active_dir_ht and cycle_state.  All uses changed to mention
81757         fts_cycle.ht and fts_cycle.state.
81758         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81759         fts.c, with the following changes:
81760         (setup_dir, free_dir): New functions.
81761         (enter_dir): Now returns bool.  Return true if successful, false
81762         if memory exhausted.  All callers changed.
81763         Do not bother partly cleaning up on
81764         memory allocation failure; that is free_dir's job.
81765         However, free ad if hash_insert fails, to avoid memory leak.
81766         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81767         fts->fts_options to see which union member to use.
81768
81769 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81770
81771         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81772         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81773
81774 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81775
81776         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81777
81778 2005-05-20  Jim Meyering  <jim@meyering.net>
81779
81780         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81781         Now a macro, to pacify GCC.
81782
81783 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81784
81785         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81786         of -1.
81787
81788 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81789
81790         * lib/chown.c (rpl_chown): Return -1 on failure.
81791
81792 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81795         Don't check for stddef.h.
81796         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81797         don't use its results.
81798         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81799         since we include them unconditionally.  Don't require
81800         AM_STDBOOL_H, since stdbool is a prerequisite.
81801         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81802         since we assume C89 or better.
81803         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81804         as we don't use their results.
81805         Don't check for fchdir, memmove, memset, strrchr, as we use
81806         them unconditionally.
81807         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81808         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81809
81810 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81813         Include <stddef.h> unconditionally, since we assume C89 now.
81814         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81815         * lib/fts.c: Include fts_.h first, to check interface.
81816         Do not include intprops.h; no longer needed.
81817         Include cycle-check.h and hash.h, since fts_.h no longer does.
81818         Remove unnecessary casts of closedir to void.
81819         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81820         decide whether to decrement nlinks.
81821         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81822         (FTS): Use struct hash_table * instead of Hash_table, so that
81823         we no longer need to include hash.h here.
81824
81825 2005-05-18  Jim Meyering  <jim@meyering.net>
81826
81827         * modules/dirfd (License): Change to LGPL.  Most of the code
81828         is already in the public domain.
81829
81830 2005-05-18  Jim Meyering  <jim@meyering.net>
81831
81832         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81833         Reported by Yoann Vandoorselaere.
81834
81835 2005-05-17  Jim Meyering  <jim@meyering.net>
81836
81837         * m4/fts.m4: New file, from coreutils.
81838
81839 2005-05-17  Jim Meyering  <jim@meyering.net>
81840
81841         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81842
81843 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81844
81845         Sync from coreutils.
81846         * m4/unlinkdir.m4: New file.
81847
81848 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81849
81850         Sync from coreutils.
81851         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81852         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81853         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81854         White space changes only.
81855         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81856         special.
81857         * lib/yesno.c: Include getline.h, not ctype.h.
81858         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81859         Use getline to remove arbitrary restriction on response length.
81860
81861 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * config/srclist-update: Spell out "Street" in FSF postal
81864         mail address; this is the style the FSF seems to prefer.
81865
81866         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81867         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81868         this updates FSF postal mail address.
81869
81870         Sync from coreutils.
81871         * modules/unlinkdir: New file.
81872         * modules/yesno (Depends-on): Add getline.
81873         * MODULES.html.sh (File system functions): Add unlinkdir.
81874
81875 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81876
81877         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81878         lib/strsep.h:
81879         Change the initial comment to refer to GPL, not LGPL.
81880         gnulib-tool will change it to LGPL as needed.
81881
81882         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81883         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81884         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81885         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81886         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81887         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81888         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81889         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81890         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81891         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81892         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81893         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81894         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81895         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81896         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81897         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81898         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81899         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81900         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81901         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81902         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81903         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81904         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81905         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81906         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81907         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81908         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81909         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81910         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81911         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81912         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81913         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81914         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81915         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81916         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81917         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81918         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81919         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81920         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81921         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81922         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81923         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81924         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81925         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81926         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81927         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81928         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81929         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81930         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81931         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81932         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81933         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81934         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81935         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81936         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81937         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81938         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81939         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81940         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81941         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81942         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81943         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81944         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81945         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81946         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81947         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81948         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81949         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81950         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81951         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81952         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81953         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81954         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81955         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81956         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81957         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81958         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81959         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81960         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81961         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81962         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81963         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81964         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81965         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81966         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81967         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81968         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81969         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81970         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81971         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81972         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81973         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81974         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81975         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81976         lib/yesno.c, lib/yesno.h:
81977         Update FSF postal mail address.
81978
81979 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81982         tests/test-memmem.c, tests/test-stpncpy.c:
81983         Update FSF postal mail address.
81984
81985 2005-05-13  Bruno Haible  <bruno@clisp.org>
81986
81987         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81988         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81989         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81990         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81991         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81992         Add support for 64-bit integers in the MSVC compiler.
81993
81994 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81995
81996         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81997
81998 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81999
82000         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82001
82002 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * doc/getdate.texi (General date syntax): Don't say that date
82005         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82006         Problem reported by Nic Ferrier.
82007
82008 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82009
82010         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82011         specified in ai_socktype. Fix invalid ai_protocol
82012         check. ai_protocol is usually set to 0 or depending on
82013         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82014         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82015         ai_socktype / ai_protocol in the returned addrinfo structure.
82016
82017 2005-05-10  Simon Josefsson  <jas@extundo.com>
82018
82019         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82020         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82021
82022 2005-05-10  Karl Berry  <karl@gnu.org>
82023
82024         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82025         (from http://www.gnu.org/licenses).
82026         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82027         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82028         fdl.texi suffices.
82029
82030 2005-05-10  Karl Berry  <karl@gnu.org>
82031
82032         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82033         (COPYING.DOC): remove.
82034
82035         * config/srclist-update: new FSF address.
82036
82037 2005-05-10  Derek Price  <derek@ximbiot.com>
82038
82039         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82040         possible.
82041
82042 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82043             Bruno Haible  <bruno@clisp.org>
82044
82045         * modules/inet_ntop: New file.
82046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82047         inet_ntop.
82048
82049 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82050             Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/inet_ntop.m4: New file.
82053
82054 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82055             Bruno Haible  <bruno@clisp.org>
82056
82057         * lib/inet_ntop.h: New file.
82058         * lib/inet_ntop.c: New file, from glibc with modifications.
82059
82060 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82061
82062         * modules/time_r (License): Change to LGPL.
82063         * modules/extensions (License): Change to LGPL.  Actually,
82064         the license is more permissive than that, but currently gnulib-tool
82065         doesn't know how to handle more-permissive licenses.
82066
82067         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82068         Problem reported by Dave Love.
82069
82070 2005-05-08  Jim Meyering  <jim@meyering.net>
82071
82072         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82073         blank.
82074
82075 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * modules/argmatch (Depends-on): Add stdbool.
82078         * modules/backupfile (Depends-on): Likewise.
82079         * modules/chdir-long (Depends-on): Likewise.
82080         * modules/closeout (Depends-on): Likewise.
82081         * modules/cycle-check (Depends-on): Likewise.
82082         * modules/dirname (Depends-on): Likewise.
82083         * modules/fnmatch (Depends-on): Likewise.
82084         * modules/fsusage (Depends-on): Likewise.
82085         * modules/fwriteerror (Depends-on): Likewise.
82086         * modules/getcwd (Depends-on): Likewise.
82087         * modules/getloadavg (Depends-on): Likewise.
82088         * modules/hard-locale (Depends-on): Likewise.
82089         * modules/makepath (Depends-on): Likewise.
82090         * modules/mountlist (Depends-on): Likewise.
82091         * modules/nanosleep (Depends-on): Likewise.
82092         * modules/posixtm (Depends-on): Likewise.
82093         * modules/quotearg (Depends-on): Likewise.
82094         * modules/readtokens (Depends-on): Likewise.
82095         * modules/readtokens0 (Depends-on): Likewise.
82096         * modules/readutmp (Depends-on): Likewise.
82097         * modules/save-cwd (Depends-on): Likewise.
82098         * modules/strftime (Depends-on): Likewise.
82099         * modules/userspec (Depends-on): Likewise.
82100         * modules/utimecmp (Depends-on): Likewise.
82101         * modules/xgetcwd (Depends-on): Likewise.
82102         * modules/xnanosleep (Depends-on): Likewise.
82103         * modules/xstrtod (Depends-on): Likewise.
82104         * modules/yesno (Depends-on): Likewise.
82105
82106 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82107
82108         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82109         needless checks.
82110
82111 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         Merge from coreutils.  Among other things,
82114         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82115         * lib/fd-safer.c: New file.
82116         * lib/fcntl-safer.h, open-safer.c: Remove.
82117         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82118         * lib/dup-safer.c: Include unistd-safer.h first.
82119         Don't include errno.h.
82120         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82121         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82122         * lib/file-type.c: Rely on file-type.h change.
82123         * lib/getloadavg.c: Include unistd-safer.h.
82124         (getloadavg): Use safer open.
82125         * lib/getusershell.c: Include "stdio-safer.h".
82126         (getusershell): Use safer fopen.
82127         * lib/long-options.c (long_options): Use NULL rather than 0.
82128         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82129         'free'.
82130         * lib/modechange.c: Likewise.
82131         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82132         (MODE_DONE): New constant.
82133         (struct mode_change): Remove 'next' member.
82134         (make_node_op_equals): New function; like the old one of the
82135         same name, except it allocates an array.
82136         (mode_compile, mode_create_from_ref): Use it.
82137         (mode_compile): Allocate result as an array, not a linked list.
82138         Parse octal string ourself, so that we catch mistakes like "+0".
82139         (mode_adjust): Arg is an array, not a linked list.
82140         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82141         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82142         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82143         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82144         Remove.  This is now stat-macros.h's job.
82145         (talloc): Remove.  All callers replaced by xalloc, so that
82146         our invokers don't have to worry about reporting memory failures.
82147         (make_node_op_equals): Remove.
82148         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82149         New constants.
82150         (struct mode_change): Moved here from modechange.h.
82151         (mode_append_entry): Remove.
82152         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82153         apps to have incorrect behavior.  Use simpler algorithm for head
82154         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82155         Detect more invalid usages rather than having somewhat-random behavior.
82156         Don't insert an "a=" action, as that leads to incorrect behavior.
82157         (mode_compile, mode_create_from_ref): Return NULL on error instead
82158         of an enum, since now there's only one way to have an error.  All
82159         callers changed.
82160         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82161         at the correct time.  Simplify calculation of "+u" and its ilk.
82162         Don't mishandle "+X".
82163         (mode_free): Remove "register" and localize decls.
82164         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82165         (struct mode_change): Move to modechange.c; callers don't
82166         need to see this stuff.
82167         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82168         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82169         (mode_change, mode_adjust): Reflect the new signatures noted above.
82170         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82171         that might redefine system include files.
82172         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82173         (my_usleep): Use NULL rather than (void *) 0.
82174         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82175         Use siginterrupt to specify that system calls should be interrupted.
82176         (rpl_nanosleep): Move initialization of suspended closer to call of
82177         my_usleep.
82178         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82179         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82180         (desirable_utmp_entry): New function.
82181         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82182         using x2nrealloc, to simplify logic.
82183         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82184         size calculation.  Do not assume utmp file is a regular file.
82185         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82186         (READ_UTMP_CHECK_PIDS): New constant.
82187         * lib/save-cwd.c: Include unistd-safer.h.
82188         (save_cwd): Use fd_safer.
82189         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82190         [!_LIBC] Include "stat-macros.h" instead.
82191         * lib/unistd-safer.h (fd_safer): New decl.
82192
82193 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * modules/getloadavg (Depends-on): Add unistd-safer.
82196         * modules/getusershell (Depends-on): Add stdio-safer.
82197         * modules/lstat (Depends-on): Remove xalloc.
82198         * modules/mkstemp (Depends-on): Add stat-macros.
82199         * modules/modechange (Depends-on): Remove xstrtol.
82200         Add stat-macros, xalloc.
82201         * modules/save-cwd (Depends-on): Add unistd-safer.
82202         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82203         * modules/unistd-safer (Files): Add lib/fd-safer.c
82204         (Makefile.am): Remove lib_SOURCES.
82205
82206         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82207         Remove fcntl-safer; unistd-safer supersedes it.
82208
82209 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82210
82211         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82212         AC_HEADER_STAT.
82213         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82214         (gl_PREREQ_CHOWN): Remove.
82215         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82216         it.  Don't require AC_HEADER_STAT.
82217         (gl_PREREQ_LSTAT): Remove.
82218         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82219         Don't require AC_HEADER_STAT.
82220         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82221         (gl_PREREQ_RMDIR): Remove.
82222         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82223         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82224         the stat-macros module a prerequisite.
82225         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82226         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82227         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82228         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82229         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82230         variable names.
82231         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82232         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82233         variable prefixes.
82234         * m4/fcntl-safer.m4: Remove.
82235         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82236         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82237         Invoke gl_PREREQ_FD_SAFER.
82238         (gl_PREREQ_FD_SAFER): New macro.
82239         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82240         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82241         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82242         Remove duplicate call to AC_LIBOBJ(readutmp).
82243         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82244
82245         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82246         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82247
82248 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * MODULES.html.sh (Misc): Add byteswap.
82251
82252 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82253
82254         * modules/getcwd (Depends-on): Add extensions.
82255         * modules/openat (Depends-on): Likewise.
82256
82257 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82258
82259         * modules/byteswap: New file.
82260
82261 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82262
82263         * m4/byteswap.m4: New file.
82264
82265 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82266
82267         * lib/byteswap_.h: New file.
82268
82269 2005-04-25  Karl Berry  <karl@gnu.org>
82270
82271         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82272
82273 2005-04-25  Albert Chin  <china@thewrittenword.com>
82274
82275         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82276         Toolkit C bug.
82277
82278 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82279
82280         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82281         (func_ln_if_changed): Remove forcibly for no error message
82282         in case file does not exist.
82283
82284 2005-04-19  Simon Josefsson  <jas@extundo.com>
82285
82286         * gnulib-tool (Options): Make --symlink mean --symbolic.
82287
82288 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82289
82290         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82291
82292 2005-04-16  Simon Josefsson  <jas@extundo.com>
82293
82294         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82295
82296 2005-04-15  Simon Josefsson  <jas@extundo.com>
82297
82298         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82299
82300 2005-04-15  Simon Josefsson  <jas@extundo.com>
82301
82302         * gnulib-tool: Rename --symlink to --symbolic.
82303
82304 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82305
82306         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82307         symbolic links to files instead of copying/moving.  Add --aux-dir,
82308         specifying directory relative --dir where auxiliary build tools
82309         are placed.
82310
82311 2005-04-14  Bruno Haible  <bruno@clisp.org>
82312
82313         * modules/allocsa (License): Change to LGPL.
82314         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82315
82316 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82319         that "UTC +1 second" continues to work.  Problem reported
82320         by Dmitry V. Levin.
82321         (relunit_snumber): New rule.
82322         (relunit): Use it.
82323
82324 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * lib/getdate.y (universal_time_zone_table): New constant.
82327         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82328         universal_time_zone_table.
82329         (lookup_zone): Prefer universal_time_zone_table to
82330         local_time_zone_table, so that "GMT" time stamps are allowed in
82331         London during the summer.  Problem reported by Ian Abbott.
82332
82333 2005-04-12  Jim Meyering  <jim@meyering.net>
82334
82335         * lib/human.c (humblock): Set *options even when returning due to
82336         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82337         warning from gcc-4.
82338
82339 2005-04-09  Jim Meyering  <jim@meyering.net>
82340
82341         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82342         -Wuninitialized: initialize tm0.tm_year.
82343
82344 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82347         count, since there's no maximum.  All uses changed.
82348         Add member dsts_seen.
82349         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82350         not being INT_MAX.
82351         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82352         Use pc_rels_seen to decide whther a date is absolute.
82353
82354         * lib/getdate.y (number): Don't overwrite year.
82355         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82356         check.
82357
82358 2005-04-02  Simon Josefsson  <jas@extundo.com>
82359
82360         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82361         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82362
82363 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82364
82365         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82366         where no absolute path name can be longer than PATH_MAX.
82367
82368 2005-03-27  Jim Meyering  <jim@meyering.net>
82369
82370         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82371
82372 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82375         "one's complement" -> "ones' complement" in comment, as per Knuth.
82376         "value of type" -> "type or expression" in comment.
82377         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82378
82379 2005-03-26  Jim Meyering  <jim@meyering.net>
82380
82381         Comment nits.
82382         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82383         Correct typos: s/or/of/.
82384
82385 2005-03-26  Jim Meyering  <jim@meyering.net>
82386
82387         * modules/check-include-files: Move to ../ and rename to...
82388         * check-module: ...this.
82389
82390 2005-03-25  Jim Meyering  <jim@meyering.net>
82391
82392         * modules/xvasprintf (Files): Add xalloc.h.
82393
82394 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82395
82396         * modules/gettext (Files): config/config.rpath ->
82397         build-aux/config.rpath
82398         * modules/iconv (Files): Likewise.
82399         Problem reported by Oskar Liljeblad.
82400
82401 2005-03-23  Jim Meyering  <jim@meyering.net>
82402
82403         * modules/check-include-files: New script to check for
82404         missing dependencies, multiple includes, etc.
82405
82406         * modules/c-strtold (Depends-on): Add xalloc.
82407         * modules/c-strtod (Depends-on): Add xalloc.
82408         * modules/hash (Depends-on): Add xalloc.
82409         (Files): Remove lib/xalloc.h.
82410
82411         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82412         * modules/userspec (Files): Add lib/inttostr.h.
82413
82414 2005-03-23  Jim Meyering  <jim@meyering.net>
82415
82416         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82417
82418 2005-03-22  Jim Meyering  <jim@meyering.net>
82419
82420         * modules/stat-macros: New module.
82421         * modules/canonicalize, modules/euidaccess, modules/file-type,
82422         * modules/filemode, modules/lchown, modules/makepath,
82423         * modules/rmdir, modules/stat: Depend on new stat-macros module
82424         rather than listing lib/stat-macros.h manually.
82425         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82426
82427 2005-03-22  Jim Meyering  <jim@meyering.net>
82428
82429         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82430
82431 2005-03-22  Bruno Haible  <bruno@clisp.org>
82432
82433         * config/srclist.txt: Replace target directory 'config' with
82434         'build-aux'.
82435         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82436         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82437         ../build-aux/.
82438
82439 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82440
82441         * modules/chdir-long (Depends-on): Add mempcpy.
82442
82443         * modules/acl, modules/backupfile, modules/c-strtod,
82444         modules/c-strtold, modules/canon-host, modules/canonicalize,
82445         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82446         modules/exclude, modules/exitfail, modules/file-type,
82447         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82448         modules/getdate, modules/getline, modules/getpagesize,
82449         modules/getpass, modules/getugroups, modules/group-member,
82450         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82451         modules/inttostr, modules/long-options, modules/makepath,
82452         modules/md5, modules/memcasecmp, modules/memcoll,
82453         modules/modechange, modules/mountlist, modules/path-concat,
82454         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82455         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82456         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82457         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82458         modules/strftime, modules/strndup, modules/strverscmp,
82459         modules/timespec, modules/unlocked-io, modules/userspec,
82460         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82461         modules/yesno:
82462         Remove lib_SOURCES line from Makefile.am section, as this is now
82463         done automatically by the corresponding Autoconf macro.
82464
82465 2005-03-21  Jim Meyering  <jim@meyering.net>
82466
82467         Changes imported from coreutils.
82468
82469         * lib/cycle-check.c: Don't include xalloc.h.
82470
82471         * lib/path-concat.c: Don't include assert.h.
82472         (path_concat): Remove assertion that would have triggered
82473         for ABASE starting with more than one slash.
82474         Reported by Andreas Schwab.
82475
82476         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82477         properly when ABASE is an absolute file name.
82478         Correct the description of this function.
82479         Include <assert.h>.
82480         Add an assertion and a test driver.
82481         This fixes a bug introduced on 2004-07-02.
82482         Andreas Schwab reported the resulting failure of cp --parents:
82483         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82484
82485 2005-03-21  Jim Meyering  <jim@meyering.net>
82486
82487         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82488         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82489
82490 2005-03-21  Jim Meyering  <jim@meyering.net>
82491         and  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82494         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82495         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82496         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82497         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82498         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82499         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82500         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82501         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82502         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82503         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82504         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82505         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82506         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82507         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82508         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82509         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82510         for these modules.
82511
82512 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82515         (which shouldn't happen), generate nothing instead of returning 0
82516         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82517
82518 2005-03-16  Bruno Haible  <bruno@clisp.org>
82519
82520         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82521         HAVE_LONGLONG_64BIT.
82522
82523 2005-03-16  Bruno Haible  <bruno@clisp.org>
82524
82525         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82526         HAVE_LONGLONG_64BIT.
82527
82528 2005-03-16  Bruno Haible  <bruno@clisp.org>
82529
82530         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82531         HAVE_LONGLONG_64BIT.
82532
82533 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82534
82535         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82536         reliably distinguish strftime failure from empty output on POSIX
82537         hosts.
82538
82539 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82542         (iconv_string): Don't guess a size-zero buffer, as that might cause
82543         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82544         result would be 'too large', where 'too large' is (heuristically)
82545         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82546         overflow concerns.  This will prevent some unwanted malloc failures
82547         when the inputs are very large.
82548
82549 2005-03-15  Karl Berry  <karl@gnu.org>
82550
82551         * config/srclist.txt (config.rpath): from gettext.
82552         * config/config.rpath: update.
82553
82554 2005-03-15  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82557         to 'negate'.
82558
82559         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82560         variable.
82561
82562         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82563         results.
82564
82565 2005-03-14  Simon Josefsson  <jas@extundo.com>
82566
82567         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82568         <fx@gnu.org>.
82569
82570 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82571
82572         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82573         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82574         intprops.h.
82575         * lib/strtol.c: Likewise.
82576
82577 2005-03-14  Jim Meyering  <jim@meyering.net>
82578
82579         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82580         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82581         to be nonzero so that we (and caller) can detect the difference
82582         between a valid zero-length expansion and an error return, even
82583         when the underlying strftime fails before writing anything into
82584         that location.
82585
82586 2005-03-14  Bruno Haible  <bruno@clisp.org>
82587
82588         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82589         Update from GNU gettext 0.14.3.
82590
82591 2005-03-10  Jim Meyering  <jim@meyering.net>
82592
82593         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82594
82595 2005-03-10  Jim Meyering  <jim@meyering.net>
82596
82597         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82598         so that this module works on systems without fchdir.
82599
82600 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82601
82602         Factor int-properties macros into a single file, except for
82603         glibc-related files.
82604         * lib/intprops.h: New file.
82605         * lib/getloadavg.c: Include it instead of limits.h.
82606         (INT_STRLEN_BOUND): Remove.
82607         * lib/human.c: Include intprops.h.
82608         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82609         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82610         302/1000.
82611         * lib/inttostr.h: Include intprops.h instead of limits.h.
82612         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82613         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82614         for consistency with intprops.h.
82615         (time_t_is_integer, twos_complement_arithmetic): Use them.
82616         * lib/sig2str.h: Include <signal.h>, intprops.h.
82617         (INT_STRLEN_BOUND): Remove.
82618         * lib/strftime.c (TYPE_SIGNED): Remove.
82619         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82620         * lib/strtol.c: Adjust comments to match intprops.h.
82621         * lib/userspec.c: Include intprops.h.
82622         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82623         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82624         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82625         instead of rolling our own expressions.
82626         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82627
82628         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82629         instead of int.
82630         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82631         the right thing even if adding 1900 would overflow.  Similarly
82632         for tm_mon + 1 and tm_yday + 1.
82633         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82634         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82635         (DO_SIGNED_NUMBER): New macro.
82636         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82637
82638 2005-03-07  Bruno Haible  <bruno@clisp.org>
82639
82640         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82641
82642 2005-03-07  Bruno Haible  <bruno@clisp.org>
82643
82644         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82645
82646 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82647
82648         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82649         (func_import): Only replace files via --import when they have actually
82650         changed.
82651
82652 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82653
82654         * m4/mmap-anon.m4: New file.
82655         * m4/pagealign_alloc.m4: New file.
82656
82657 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82658             Bruno Haible  <bruno@clisp.org>
82659
82660         * modules/pagealign_alloc: New file.
82661         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82662
82663 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82664             Bruno Haible  <bruno@clisp.org>
82665
82666         * lib/pagealign_alloc.h: New file.
82667         * lib/pagealign_alloc.c: New file.
82668
82669 2005-03-03  Bruno Haible  <bruno@clisp.org>
82670
82671         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82672         Use an all-permissive copyright notice, recommended by RMS.
82673
82674 2005-03-02  Bruno Haible  <bruno@clisp.org>
82675
82676         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82677         of AIX, the replacement has to be done only after <string.h> is
82678         included, therefore not in config.h. stpncpy.h does the replacement,
82679         and stpncpy.c uses it.
82680
82681 2005-03-02  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82684         stpncpy.c uses it.
82685
82686 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82687
82688         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82689         The workaround isn't strictly needed for POSIX conformance, and
82690         it's too much of a pain to configure and maintain.  We'll ask
82691         people to fix their kernels instead.
82692         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82693         (NANOSLEEP_BUG_WORKAROUND): Remove.
82694         (xnanosleep): Remove the workaround.
82695
82696 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82699         Reported by Derek Price.
82700         (Include): Add "timespec.h".
82701
82702         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82703
82704 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82705
82706         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82707         to detect nanosleep bug.
82708
82709 2005-03-01  Bruno Haible  <bruno@clisp.org>
82710
82711         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82712
82713 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82714
82715         * modules/gethrxtime: New file.
82716         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82717         (Depends-on): Add gethrxtime.
82718         (configure.ac): Add gl_XNANOSLEEP.
82719         (Makefile.am): Remove lib_SOURCES line.
82720
82721 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82722
82723         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82724         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82725
82726 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82729         * lib/timespec.h (gettime): Return void, since it always
82730         succeeds now.  All uses changed.
82731         * lib/gettime.c (gettime): Likewise.
82732         [HAVE_NANOTIME]: Prefer nanotime.
82733         Assume gettimeofday succeeds, as POSIX requires.
82734         Assime time () succeeds, since other code already does.
82735         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82736         (timespec_subtract): Remove.
82737         (NANOSLEEP_BUG_WORKAROUND): New constant.
82738         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82739         things considerably.  Use it only on GNU/Linux hosts, since the
82740         workaround shouldn't be needed elsewhere.
82741
82742 2005-02-24  Bruno Haible  <bruno@clisp.org>
82743
82744         * modules/gettext (Files): Add m4/glibc2.m4.
82745
82746 2005-02-24  Bruno Haible  <bruno@clisp.org>
82747
82748         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82749         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82750         * m4/progtest.m4:
82751         Update from GNU gettext 0.14.2.
82752         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82753
82754 2005-02-24  Bruno Haible  <bruno@clisp.org>
82755
82756         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82757         * lib/config.charset: Update from GNU gettext 0.14.2.
82758
82759 2005-02-24  Bruno Haible  <bruno@clisp.org>
82760
82761         * lib/gettext.h: Update from GNU gettext 0.14.2.
82762
82763 2005-02-23  Simon Josefsson  <jas@extundo.com>
82764
82765         * m4/iconvme.m4: New file.
82766
82767 2005-02-23  Jim Meyering  <jim@meyering.net>
82768
82769         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82770         change.
82771         Thanks to Bruno Haible for catching it.
82772
82773 2005-02-22  Simon Josefsson  <jas@extundo.com>
82774
82775         * modules/iconvme: New file.
82776
82777         * MODULES.html.sh: Add iconvme.
82778
82779 2005-02-22  Simon Josefsson  <jas@extundo.com>
82780
82781         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82782
82783 2005-02-22  Simon Josefsson  <jas@extundo.com>
82784
82785         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82786
82787 2005-02-22  Jim Meyering  <jim@meyering.net>
82788
82789         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82790         s/ifndef/ifdef/.
82791
82792 2005-02-20  Neil Conway  <neilc@samurai.com>
82793
82794         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82795         returned by OSX/Darwin if the specified buffer is not large
82796         enough for the hostname.
82797
82798 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82799
82800         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82801         pass it to _help, otherwise the latter coredumps trying to
82802         dereference state.root_argp.
82803
82804 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82805
82806         * modules/chdir-long (Depends-on): Add memrchr.
82807         * modules/memrchr (Files): Add lib/memrchr.h.
82808         (Include): "memrchr.h".
82809
82810 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82813
82814 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82815
82816         * lib/memrchr.h: New file.
82817         * lib/chdir-long.c: Include it.
82818         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82819         Don't bother including stddef.h.
82820
82821 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82824         inclusion.
82825         Include <sys/types.h>, for dev_t.
82826         (ME_DUMMY, ME_REMOTE): Move from here....
82827         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82828         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82829         Dmitry V. Levin.
82830         Include mountlist.h first, to test the interface.
82831
82832 2005-01-29  Bruno Haible  <bruno@clisp.org>
82833
82834         * lib/progname.c (program_name): Initialize.
82835         Needed when linking statically on MacOS X.
82836
82837 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         Sync from coreutils.
82840         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82841         (Depends-on): Add c-strtod.
82842         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82843
82844 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         Sync from coreutils.
82847         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82848
82849         Remove files that are specific to coreutils.
82850         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82851
82852 2005-01-28  Bruno Haible  <bruno@clisp.org>
82853
82854         * modules/javacomp: New file.
82855         * MODULES.html.sh (Java): Add javacomp.
82856
82857 2005-01-28  Bruno Haible  <bruno@clisp.org>
82858
82859         * m4/javacomp.m4: New file, from GNU gettext.
82860
82861 2005-01-28  Bruno Haible  <bruno@clisp.org>
82862
82863         * lib/javacomp.sh.in: New file, from GNU gettext.
82864         * lib/javacomp.h: New file, from GNU gettext.
82865         * lib/javacomp.c: New file, from GNU gettext.
82866
82867 2005-01-26  Simon Josefsson  <jas@extundo.com>
82868
82869         * lib/gai_strerror.c: Use GPL in header.
82870
82871 2005-01-26  Bruno Haible  <bruno@clisp.org>
82872
82873         * modules/javaexec: New file.
82874         * MODULES.html.sh (Java): Add javaexec.
82875
82876 2005-01-26  Bruno Haible  <bruno@clisp.org>
82877
82878         * m4/javaexec.m4: New file, from GNU gettext.
82879
82880 2005-01-26  Bruno Haible  <bruno@clisp.org>
82881
82882         * lib/javaexec.sh.in: New file, from GNU gettext.
82883         * lib/javaexec.h: New file, from GNU gettext.
82884         * lib/javaexec.c: New file, from GNU gettext.
82885
82886 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82887
82888         * modules/lchown (Depends-on): Remove lchown.h
82889
82890 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82891
82892         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82893         must be defined if the header file was not found, in order
82894         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82895
82896 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82897
82898         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82899         initializers for struct pentry_state.
82900         (__argp_error): Check return value of __asprintf
82901         (__argp_failure): Translate error message
82902
82903         * lib/argp-parse.c: Removed braces around the expansion of N_()
82904
82905 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82908         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82909         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82910         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82911         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82912         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82913         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82914         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82915         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82916         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82917         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82918         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82919         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82920         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82921         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82922         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82923         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82924         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82925         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82926         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82927         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82928         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82929         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82930         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82931         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82932         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82933         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82934         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82935         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82936         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82937         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82938         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82939         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82940         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82941         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82942         Use an all-permissive copyright notice, recommended by RMS.
82943
82944 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         * modules/chdir-long (Depends-on): Remove mempcpy.
82947
82948 2005-01-21  Jim Meyering  <jim@meyering.net>
82949
82950         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82951         same value as for Solaris 9.
82952
82953         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82954         component length.  This included changing the parameter to be
82955         of type `char *' rather than `char const *'.
82956         * lib/chdir-long.h (chdir_long): Update prototype.
82957
82958         * lib/openat.c (fdopendir, fstatat): New functions.
82959         * lib/openat.h: Include headers required for use of DIR and struct
82960         stat.
82961         [AT_SYMLINK_NOFOLLOW]: Define.
82962         (fdopendir, fstatat): Add prototypes.
82963
82964 2005-01-21  Bruno Haible  <bruno@clisp.org>
82965
82966         * modules/classpath: New file.
82967         * MODULES.html.sh (Java): Add classpath.
82968
82969 2005-01-21  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/classpath.h: New file, from GNU gettext.
82972         * lib/classpath.c: New file, from GNU gettext.
82973
82974 2005-01-20  Simon Josefsson  <jas@extundo.com>
82975
82976         * modules/version-etc-fsf: New file.
82977
82978 2005-01-20  Simon Josefsson  <jas@extundo.com>
82979
82980         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82981         * lib/version-etc.c: Remove version_etc_copyright.
82982         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82983         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82984
82985 2005-01-20  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/base64.h (isbase64): Add.
82988
82989         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82990         using a unsigned prototype, don't inline.
82991         (base64_decode): Use it.
82992
82993 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82996         it.
82997
82998 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         * lib/save-cwd.c (save_cwd): Remove code to support the case
83001         where fchdir is missing or flaky.
83002
83003 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83004
83005         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83006
83007 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83008
83009         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83010         AC_LIBSOURCES now does this.
83011         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83012         with new ullong_max module.
83013
83014 2005-01-19  Bruno Haible  <bruno@clisp.org>
83015
83016         * modules/sh-quote: New file.
83017         * MODULES.html.sh (Executing programs): Add sh-quote.
83018
83019 2005-01-19  Bruno Haible  <bruno@clisp.org>
83020
83021         * lib/sh-quote.h: New file, from GNU gettext.
83022         * lib/sh-quote.c: New file, from GNU gettext.
83023
83024 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83025
83026         Merge from coreutils.
83027         * m4/ullong_max.m4: New file.
83028         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83029         (gl_MACROS): Assume localeconv exists.
83030
83031 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83032
83033         Merge changes from coreutils, as described below in several
83034         changelogs dated today.
83035
83036         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83037         (O_DIRECTORY): Remove; not needed here, since "." must be
83038         a directory.  All uses removed.
83039         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83040         universal on Suns, and we also need to test for IRIX.
83041         Revamp code to use 'if' rather than '#if'.
83042         Avoid unnecessary comparison of cwd->desc to 0.
83043
83044         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83045         for known valid error numbers rather than observed invalid ones.
83046
83047 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * modules/ullong_max: New file.
83050
83051         * modules/chdir-long, modules/openat: New files.
83052         * modules/save-cwd (Depends-on): Depend on chdir-long.
83053         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83054
83055 2005-01-18  Jim Meyering  <jim@meyering.net>
83056
83057         Merge from coreutils.
83058         * m4/chdir-long.m4, m4/openat.m4: New files.
83059         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83060         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83061         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83062         is sane and DOES follow symlinks.  Besides, testing 20 different
83063         systems found no broken chown implementations.
83064         Prompted by a change in rsync's copy of this macro.
83065         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83066
83067         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83068
83069         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83070         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83071         NULL-means-set-to-current-time semantics.
83072         Remove temporary file immediately, rather than waiting
83073         for configure's at-exit trap code to do it.
83074
83075 2005-01-18  Jim Meyering  <jim@meyering.net>
83076
83077         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83078
83079         * lib/utimens.c (futimens): Account for the fact that futimes
83080         can also fail with errno == ENOSYS or errno == ENOENT.
83081         Patch from Dmitry V. Levin.
83082
83083         Change the name of the robust chdir function from chdir to chdir_long.
83084         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83085         (restore_cwd): Use chdir_long, not chdir.
83086         * lib/chdir-long.c: Renamed from chdir.c.
83087         * lib/chdir-long.h: Renamed from chdir.h.
83088         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83089         Hurd.
83090
83091 2005-01-18  Bruno Haible  <bruno@clisp.org>
83092
83093         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83094         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83095         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83096         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83097         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83098         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83099         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83100         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83101         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83102         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83103         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83104         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83105         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83106         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83107         Use an all-permissive copyright notice, recommended by RMS.
83108
83109 2005-01-18  Bob Proulx  <bob@proulx.com>
83110
83111         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83112         simplify offsetof() macro construct to avoid compile failure with
83113         native HP-UX 11.0 ANSI C compiler.
83114
83115 2005-01-17  Bruno Haible  <bruno@clisp.org>
83116
83117         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83118         redundant because stpncpy.m4 takes care of it.
83119
83120 2005-01-17  Bruno Haible  <bruno@clisp.org>
83121
83122         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83123
83124 2005-01-17  Bruno Haible  <bruno@clisp.org>
83125
83126         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83127         used.
83128
83129 2005-01-17  Bruno Haible  <bruno@clisp.org>
83130
83131         * lib/fwriteerror.h (fwriteerror): Change specification to include
83132         fclose.
83133         * lib/fwriteerror.c: Include <stdbool.h>.
83134         (fwriteerror): At the end, close the file stream. Record whether
83135         stdout was already closed.
83136
83137 2005-01-17  Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/execute.c (environ): Declare if needed.
83140         * lib/pipe.c (environ): Likewise.
83141         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83142
83143 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83144
83145         * modules/argp: Depend on vsnprintf
83146
83147 2005-01-10  Jim Meyering  <jim@meyering.net>
83148
83149         * modules/closeout (Depends-on): Add atexit.
83150
83151 2005-01-06  Bruno Haible  <bruno@clisp.org>
83152
83153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83154
83155 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83156
83157         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83158         definitions to be after all include files, to avoid collisions.
83159         Problem reported by Bob Proulx.
83160
83161 2005-01-04  Jim Meyering  <jim@meyering.net>
83162
83163         Changes imported from coreutils.
83164         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83165         as the mkstemp template, use a temporary directory and an
83166         8.3-friendly template to avoid trouble on systems like DJGPP.
83167         Reported by Juan M. Guerrero via Stepan Kasal.
83168         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83169         close. Remove the temporary directory right away, rather than waiting
83170         for configure's at-exit trap code to do it.
83171         Suggestion from Stepan Kasal.
83172
83173 2005-01-01  Simon Josefsson  <jas@extundo.com>
83174
83175         * gnulib-tool: Print #include directives when --import'ing.
83176
83177 2004-12-28  Simon Josefsson  <jas@extundo.com>
83178
83179         * tests/test-base64.c: Include required header files.  Remove
83180         unused variables.
83181
83182 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * modules/error (Depends-on): Remove gettext.
83185
83186 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83189         not needed.  This removes a dependency on the gettext module.
83190         [defined _LIBC]: Do not include <libintl.h>; not needed.
83191
83192 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83193
83194         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83195         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83196
83197 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83198
83199         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83200         HAVE_DECL_STRTOLD.
83201
83202 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * modules/getdate (Depends-on): Remove alloca-opt.
83205
83206 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83207
83208         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83209
83210 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83211
83212         * lib/argp-parse.c: Include <stddef.h>.
83213         (alignof, alignto): New macros.
83214         (parser_init): Don't assume that void * is aligned sufficiently
83215         for struct option.
83216
83217         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83218         need to extend the stack.
83219         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83220         large.
83221
83222 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83223
83224         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83225
83226 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83229         (2004-10-24) change.  Apparently this was a false alarm.
83230
83231         * modules/getdate: Depend on alloca-opt, not alloca.
83232
83233 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83236         Remove now-obsolete comment about AIX.
83237         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83238         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83239         (YYMAXDEPTH): New macro.
83240
83241 2004-12-18  Simon Josefsson  <jas@extundo.com>
83242
83243         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83244
83245 2004-12-18  Bruno Haible  <bruno@clisp.org>
83246
83247         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83248
83249 2004-12-18  Bruno Haible  <bruno@clisp.org>
83250
83251         * lib/fatal-signal.c (fatal_signals): Make non-const.
83252         (init_fatal_signals): New function.
83253         (uninstall_handlers, install_handlers): Ignore signals that were set to
83254         SIG_IGN.
83255         (at_fatal_signal): Call init_fatal_signals.
83256         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83257         SIG_IGN.
83258         Reported by Paul Eggert.
83259
83260 2004-12-18  Bruno Haible  <bruno@clisp.org>
83261
83262         * doc/alloca.texi: New file.
83263         * doc/alloca-opt.texi: New file.
83264
83265 2004-12-17  Jim Meyering  <jim@meyering.net>
83266
83267         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83268         Otherwise, install-sh could exit with improper exit status when
83269         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83270
83271 2004-12-16  Simon Josefsson  <jas@extundo.com>
83272
83273         * tests/test-base64.c: Add license.
83274
83275 2004-12-15  Stepan Kasal  <address@hidden>
83276
83277         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83278
83279 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83280
83281         * modules/getcwd (Files): Add m4/d-ino.m4.
83282         Suggested by Mark D. Baushke.
83283
83284 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * lib/getdate.y (textint): New member "negative".
83287         (time_zone_hhmm): New function.
83288         Expect 14 shift-reduce conflicts, not 13.
83289         (o_colon_minutes): New rule.
83290         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83291         (yylex): Set the "negative" member of signed numbers.
83292
83293 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * doc/getdate.texi (Time of day items, Time zone items):
83296         Describe new formats +00:00, UTC+00:00.
83297
83298 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83301         spurious "-l"s.  Problem reported by Stepan Kasal.
83302
83303 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83306         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83307
83308 2004-12-04  Simon Josefsson  <jas@extundo.com>
83309
83310         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83311         Vandoorselaere <yoann@prelude-ids.org>.
83312
83313 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83314
83315         Changes imported from coreutils.
83316         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83317         exist.
83318         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83319
83320 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83321
83322         Changes imported from coreutils.
83323         * lib/hard-locale.c: Assume <locale.h> exists.
83324         Include "strdup.h".
83325         (GLIBC_VERSION): New macro.
83326         (hard_locale): Assume setlocale exists.
83327         Rewrite to avoid #ifdef.
83328         Use strdup rather than malloc + strcpy.
83329         * lib/human.c: Assume <locale.h> exists.
83330         (human_readable): Assume localeconv exists.
83331
83332 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83333
83334         * modules/hard-locale (Depends-on): Add strdup.
83335
83336 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83337
83338         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83339         convert T2, not T.  (Imported from libc.)
83340
83341 2004-11-30  Simon Josefsson  <jas@extundo.com>
83342
83343         * modules/restrict (License): Change to LGPL.
83344
83345 2004-11-30  Simon Josefsson  <jas@extundo.com>
83346
83347         * m4/restrict.m4: Add copyright and copying conditions.
83348
83349 2004-11-30  Simon Josefsson  <jas@extundo.com>
83350
83351         * m4/base64.m4: New file.
83352
83353 2004-11-30  Simon Josefsson  <jas@extundo.com>
83354
83355         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83356         base64.
83357
83358         * tests/test-base64.c: New file.
83359
83360         * modules/base64: New file.
83361
83362 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83365         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83366
83367         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83368
83369 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83370
83371         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83372         (__getcwd.c): Don't restore errno; glibc doesn't.
83373         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83374         first, falling back to our code only if its results look suspicious.
83375         Ensure that the resulting buffer is only as large as necessary.
83376
83377         * lib/readutmp.c: Include readutmp.h first.
83378         Include <errno.h>, since readutmp.h no longer does that.
83379         * lib/readutmp.h: Don't include <errno.h>,
83380         <sys/param.h>, <time.h>; not needed to establish interface.
83381         (errno): Remove decl.
83382         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83383         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83384         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83385
83386 2004-11-28  Simon Josefsson  <jas@extundo.com>
83387
83388         * lib/base64.h, base64.c: New file.
83389
83390 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83393
83394 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83397         (Depends-on): Remove pathmax, same.  Add mempcpy.
83398         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83399         (Makefile.am): Append getcwd.h to lib_SOURCES.
83400         (Include): Add getcwd.h.
83401         (Maintainer): Change from Jim Meyering to "all, glibc",
83402         since getdate now uses intended-for-glibc code.
83403         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83404         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83405
83406 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83409         HP's ANSI C compiler.
83410         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83411         Declaring int functions causes warnings on some modern systems and
83412         shouldn't be needed to compile on ancient ones.
83413         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83414         defined.
83415
83416         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83417         with the following changes.
83418         (__set_errno): Parenthesize properly.
83419         Include <stdbool.h>.
83420         (MIN, MAX, MATCHING_INO): New macros.
83421         (__getcwd): Define with prototype, not K&R form.
83422         Use heuristics to allocate default buffer on stack if possible.
83423         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83424         behavior, and to avoid the PATH_MAX limit when computing
83425         ../../../../...
83426         Use MATCHING_INO to compare inode number to file.
83427         Check for arithmetic overflow in size calculations.
83428         Fix bug in reallocation of dot array that caused getcwd to fail
83429         on directories nested deeper than 75.
83430         Be more careful about saving errno on error.
83431         Do not use realloc; use only free+malloc, as this is a bit
83432         more flexible and avoids a needless copy operation.
83433         Do not inspect st_dev and st_ino for symbolic links; POSIX
83434         doesn't specify the latter.
83435         Check for closedir errors.
83436         Avoid needless casts.
83437         Use "#ifdef weak_alias" around weak_alias, to be like other
83438         glibc code.
83439         The following changes to getcwd.c have effect only when used in
83440         gnulib; they have no effect inside glibc proper.
83441         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83442         as alloca isn't used.
83443         (alloca, __alloca): Likewise.
83444         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83445         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83446         unconditionally, as gnulib assumes C89 or better.
83447         Do not include <sys/param.h>.
83448         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83449         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83450         better.
83451         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83452         Include <dirent.h> in a way that is compatible with modern Autoconf.
83453         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83454         New macros, if not already defined.
83455         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83456         Use "_LIBC", not "defined _LIBC", for consistency.
83457         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83458         a mempcpy module.
83459         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83460         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83461         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83462         credit only to Jim Meyering and adjust the copyright dates.
83463         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83464         <stdlib.h>, <unistd.h>, "pathmax.h".
83465         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83466         (INITIAL_BUFFER_SIZE): Remove.
83467         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83468
83469 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83472         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83473         Use the _ONCE methods, for efficiency.
83474         Check for fcntl.h.  In test program, include <errno.h>
83475         and <fcntl.h> if available.  Remove old K&R cruft from
83476         test program.  Check for common errors in GNU/Linux,
83477         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83478         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83479         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83480         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83481         name accordingly.
83482         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83483         accommodate new getcwd.c.
83484         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83485         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83486         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83487         that's all we need now.
83488
83489 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83490
83491         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83492         argp-parse.c depends on getopt internals, that means we should
83493         always use our getopt, to be on the safe side.
83494         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83495         order not to spoil the result of an eventual previous invocation
83496         of gl_GETOPT_SUBSTITUTE.
83497
83498 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83499
83500         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83501         redefinition warnings. To avoid them, include the defines
83502         in `#if !defined __need_getopt ... #endif'. The only place
83503         where __getopt_argv_const is used is in definitions
83504         of getopt_long and getopt_long_only below, which are as well
83505         protected by `#ifndef __need_getopt'.
83506         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83507         __need_getopt after including <stdio.h> and <unistd.h> These
83508         headers might have defined it.
83509
83510 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83511
83512         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83513
83514 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83515
83516         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83517         (futimens): New function, which uses futimes if available.
83518         (futimens, utimens): Support timespec==NULL, with same semantics
83519         as utime and utimens.
83520         * lib/utimens.h (futimens): New decl.
83521
83522 2004-11-23  Jim Meyering  <jim@meyering.net>
83523
83524         * lib/getopt_.h: Remove trailing blanks.
83525
83526 2004-11-23  Jim Meyering  <jim@meyering.net>
83527
83528         * lib/__fpending.c: Add comment.
83529
83530 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * modules/canonicalize (Depends-on): Add xreadlink.
83533         Problem reported by James Youngman.
83534
83535 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83536
83537         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83538         New macros.
83539         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83540         optopt): Use them instead of invoking ## directly; otherwise, the
83541         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83542
83543 2004-11-19  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/strtok_r.c: Move comments from here...
83546         * lib/strtok_r.h: ... to here.
83547
83548 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83549
83550         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83551         implementations that mishandle size_t overflow.
83552
83553 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83556         might fail.  Problem reported by Yoann Vandoorselaere.
83557         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83558         implementations that mishandle size_t overflow.
83559
83560 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * modules/canon-host (Depends-on): Add strdup.
83563
83564 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83565
83566         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83567
83568 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83569
83570         * lib/canon-host.c: Include "strdup.h".
83571         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83572         Use strdup instead of malloc/strcpy to duplicate strings.
83573
83574         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83575         (human_space_before_unit): New constant.
83576         * lib/human.c (human_readable): Support it.
83577
83578         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83579         (xgetcwd): Set errno correctly when failing.
83580         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83581         the failure is actually due to a PATH_MAX problem.
83582
83583         Further getopt changes to make it more likely that glibc will
83584         buy the changes back.
83585         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83586         (getopt): Use it, so to preserve glibc semantic
83587         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83588         when compiling for libc.
83589         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83590         (getopt_long, getopt_long_only): Use it.
83591
83592         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83593         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83594         (getopt): Argv is now char * const *, as per standard.
83595         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83596         not char *__getopt_argv_const *.
83597         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83598         _getopt_long_only_r): Likewise.
83599         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83600         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83601         _getopt_long_r, _getopt_long_only_r): Likewise.
83602         * lib/getopt_.h (__getopt_argv_const): Remove.
83603         (getopt): Argv is now char * const *, as per standard.
83604
83605         * lib/getdate.y (tORDINAL): New token.
83606         (day, relunit): Allow it for relative times.
83607         (relative_time_table): Use tORDINAL for ordinals.
83608
83609 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83612         Document that "second" isn't allowed as an ordinal number.
83613
83614 2004-11-16  Jim Meyering  <jim@meyering.net>
83615
83616         * modules/closeout (Depends-on): Add fpending.
83617
83618 2004-11-15  Jim Meyering  <jim@meyering.net>
83619
83620         * lib/closeout.c: Include "__fpending.h" once again.
83621         Include <stdbool.h>.
83622         (close_stdout): Don't fail just because stdout was closed initially,
83623         since some programs don't write to stdout in the normal course of
83624         operation (other than --version and --help), and we don't want this
83625         function to make e.g. `touch file >&-' fail.
83626         But do fail if it was closed and someone has tried to write to it.
83627         E.g., `printf foo >&-' must fail.
83628
83629 2004-11-13  Jim Meyering  <jim@meyering.net>
83630
83631         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83632
83633 2004-11-12  Simon Josefsson  <jas@extundo.com>
83634
83635         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83636         small doc fix is still pending.
83637
83638 2004-11-11  Simon Josefsson  <jas@extundo.com>
83639
83640         * modules/strtok_r: New file.
83641
83642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83643         strtok_r.
83644
83645 2004-11-11  Simon Josefsson  <jas@extundo.com>
83646
83647         * m4/strtok_r.m4: New file.
83648
83649         * m4/getopt.m4: Replace opterr.
83650
83651 2004-11-11  Simon Josefsson  <jas@extundo.com>
83652
83653         * lib/strtok_r.h, strtok_r.c: New file.
83654
83655 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83656
83657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83658         of replacing opterr, getopt, etc.  This should handle the
83659         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83660
83661 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83664         we can stop lying to compilers about the constness of argv when we
83665         are compiled outside glibc.
83666         (getopt, getopt_long, getopt_long_only): Use it.
83667         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83668         _getopt_internal, getopt): Likewise.
83669         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83670         _getopt_long_only_r): Likewise.
83671         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83672         _getopt_long_r, _getopt_long_only_r): Likewise.
83673
83674         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83675         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83676         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83677         the other external symbols.
83678         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83679         declaration, since the above renaming now works around collisions.
83680
83681 2004-11-11  Jim Meyering  <jim@meyering.net>
83682
83683         * lib/linebreak.c: Remove trailing blanks.
83684         * lib/alloca_.h: Likewise.
83685         * lib/acosl.c: Likewise.
83686         * lib/euidaccess.c: Likewise.
83687         * lib/allocsa.h: Likewise.
83688
83689 2004-11-10  Simon Josefsson  <jas@extundo.com>
83690
83691         * m4/getaddrinfo.m4: New file.
83692
83693 2004-11-10  Simon Josefsson  <jas@extundo.com>
83694
83695         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83696
83697 2004-11-10  Simon Josefsson  <jas@extundo.com>
83698
83699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83700         getaddrinfo.
83701
83702         * modules/getaddrinfo: New file.
83703
83704 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83705
83706         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83707
83708 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/mktime.c (SHR): New macro, which is a portable
83711         substitute for >> that should work even on Crays.
83712         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83713         Problem reported by Mark D. Baushke in
83714         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83715         * lib/getdate.y (SHR): Likewise.
83716         (tm_diff): Use it.
83717         * lib/strftime.c (SHR): Likewise.
83718         (tm_diff): Use it.
83719         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83720         quote_these_too, so that right shifts are well defined.  All uses
83721         changed.
83722
83723 2004-11-10  Jim Meyering  <jim@meyering.net>
83724
83725         Ensure that no close failure goes unreported.
83726         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83727         return early when it seems there's nothing to flush.
83728         Don't include __fpending.h.
83729
83730 2004-11-10  Jim Meyering  <jim@meyering.net>
83731
83732         * modules/closeout (Depends-on): Remove fpending.
83733
83734 2004-11-10  Jim Meyering  <jim@meyering.net>
83735
83736         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83737
83738 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83739
83740         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83741         gl_FUNC_STRFTIME.
83742         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83743         and AC_REQUIRE when possible, to avoid duplicate checks.
83744         Check for <wchar.h>.
83745
83746 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83749
83750 2004-11-09  Bruno Haible  <bruno@clisp.org>
83751
83752         * m4/sockpfaf.m4: New file.
83753
83754 2004-11-05  Bruno Haible  <bruno@clisp.org>
83755
83756         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83757         Reported by Mark D. Baushke <mdb@cvshome.org>.
83758
83759 2004-11-04  Bruno Haible  <bruno@clisp.org>
83760
83761         2004-09-11  Bruno Haible  <bruno@clisp.org>
83762                 * allocsa.valgrind: New file.
83763         2004-02-06  Bruno Haible  <bruno@clisp.org>
83764                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83765                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83766                 Reported by Christopher Seip <chris.seip@hp.com>.
83767
83768 2004-11-04  Bruno Haible  <bruno@clisp.org>
83769
83770         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83771         (Makefile.am): Distribute it.
83772
83773 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83774
83775         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83776         with errno == ERANGE if the buffer is too small.
83777         Problem reported by Mark D. Baushke.
83778
83779 2004-11-03  Albert Chin  <china@thewrittenword.com>
83780             Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83783         equivalent, substitute $ac_type for equivalent type rather than
83784         blindly using uint32_t *always* which won't work if uint32_t is not
83785         available.  Define _UINT32_T to work around typedef of uint32_t if
83786         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83787         2.5.1.
83788
83789 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * m4/jm-macros.m4: Sync from coreutils.
83792         (gl_MACROS): Check for mbrlen, for pathchk.
83793         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83794
83795 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * lib/xreadlink.c (MAXSIZE): New macro.
83798         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83799         size does not exceed MAXSIZE.  Avoid cast.
83800         As suggested by Mark D. Baushke in
83801         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83802         if readlink fails with buffer size just under MAXSIZE, try again
83803         with MAXSIZE.
83804
83805 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83808
83809 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83810         and  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83813         (get_date): Overparenthesize to avoid GCC warning.
83814
83815 2004-11-02  Bruno Haible  <bruno@clisp.org>
83816
83817         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83818         returns void.
83819
83820 2004-11-02  Bruno Haible  <bruno@clisp.org>
83821
83822         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83823         function returns void.
83824
83825 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83828         fflush_unlocked, flockfile, funlockfile, funlockfile,
83829         fputs_unlocked, putc_unlocked.
83830
83831 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83834         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83835         already declared.
83836
83837 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83838
83839         * modules/getdate (Files): Add doc/getdate.texi.
83840         (Depends-on): Add setenv, xalloc.
83841
83842 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83843
83844         * lib/getdate.y: Add support for TZ="foo" within a date string.
83845         Fix some bugs near time_t boundaries.  Reject dates with
83846         out-of-range components, e.g., "Sept 31".
83847         Include <stdlib.h>, "setenv.h", "xalloc.h".
83848         (ISDIGIT_LOCALE): Remove; unused.
83849         Note that the TZ and time functions used here are not reentrant.
83850         (mktime_ok, get_tz): New functions.
83851         (TZBUFSIZE): New constant.
83852         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83853         This requires that we sometimes generate our own TZ="XXX..." setting.
83854
83855 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * doc/getdate.texi: New file, from coreutils with modifications for
83858         the new TZ parsing.
83859
83860 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83861
83862         * lib/mktime.c (not_equal_tm): Remove redundant check.
83863
83864 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         * modules/regex (lib_SOURCES): Add regex.c.
83867         Reported by James Youngman in
83868         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83869
83870 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83871
83872         * lib/getdate.y: Use Bison 1.875 features, and some minor
83873         code cleanups.  This change does not affect semantics.
83874         Don't include <stdlib.h>; no longer needed.
83875         Don't include unlocked-io.h; only the "#if TEST" code uses
83876         stdio, and performance isn't crucial there.
83877         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83878         Bison 1.875 features as described below.
83879         All uses of "PC." replaced by "pc->".
83880         (YYSTYPE): Add a forward declaration.
83881         (yylex, yyerror): Use full prototypes in forward decls.
83882         Use "%pure-parser" rather than obsolescent "%pure_parser".
83883         Use %parse-param and %lex-param instead of obsolescent
83884         YYPARSE_PARAM and YYLEX_PARAM.
83885         (meridian_table, month_and_day_table, time_units_table,
83886         relative_time_table, time_zone_table, military_table,
83887         lookup_zone, lookup_word, get_date):
83888         Use NULL instead of 0 where appropriate.
83889         (to_hour): Avoid abort (), to avoid a dependency on
83890         stdlib.h.
83891         (yyerror, yylex): Now accepts parser_control * arg.
83892         (main) [TEST]: Use '\0' rather than 0 for char.
83893
83894 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83895
83896         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83897
83898 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83901         It's now the caller's responsibility to handle the case where
83902         !HAVE_GETPAGESIZE && !defined getpagesize.
83903
83904         * lib/mktime.c (leapyear): Arg is long int, not int.
83905
83906 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83909
83910 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83911
83912         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83913         missing.  Problem reported by James Youngman.
83914
83915 2004-10-16  Simon Josefsson  <jas@extundo.com>
83916
83917         * gnulib-tool: Fix comments.  Fix parse problem.
83918         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83919
83920 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83923         implementation of getopt_long.  Problem reported by Alexander Taler in:
83924         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83925
83926 2004-10-15  Bruno Haible  <bruno@clisp.org>
83927
83928         * gnulib-tool: Untabify. Initialize supplied_libname.
83929         (func_usage): More homogenous output.
83930         (func_modules_transitive_closure, func_modules_to_filelist,
83931         func_emit_lib_Makefile_am): New functions.
83932         (func_import): New function, extracted from big case statement. Use
83933         func_get_license, func_modules_transitive_closure,
83934         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83935         opt_lgpl. Don't use test -a, as it's not portable.
83936         (func_create_testdir): Use func_modules_transitive_closure,
83937         func_modules_to_filelist, func_emit_lib_Makefile_am.
83938
83939 2004-10-15  Bruno Haible  <bruno@clisp.org>
83940
83941         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83942
83943 2004-10-15  Bruno Haible  <bruno@clisp.org>
83944
83945         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83946         the portions belonging to each module.
83947         Suggested by Derek Robert Price <derek@ximbiot.com>.
83948
83949 2004-10-12  Simon Josefsson  <jas@extundo.com>
83950
83951         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83952         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83953         to real functions.
83954
83955 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83956
83957         * modules/vsnprintf: New file.
83958
83959 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83960
83961         * m4/vsnprintf.m4: New file.
83962
83963 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83964
83965         * lib/vsnprintf.h: New file.
83966         * lib/vsnprintf.c: New file.
83967
83968 2004-10-11  Bruno Haible  <bruno@clisp.org>
83969
83970         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83971         vsnprintf.
83972
83973 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83974
83975         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83976
83977 2004-10-07  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83980         fits into the provided buffer.
83981
83982 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83983
83984         * lib/diacrit.c, diacrit.h: Add GPL notice.
83985
83986         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83987         notice.
83988         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83989         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83990         This avoids a potential constant-folding bug.
83991
83992 2004-10-05  Bruno Haible  <bruno@clisp.org>
83993
83994         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83995         for the declaration of strsep.
83996
83997 2004-10-05  Bruno Haible  <bruno@clisp.org>
83998
83999         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84000
84001 2004-10-04  Simon Josefsson  <jas@extundo.com>
84002
84003         * modules/memmem: New file.
84004         * tests/test-memmem.c: New file.
84005         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84006
84007 2004-10-04  Simon Josefsson  <jas@extundo.com>
84008
84009         * m4/memmem.m4: New file.
84010
84011 2004-10-04  Simon Josefsson  <jas@extundo.com>
84012
84013         * lib/memmem.h: New file.
84014         * lib/memmem.c: New file, taken from glibc.
84015
84016 2004-10-04  Simon Josefsson  <jas@extundo.com>
84017
84018         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84019         '#ifdef USE_UNLOCKED_IO'.
84020
84021 2004-10-04  Simon Josefsson  <jas@extundo.com>
84022
84023         * config/srclist.txt: Add memmem from glibc.
84024
84025 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84028
84029         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84030         modules/exclude, modules/getdate, modules/getline,
84031         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84032         modules/getusershell, modules/linebuffer, modules/md5,
84033         modules/mountlist, modules/posixtm, modules/readtokens,
84034         modules/readutmp, modules/regex, modules/sha1,
84035         modules/version-etc, modules/yesno:
84036         Remove dependency on unlocked-io.
84037
84038 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84039
84040         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84041
84042         * m4/unlocked-io.m4: Add copyright notice.
84043         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84044
84045 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84046
84047         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84048         * lib/xmalloc.c (xmemdup): Likewise.
84049         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84050         XFREE): Remove these long-obsolescent macros.
84051         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84052         * lib/xstrdup.c: Remove.
84053
84054         * lib/regex.c (re_comp): Cast gettext return value to char *,
84055         Problem reported by Martin Neitzel via Mark D. Baushke.
84056
84057 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84060         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84061         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84062         regex.c, sha1.c, version-etc.c, yesno.c:
84063         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84064         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84065         the includer's responsibility.
84066
84067         Sync from coreutils.
84068
84069         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84070         points to the start of a string, as the C Standard says the
84071         resulting behavior is undefined.
84072
84073         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84074         simple -> simple_backups, numbered_existing ->
84075         numbered_existing_backups, numbered -> numbered_backups
84076         to avoid shadowing problems.  All uses changed.
84077         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84078         * lib/backupfile.c (check_extension, numbered_backup):
84079         Rename locals to avoid shadowing 'basename'.
84080         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84081         once.
84082
84083         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84084         * lib/.cvsignore: Add getopt.h.
84085
84086 2004-10-04  Bruno Haible  <bruno@clisp.org>
84087
84088         * modules/README: New file.
84089         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84090         not a module.
84091
84092 2004-10-02  Jim Meyering  <jim@meyering.net>
84093
84094         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84095
84096 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84097
84098         * modules/strsep: New file.
84099
84100 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84101
84102         * m4/strsep.m4: New file.
84103
84104 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84105
84106         * lib/strsep.h: New file.
84107         * lib/strsep.c: New file.
84108
84109 2004-10-01  Simon Josefsson  <jas@extundo.com>
84110
84111         * lib/snprintf.c (snprintf): Handle size==0.
84112
84113 2004-10-01  Simon Josefsson  <jas@extundo.com>
84114             Bruno Haible  <bruno@clisp.org>
84115
84116         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84117         (snprintf): Declare 'args'.
84118
84119 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * lib/snprintf.c: Remove comments as to why each header is needed.
84122
84123 2004-10-01  Bruno Haible  <bruno@clisp.org>
84124
84125         * MODULES.html.sh: Add strsep.
84126
84127 2004-09-30  Simon Josefsson  <jas@extundo.com>
84128
84129         * modules/snprintf: New file.
84130
84131 2004-09-30  Simon Josefsson  <jas@extundo.com>
84132
84133         * m4/snprintf.m4: New file.
84134
84135 2004-09-30  Simon Josefsson  <jas@extundo.com>
84136
84137         * lib/snprintf.h, lib/snprintf.c: New files.
84138
84139 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84140
84141         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84142         (hol_entry_help): Never translate an empty string.
84143         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84144         * lib/argp.h (OPTION_NO_TRANS): New option.
84145
84146 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         * modules/argp (Maintainer): Replace Simon Josefsson
84149         by Sergey Poznyakoff.
84150
84151 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84154         changes merged back into glibc.
84155
84156 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84157
84158         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84159
84160 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84161
84162         * lib/xvasprintf.c: Include xalloc.h.
84163         (xvasprintf): Use xalloc_die, not xmalloc_die.
84164
84165 2004-09-29  Bruno Haible  <bruno@clisp.org>
84166
84167         * modules/alloca-opt: New file, derived from modules/alloca.
84168         * modules/allocsa: Depend on alloca-opt instead of alloca.
84169         * modules/setenv: Likewise.
84170         * modules/vasnprintf: Likewise.
84171         * MODULES.html.sh: Add alloca-opt.
84172
84173 2004-09-28  Simon Josefsson  <jas@extundo.com>
84174
84175         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84176         LGPL, and to replace license template from GPL to LGPL.
84177
84178 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * modules/dummy: Change license to LGPL.
84181
84182 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84185
84186 2004-09-24  Simon Josefsson  <jas@extundo.com>
84187
84188         * modules/minmax (License): Change from GPL to LGPL.
84189
84190 2004-09-23  Simon Josefsson  <jas@extundo.com>
84191
84192         * gnulib-tool (--import): Typo.
84193
84194 2004-09-23  Simon Josefsson  <jas@extundo.com>
84195
84196         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84197
84198 2004-09-22  Bruno Haible  <bruno@clisp.org>
84199
84200         * modules/*: Add 'License' field.
84201         * gnulib-tool: Accept --extract-license option.
84202         (func_get_license): New function.
84203
84204 2004-09-21  Bruno Haible  <bruno@clisp.org>
84205
84206         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84207         Reported by Simon Josefsson.
84208
84209 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84212         gl_AC_TYPE_LONG_LONG.
84213
84214 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84217
84218 2004-09-18  Simon Josefsson  <jas@extundo.com>
84219         and  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84222         calls with autoreconf.  Define GL_LIB.
84223
84224 2004-09-14  Karl Berry  <karl@gnu.org>
84225
84226         * config/srclist.txt: unsync setenv.c, sigh.
84227
84228 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84229
84230         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84231         Problem reported by Bruno Haible in:
84232         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84233
84234 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84235
84236         * config/srclist.txt: Comment out argp-pvh.c.
84237
84238 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84241         in case some system header has #define'd it.  Problem reported by
84242         Soeren D. Schulze in
84243         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84244
84245 2004-09-09  Karl Berry  <karl@gnu.org>
84246
84247         * regex.[ch]: delete from the root.  These were supposed to be
84248                 synced with emacs cvs, but this has not happened for about
84249                 a year, and anyway nothing else uses emacs regex.[ch].
84250                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84251                 lib/regex[.ch] is untouched.
84252
84253 2004-09-09  Bruno Haible  <bruno@clisp.org>
84254
84255         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84256
84257 2004-09-09  Bruno Haible  <bruno@clisp.org>
84258
84259         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84260         modifications.
84261         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84262
84263 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84264
84265         * modules/xvasprintf: New file.
84266         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84267
84268 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84269
84270         * lib/xvasprintf.h: New file.
84271         * lib/xvasprintf.c: New file.
84272         * lib/xasprintf.c: New file.
84273
84274 2004-09-08  Bruno Haible  <bruno@clisp.org>
84275
84276         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84277
84278 2004-09-08  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84281         length is > INT_MAX.
84282         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84283         more.
84284
84285 2004-09-08  Bruno Haible  <bruno@clisp.org>
84286
84287         * lib/stdint_.h: New file, taken from GNU clisp.
84288
84289 2004-09-08  Bruno Haible  <bruno@clisp.org>
84290             Oskar Liljeblad  <oskar@osk.mine.nu>
84291
84292         * modules/stdint: New file.
84293         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84294
84295 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84296
84297         Import from coreutils.
84298         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84299         strings on unbounded length.  alloca's performance benefits aren't
84300         that important here.
84301         (V_STRDUP): Remove.
84302         (parse_with_separator): New function, with most of the internals
84303         of the old parse_user_spec.  Allow user to omit both user and group,
84304         for compatibility with FreeBSD.
84305         Clone only the user name, not the entire spec.
84306         Do not set *uid, *gid unless entirely successful.
84307         Avoid memory leak in some failing cases.
84308         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84309         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84310         (parse_user_spec): Rewrite to use parse_with_separator.
84311
84312 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * modules/userspec: Don't depend on alloca.
84315
84316 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84319
84320 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84323         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84324         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84325
84326 2004-08-16  Simon Josefsson  <jas@extundo.com>
84327
84328         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84329         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84330         Add --dry-run for --import.
84331         Let user provided command line parameters override configure.ac
84332         settings.
84333
84334 2004-08-12  Simon Josefsson  <jas@extundo.com>
84335
84336         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84337         as discussed with Paul Eggert in threads rooted at
84338         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84339         and
84340         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84341         Before, the test was empty, and relied on ELIDE_CODE in source
84342         code.)
84343         (gl_PREREQ_GETOPT): New macro.
84344         (gl_GETOPT): Use them.
84345
84346 2004-08-12  Simon Josefsson  <jas@extundo.com>
84347
84348         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84349         * lib/getopt_.h: Renamed from getopt.h.
84350
84351 2004-08-12  Simon Josefsson  <jas@extundo.com>
84352
84353         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84354         Change default library name from libfoo to libgnu.
84355         Now, if you have a configure.ac that says:
84356                 gl_SOURCE_BASE(gl)
84357                 gl_M4_BASE(gl/m4)
84358                 gl_MODULES(error getopt etcetera)
84359                 gl_INIT
84360         you can import all you need by running:
84361                 ../gnulib/gnulib-tool --import
84362
84363         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84364         (Makefile.am): Rewrite, use logic from argz.
84365         (Include): Use <getopt.h> instead of "getopt.h".
84366
84367 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * modules/argp (Files): Add m4/unlocked-io.m4.
84370         (Depends-on): Add extensions.
84371
84372 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84375         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84376         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84377         Check for program_invocation_name, program_invocation_short_name,
84378         flockfile, funlockfile, features.h, _getopt_long_only_r.
84379
84380 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84383         its complicated substitute.
84384         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84385         and program_invocation_name.
84386         (__argp_basename) [!_LIBC]: Remove; the only use was
84387         replaced by its body.
84388         (__argp_short_program_name): Change condition from
84389         !defined __argp_short_program_name to
84390         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84391         to match argp-namefrob.h.
84392         (__argp_failure): Don't assume strerror_r returns char *.
84393         * lib/argp-parse.c (N_): Define unconditionally.
84394         (argp_default_options): Fill out initializers with 0 to avoid
84395         gcc warnings.
84396
84397 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84400         getopt1.c.
84401
84402 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         Merge from coreutils.
84405
84406         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84407
84408         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84409         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84410
84411 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         Merge from coreutils.
84414
84415         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84416         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84417         for Reliant Unix 5.43.
84418
84419         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84420         (union fooround): Use uintmax_t, not long int.
84421         The rest is a merge from libc:
84422         [defined _LIBC]: Include <shlib-compat.h>.
84423         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84424
84425         * lib/settime.c (settime): Recode to avoid warning with
84426         Sun Forte C 6U2.
84427
84428         * lib/strverscmp.c: Convert to UTF-8.
84429
84430 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84433         m4/uintmax_t.m4.
84434
84435 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * modules/xalloc-die: New file.
84438         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84439
84440         * modules/md5 (Files): Add m4/uint32_t.m4.
84441         * modules/sha1: Renamed from modules/sha.
84442         (Files):
84443         Rename lib/sha.h to lib/sha1.h.
84444         Rename lib/sha.c to lib/sha1.c.
84445         Rename m4/sha.m4 to m4/sha1.m4.
84446         (lib_SOURCES): Likewise.
84447         (configure.ac): Rename gl_SHA to gl_SHA1.
84448         (Include): sha.h -> sha1.h.
84449
84450 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84451
84452         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84453         * m4/sha1.m4: Renamed from sha.m4.
84454         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84455
84456 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * lib/obstack.h (obstack_empty_p):
84459         Don't assume that chunk->contents is suitably aligned.
84460         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84461         Likewise. Problem reported by Benno in
84462         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84463
84464         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84465         readable.  This could be improved further but it'd take some work.
84466
84467 2004-08-08  Simon Josefsson  <jas@extundo.com>
84468
84469         * modules/xgethostname (Depends-on): Remove exit and error (not
84470         used).
84471
84472         * modules/getpass-gnu: Add getpass.h.
84473         (Depends-on): Add stdbool.
84474         * modules/getpass: Add getpass.h.
84475
84476 2004-08-08  Simon Josefsson  <jas@extundo.com>
84477
84478         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84479         Check getpass declaration.
84480
84481 2004-08-08  Simon Josefsson  <jas@extundo.com>
84482
84483         * lib/xgethostname.c: Don't include error.h (not used).
84484
84485         * lib/getpass.h: Add.
84486         * lib/getpass.c: Include getpass.h first.
84487
84488 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84489
84490         * lib/xalloc-die.c: New file.
84491         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84492         All uses removed.
84493         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84494         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84495         xalloc-die.c.
84496         (_, N_, xalloc_die): Move to xalloc-die.c.
84497         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84498         so that we needn't mess with xalloc_msg_memory_exhausted.
84499
84500         * lib/sha1.h: Renamed from sha.h.
84501         (SHA1_H): Renamed from _SHA_H.
84502         (sha1_ctx): Renamed from sha_ctx.
84503         (sha1_init_ctx): Renamed from sha_init_ctx.
84504         (sha1_process_block): Renamed from sha_process_block.
84505         (sha1_process_bytes): Renamed from sha_process_bytes.
84506         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84507         (sha1_read_ctx): Renamed from sha_read_ctx.
84508         (sha1_stream): Renamed from sha_stream.
84509         (sha1_buffer): Renamed from sha_buffer.
84510         * lib/sha1.c: Likewise; renamed from sha.c.
84511         Do not include <sys/types.h>.
84512         Include <stddef.h> rather than <stdlib.h>.
84513
84514 2004-08-08  Bruno Haible  <bruno@clisp.org>
84515
84516         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84517         FILESYSTEM_PREFIX_LEN.
84518         * lib/progreloc.c: Likewise.
84519         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84520
84521 2004-08-06  Simon Josefsson  <jas@extundo.com>
84522
84523         * modules/progname (Depends-on): Don't depend on stdbool.
84524
84525 2004-08-06  Simon Josefsson  <jas@extundo.com>
84526
84527         * modules/getsubopt: New file.
84528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84529         getsubopt.
84530
84531 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         More merge from coreutils.
84534
84535         * m4/utimens.m4, m4/utimecmp.m4: New files.
84536         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84537         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84538         prereq.m4, sha.m4: Import changes from coreutils.
84539
84540 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84541
84542         More merge from coreutils.
84543         * modules/raise, modules/readtokens0, modules/utimens:
84544         * modules/utimecmp, module/xnanosleep: New files.
84545         * modules/strftime: Add lib/strftime.h.
84546         Change include from <time.h> to "strftime.h".
84547         * modules/yesno: Add lib/yesno.h.
84548         * modules/backupfile: Remove lib/addext.c.
84549         * modules/euidaccess: Add stat-macros.h.
84550         * modules/canonicalize, modules/euidaccess,
84551         modules/filemode, modules/lchown, modules/makepath,
84552         modules/rmdir, modules/stat: Likewise.
84553
84554 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         Merge from tar.
84557         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84558         SIZE_MAX is a valid preprocessor constant.
84559         (__argp_basename): Change from "#ifndef _LIBC"
84560         to "#ifndef __argp_short_program_name", so that
84561         we don't compile these functions for tar.
84562
84563         More merges from coreutils.
84564         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84565         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84566         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84567         * lib/addext.c: Remove; no longer needed.
84568         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84569         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84570         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84571         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84572         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84573         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84574         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84575         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84576         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84577         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84578         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84579         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84580         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84581         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84582         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84583         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84584         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84585         Import changes from coreutils.
84586
84587 2004-08-05  Simon Josefsson  <jas@extundo.com>
84588
84589         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84590
84591 2004-08-05  Simon Josefsson  <jas@extundo.com>
84592
84593         * m4/getsubopt.m4: New file.
84594
84595 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         Merge from coreutils.
84598
84599         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84600         * m4/getcwd-path-max.m4: New files.
84601
84602         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84603         FILESYSTEM_PREFIX_LEN ->
84604         FILE_SYSTEM_PREFIX_LEN.
84605         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84606         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84607         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84608         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84609
84610         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84611         prerequisite modules now handle the DOS stuff.
84612         Don't check for unistd.h.
84613
84614 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84615
84616         Merge from coreutils.
84617
84618         * lib/.gdb-history: Remove; this doesn't belong here.
84619
84620         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84621         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84622         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84623         * lib/getcwd.c: New files.
84624
84625         * lib/dirname.h: Include <stdbool.h>.
84626         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84627         for consistency with POSIX terminology.  All uses changed.
84628         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84629         (strip_trailing_slashes): Use bool for booleans.
84630         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84631
84632         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84633         sometimes returns a positive errno value even when it succeeds.
84634         (print_errno_message) [!LIBC]: Fall back on strerror if
84635         __strerror_r fails.
84636
84637         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84638         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84639         (longest_relative_suffix): New function.
84640         (path_concat): Use it.  Assume first argument is not NULL.
84641         Port to DOS.  Omit redundant separators.
84642         Report an error instead of returning NULL.
84643         Use mempcpy instead of memcpy.
84644         (xpath_concat): Remove: not declared or used.
84645
84646         * lib/same.h: Include <stdbool.h>
84647         (same_name): Return bool, not int.
84648         * lib/same.c (same_name): Likewise.
84649         (errno): Don't declare; we assume C89 or better now.
84650
84651         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84652         if not already defined.
84653
84654         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84655         * lib/dup-safer.c (errno): Likewise.
84656
84657 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84658
84659         Merge from coreutils.
84660         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84661         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84662         * modules/path-concat: Don't depend on strdup.
84663
84664 2004-08-03  Simon Josefsson  <jas@extundo.com>
84665
84666         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84667         * lib/progname.h: Don't include stdbool.h.
84668
84669 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84670
84671         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84672         * MODULES.html.sh (func_all_modules): Remove fatal.
84673
84674 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84677
84678 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84681         working.
84682
84683 2004-08-02  Simon Josefsson  <jas@extundo.com>
84684
84685         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84686         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84687         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84688
84689 2004-08-01  Simon Josefsson  <jas@extundo.com>
84690
84691         * lib/xgetdomainname.c: Include stdlib.h, for free().
84692
84693 2004-07-19  Bruno Haible  <bruno@clisp.org>
84694
84695         * MODULES.html.sh (func_all_modules): Add dummy.
84696
84697 2004-07-16  Simon Josefsson  <jas@extundo.com>
84698
84699         * modules/dummy: New file.
84700
84701 2004-07-16  Simon Josefsson  <jas@extundo.com>
84702
84703         * lib/dummy.c: New file.
84704
84705 2004-07-16  Bruno Haible  <bruno@clisp.org>
84706
84707         * lib/backupfile.h: Add extern "C" for C++.
84708         * lib/closeout.h: Likewise.
84709         * lib/copy-file.h: Likewise.
84710         * lib/findprog.h: Likewise.
84711         * lib/full-write.h: Likewise.
84712         * lib/pathname.h: Likewise.
84713         * lib/progname.h: Likewise.
84714         * lib/stpcpy.h: Likewise.
84715         * lib/stpncpy.h: Likewise.
84716         * lib/strcase.h: Likewise.
84717         * lib/strstr.h: Likewise.
84718         * lib/xalloc.h: Likewise.
84719
84720         * lib/mbswidth.h: Add extern "C" for C++.
84721         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84722
84723 2004-07-13  Robert Millan  <robertmh@gnu.org>
84724
84725         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84726
84727 2004-07-09  Simon Josefsson  <jas@extundo.com>
84728
84729         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84730         failed without this.)
84731
84732 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84733
84734         * modules/chown (Files): Add lib/fchown-stub.c, since
84735         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84736
84737 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * lib/fchown-stub.c: New file.
84740
84741 2004-06-24  Jim Meyering  <jim@meyering.net>
84742
84743         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84744
84745 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * modules/argz: Omit "#include".
84748
84749         * MODULES.html.sh (func_all_modules): Add calloc, to match
84750         2004-06-01 addition of calloc module.
84751
84752 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         * m4/argz.m4: New file, which is autoupdated from libtool.
84755
84756 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84759         libtool.
84760
84761 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * config/srclist-update: Don't insist on "USA." before the
84764         close-comment, as libtool omits the period and puts the */ on a
84765         separate line.
84766         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84767         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84768
84769 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84770
84771         * modules/argz: New file.
84772         * MODULES.html.sh (func_all_modules): Add argz.
84773
84774 2004-06-12  Jim Meyering  <jim@meyering.net>
84775         and  Paul Eggert  <eggert@cs.ucla.edu>
84776
84777         * modules/hash (Files): Add lib/xalloc.h.
84778         * modules/pipe (Depends-on): Add wait-process.
84779         * modules/stat (Depends-on): Add xalloc.
84780         * modules/userspec (Files): Add lib/userspec.h.
84781         * modules/xstrto
84782
84783         Upgrade from gettext-0.13.
84784         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84785         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84786         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84787
84788 2004-06-10  Jim Meyering  <jim@meyering.net>
84789
84790         * lib/calloc.c: New file.
84791
84792 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/getdate.y (yylex): Allow space between sign and number.
84795         Problem reported by Dan Jacobson.
84796
84797 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84798
84799         Merge from coreutils CVS.
84800
84801         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84802         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84803         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84804         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84805         xstrtol.m4: Fix copyright date and/or serial number.
84806
84807         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84808         See if we need an fchown replacement.
84809         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84810         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84811         and use the replacement function if we detect either defect.
84812
84813         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84814         gl_UTIMECMP.
84815
84816 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84817         and  Jim Meyering  <jim@meyering.net>
84818
84819         Merge from coreutils CVS.
84820
84821         * lib/stat-macros.h: New file, with contents from file-type.h
84822         and coreutils' system.h.
84823         * lib/file-type.c: Include "stat-macros.h".
84824         * lib/file-type.h (file_type): Move all macro definitions to new file,
84825         stat-macros.h.
84826
84827         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84828         Wrap old code with this conditional.
84829         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84830         function that does not dereference symlinks.
84831         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84832
84833         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84834         dependency problems.
84835         (xreadlink): Accept new arg SIZE, for efficiency.
84836         All decls and uses changed.
84837         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84838
84839         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84840         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84841
84842         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84843         sysexits.h.
84844
84845 2004-06-01  Jim Meyering  <jim@meyering.net>
84846
84847         * m4/calloc.m4: New file.
84848
84849 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84852         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84853         Also, fix a typo in a diagnostic.
84854
84855 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84858         or AC_FUNC_REALLOC.
84859
84860 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84861
84862         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84863         macros to be defined.
84864         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84865         the allocator returns NULL because the requested size is zero.
84866
84867 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84868
84869         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84870         var.  Add comment explaining why libc still defines it.  This
84871         merges the following patch from glibc:
84872         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84873
84874 2004-05-20  Andreas Schwab  <schwab@suse.de>
84875
84876         * m4/free.m4: Replace free if it not known to work, not the other
84877         way round.
84878
84879 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84880
84881         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84882         present in glibc since revision 1.1 of this file.
84883         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84884         obstack_alignment_mask, obstack_alloc, obstack_base,
84885         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84886         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84887         obstack_grow0, obstack_init, obstack_int_grow,
84888         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84889         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84890         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84891         nonexistent functions.
84892
84893 2004-05-18  Karl Berry  <karl@gnu.org>
84894
84895         * config/srclist.txt: break link for vasnprintf.c.
84896
84897 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         Port obstack to the AS/400, where pointers are 16 bytes wide and
84900         you cannot cast an integer to a valid pointer.  This patch is
84901         currently waiting to be integrated into glibc; see
84902         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84903
84904         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84905         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84906         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84907         (struct obstack): temp member is now a union of a pointer and
84908         an integer, instead of an integer.  All integer uses changed.
84909         This does not affect the physical layout of struct obstack,
84910         except on hosts (like the AS/400) where the size or alignment of
84911         void * is greater than that of ptrdiff_t.
84912         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84913         __STDC__)]: Store temporary in pointer member of union, not
84914         integer member.
84915         * lib/obstack.c: Include <stddef.h>, for offsetof.
84916         (struct fooalign): Remove; it doesn't need a name.
84917         (union fooround): Change double to long double, and add void *.
84918         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84919         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84920         not a macro.  Hence the values are always int; so remove all
84921         casts-to-int in uses.
84922
84923 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84926         we can get this patch merged into glibc.
84927
84928 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84929             Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         * m4/argp: Depend on alloca.
84932
84933 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84934             Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84937         freecoding.
84938
84939 2004-05-17  Bruno Haible  <bruno@clisp.org>
84940
84941         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84942         precision that consists of a '.' followed by an empty digit string.
84943         Patch by Tor Lillqvist <tml@iki.fi>.
84944
84945 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84948         for backward compatibility with older code.  We need our own
84949         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84950         it under some other name, and our alloca.h will define it.
84951
84952 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84953             Derek Price  <derek@ximbiot.com>
84954
84955         * lib/alloca.c: Include <alloca.h>, to get our interface.
84956         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84957         include <alloca.h> first.  Use C89 prototype for alloca; this
84958         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84959         Use #elif for simplicity, since we can assume C89 now.
84960         Don't try to source the system alloca.h since it will not be found
84961         and to prevent recursively including its replacement.
84962         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84963         * lib/regex.c: Likewise.
84964
84965 2004-05-16  Derek Price  <derek@ximbiot.com>
84966             Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         getline cleanup.  This changes the getndelim2 API: both order of
84969         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84970         no delimiter).
84971
84972         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84973         interface does that.
84974         (getline): Always use getdelim, so that we don't have two
84975         copies of this code.
84976         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84977         if available.
84978         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84979         (GETNDELIM2_MAXIMUM): New macro.
84980         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84981         instead of the old practice of delim2==0.  All callers changed.
84982         Return -1 on overflow, instead of returning junk.
84983         Do not set *linesize unless allocation succeeds.
84984         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84985         that we include sys/types.h.
84986         * lib/getnline.h: Likewise.
84987         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84988         (getndelim2): Reorder arguments.
84989         * lib/getnline.c (getnline, getndelim):
84990         Don't discard the NMAX argument.
84991         (getnline): Invoke getndelim, to avoid code duplication.
84992         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84993         of (size_t) -1 by callers of the getnline family.
84994
84995 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84996
84997         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84998         Check for gettimeofday.
84999         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85000         Check for settimeofday, stime.
85001
85002 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         * lib/nanosleep.c (suspended): Change its type from int to
85005         sig_atomic_t volatile.
85006         (first_call): Make it private to rpl_nanosleep, and have it
85007         be zero initially as that's a bit faster.
85008         (my_usleep): Round up fractional times instead of truncating them,
85009         as this is the usual meaning for 'sleep'.
85010
85011         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85012         doesn't work.
85013         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85014         (ENOSYS): Define if not defined.
85015         (settime): Fall back on stime if it exists and settimeofday fails.
85016         But don't bother with fallbacks if a method fails with errno == EPERM.
85017
85018 2004-05-11  Jim Meyering  <jim@meyering.net>
85019
85020         Prior to this change, the save_cwd caller required read access to the
85021         current directory on most systems (ones with the fchdir function).
85022
85023         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85024         fails, try write-only, and finally, resort to using xgetcwd.
85025
85026 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85027
85028         * lib/obstack.c, obstack.h: Import changes from libc.
85029
85030 2004-04-28  Bruno Haible  <bruno@clisp.org>
85031
85032         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85033         also implicitly appends .exe to executables.
85034         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85035         accepts Windows pathnames.
85036         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85037         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85038         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85039         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85040         Reported by Derek Robert Price <derek@ximbiot.com>.
85041
85042 2004-04-21  Karl Berry  <karl@gnu.org>
85043
85044         * config/srclist.txt (localcharset.c): break sync.
85045
85046 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85047
85048         * m4/host-os.m4: Add a copyright notice.
85049
85050 2004-04-20  Jim Meyering  <jim@meyering.net>
85051
85052         Change UTILS_ to gl_ in AC_DEFINE'd names.
85053         Change utils_- and jm_-prefixed variables, too.
85054         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85055         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85057
85058         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85059         Don't emit trailing blanks.
85060         Also rename jm_-prefixed variables to have gl_ prefix.
85061
85062         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85063         Also rename jm_-prefixed variables to have gl_ prefix.
85064
85065         * m4/jm-macros.m4: Reflect the renamings.
85066         * m4/prereq.m4: Likewise.
85067
85068 2004-04-20  Jim Meyering  <jim@meyering.net>
85069
85070         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85071         memory.
85072
85073 2004-04-20  Jim Meyering  <jim@meyering.net>
85074             Bruno Haible  <bruno@clisp.org>
85075
85076         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85077         memory when realloc fails.
85078
85079 2004-04-19  Jim Meyering  <jim@meyering.net>
85080
85081         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85082         now that readutmp.c may call `free (0)'.
85083
85084 2004-04-19  Bruno Haible  <bruno@clisp.org>
85085
85086         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85087         * m4/inttypes_h.m4: Likewise.
85088         * m4/stdint_h.m4: Likewise.
85089         * m4/intmax_t.m4: Likewise.
85090         * m4/uintmax_t.m4: Likewise.
85091
85092 2004-04-18  Jim Meyering  <jim@meyering.net>
85093
85094         * m4/prereq.m4: Don't forbid jm_ prefix.
85095
85096         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85097         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85098         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85099         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85100         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85101         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85102         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85103         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85104         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85105         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85106         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85107         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85108         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85109         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85110         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85111         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85112         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85113         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85114         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85115
85116 2004-04-18  Jim Meyering  <jim@meyering.net>
85117
85118         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85119         failure, don't leak memory and do call END_UTMP_ENT.
85120
85121 2004-04-16  Jim Meyering  <jim@meyering.net>
85122
85123         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85124         coreutils' stat program.
85125         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85126
85127 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85128
85129         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85130         C89.
85131         (CHAR_BIT): Remove, since we assume C89.
85132         Include <stdint.h> if available, as per current Autoconf CVS advice.
85133
85134 2004-03-31  Jim Meyering  <jim@meyering.net>
85135
85136         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85137         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85138         * m4/xalloc.m4: Likewise.
85139
85140 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85141
85142         Merge from coreutils.
85143
85144         * m4/inttostr.m4: New file.
85145         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85146         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85147         Require gl_CLOCK_TIME.
85148         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85149
85150 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85151
85152         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85153         not bool, to be more consistent with Unix conventions.
85154         Suggested by Bruno Haible.
85155
85156         Merge from coreutils.
85157
85158         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85159         * lib/umaxtostr.c: New files.
85160
85161         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85162         the usual <time.h> dance.
85163         (get_date): Change signature to support fractional time stamps.
85164         All callers changed.
85165         * lib/getdate.y: Include "getdate.h" first, as we can now
85166         assume C89 and don't need to worry about 'const'.
85167         Similarly, include "unlocked-io.h" near start, not in middle.
85168         Include <limits.h>.
85169         (textint.value): Use long int rather than int.
85170         (textint.digits): Use size_t rather than int.
85171         (BILLION, LOG10_BILLION): New constants.
85172         (parser_control): New member rel_ns.  Members day_ordinal,
85173         time_zone, month, day, hour, minutes, rel_year, rel_month,
85174         rel_day, rel_hour, rel_minutes, rel_seconds
85175         are now long int, not int.  Member seconds is now struct timespec,
85176         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85177         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85178         not int.
85179         (%union.intval): Now long int, not int.
85180         New member timespec.
85181         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85182         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85183         (spec): Now is a timespec or an item list.
85184         (timespec, items): New nonterminals.
85185         (time, rel, relunit, number, get_date):
85186         Add support for fractional seconds.
85187         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85188         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85189         (to_hour): First arg is now long int, not int.
85190         (to_year): Returns long int, not int.
85191         Don't treat year -70 like 70.
85192         (tm_diff): Returns long int, not int.
85193         (lookup_word): Use bool instead of int when appropriate.
85194         (yylex): Use size_t for count, not int.
85195         Detect overflow when parsing large integer constants.
85196         Add support for fractions.
85197         (get_date): Make pointers 'const' if possible.
85198         Use more-portable code to detect integer overflow.
85199         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85200         Don't use ctime; it's not reliable if the year has >4 digits.
85201
85202         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85203         This is for compatibility with BSD.
85204
85205         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85206         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85207         From coreutils' system.h.
85208
85209         * lib/userspec.c: Don't include "posixver.h".
85210         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85211         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85212         compatible extension.  Simplify code by removing a boolean int
85213         that was always nonzero if a string was nonnull.
85214
85215 2004-03-30  Jim Meyering  <jim@meyering.net>
85216
85217         Merge from coreutils.
85218
85219         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85220         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85221         on some systems one must include <grp.h> before it.
85222         Reported by Christian Krackowizer.
85223
85224 2004-03-30  Jim Meyering  <jim@meyering.net>
85225
85226         Merge from coreutils.
85227
85228         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85229
85230         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85231         an empty input stream.
85232
85233         * lib/readtokens.c: Include <stdbool.h>.
85234         (readtoken): Use `size_t' rather than int/long.
85235         All callers adjusted.
85236         Use `bool' rather than `int' where appropriate.
85237         Use memset rather than an explicit loop.
85238         Use x2nrealloc rather than xrealloc.
85239         Allow the use of `\0' as a delimiter.
85240         (readtokens): Likewise.
85241         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85242
85243 2004-03-30  Jim Meyering  <jim@meyering.net>
85244
85245         * m4/realloc.m4: Remove file, since now it does no more than
85246         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85247         the `configure.ac' section of module/realloc.
85248         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85249
85250 2004-03-30  Bruno Haible  <bruno@clisp.org>
85251
85252         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85253         nonnull.
85254
85255 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85256
85257         Merge changes to getloadavg.c from coreutils and Emacs.
85258
85259         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85260         Define to an expression, not to the empty string.
85261         Include cloexec.h and xalloc.h.
85262         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85263         Use set_cloexec_flag rather than rolling our own.
85264         * lib/cloexec.c, lib/cloexec.h: New files.
85265
85266 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85267
85268         * m4/cloexec.m4: New file.
85269
85270 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85271
85272         * lib/getopt.h: Sync with libc CVS.
85273
85274 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85275             Bruno Haible  <bruno@clisp.org>
85276
85277         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85278         mbswidth.
85279
85280 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85281             Bruno Haible  <bruno@clisp.org>
85282
85283         * lib/mbswidth.h: Include <wchar.h> only if
85284         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85285         <wchar.h>.
85286         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85287
85288 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85289
85290         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85291         Sync with libc CVS.
85292         * lib/getopt_int.h: New file, also synced from libc.
85293
85294 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85295
85296         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85297         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85298         Bring back getopt.c, getopt.h, getopt1.c.
85299
85300 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85301
85302         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85303         All uses changed.  Check for sa_sigaction member; this fixes
85304         a bug first reported by Jason Andrade in
85305         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85306
85307 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85308
85309         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85310         '#if' expressions.  Unlike the code it replaces, it does not
85311         depend on (defined _SC_PAGESIZE).  However, it does depend on
85312         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85313         first reported by Jason Andrade in
85314         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85315
85316 2004-02-25  Simon Josefsson  <jas@extundo.com>
85317
85318         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85319
85320 2004-02-25  Simon Josefsson  <jas@extundo.com>
85321
85322         * lib/strdup.h: New file.
85323         * lib/strdup.c: Include it.
85324         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85325         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85326
85327 2004-02-23  Karl Berry  <karl@gnu.org>
85328
85329         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85330         (from fencepost.gnu.org:/gd/gnuorg).
85331
85332 2004-02-23  Karl Berry  <karl@gnu.org>
85333
85334         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85335         * config/srclist.txt: add maintain/standards documents.
85336
85337 2004-02-18  Bruno Haible  <bruno@clisp.org>
85338
85339         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85340         Reported by Derek Robert Price <derek@ximbiot.com>.
85341
85342 2004-02-16  Karl Berry  <karl@gnu.org>
85343
85344         * config/mkinstalldirs, install-sh: update from automake.
85345
85346 2004-02-06  Karl Berry  <karl@gnu.org>
85347
85348         * m4/po.m4: update from gettext 0.14.1.
85349
85350 2004-02-06  Karl Berry  <karl@gnu.org>
85351
85352         * lib/config.charset: update from gettext 0.14.1.
85353
85354 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85355
85356         Add comments and code, prompted by suggestions from Bruno Haible
85357         for sh-quote.
85358         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85359         describing the enum quoting_style values.
85360         * lib/quotearg.c (quotearg_alloc): New function.
85361         (quotearg_buffer_restyled): Treat lone { and } as special.
85362         Treat = as special.  Work around bug with older shells
85363         that "see" a '\' that is really the 2nd byte of a multibyte char.
85364         Quote empty string with shell_quoting_style.
85365
85366 2004-02-03  Bruno Haible  <bruno@clisp.org>
85367
85368         * m4/pipe.m4: New file, from GNU gettext.
85369
85370 2004-02-03  Bruno Haible  <bruno@clisp.org>
85371
85372         * lib/pipe.h: New file, from GNU gettext.
85373         * lib/pipe.c: New file, from GNU gettext.
85374
85375 2004-01-27  Bruno Haible  <bruno@clisp.org>
85376
85377         * m4/execute.m4: New file, from GNU gettext.
85378
85379 2004-01-27  Bruno Haible  <bruno@clisp.org>
85380
85381         * lib/execute.h: New file, from GNU gettext.
85382         * lib/execute.c: New file, from GNU gettext.
85383         * lib/w32spawn.h: New file, from GNU gettext.
85384
85385 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85386
85387         Merge from diffutils.
85388
85389         * lib/file-type.c (file_type): Add typed memory objects.
85390         * lib/file-type.h (S_TYPEISTMO): New macro.
85391
85392         * lib/c-stack.h (c_stack_action): Remove argv argument.
85393         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85394         (die): Don't calculate message unless segv_action returns.
85395         (get_stack_location, min_address_from_argv, max_address_from_argv,
85396         volatile stack_base, volatile_stack_size): Remove.
85397         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85398         that every segmentation violation is a stack overflow.  (Ouch!)
85399         See Debian bug 136249 (still outstanding) for more info about why
85400         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85401
85402 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85403
85404         Exit-status fix from coreutils.
85405
85406         Use exit_failure consistently in place of EXIT_FAILURE,
85407         so that program exit statuses are consistent on failure.
85408
85409         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85410         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85411         * lib/argmatch.h: Comment fix to match the above.
85412         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85413         Now a macro referring to exit_failure, instead of a separate
85414         variable.  Include "exitfail.h" to get it.
85415         * lib/xstrtol.h: Include "exitfail.h".
85416         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85417
85418         * lib/long-options.c (parse_long_options): Use prototype
85419         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85420         for clarity.
85421
85422 2004-01-21  Jim Meyering  <jim@meyering.net>
85423
85424         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85425         so as not to conflict with a different-sized __mktime_internal
85426         function in GNU libc.
85427         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85428         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85429
85430 2004-01-20  Karl Berry  <karl@gnu.org>
85431
85432         * config/config.guess: update from config.
85433
85434         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85435
85436 2004-01-20  Bruno Haible  <bruno@clisp.org>
85437
85438         Safer stack allocation.
85439         * lib/setenv.c: Include allocsa.h.
85440         (alloca): Remove fallback definition.
85441         (freea): Remove macro.
85442         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85443         instead of freea.
85444
85445 2004-01-20  Bruno Haible  <bruno@clisp.org>
85446
85447         * m4/eealloc.m4: New file, from GNU gettext.
85448
85449 2004-01-20  Bruno Haible  <bruno@clisp.org>
85450
85451         * m4/allocsa.m4: New file, from GNU gettext.
85452
85453 2004-01-20  Bruno Haible  <bruno@clisp.org>
85454
85455         * lib/xallocsa.h: New file, from GNU gettext.
85456         * lib/xallocsa.c: New file, from GNU gettext.
85457
85458 2004-01-20  Bruno Haible  <bruno@clisp.org>
85459
85460         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85461
85462 2004-01-20  Bruno Haible  <bruno@clisp.org>
85463
85464         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85465         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85466         specially.
85467
85468 2004-01-20  Bruno Haible  <bruno@clisp.org>
85469
85470         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85471         patch.
85472
85473 2004-01-20  Bruno Haible  <bruno@clisp.org>
85474
85475         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85476
85477 2004-01-20  Bruno Haible  <bruno@clisp.org>
85478
85479         * lib/eealloc.h: New file.
85480
85481 2004-01-20  Bruno Haible  <bruno@clisp.org>
85482
85483         * lib/binary-io.h: Avoid warnings on Cygwin.
85484
85485 2004-01-20  Bruno Haible  <bruno@clisp.org>
85486
85487         * lib/allocsa.h: New file, from GNU gettext.
85488         * lib/allocsa.c: New file, from GNU gettext.
85489
85490 2004-01-18  Karl Berry  <karl@gnu.org>
85491
85492         * doc/gpl.texi, doc/lgpl.texi: new files.
85493
85494 2004-01-18  Karl Berry  <karl@gnu.org>
85495
85496         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85497         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85498
85499 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85500
85501         Merge from coreutils.
85502
85503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85504         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85505         (gl_DEFAULT_POSIX2_VERSION): Move
85506         the documentation from 'configure' into 'config.hin',
85507         so that 'configure --help' isn't burdened by it and
85508         we don't have to worry about its formatting there.
85509         Reword the documentation so that it's more succinct
85510         and can be run together into a single paragraph.
85511         * m4/same.m4 (gl_SAME): Check for pathconf.
85512
85513 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85514
85515         Merge from coreutils.
85516
85517         * lib/posixver.c: Include posixver.h.
85518
85519         * lib/same.c: Include <stdbool.h>, <limits.h>.
85520         (_POSIX_NAME_MAX): Define if not defined.
85521         (MIN): New macro.
85522         (same_name): If file names are silently truncated, report
85523         that the file names are the same if they are the same after
85524         the silent truncation.
85525
85526         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85527         conversion function.
85528         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85529         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85530         longer needed.
85531
85532 2004-01-15  Jim Meyering  <jim@meyering.net>
85533
85534         Merge from coreutils.
85535
85536         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85537         if no library is required.
85538         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85539         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85540         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85541         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85542         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85543         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85544         value, $ac_cv_search_crypt, if it's "none required".
85545         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85546         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85547         not gl_FUNC_GETLOADAVG.
85548         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85549         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85550
85551 2004-01-15  Jim Meyering  <jim@meyering.net>
85552
85553         Merge from coreutils.
85554
85555         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85556         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85557         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85558
85559         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85560         optional configure-time default.
85561
85562         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85563
85564         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85565
85566 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85567
85568         Merge from coreutils.
85569
85570         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85571         value, $ac_cv_search_nanosleep, if it's "none required".
85572
85573 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85574
85575         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85576         with like-named macro in fnmatch.c.
85577         (EXT): Use an internal constant instead.
85578
85579         Merge fnmatch patches from glibc.
85580         * lib/fnmatch.c (mbsinit): Remove define.
85581         Add libc_hidden_ver (__fnmatch, fnmatch).
85582         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85583         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85584
85585 2004-01-14  Karl Berry  <karl@gnu.org>
85586
85587         * config/install-sh: update from automake.
85588
85589 2004-01-13  Karl Berry  <karl@gnu.org>
85590
85591         * config/install-sh: update from automake.
85592
85593 2004-01-09  Karl Berry  <karl@gnu.org>
85594
85595         * config/install-sh: update from automake.
85596
85597 2004-01-05  Karl Berry  <karl@gnu.org>
85598
85599         * config/config.{sub,guess}: update from config.
85600
85601 2003-12-31  Karl Berry  <karl@gnu.org>
85602
85603         * config/depcomp: update from automake.
85604
85605 2003-12-14  Karl Berry  <karl@gnu.org>
85606
85607         * lib/config.charset: update from gettext-runtime.
85608
85609 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85610
85611         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85612         Bug reported by Alfred M. Szmidt.
85613
85614 2003-12-03  Bruno Haible  <bruno@clisp.org>
85615
85616         * m4/gettext.m4: Upgrade from gettext-0.13.
85617         * m4/po.m4: Upgrade from gettext-0.13.
85618         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85619         * m4/intmax.m4: New file, from gettext-0.13.
85620         * m4/printf-posix.m4: New file, from gettext-0.13.
85621
85622 2003-11-29  Karl Berry  <karl@gnu.org>
85623
85624         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85625
85626 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85627             Bruno Haible  <bruno@clisp.org>
85628
85629         * lib/printf-parse.h: Don't include sys/types.h.
85630         (ARG_NONE): New macro.
85631         (char_directive): Change type of *arg_index fields to size_t.
85632         * lib/printf-parse.c: Don't include sys/types.h.
85633         (SSIZE_MAX): Remove macro.
85634         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85635         Remove unnecessary overflow check.
85636         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85637         fields.
85638
85639 2003-11-25  Bruno Haible  <bruno@clisp.org>
85640
85641         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85642
85643 2003-11-25  Bruno Haible  <bruno@clisp.org>
85644
85645         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85646         gt_TYPE_SSIZE_T.
85647
85648 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85649
85650         * modules/alloca: Remove dependency on xalloc.
85651
85652 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85653
85654         * lib/alloca.c: Remove dependency on xalloc module.
85655         (xalloc_die): Remove.
85656         (memory_full) [!defined emacs]: New macro.
85657         [!defined emacs]: Don't include xalloc.h.
85658         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85659         address arithmetic overflows.  Change datatypes a bit to avoid
85660         unnecessary casts.
85661
85662 2003-11-22  Jim Meyering  <jim@meyering.net>
85663
85664         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85665         s/size/size_t/.
85666
85667 2003-11-21  Karl Berry  <karl@gnu.org>
85668
85669         * config/config.{sub,guess}: update from config.
85670
85671 2003-11-18  Karl Berry  <karl@gnu.org>
85672
85673         * config/config.{sub,guess}: update from config.
85674
85675         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85676
85677 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85678
85679         * README: Mention that S+T cannot overflow if S is the size of
85680         an existing object and T is sufficiently small.
85681
85682 2003-11-17  Jim Meyering  <jim@meyering.net>
85683
85684         On systems without utime and without a utimes function capable of
85685         dealing with a NULL struct utimbuf* argument, this utime replacement
85686         could -- in unusual circumstances -- leak a file descriptor.
85687         * lib/utime.c: Include <unistd.h> and <errno.h>.
85688         (utime_null): Be sure to close `fd' and to preserve errno.
85689         Reported by Geoff Collyer via Arnold Robbins.
85690
85691 2003-11-17  Bruno Haible  <bruno@clisp.org>
85692
85693         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85694         (Depends-on): Add xsize.
85695
85696 2003-11-17  Bruno Haible  <bruno@clisp.org>
85697
85698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85699
85700 2003-11-17  Bruno Haible  <bruno@clisp.org>
85701
85702         * lib/vasnprintf.c (alloca): Remove fallback definition.
85703         (freea): Remove definition.
85704         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85705         Reported by Paul Eggert.
85706
85707 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85708             Bruno Haible  <bruno@clisp.org>
85709
85710         Protect against address arithmetic overflow.
85711         * lib/printf-args.h: Include stddef.h.
85712         (arguments): Change type of field 'count' to size_t.
85713         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85714         'unsigned int' where appropriate.
85715         * lib/printf-parse.h: Include sys/types.h.
85716         (char_directive): Change type of *arg_index fields to ssize_t.
85717         (char_directives): Change type of fields 'count', max_*_length to
85718         size_t.
85719         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85720         (SSIZE_MAX): Define fallback value.
85721         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85722         instead of 'int' where appropriate. Check a_allocated, d_allocated
85723         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85724         * lib/vasnprintf.c: Include xsize.h.
85725         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85726         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85727         overflow. Avoid wraparound when converting a width or precision from
85728         decimal to binary.
85729
85730 2003-11-16  Bruno Haible  <bruno@clisp.org>
85731
85732         Update from GNU gettext.
85733         * lib/printf-parse.c: Generalize to it can be compiled for wide
85734         strings.
85735         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85736         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85737         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85738         SNPRINTF): New macros.
85739         Don't include <alloca.h> if the file is used inside libintl.
85740         (local_wcslen): New function, for Solaris 2.5.1.
85741         (VASNPRINTF): Use it instead of wcslen.
85742
85743 2003-11-16  Bruno Haible  <bruno@clisp.org>
85744
85745         * lib/xsize.h (xmax): New function.
85746         (xsum, xsum3, xsum4): Declare as "pure" functions.
85747
85748 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85749
85750         * modules/xalloc (Files): Undo latest change, since xalloc.h
85751         no longer needs SIZE_MAX or PTRDIFF_MAX.
85752
85753 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85754
85755         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85756         gl_PTRDIFF_MAX.
85757
85758 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85759
85760         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85761         "return", to pacify some unknown compiler.  Problem reported
85762         by Joerg Schilling.
85763
85764 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85765
85766         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85767         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85768         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85769         heuristic is just as accurate as far as we know, and it removes a
85770         dependency on size_max.m4 and ptrdiff_max.m4.
85771
85772 2003-11-11  Bruno Haible  <bruno@clisp.org>
85773
85774         * modules/xsize (Files): Add m4/size_max.m4.
85775         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85776
85777 2003-11-11  Bruno Haible  <bruno@clisp.org>
85778
85779         * m4/size_max.m4: New file.
85780         * m4/ptrdiff_max.m4: New file.
85781         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85782         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85783         (gl_XALLOC): Invoke it.
85784
85785 2003-11-11  Bruno Haible  <bruno@clisp.org>
85786
85787         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85788         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85789         defined.
85790
85791 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85792
85793         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85794         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85795         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85796         From Bruno Haible.
85797         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85798         not (size_t) -1, since it's defined here.
85799
85800 2003-11-09  Karl Berry  <karl@gnu.org>
85801
85802         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85803
85804 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85805
85806         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85807         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85808         Reject sizes of exactly SIZE_MAX bytes.
85809         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85810         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85811
85812 2003-11-05  Bruno Haible  <bruno@clisp.org>
85813
85814         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85815         SIZE_MAX defined in <limits.h> on Solaris.
85816
85817 2003-11-04  Jim Meyering  <jim@meyering.net>
85818
85819         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85820         variable names, rather than @VAR@.
85821         * modules/poll: Likewise.
85822
85823 2003-11-04  Bruno Haible  <bruno@clisp.org>
85824
85825         * modules/xsize: New file.
85826         * modules/linebreak: Depend on xsize.
85827         * MODULES.html.sh (func_all_modules): Add xsize.
85828
85829 2003-11-04  Bruno Haible  <bruno@clisp.org>
85830
85831         * m4/xsize.m4: New file.
85832
85833 2003-11-04  Bruno Haible  <bruno@clisp.org>
85834
85835         * lib/xsize.h: New file.
85836         * lib/linebreak.c: Include xsize.h.
85837         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85838         argument for overflow.
85839         Suggested by Paul Eggert.
85840
85841 2003-11-03  Karl Berry  <karl@gnu.org>
85842
85843         * config/config.{guess,sub}: update from config.
85844
85845 2003-11-03  Jim Meyering  <jim@meyering.net>
85846
85847         * modules/userspec (lib_SOURCES): Add userspec.h.
85848         (Include): Add "userspec.h".
85849         Improve description.
85850
85851 2003-11-03  Jim Meyering  <jim@meyering.net>
85852
85853         * lib/userspec.c: Include "userspec.h".
85854         * lib/userspec.h: New file.
85855
85856 2003-11-03  Bruno Haible  <bruno@clisp.org>
85857
85858         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85859
85860 2003-11-03  Bruno Haible  <bruno@clisp.org>
85861
85862         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85863         available, to avoid (extremely rare) race condition.
85864         Suggested by Paul Eggert.
85865
85866 2003-11-02  Karl Berry  <karl@gnu.org>
85867
85868         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85869
85870 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85871
85872         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85873         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85874         (read_filesystem_list): Set and use me_type_malloced.
85875         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85876         whatever the type happens to be), for brevity and consistency.
85877         Check for size calculation overflow on Alphas running OSF/1.
85878
85879 2003-10-31  Jim Meyering  <jim@meyering.net>
85880
85881         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85882
85883         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85884
85885 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85886             Bruno Haible  <bruno@clisp.org>
85887
85888         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85889         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85890
85891 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85892
85893         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85894         netbsd*-gnu*.  Suggested by Robert Millan.
85895
85896 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85897
85898         * modules/group-member: Depend on stdbool.
85899
85900 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85901
85902         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85903
85904 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85905
85906         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85907         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85908         after the 'gnu' in these cases.  This fixes some bugs in the
85909         previous change, and is based on suggestions by Robert Millan.
85910
85911 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85912
85913         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85914         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85915         no longer needed.
85916         * lib/quotearg.c (quotearg_n_options): Use it.
85917         * lib/group-member.c: Include <stdbool.h>.
85918         (free_group_info): Arg is now const *; don't free arg.
85919         (get_group_info): Now returns bool and accepts struct group_info *,
85920         rather than returning a malloc'ed struct group_info *.
85921         All uses changed.  Check for overflow in internal size calculation.
85922
85923         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85924         rather than xmalloc/xrealloc.
85925         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85926         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85927         conformance bug: the old code used a pointer after freeing the
85928         storage that it addressed.
85929         * lib/hash.c (hash_initialize): Simplify the code by using
85930         xalloc_oversized rather than doing it by hand.
85931         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85932         the buffer preserved.  Use free and xmalloc instead.
85933         * lib/quotearg.c (quotearg_n_options): Likewise.
85934         Use a simpler test for size overflow.  Don't use xalloc_oversized
85935         because unsigned int might be wider than size_t (!); this suggests
85936         that we should switch from unsigned int to size_t for slot numbers.
85937
85938 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85939
85940         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85941         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85942         NetBSD kernels.  Requested by Richard Stallman.
85943
85944 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85945
85946         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85947         to allocate the returned structure.  Do not allocate a subarray,
85948         as x2nrealloc will do that.
85949         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85950         instead of xnrealloc.
85951         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85952
85953 2003-10-27  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/stdbool_.h: Better support for BeOS.
85956
85957 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85958
85959         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85960         now uses inline.
85961
85962 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85963
85964         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85965         callers that want to do their own size-overflow checking.  Include
85966         <stdbool.h>, since xalloc_oversized returns bool.
85967         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85968         to use xalloc_oversized.
85969
85970         Add two functions x2realloc, x2nrealloc, for programs that grow
85971         arrays dynamically by doubling their sizes.
85972         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85973         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85974         New functions.
85975
85976         Port to C99 semantics for 'inline' of external functions.
85977         Bug reported by Bruno Haible.
85978         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85979         with the old contents of xnmalloc.
85980         (xnmalloc, xmalloc): Use it.
85981         (xnrealloc_inline): New static inline function,
85982         with the old contents of xnrealloc.
85983         (xnrealloc, xrealloc): Use it.
85984
85985         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85986         that.
85987
85988 2003-10-26  Karl Berry  <karl@gnu.org>
85989
85990         * config/srclist.txt (COPYING.DOC): no longer available from
85991         /gd/gnuorg; don't know where the ultimate source is.
85992
85993 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85994
85995         Fix several address-calculation bugs in the hash modules,
85996         plus some minor code cleanup.
85997
85998         * lib/hash.h: Include <stdbool.h>, for bool.
85999         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86000         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86001         hash_get_n_entries, hash_get_max_bucket_length,
86002         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86003         hash_rehash): Use size_t rather than unsigned.
86004         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86005         hash_get_n_buckets_used, hash_get_n_entries,
86006         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86007         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86008         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86009         Likewise.
86010         (SIZE_MAX): Define if not defined.
86011         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86012         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86013         hash_print):
86014         Use const * when possible.
86015         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86016         (check_tuning): Fix bug: if tuning parameters were very close to
86017         0 or 1, rounding errors could have caused subscript violations.
86018         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86019         (hash_initialize): Add 'fail:' label
86020         to free table and return NULL, and use it to simplify code.
86021         Use calloc rather than clearing the storage ourself.
86022         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86023         buffer size calculations.
86024         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86025         Include <stddef.h>, for size_t.
86026         * lib/hash-pjw.c (hash_pjw): Likewise.
86027         Switch to method described by Bruno Haible.
86028         Include <limits.h>, for CHAR_BIT.
86029         (SIZE_BITS): New macro.
86030
86031 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86032
86033         * m4/getline.m4 (AM_FUNC_GETLINE):
86034         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86035         hosts.  Problem reported by Derek Robert Price in
86036         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86037         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86038         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86039
86040 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86041
86042         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86043         ceiling the allocation at NMAX bytes rather than silently
86044         discarding input bytes before NMAX is reached.  This makes
86045         a difference only if NMAX exceeds SIZE_MAX / 2.
86046
86047         * lib/obstack.c: Merge from glibc.
86048         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86049         Add libc_hidden_def (_obstack_newchunk).
86050         (_obstack_free) [! defined _LIBC]: Remove.
86051         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86052         a clone of the function body.
86053         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86054         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86055
86056         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86057         glibc.
86058         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86059         arg to memcpy.
86060
86061         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86062         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86063         Don't use lvalue casts, as GCC plans to remove support for them
86064         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86065         was also present in the non-GCC version, indicating that this
86066         code had always been buggy and had never been widely used.
86067         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86068         Use the fast variant of each macro, rather than copying the
86069         definiens of the fast variant; that way, we'll be more likely to
86070         catch future bugs in the fast variants.
86071
86072 2003-10-20  Bruno Haible  <bruno@clisp.org>
86073
86074         * modules/wait-process: New file.
86075         * MODULES.html.sh (func_all_modules): Add wait-process.
86076
86077 2003-10-20  Bruno Haible  <bruno@clisp.org>
86078
86079         * m4/wait-process.m4: New file.
86080
86081 2003-10-20  Bruno Haible  <bruno@clisp.org>
86082
86083         * lib/wait-process.h: New file, from GNU gettext.
86084         * lib/wait-process.c: New file, from GNU gettext.
86085
86086 2003-10-19  Jim Meyering  <jim@meyering.net>
86087
86088         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86089         HPUX 10.20.
86090
86091 2003-10-18  Karl Berry  <karl@gnu.org>
86092
86093         * config/config.guess: update from config.
86094
86095 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86096
86097         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86098         (getgroups): First arg is int, not size_t.
86099         Don't let 'free' mangle errno.
86100
86101 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86102
86103         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86104
86105 2003-10-16  Karl Berry  <karl@gnu.org>
86106
86107         * config/config.{guess,sub}: update from config.
86108
86109 2003-10-16  Jim Meyering  <jim@meyering.net>
86110
86111         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86112         memcpy.
86113
86114 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86115
86116         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86117         (SIZE_MAX): Remove.
86118         (new_exclude, add_exclude_file): Initial size no longer needs to
86119         be a power of 2.
86120         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86121         our own address arithmetic overflow checking.
86122
86123         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86124         (fnmatch): Do not alloca more than 2000 wide characters;
86125         instead, use malloc for large buffers.
86126         Check for address arithmetic overflow, and return -1
86127         with errno set to ENOMEM in that case.
86128         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86129         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86130         instead, return -1.  Check for address arithmetic overflow.
86131
86132 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86133
86134         Handle invalid suffixes and overflow independently, so that
86135         callers can treat them independently as needed.  Fix some bugs in
86136         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86137         suffix for a human-readable blocksize.  The major caller-visible
86138         change is the addition of a new
86139         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86140         that both overflow and suffix chars were found.
86141
86142         * lib/human.c (humblock): Don't check separately for invalid suffix
86143         char; that is xstrtoumax's job (now that its bug is fixed).
86144         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86145         INTMAX_MAX]: New macros.
86146         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86147         TYPE_MAXIMUM): New macros.
86148         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86149         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86150         if overflow occurs, as it's what __strtol does and it's more useful
86151         in practice.
86152         (__xstrtol): If __strtol reports some error other than ERANGE,
86153         reflect it to the caller as LONGINT_INVALID.  If it reports
86154         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86155         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86156         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86157         value.
86158         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86159         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86160         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86161         [defined UINTMAX_MAX]: New macros.
86162
86163 2003-10-14  Bruno Haible  <bruno@clisp.org>
86164
86165         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86166
86167 2003-10-14  Bruno Haible  <bruno@clisp.org>
86168
86169         * m4/sig_atomic_t: New file, from GNU gettext.
86170         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86171
86172 2003-10-14  Bruno Haible  <bruno@clisp.org>
86173
86174         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86175         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86176         Also use volatile where needed.
86177
86178 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86179
86180         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86181         Change maintainer from Bruno Haible to 'all'.
86182
86183 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86184
86185         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86186
86187 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86188
86189         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86190         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86191         and define in terms of the other primitives.
86192         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86193         (SIZE_MAX): Define if not already defined.
86194         (array_size_overflow): New function.
86195         (xalloc_die): Abort instead of exiting if 'error' returns.
86196         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86197         (xmalloc, xrealloc): Use them.
86198         (xcalloc): Check for address arithmetic overflow.
86199         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86200         a bit faster than strcpy.
86201
86202 2003-10-10  Simon Josefsson  <jas@extundo.com>
86203
86204         * modules/argp (Depends-on): Add restrict and strcase.
86205
86206 2003-10-10  Simon Josefsson  <jas@extundo.com>
86207
86208         * m4/argp.m4: Add AC_C_INLINE.
86209
86210 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86211
86212         Merge getpass from libc, plus a few fixes.
86213
86214         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86215         Include <stdbool.h>.
86216         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86217         __fsetlocking to empty.
86218         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86219         do include <bits/libc-lock.h>.
86220         Do not include <fcntl.h>; not needed.
86221         [_LIBC]: Include <wchar.h>.
86222         (NOTCANCEL_MODE): New macro.
86223         (flockfile, funlockfile) [_LIBC]: New macros.
86224         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86225         [!_LIBC]: New macros.
86226         (call_fclose): New function.
86227         (getpass): Use it.  Save tty stream separately; this simplifies the
86228         code and makes it more reliable if stdin happens to equal stdout.
86229         Invoke __fsetlocking on tty.
86230         Handle thread cancellation if needed.
86231         Namespace cleanup (use __tcgetattr, __getline).
86232         Use bool for Booleans.
86233         [USE_IN_LIBIO]: Handle wide streams.
86234         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86235         stream might go where.
86236
86237         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86238         doesn't have to include <stdio.h> before us.
86239         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86240         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86241         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86242         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86243         if not declared, so that we can use getpass.c code from libc without
86244         rewriting it.
86245         (flockfile, ftrylockfile, funlockfile): New macros.
86246
86247 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86248
86249         * modules/getpass: Depend on stdbool.
86250
86251 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86252
86253         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86254
86255 2003-10-07  Karl Berry  <karl@gnu.org>
86256
86257         * config/config.{guess,sub}: update from config.
86258
86259 2003-10-06  Jim Meyering  <jim@meyering.net>
86260             Bruno Haible  <bruno@clisp.org>
86261
86262         This lets translators provide better translations for the
86263         "Written by ..." part of --version output.
86264         * lib/version-etc.h: Include stdarg.h.
86265         (version_etc_copyright): Declare as readonly.
86266         (version_etc): Make this function variadic with a NULL-terminated list
86267         of author name strings.
86268         (version_etc_va): New declaration.
86269         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86270         (version_etc_copyright): Declare as readonly.
86271         (version_etc_va): New function. Provide a different translatable string
86272         for each possible number of authors < 10. Abbreviate when there are 10
86273         authors or more.
86274         (version_etc): Make this function variadic. Call version_etc_va.
86275         Suggestion from Gary V. Vaughan.
86276
86277         * lib/long-options.h (parse_long_options): Change prototype: the
86278         authors string is moved to the end and becomes variadic.
86279         * lib/long-options.c: Include stdarg.h.
86280         (parse_long_options): Make this function variadic, too.
86281         Call version_etc_va, not version_etc.
86282
86283 2003-10-06  Bruno Haible  <bruno@clisp.org>
86284
86285         * modules/version-etc-2: Remove file.
86286         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86287
86288 2003-10-06  Bruno Haible  <bruno@clisp.org>
86289
86290         * modules/fatal-signal: New file.
86291         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86292
86293 2003-10-06  Bruno Haible  <bruno@clisp.org>
86294
86295         * m4/fatal-signal.m4: New file.
86296         * m4/signalblocking.m4: New file, from GNU gettext.
86297
86298 2003-10-06  Bruno Haible  <bruno@clisp.org>
86299
86300         * lib/version-etc-2.h: Remove file.
86301         * lib/version-etc-2.c: Remove file.
86302
86303 2003-10-06  Bruno Haible  <bruno@clisp.org>
86304
86305         * lib/fatal-signal.h: New file, from GNU gettext.
86306         * lib/fatal-signal.c: New file, from GNU gettext.
86307
86308 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86309
86310         * README: Rework advice for preventing empty .o files.
86311         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86312         not <sys/types.h>.
86313
86314 2003-10-04  Karl Berry  <karl@gnu.org>
86315
86316         * lib/argp*: update from libc.
86317
86318 2003-10-04  Karl Berry  <karl@gnu.org>
86319
86320         * config/config.{guess,sub}: update from config.
86321
86322 2003-10-02  Bruno Haible  <bruno@clisp.org>
86323
86324         * modules/lchown (Include): Add lchown.h.
86325         * modules/time_r (Include): Use "..." syntax.
86326         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86327
86328 2003-10-01  Simon Josefsson  <jas@extundo.com>
86329
86330         * MODULES.html.sh (func_all_modules): Move gethostname from section
86331         'based on' to section 'lacking' POSIX:2001.
86332
86333 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86334
86335         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86336         to output mode on the same stream.
86337
86338 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86339
86340         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86341         Fix arg typo in previous patch.
86342
86343 2003-09-28  Jim Meyering  <jim@meyering.net>
86344
86345         * lib/error.c: Correct cpp indentation.
86346
86347 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86348
86349         * modules/free: New file.
86350
86351 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86352
86353         * m4/free.m4: New file.
86354
86355 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86356
86357         * lib/minmax.h (MIN, MAX)
86358         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86359         Omit the special code that used __typeof__, since we worry that
86360         it could be more trouble than it's worth.  See:
86361         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86362         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86363
86364         * lib/free.c: New file.
86365
86366 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86367
86368         Trivial fixes to Makefile.am parts of module listings.
86369         * modules/strstr: Append strstr.h to lib_SOURCES.
86370         * modules/strcase: Likewise, for strcase.h.
86371
86372 2003-09-27  Karl Berry  <karl@gnu.org>
86373
86374         * config/mkinstalldirs: update from automake.
86375
86376 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86377
86378         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86379         (error_tail): Do not loop, reallocating temporary buffer, since
86380         the output cannot contain more wide characters than the input
86381         contains bytes, the size must be big enough already.  This avoids
86382         one potential size overflow calculation.  Check for size overflow
86383         when calculating temporary buffer size.  Free temporary buffer
86384         when done, if it was allocated with malloc; this plugs a memory
86385         leak.  Remove casts from void * to pointers, that are no longer
86386         needed now that we're assuming C89 or better.
86387
86388         Merge error changes from glibc.
86389
86390         * lib/error.c, error.h: Update copyright notice header to match glibc.
86391         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86392         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86393         Disable cancellation while printing error.
86394         * lib/error.h: Prepend __ to parameter names.
86395
86396 2003-09-26  Jim Meyering  <jim@meyering.net>
86397
86398         * lib/error.c (error_tail): Move some declarations
86399         into inner scope where the local variables are used.
86400
86401 2003-09-26  Bruno Haible  <bruno@clisp.org>
86402
86403         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86404         stpncpy().
86405         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86406
86407 2003-09-26  Bruno Haible  <bruno@clisp.org>
86408
86409         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86410         (stpncpy): Define as alias for gnu_stpncpy.
86411         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86412
86413 2003-09-25  Simon Josefsson  <jas@extundo.com>
86414
86415         * lib/xgetdomainname.h: New file.
86416         * lib/xgetdomainname.c: New file.
86417
86418 2003-09-25  Simon Josefsson  <jas@extundo.com>
86419             Bruno Haible  <bruno@clisp.org>
86420
86421         * modules/getdomainname: New file.
86422         * modules/xgetdomainname: New file.
86423         * MODULES.html.sh (func_all_modules): Add getdomainname,
86424         xgetdomainname.
86425
86426 2003-09-25  Simon Josefsson  <jas@extundo.com>
86427             Bruno Haible  <bruno@clisp.org>
86428
86429         * m4/getdomainname.m4: New file.
86430
86431 2003-09-25  Simon Josefsson  <jas@extundo.com>
86432             Bruno Haible  <bruno@clisp.org>
86433
86434         * lib/getdomainname.h: New file.
86435         * lib/getdomainname.c: New file.
86436
86437 2003-09-25  Karl Berry  <karl@gnu.org>
86438
86439         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86440
86441 2003-09-25  Karl Berry  <karl@gnu.org>
86442
86443         * config/install-sh: update from automake.
86444
86445 2003-09-25  Bruno Haible  <bruno@clisp.org>
86446
86447         * modules/version-etc-2: New file, from modules/version-etc with
86448         modifications.
86449         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86450
86451 2003-09-25  Bruno Haible  <bruno@clisp.org>
86452
86453         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86454         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86455
86456 2003-09-24  Simon Josefsson  <jas@extundo.com>
86457
86458         * modules/xgethostname: Add xgethostname.h.
86459
86460 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86461
86462         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86463         the buffer associated with the argument.  Bug reported by
86464         Simon Josefsson.
86465
86466 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86467
86468         * README: Document assumptions that 'int' is at least 32 bits
86469         wide, that integer arithmetic is 2's complement without overflow,
86470         that there are no holes in integer values, that adding sizes of
86471         two nonoverlapping objects can't overflow, and that all-bits-zero
86472         yields scalar zero.  Fix spelling and capitalization typos.
86473
86474 2003-09-19  Karl Berry  <karl@gnu.org>
86475
86476         * lib/argp.h: update from libc.
86477
86478 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86479
86480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86481         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86482         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86483
86484 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86485
86486         * gnulib-tool: Use "test -h", not "test -L", for portability
86487         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86488         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86489         (sed_extract_prog): Issue s commands one-by-one, rather than
86490         using \| in one s command.
86491
86492 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86493
86494         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86495         input error, instead of returning NULL the next time we are called
86496         (and therefore losing track of errno).
86497
86498 2003-09-16  Bruno Haible  <bruno@clisp.org>
86499
86500         * gnulib-tool (func_create_testdir): Warn about duplicated
86501         dependencies.
86502
86503 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86504
86505         * modules/argmatch, modules/fatal, modules/obstack,
86506         modules/xalloc, modules/xgethostname: Sort dependencies by
86507         importance, not alphabetically.
86508
86509 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86512         fails, so that the caller gets the proper errno.
86513
86514         * lib/readutmp.c (read_utmp): Likewise.
86515         Check for fstat error.  Close stream and free storage
86516         when failing.
86517
86518 2003-09-14  Karl Berry  <karl@gnu.org>
86519
86520         * config/srclist.txt (strdup.c): disable for c89 changes.
86521
86522 2003-09-14  Jim Meyering  <jim@meyering.net>
86523
86524         * lib/getloadavg.c: Correct cpp indentation.
86525         * lib/strdup.c: Likewise.
86526         * lib/vasnprintf.c: Likewise.
86527
86528 2003-09-14  Bruno Haible  <bruno@clisp.org>
86529
86530         * modules/fwriteerror: New file.
86531         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86532
86533 2003-09-14  Bruno Haible  <bruno@clisp.org>
86534
86535         * lib/fwriteerror.h: New file.
86536         * lib/fwriteerror.c: New file.
86537
86538 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86539
86540         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86541         modules/xgethostname, modules/xalloc: Depend on exit.
86542
86543 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86544
86545         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86546
86547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86548         and AC_MINIX, too, so that their extensions are available.
86549
86550         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86551         This macro has been superseded by gl_BACKUPFILE.
86552
86553         More patches to assume C89 or better.
86554
86555         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86556
86557         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86558         unconditionally.
86559         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86560         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86561         Include <string.h>, <stdlib.h> unconditionally.
86562         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86563         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86564         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86565         headers or for string.h.
86566         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86567         or strtoul.
86568
86569         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86570         headers.
86571         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86572         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86573         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86574         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86575         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86576         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86577         memcpy, memset.
86578         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86579         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86580         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86581         strtol.
86582         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86583         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86584         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86585         strtoul.
86586
86587 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86588
86589         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86590         * lib/obstack.c [!defined _LIBC]: Likewise.
86591         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86592         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86593         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86594
86595         More changes to assume C89 or better.
86596
86597         * lib/error.c (error_tail): Assume vprintf.
86598
86599         * lib/argmatch.c (getenv): Remove decl.
86600         * lib/progreloc.c (get_full_program_name): Define via prototype.
86601         * lib/setenv.c (clearenv): Likewise.
86602         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86603         needed.
86604         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86605         (malloc, memcpy): Remove decls.
86606         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86607         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86608         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86609         (memcpy): Remove macro.
86610         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86611         (__P): Remove.  All uses removed.
86612         (PTR): Remove.  All uses changed to void *.
86613         (CHAR_BIT, NULL): Remove.
86614         (spaces, zeros, memset_space, memset_zero)
86615         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86616         Remove.
86617         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86618         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86619         Define with prototype.
86620         Remove now-unnecessary prototype decl.
86621         (extra_args_spec): Assume ANSI C.  All uses changed.
86622         (extra_args_spec_iso): Remove.
86623         (my_strftime, emacs_strftimeu): Define via prototype.
86624         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86625         unconditionally.
86626         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86627         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86628         (strtoul, strtol): Remove decls.
86629         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86630         LONG_MAX): Remove.
86631         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86632         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86633         (LOCALE_PARAM_PROTO): New macro.
86634         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86635         (INTERNAL (strtol), strtol): Define with a prototype.
86636         (PARAMS): Remove.  All uses removed.
86637         * lib/tempname.c: Include <string.h> unconditionally.
86638         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86639         * lib/xgethostname.c (main): Define with a prototype.
86640         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86641         Include <stdlib.h> unconditionally.
86642         (calloc, malloc, realloc, free): Remove decls.
86643         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86644         Include <stdlib.h> unconditionally.  Sort include file names.
86645         (strtod): Remove.
86646         (xstrtod): Define with a prototype.
86647         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86648         (strtol, strtoul): Remove decls.
86649
86650 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86651
86652         More patches to assume C89 or better.
86653         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86654         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86655         string.h, memchr, STDC_HEADERS.
86656
86657 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86658
86659         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86660         Include <stdlib.h>, <string.h> unconditionally.
86661         Remove now-unnecessary cast to char *.
86662         * lib/strnlen.c: Include <string.h> unconditionally.
86663         * lib/yesno.c (yesno): Define with a prototype.
86664
86665 2003-09-11  Bruno Haible  <bruno@clisp.org>
86666
86667         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86668
86669 2003-09-10  Jim Meyering  <jim@meyering.net>
86670
86671         * lib/error.c: Correct indentation of cpp directives.
86672
86673 2003-09-10  Bruno Haible  <bruno@clisp.org>
86674
86675         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86676         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86677         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86678         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86679         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86680         <stdlib.h> and <string.h> checks.
86681         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86682         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86683
86684 2003-09-10  Bruno Haible  <bruno@clisp.org>
86685
86686         * lib/strcspn.c: Include <string.h> unconditionally.
86687         * lib/strpbrk.c: Include <string.h> unconditionally.
86688         * lib/strstr.c: Include <string.h> unconditionally.
86689         * lib/unicodeio.c: Include <string.h> unconditionally.
86690         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86691         * lib/unsetenv.c: Likewise.
86692         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86693         * lib/yesno.c: Include <stdlib.h> unconditionally.
86694         (rpmatch): Add prototype.
86695
86696 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86697
86698         More patches to assume C89 or better.
86699         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86700         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86701         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86702         or for string.h.
86703         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86704         stdlib.h.
86705         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86706         C headers.
86707         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86708         string.h.
86709         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86710         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86711         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86712         or for string.h.
86713         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86714         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86715         C headers.
86716         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86717         memcpy.
86718         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86719         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86720         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86721         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86722         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86723         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86724         string.h, free.
86725         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86726         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86727         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86728         C headers, or for string.h.
86729         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86730         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86731         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86732         headers, memory.h, stdlib.h, string.h, strings.h.
86733         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86734         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86735         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86736         strchr.
86737         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86738         headers, memory.h, string.h.
86739         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86740         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86741         free.
86742         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86743         headers.
86744         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86745         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86746         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86747         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86748         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86749
86750 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86751
86752         More K&R removal.
86753
86754         * lib/acosl.c (main): Use a prototype.
86755         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86756         tanl.c: Likewise.
86757
86758         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86759
86760         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86761         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86762         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86763         with a prototype.
86764         * lib/getopt.c (const): Remove macro.
86765         Include <string.h> unconditionally.
86766         (my_index): Remove; all uses changed to strchr.
86767         (strlen): Remove decl.
86768         (exchange): Remove forward decl; no longer needed.
86769         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86770         Define with prototype.
86771         * lib/getopt1.c (const): Remove macro.
86772         (getopt_long, getopt_long_only, main): Define with prototype.
86773
86774         * lib/getugroups.c: Include <string.h> unconditionally.
86775
86776         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86777         (getusershell, setusershell, endusershell, readname, main):
86778         Define with prototypes.
86779
86780         * lib/group-member.c: Include group-member.h first.
86781         Include <stdlib.h> unconditionally.
86782
86783         * lib/hard-locale.c: Include hard-locale.h first.
86784         Include <stdlib.h>, <string.h> unconditionally.
86785
86786         * lib/hash.c (free, malloc): Remove decls.
86787         Include <stdlib.h> unconditionally.
86788
86789         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86790         (getenv): Do not declare.
86791
86792         * lib/idcache.c: Include <string.h> unconditionally.
86793
86794         * lib/long-options.c: Include long-options.h first, to test interface.
86795         Include <stdlib.h> unconditionally.
86796
86797         * lib/makepath.c: Include makepath.h first, to test interface.
86798         Include <stdlib.h> and <string.h> unconditionally.
86799
86800         * lib/linebuffer.c: Include <stdlib.h>.
86801         (free): Remove decl.
86802
86803         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86804         stddef.h. rpl_malloc returns void *, not char *.
86805         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86806         prototype.
86807
86808         * lib/md5.h: Include <limits.h> unconditionally.
86809         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86810         (__P): Remove; all uses removed.
86811         * lib/md5.c: Include "md5.h" first.
86812         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86813         md5_buffer, md5_process_bytes, md5_process_block):
86814         Define with prototypes.
86815         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86816         * lib/sha.c: Include "sha.h" first.
86817         Include <stdlib.h>, <string.h> unconditionally.
86818
86819         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86820         * lib/memcmp.c (__ptr_t): Likewise.
86821         * lib/memrchr.c (__ptr_t): Likewise.
86822         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86823         Include <string.h> unconditionally.
86824         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86825         * lib/memchr.c: Include <stdlib.h> unconditionally.
86826         * lib/memchr.c (LONG_MAX): Remove.
86827         * lib/memrchr.c (LONG_MAX): Likewise.
86828         * lib/memchr.c (__memchr): Define via a prototype.
86829         * lib/memrchr.c (__memrchr): Likewise.
86830         * lib/memcmp.c (__P): Remove, and remove all uses.
86831         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86832         Remove forward decls; no longer needed.
86833         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86834         Use types required by C89 in prototype.
86835
86836         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86837         * lib/savedir.c: Likewise.
86838         * lib/mkdir.c (free): Remove decl.
86839         * lib/rmdir.c (rmdir): Define with a prototype.
86840         * lib/savedir.c: Include savedir.h first, to test interface.
86841
86842         * lib/mktime.c (STDC_HEADERS): Remove.
86843         Include <stdlib.h>, <string.h> unconditionally.
86844
86845         * lib/modechange.c: Include <stdlib.h> unconditionally.
86846         (malloc): Remove decl.
86847
86848         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86849         (free): Remove decl.
86850
86851         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86852         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86853         (This type really should be intptr_t, but that's a C99ism.)
86854         (_obstack_memcpy): Remove: all uses changed to memcpy.
86855         Include <string.h> unconditionally.
86856         (struct obstack): Assume __STDC__ for types of members
86857         chunkfun, freefun, extra_arg.
86858         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86859         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86860         obstack_begin, obstack_specify_allocation,
86861         obstack_specify_allocation_with_arg, obstack_chunkfun,
86862         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86863         Remove unprototyped decls and the macros that use them.
86864         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86865         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86866         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86867         (defined __STDC__ && __STDC__)]:
86868         Remove nonprototyped code.
86869         Include <stdlib.h> unconditionally.
86870         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86871         _obstack_allocated_p, _obstack_free, obstack_free,
86872         _obstack_memory_used, print_and_abort):
86873         Define using prototypes.
86874         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86875         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86876         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86877         obstack_next_free, obstack_object_size, obstack_room) [0]:
86878         Remove unused, unprototyped code.
86879
86880         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86881
86882         * lib/physmem.c (physmem_total, physmem_available, main): Define
86883         with prototypes.
86884
86885         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86886         (main): Define with a prototype.
86887
86888         * lib/posixver.c (getenv): Remove decl.
86889
86890         * lib/putenv.c (malloc): Returns void *, not char *.
86891         Include <string.h> unconditionally.
86892         (strchr, memcpy, NULL): Do not define.
86893
86894         * lib/readtokens.c: Include readtokens.h first, to test interface.
86895         Include <stdlib.h>, <string.h> unconditionally.
86896         (init_tokenbuffer): Define with a prototype.
86897
86898         * lib/regex.c (PARAMS): Remove.  All uses removed.
86899         All uses of _RE_ARGS removed, too.
86900         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86901         unconditionally.
86902         (bzero): Assume memset exists.
86903         (memcmp, memcpy, NULL): Remove.
86904         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86905         char, or assignments to local vars of type signed char.
86906         (init_syntax_once, PREFIX(extract_number_and_incr),
86907         PREFIX(print_partial_compiled_pattern),
86908         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86909         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86910         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86911         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86912         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86913         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86914         wcs_compile_range, byte_compile_range, truncate_wchar,
86915         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86916         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86917         count_mbs_length, wcs_re_match_2_internal,
86918         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86919         PREFIX(alt_match_null_string_p),
86920         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86921         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86922         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86923         now-unnecessary declaration, if any.
86924         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86925         regcomp, regexec):
86926         Remove now-unnecessary casts among pointer types.
86927         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86928
86929         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86930         (free): Remove decl.
86931
86932         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86933
86934         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86935         (free): Remove decl.
86936
86937         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86938         * lib/xgetcwd.c: Likewise.
86939
86940         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86941         (free): Remove decl.
86942
86943         * lib/strchrnul.c (strchrnul): Define with a prototype.
86944         Fix bug: c_in was not converted to char before searching.
86945
86946         The following changes are not K&R related:
86947
86948         * lib/group-member.h: Include <sys/types.h>, so that this file is
86949         self-contained.
86950         * lib/makepath.h: Likewise.
86951
86952         * lib/getusershell.c (readname, default_index, line_size, readname):
86953         Use size_t, not int, for sizes.
86954         (readname): If the size overflows, report an error instead of
86955         looping forever.
86956
86957 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86958
86959         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86960         libc.
86961
86962 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86963
86964         * README: New section: portability guidelines.
86965
86966 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86967
86968         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86969         C89 spec.
86970
86971 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86972
86973         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86974
86975 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86976
86977         Assume C89 or better; remove K&R cruft.
86978         A few of these changes were first proposed by Derek Robert Price
86979         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86980
86981         * lib/addext.c: Include <string.h> unconditionally.
86982         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86983         Don't declare getenv or malloc.
86984
86985         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86986         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86987         (NULL): Remove.
86988         (find_stack_direction, alloca): Use prototypes.
86989
86990         * lib/atexit.c (atexit): Define using a prototype.
86991
86992         * lib/basename.c, dirname.c, stripslash.c:
86993         Include <string.h> unconditionally.
86994
86995         * lib/bcopy.c: Include <stddef.h>.
86996         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86997
86998         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86999
87000         * lib/error.h (error, error_at_line, error_print_progname)
87001         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87002         * lib/error.c: Include error.h first, to check interface.
87003         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87004         (VA_START): Remove; all uses changeed to va_start.
87005         (exit, strerror): Remove decls.
87006         (error_print_progname): Prototype uncondionally.
87007         Don't include <errno.h>; no longer needed.
87008         (private_strerror): Remove.
87009         (error_tail): Always define.
87010         (error, error_at_line): Assume C89 or better; always use prototypes.
87011         * lib/fatal.c: Include "fatal.h" first, to test interface.
87012         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87013         (VA_START): Remove; all uses changed to va_start.
87014         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87015         this case.
87016         (exit): Remove decl.
87017         (fatal): Prototype unconditionally.  Assume va_start works.
87018         Abort at end, to pacify gcc.
87019
87020         * lib/euidaccess.c (main): Define with a prototype.
87021
87022         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87023
87024         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87025
87026         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87027         prototypes.
87028         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87029         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87030         (getenv): Remove decl.
87031         (fnmatch): Define using a prototype.
87032         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87033         (FCT): Define using a prototype.
87034
87035         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87036
87037         * lib/gethostname.c: Include <stddef.h>.
87038         (gethostname): Define with prototype.  Length is size_t, not int.
87039
87040 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87041
87042         Assume C89 or better; remove K&R cruft.
87043         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87044         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87045         string.h, getenv, malloc.
87046         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87047         headers.
87048         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87049         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87050         do not check for strerror.
87051         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87052         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87053         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87054         do not check for doprnt or vprintf.
87055         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87056         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87057
87058 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87059
87060         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87061         getversion.c should have been removed then, but was accidentally
87062         preserved.
87063
87064         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87065         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87066
87067 2003-09-08  Karl Berry  <karl@gnu.org>
87068
87069         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87070                 config, forget about prep.
87071
87072         * config/depcomp, missing: update from automake.
87073
87074 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87075
87076         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87077         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87078
87079 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87080
87081         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87082         copy_tm_result.  Bug reported by Simon Josefsson in
87083         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87084
87085 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87086
87087         * m4/time_r.m4: New file.
87088         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87089         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87090         is. Check for timegm declaration.
87091         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87092         Do not check for gmtime_r.
87093         Replace mktime if __mktime_internal does not exist and if mktime
87094         hasn't been replaced already.
87095
87096 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87097
87098         * lib/time_r.c, lib/time_r.h: New files.
87099
87100         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87101         __localtime_r.
87102         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87103         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87104
87105         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87106         __gmtime_r.
87107         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87108         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87109         Include <time_r.h>.
87110
87111         * lib/timegm.c: Switch to glibc implementation, with the following
87112         changes:
87113         [defined HAVE_CONFIG_H]: Include <config.h>.
87114         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87115         (__mktime_internal) [!defined _LIBC]: New decl.
87116         (__gmtime_r) [!defined _LIBC]: New macro and function.
87117         (timegm): Use a prototype, since gnulib assumes C89.
87118         Do not bother declaring tmp to be const, as it's not really usefu.
87119         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87120         (timegm): Declare only if HAVE_DECL_TIMEGM.
87121
87122 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87123
87124         * MODULES.html.sh (func_all_modules): Add time_r.
87125         * modules/time_r: New file.
87126         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87127         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87128
87129 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87130
87131         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87132         Bug reported by Lute Kamstra in
87133         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87134
87135         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87136         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87137         course with correspondingly smaller numbers for tomorrow and
87138         yesterday.  From Tadayoshi Funaba.  Originally installed into
87139         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87140         coreutils merge?).
87141
87142 2003-08-31  Simon Josefsson  <jas@extundo.com>
87143
87144         * modules/timegm: New file.
87145         * MODULES.html.sh (func_all_modules): Add timegm.
87146
87147 2003-08-31  Simon Josefsson  <jas@extundo.com>
87148
87149         * m4/timegm.m4: New file.
87150
87151 2003-08-31  Simon Josefsson  <jas@extundo.com>
87152
87153         * lib/timegm.h: New file.
87154         * lib/timegm.c: New file.  Based on
87155         wget-1.8.2/src/http.c:mktime_from_utc.
87156
87157 2003-08-31  Karl Berry  <karl@gnu.org>
87158
87159         * lib/argp.h: update from libc.
87160
87161 2003-08-28  Bruno Haible  <bruno@clisp.org>
87162
87163         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87164         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87165         followed by '#define fnmatch fnmatch_posix' gives an error.
87166
87167 2003-08-28  Bruno Haible  <bruno@clisp.org>
87168
87169         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87170         warning on QNX, which defines O_BINARY to 000000.
87171
87172 2003-08-27  Jim Meyering  <jim@meyering.net>
87173
87174         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87175         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87176         would fail after 32.  Reported by Danny Levinson.  Details here:
87177         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87178
87179 2003-08-24  Bruno Haible  <bruno@clisp.org>
87180
87181         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87182         MSVC7 <stdio.h> is included later.
87183
87184 2003-08-22  Simon Josefsson  <jas@extundo.com>
87185
87186         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87187
87188 2003-08-20  Karl Berry  <karl@gnu.org>
87189
87190         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87191
87192 2003-08-20  Bruno Haible  <bruno@clisp.org>
87193
87194         * modules/progname: New file.
87195         * MODULES.html.sh (func_all_modules): Add progname.
87196
87197 2003-08-20  Bruno Haible  <bruno@clisp.org>
87198
87199         * lib/progname.h: New file, from GNU gettext.
87200         * lib/progname.c: New file, from GNU gettext.
87201         * lib/progreloc.c: New file, from GNU gettext.
87202
87203 2003-08-19  Jim Meyering  <jim@meyering.net>
87204
87205         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87206         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87207
87208 2003-08-19  Bruno Haible  <bruno@clisp.org>
87209
87210         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87211         more.
87212
87213 2003-08-19  Bruno Haible  <bruno@clisp.org>
87214
87215         * lib/xstrdup.c: Assume <string.h> exists.
87216
87217 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87218
87219         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87220         in makefile rules.
87221
87222 2003-08-18  Jim Meyering  <jim@meyering.net>
87223
87224         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87225         * m4/lib-ld.m4: Likewise.
87226
87227 2003-08-18  Jim Meyering  <jim@meyering.net>
87228
87229         * lib/setenv.h: Indent nested cpp directive.
87230         * lib/vasnprintf.c: Remove trailing blanks.
87231
87232 2003-08-17  Simon Josefsson  <jas@extundo.com>
87233
87234         * modules/xstrndup: New file.
87235         * MODULES.html.sh (func_all_modules): Add xstrndup.
87236
87237 2003-08-17  Simon Josefsson  <jas@extundo.com>
87238
87239         * modules/argp: Fix autoconf macro name. Add more dependencies.
87240
87241 2003-08-17  Simon Josefsson  <jas@extundo.com>
87242
87243         * m4/xstrndup.m4: New file.
87244
87245 2003-08-17  Simon Josefsson  <jas@extundo.com>
87246
87247         * m4/argp.m4: New file.
87248
87249 2003-08-17  Simon Josefsson  <jas@extundo.com>
87250             Bruno Haible  <bruno@clisp.org>
87251
87252         * lib/xstrndup.h: New file.
87253         * lib/xstrndup.c: New file.
87254
87255 2003-08-17  Bruno Haible  <bruno@clisp.org>
87256
87257         * modules/strndup (Files, Include): Add lib/strndup.h.
87258
87259 2003-08-17  Bruno Haible  <bruno@clisp.org>
87260
87261         * modules/euidaccess (Files): Add lib/euidaccess.h.
87262
87263 2003-08-17  Bruno Haible  <bruno@clisp.org>
87264
87265         * lib/strndup.h: New file.
87266
87267 2003-08-17  Bruno Haible  <bruno@clisp.org>
87268
87269         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87270         like AC_GNU_SOURCE.
87271         * modules/extensions (configure.ac): Comment out the invocation of
87272         gl_USE_SYSTEM_EXTENSIONS.
87273
87274 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87275
87276         Merges from coreutils, etc.
87277         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87278         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87279         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87280         fixing a typo.
87281         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87282         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87283
87284 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87285
87286         Document merge from coreutils.
87287         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87288         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87289         * modules/utime: Add m4/utimes-null.m4.
87290
87291 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87292
87293         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87294         space, undoing this 2003-08-12 change:
87295         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87296
87297 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87298
87299         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87300         strtoul.c from libc, undoing this 2003-08-12 change:
87301         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87302
87303 2003-08-16  Jim Meyering  <jim@meyering.net>
87304
87305         Merges from coreutils.
87306         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87307         prefix.  Adjust cache variables similarly.  Create 500 rather than
87308         just 300 files, to exercise bug on Darwin6.5, too.
87309         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87310         $missing_dir.
87311         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87312         AM_SYS_POSIX_TERMIOS.
87313         Reported by mkc@mathdogs.com.
87314         Also change use of $am_cv_sys_posix_termios
87315         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87316         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87317         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87318         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87319         in /proc/mounts until it finds one with matching device number.  This
87320         is unnecessary when the FILE argument *is* a mount point.  No stat call
87321         is necessary in that case.  So, disable the statvfs-testing code on
87322         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87323         as RedHat bug# 84846.
87324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87325         to 1MB, so as not to render systems with no stack size limit (e.g.,
87326         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87327         Include <unistd.h>.  On some systems,
87328         it is required for the definition of _SC_PAGESIZE.
87329
87330 2003-08-16  Jim Meyering  <jim@meyering.net>
87331
87332         Merge from coreutils.
87333         * lib/xstrtoimax.c: #else #if -> #elif.
87334         * lib/xstrtoumax.c: Likewise.
87335
87336 2003-08-16  Jim Meyering  <jim@meyering.net>
87337
87338         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87339         * m4/utimes.m4: Removed.
87340         * m4/utimes-null.m4: Renamed from utimes.m4.
87341
87342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87343         to 1MB, so as not to render systems with no stack size limit (e.g.,
87344         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87345         Include <unistd.h>.  On some systems,
87346         it is required for the definition of _SC_PAGESIZE.
87347
87348 2003-08-16  Jim Meyering  <jim@meyering.net>
87349         and Paul Eggert  <eggert@cs.ucla.edu>
87350
87351         Merges from coreutils, etc.
87352
87353         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87354         using the latest version from cvs.  This avoids problems with #line
87355         directives using a vendor (Sun) compiler.
87356         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87357         Don't set GETGROUPS_LIB here; now it's
87358         done via getgroups.m4's wrapper function.
87359         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87360         rather than just in sh-util/configure.in, so that the
87361         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87362         same.
87363         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87364         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87365         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87366         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87367         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87368         Remove code that is now done by the newly-required macros.
87369         Append $(EXEEXT) to DF_PROG.
87370         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87371         Do not invoke or require the following here,
87372         since prereq.m4 or some gnulib .m4 now does this for us:
87373         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87374         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87375         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87376         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87377         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87378         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87379         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87380         AC_FUNC_OBSTACK.
87381         Do not replace the following functions, as this is now the job
87382         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87383         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87384         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87385         atexit getpass, strdup, getpagesize.
87386         Replace 'raise'.
87387         Do not check for the following functions, as this is now the job
87388         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87389         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87390         setregid.
87391         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87392         Check for sys/sysctl.h.
87393         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87394         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87395         of checking for ssize_t ourselves.
87396
87397         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87398         Require every macro that gnulib/modules/* suggests for us.
87399         (jm_PREREQ_ADDEXT): New macro.
87400         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87401         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87402
87403         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87404         (gl_PHYSMEM): Use it.
87405         Also check for `table' function.
87406         Check for new headers and functions.
87407         Add check for sys/sysmp.h.
87408         With suggestions from Kaveh Ghazi.
87409         Ignore headers that are present but cannot be compiled.  This
87410         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87411         C 5.4.
87412
87413 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87414
87415         Document merge from coreutils.
87416         * modules/userspec: Depend on posixver.
87417         * modules/strftime: Depend on tzset.
87418
87419 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87420
87421         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87422         rather than tab, after '#' in shell-script copyright notices.
87423         Suggested by Bruno Haible.
87424
87425 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87426
87427         * config/srclist-update: Use three spaces, rather than tab, after '#'
87428         in shell-script copyright notices.  Suggested by Bruno Haible.
87429         Remove unnecessary parenthesization in regular expression.
87430
87431 2003-08-15  Jim Meyering  <jim@meyering.net>
87432
87433         Merge from coreutils.
87434         * lib/xgethostname.c: Include <stdlib.h>.
87435         (xghostname): Don't exit for anything other than memory-related
87436         failure; just return NULL.
87437         * lib/userspec.c: Include "posixver.h".
87438         (parse_user_spec): Accept `.' as a separator only
87439         in pre-POSIX-200112 mode.
87440         * lib/strtoimax.c: Use #elif rather than #else #if.
87441         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87442         Remove function, now that we can rely on a working tzset function.
87443         [!_LIBC]: Ensure that the required autoconf test has been run.
87444         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87445         Use underlying_strftime for %r.
87446         * lib/sha.c: Merge in some clean-up and optimization changes from
87447         glibc.
87448         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87449         Ensure that it is a multiple of 64.
87450         Rearrange loop exit tests so as to avoid performing an
87451         additional fread after encountering an error or EOF.
87452         * lib/realloc.c: Update copyright date.
87453
87454 2003-08-15  Jim Meyering  <jim@meyering.net>
87455         and Paul Eggert  <eggert@twinsun.com>
87456
87457         Merge from coreutils.
87458         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87459         member but strut utmpx does not.  Needed for AIX 4.3.3.
87460         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87461
87462 2003-08-15  Jim Meyering  <jim@meyering.net>
87463         and Paul Eggert  <eggert@cs.ucla.edu>
87464
87465         Merges from coreutils, etc.
87466         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87467         Require gl_FUNC_TZSET_CLOBBER.
87468         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87469         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87470         members.
87471
87472 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87473
87474         Help the merge from coreutils.
87475         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87476         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87477         * m4/tzset.m4: Use it too.
87478
87479 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87480
87481         * modules/tzset: New file.
87482
87483 2003-08-14  Jim Meyering  <jim@meyering.net>
87484
87485         Merges from coreutils.
87486         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87487         variable names, rather than @FNMATCH_H@.
87488         * modules/alloca: Likewise for $(ALLOCA_H).
87489
87490         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87491         the three copies of the literal target, `fnmatch.h'.
87492         * modules/alloca (alloca.h): Likewise.
87493
87494 2003-08-14  Jim Meyering  <jim@meyering.net>
87495
87496         Merge from coreutils.
87497         * m4/tzset.m4: New file.
87498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87499         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87500         otherwise, AIX 5.1 systems would end up using the latter.
87501         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87502         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87503         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87504         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87505
87506 2003-08-14  Jim Meyering  <jim@meyering.net>
87507
87508         Merge from coreutils.
87509         * lib/obstack.h: Whitespace changes.
87510         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87511         and xcalloc return values.
87512         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87513         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87514         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87515         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87516         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87517         error from mntctl.
87518         Use mntctl's return value to drive the entry-processing loop, since
87519         we can't rely on the value of the vmt_length member in the last
87520         entry.  On some systems doing so could result in exhausting
87521         virtual memory.  Based in part on a patch from Mike Jetzer.
87522
87523 2003-08-14  Jim Meyering  <jim@meyering.net>
87524         and Paul Eggert  <eggert@twinsun.com>
87525
87526         Merges from coreutils, plus other fixes.
87527         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87528         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87529         for credits and details.  Thanks to Kaveh Ghazi for helping
87530         to keep these files in sync.
87531         (ARRAY_SIZE): Define it.
87532         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87533         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87534         (memcasecmp): Don't assume size_t fits in unsigned int.
87535         Remove casts and duplicate code.
87536         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87537         (memcpy): Remove definition.
87538         Merge in some clean-up and optimization changes from glibc.
87539         [BLOCKSIZE]: Move definition to top of file.
87540         Ensure that it is a multiple of 64.
87541         Rearrange loop exit tests so as to avoid performing an
87542         additional fread after encountering an error or EOF.
87543         * lib/md5.h (md5_uintptr): Define.
87544         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87545         return to the initial working directory.  Preserve errno
87546         for caller.
87547         * lib/idcache.c: Include "xalloc.h".
87548         (xmalloc, xrealloc): Remove decls.
87549         (getuser): Remove casts no longer required in C89.
87550         * lib/human.c: Include stdio.h, for sprintf.
87551         * lib/group-member.c: Include "xalloc.h".
87552         (xmalloc, xrealloc): Remove decls.
87553         (get_group_info): Remove casts no longer required in C89.
87554         * lib/getusershell.c (readname): Remove casts no longer required in
87555         C89.
87556         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87557         * lib/getline.c: Whitespace fix, from coreutils.
87558
87559 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87560
87561         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87562         Check for isascii.
87563
87564         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87565         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87566         Undo previous (whitespace-only) change.
87567
87568 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87569
87570         * lib/exclude.c: Include <ctype.h>
87571         (IN_CTYPE_DOMAIN): New macro.
87572         (is_space): New fn.
87573         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87574         and empty lines.
87575
87576         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87577         Undo previous (whitespace-only) change.
87578
87579 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87580
87581         * config/srclist-update: Change update back to the old behavior,
87582         leaving whitespace alone.  Use one 'sed' command rather than a
87583         pipeline.
87584         (fixlicense): Now a variable, not a function.
87585         (remove_trailing_blanks): Remove.
87586         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87587         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87588         Undo previous (whitespace-only) change.
87589
87590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87591
87592         Merge from coreutils.
87593         * modules/euidaccess: Add lib_SOURCES, include for new
87594         file euidaccess.h
87595
87596 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87597
87598         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87599         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87600         Normalize leading white space and remove trailing white space.
87601
87602         Merge from coreutils
87603         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87604
87605         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87606         0.12.1.  These files are now being upgraded automatically by
87607         ../config/srclist-update.
87608
87609 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87610
87611         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87612         Normalize leading white space and remove trailing white space.
87613         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87614         notice, as per ../config/srclist-update.
87615
87616         Merge from coreutils.
87617         * lib/euidaccess.h: New file.
87618         * lib/euidaccess.c: Include it.
87619         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87620         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87621         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87622
87623 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87624
87625         * config/srclist-update: Add copyright notice.
87626         (remove_id_lines, remove_trailing_blanks): New constants.
87627         (fixfile): Use them to normalize spacing a bit in copied files.
87628         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87629         Normalize leading white space and remove trailing white space.
87630
87631         * config/texinfo.tex: Sync with texinfo.
87632
87633         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87634         strtoul.c from libc, to merge coreutils whitespace changes.
87635
87636         * config/srclist.txt: Get the following m4 files from gettext:
87637         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87638         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87639         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87640         wint_t.m4.
87641
87642 2003-08-12  Karl Berry  <karl@gnu.org>
87643
87644         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87645         been made.
87646
87647 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87648
87649         * modules/gnu-source, m4/gnu-source.m4:
87650         Remove; we're assuming Autoconf 2.54 or later now.
87651         Suggested by Bruno Haible.
87652         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87653
87654 2003-08-11  Bruno Haible  <bruno@clisp.org>
87655
87656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87657
87658 2003-08-11  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87661         (vasnprintf): Use it instead of wcslen.
87662
87663 2003-08-11  Bruno Haible  <bruno@clisp.org>
87664
87665         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87666         value to ensure that _Bool promotes to int. Use #define for _Bool when
87667         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87668
87669 2003-08-10  Karl Berry  <karl@gnu.org>
87670
87671         * lib/regex.h: update from libc (whitespace fix).
87672
87673 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87674
87675         Merge some files from coreutils.  These changes were
87676         originally made by Jim Meyering.
87677         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87678         many older Unixes require this.
87679         * lib/alloca.c (alloca): Remove cast to argument of free;
87680         no longer needed in C89.
87681         * lib/alloca_.h, regex.h: Fix white space to match
87682         what GNU indent does.
87683
87684 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87685
87686         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87687         apparently Emacs's Unicode mode got confused before my 2003-08-05
87688         checkin.
87689
87690 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87691
87692         * m4/extensions.m4: New file.
87693         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87694         Require gl_USE_SYSTEM_EXTENSIONS.
87695         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87696         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87697
87698 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87699
87700         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87701         * modules/extensions, modules/gnu-source: New files.
87702         * modules/timespec, modules/unlocked-io: Depend on extensions.
87703
87704 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87705
87706         * modules/restrict: New file.
87707         * MODULES.html.sh (func_all_modules): Add restrict.
87708         * modules/regex: Depend on restrict.
87709
87710 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87711
87712         * m4/restrict.m4: New file.
87713         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87714
87715 2003-08-07  Bruno Haible  <bruno@clisp.org>
87716
87717         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87718         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87719
87720 2003-08-07  Bruno Haible  <bruno@clisp.org>
87721
87722         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87723         makes the module 'getndelim2' compatible with the module 'getline'.
87724
87725 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87726
87727         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87728         byte with "\201" to avoid glitches when editing that source file
87729         with multi-gnome-terminal.
87730
87731 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87732
87733         * lib/bumpalloc.h: Remove.
87734
87735 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87736
87737         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87738         * modules/bumpalloc: Remove.
87739
87740 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87741
87742         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87743         GNU coding style.
87744
87745         Merge from coreutils.
87746         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87747         1. From glibc.
87748         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87749         from Karl Berry, implemented by Jim Meyering.
87750         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87751         from Dmitry V. Levin.
87752         Remove anachronistic cast of xrealloc.
87753         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87754         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87755         type. Otherwise, it wouldn't compile with at least /bin/cc on
87756         ymp-cray-unicos9.0.2.X.
87757         Combine two mostly-identical uses of alloca into one.
87758         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87759
87760 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87761
87762         [From Emacs.]
87763
87764         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87765         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87766         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87767         obsolete NLIST_NAME_UNION.
87768         [__GNU__]: Undef BSD and FSCALE.
87769         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87770
87771 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87772
87773         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87774         an enum type, so that it's guaranteed to promote to int.  See:
87775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87776
87777 2003-08-03  Karl Berry  <karl@gnu.org>
87778
87779         * config/depcomp: update from automake.
87780
87781 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87782
87783         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87784         (strerror): Don't assume that a printable int fits in 14 bytes.
87785
87786 2003-07-31  Bruno Haible  <bruno@clisp.org>
87787
87788         * modules/getpass-gnu: New file.
87789         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87790
87791 2003-07-31  Bruno Haible  <bruno@clisp.org>
87792
87793         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87794
87795 2003-07-24  Karl Berry  <karl@gnu.org>
87796
87797         * config/missing: update from automake.
87798
87799 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87800             Bruno Haible  <bruno@clisp.org>
87801
87802         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87803         * lib/getline.c (getline, getdelim): Likewise.
87804         Remove _GNU_SOURCE define; now it's defined in config.h through
87805         m4/getline.m4.
87806
87807 2003-07-23  Karl Berry  <karl@gnu.org>
87808
87809         * config/config.sub: update from prep.
87810
87811 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87812
87813         * modules/xalloc (Depends-on): Add exitfail.
87814         * modules/xmemcoll: Likewise.
87815
87816 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87817
87818         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87819         over-parenthesization in macros.
87820
87821         Sync with coreutils.
87822
87823         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87824         required by C99.
87825
87826         Use `exit_failure' for xalloc and xmemcoll instead of their own
87827         private exit-failure variables.
87828         * lib/xalloc.h (xalloc_exit_failure): Remove.
87829         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87830         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87831         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87832         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87833         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87834
87835 2003-07-20  Jim Meyering  <jim@meyering.net>
87836
87837         * modules/closeout (Depends-on): Add exitfail.
87838         Suggestion from Bruno Haible.
87839
87840 2003-07-19  Karl Berry  <karl@gnu.org>
87841
87842         * config/config.sub: update from prep.
87843
87844 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87845
87846         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87847         Remove.
87848         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87849         to test that it can stand by itself.  Include "exitfail.h".
87850         Clients should set exit_failure instead.
87851         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87852
87853 2003-07-18  Bruno Haible  <bruno@clisp.org>
87854
87855         * modules/getndelim2: New file.
87856         * modules/getline: Share files with module getndelim2.
87857         * modules/getnline: Depend on getndelim2 instead of sharing files with
87858         it. Add getnline.c to lib_SOURCES.
87859         * MODULES.html.sh (func_all_modules): Add getndelim2.
87860
87861 2003-07-18  Bruno Haible  <bruno@clisp.org>
87862
87863         * m4/getndelim2.m4: New file.
87864         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87865         invoke gl_PREREQ_GETNDELIM2.
87866         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87867         gl_PREREQ_GETNDELIM2.
87868         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87869         gl_GETNDELIM2.
87870
87871 2003-07-18  Bruno Haible  <bruno@clisp.org>
87872
87873         * lib/getndelim2.h: New file.
87874         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87875         getndelim2.h.
87876         (getndelim2): Make non-static. Change return type to ssize_t.
87877         * lib/getline.h: Change argument names.
87878         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87879         * lib/getnline.c: Include getndelim2.h.
87880
87881 2003-07-18  Andreas Schwab  <schwab@suse.de>
87882
87883         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87884
87885 2003-07-17  Karl Berry  <karl@gnu.org>
87886
87887         * config/config.sub: update from prep.
87888
87889 2003-07-17  Bruno Haible  <bruno@clisp.org>
87890
87891         * modules/getnline: New file.
87892         * modules/getline: Add lib/getndelim2.c to source file list.
87893         * MODULES.html.sh (func_all_modules): Add getnline.
87894
87895 2003-07-17  Bruno Haible  <bruno@clisp.org>
87896
87897         * m4/getnline.m4: New file.
87898
87899 2003-07-17  Bruno Haible  <bruno@clisp.org>
87900
87901         * m4/Makefile.am.in: Remove file.
87902         * m4/Makefile.am: Remove file.
87903         * m4/Makefile.in: Remove file.
87904
87905 2003-07-17  Bruno Haible  <bruno@clisp.org>
87906
87907         * lib/getnline.h: New file.
87908         * lib/getnline.c: New file.
87909         * lib/getndelim2.c: New file, extracted from getline.c.
87910         (getndelim2): Renamed from getdelim2, with added nmax argument.
87911         * lib/getline.c: Include getndelim2.c.
87912         (getdelim2): Moved out to getndelim2.c.
87913         (getline, getdelim): Update.
87914
87915 2003-07-17  Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/Makefile.am: Remove file.
87918         * lib/Makefile.in: Remove file.
87919
87920 2003-07-17  Bruno Haible  <bruno@clisp.org>
87921
87922         * configure.in: Remove file.
87923         * Makefile.in: Remove file.
87924
87925 2003-07-17  Bruno Haible  <bruno@clisp.org>
87926
87927         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87928
87929 2003-07-16  Karl Berry  <karl@gnu.org>
87930
87931         * config/srclist-update: was running fixlicense twice, which caused
87932                 texinfo.tex to be nullified for some reason.  Simplify,
87933                 $gplsrc is no longer needed as far as I can see?
87934
87935 2003-07-16  Jim Meyering  <jim@meyering.net>
87936
87937         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87938
87939 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87940
87941         * config/srclist.txt: Get the following files from gettext-runtime/intl
87942         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87943         ref-del.sin.  From Bruno Haible.
87944         * config/srclist-update (fixfile): Change grep pattern again, since the
87945         previous fix didn't work (there was another trailing $).  Use
87946         '[$]' to escape the $s.
87947
87948 2003-07-15  Karl Berry  <karl@gnu.org>
87949
87950         * lib/vasnprintf.c: update from gettext.
87951
87952 2003-07-15  Karl Berry  <karl@gnu.org>
87953
87954         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87955         gets expanded when surrounded by '$'.
87956
87957 2003-07-15  Jim Meyering  <jim@meyering.net>
87958
87959         * modules/save-cwd: Don't depend on error.  From Derek Price.
87960
87961 2003-07-15  Jim Meyering  <jim@meyering.net>
87962
87963         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87964
87965 2003-07-14  Simon Josefsson  <jas@extundo.com>
87966
87967         * modules/mempcpy: New file.
87968         * MODULES.html.sh (func_all_modules): Add mempcpy.
87969
87970 2003-07-14  Simon Josefsson  <jas@extundo.com>
87971
87972         * m4/mempcpy.m4: New file.
87973
87974 2003-07-14  Simon Josefsson  <jas@extundo.com>
87975
87976         * lib/mempcpy.h: New file.
87977         * lib/mempcpy.c: New file.
87978
87979 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87980
87981         * modules/getdate, modules/posixtm: Depend on mktime.
87982
87983 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87984
87985         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87986         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87987         unicodeio.c, unicodeio.h, unlocked-io.h:
87988         Switch from LGPL to GPL.
87989
87990 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87991
87992         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87993         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87994         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87995         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87996         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87997         updated automatically by ../config/srclist-update.  This changes
87998         their license from LPGL to GPL.
87999
88000 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88001
88002         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88003         assumed to refer to the root of the most recent stable gettext version.
88004         * config/srclistvars.sh: Add defaults for eggert.
88005         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88006         Match "This program" as well as "The program".  This is needed
88007         for gettext.
88008
88009 2003-07-14  Jim Meyering  <jim@meyering.net>
88010
88011         Don't emit diagnostics.  Let callers do that.
88012         * lib/save-cwd.c: Don't include "error.h".
88013         (save_cwd): Don't call error.  Ensure that errno is valid
88014         when returning nonzero.
88015
88016         * lib/save-cwd.h (restore_cwd): Update prototype.
88017         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88018         Simplify.  Don't call error upon failure.  Let callers do that.
88019         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88020         when auditing is enabled.  But don't bother updating the #if.
88021
88022 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88023
88024         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88025         it breaks C++ compilation.
88026         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88027
88028 2003-07-10  Simon Josefsson  <jas@extundo.com>
88029
88030         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88031
88032 2003-07-10  Jim Meyering  <jim@meyering.net>
88033
88034         * m4/clock_time.m4: Remove trailing blank.
88035         * m4/intmax_t.m4: Likewise.
88036
88037 2003-07-10  Jim Meyering  <jim@meyering.net>
88038
88039         * lib/vasnprintf.c: Remove trailing blanks.
88040         Make cpp indentation consistent.
88041
88042 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88043
88044         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88045         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88046         Switch from LGPL to GPL.
88047
88048 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88049
88050         * config/srclist.txt: Sort sublists.  Add
88051         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88052         that differ from gnulib for one reason or another; we'd like this list
88053         to be smaller but for now let's document what we have.
88054
88055 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88056
88057         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88058         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88059         and sweeter "eval x=$x".
88060         * config/srclist.txt: Get lib/argp* from glibc.
88061
88062 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88063
88064         * lib/mktime.c: Fix some boundary cases and remove need for floating
88065         point.
88066
88067         Issue a compile-time diagnostic if time_t is floating point, or if
88068         two's complement arithmetic is not in effect, or if arithmetic
88069         right shift does not propagate the sign.  These assumptions were
88070         all in the original code but they weren't checked.
88071
88072         (TIME_T_MIDPOINT, verify): New macros.
88073         (__isleap): Remove; it has integer overflow problems.
88074         (leapyear): New function, without those problems.
88075         (ydhms_tm_diff): Remove; splitting into two parts.
88076         (ydhms_diff): New function, containing the arithmetic part of
88077         the old ydhms_tm_diff function.  Issue a compile-time
88078         diagnostic if we are not using C99 integer division.
88079         Avoid casts when possible.
88080         (guess_time_tm): New function, containing the checking part of
88081         the old ydhms_tm_diff function.  Return the new value, rather than
88082         the difference between it and the old.  Accept a new argument T
88083         so that *T specifies the old value.  Check for overflow in the result.
88084
88085         (__mktime_internal): Use a time_t offset, not a long int offset.
88086         This undoes the 2003-06-04 change, which is no longer needed now
88087         that we have better overflow checking.
88088         (localtime_offset): Likewise.
88089
88090         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88091         and long are 64-bit but int is only 32-bit.
88092         (ydhms_diff): Use long int to store year1 and yday1.
88093         Issue a compile-time diagnostic if long int is not wide enough.
88094
88095         (__mktime_internal): Use long int to store adjusted year and yday.
88096         Use plain C rather than preprocessor commands, if that doesn't
88097         affect efficiency.
88098         Check for overflow (and try to repair) after each probe
88099         rather than checking only at the very end.  This avoids some bugs
88100         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88101         does not equal GMT offset at maximum time).
88102         Use integer to check for overflow rather than floating point; this
88103         is more portable to non-IEEE hosts, and is a tad faster.
88104         When we detect that we are oscillating between two values,
88105         don't check whether tm_isdst has the requested value, since
88106         we already know the answer.  When tm_isdst has the wrong value,
88107         use a different heuristic to find the right one, based on the
88108         extreme values actually observed in practice in tz2003a,
88109         rather than the (overly optimistic) "previous 3 calendar quarters".
88110
88111         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88112         "T const" to accommodate glibc style.
88113         (check_result): Use less-confusing report format.  "long" -> "long int.
88114         (main): Likewise.
88115         Don't loop if the iteration overflows time_t.
88116         Allow a negative step in the iteration.
88117
88118 2003-07-06  Karl Berry  <karl@gnu.org>
88119
88120         * config/depcomp: update from automake.
88121         * config/config.sub: update from prep.
88122
88123 2003-07-03  Karl Berry  <karl@gnu.org>
88124
88125         * config/config.guess: update from prep.
88126
88127 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88128
88129         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88130         xreadlink.c now includes it unconditionally.
88131
88132 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88133
88134         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88135         having it depend on HAVE_SYS_TYPES_H.
88136
88137 2003-07-01  Bruno Haible  <bruno@clisp.org>
88138
88139         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88140         <sys/types.h> should be sufficient.
88141         Reported by Paul Eggert.
88142
88143 2003-06-26  Karl Berry  <karl@gnu.org>
88144
88145         * config/depcomp: update from automake.
88146
88147 2003-06-26  Bruno Haible  <bruno@clisp.org>
88148
88149         * modules/human: Depend on module stdbool.
88150
88151 2003-06-25  Bruno Haible  <bruno@clisp.org>
88152
88153         * modules/readlink: New file.
88154         * modules/xreadlink: Depend on it.
88155         * MODULES.html.sh (func_all_modules): Add readlink.
88156
88157 2003-06-25  Bruno Haible  <bruno@clisp.org>
88158
88159         * m4/readlink.m4: New file.
88160
88161 2003-06-25  Bruno Haible  <bruno@clisp.org>
88162
88163         * lib/readlink.c: New file.
88164
88165 2003-06-22  Karl Berry  <karl@gnu.org>
88166
88167         * config/srclist.txt: update mkinstalldirs from automake.
88168         * config/mkinstalldirs: update.
88169
88170 2003-06-22  Bruno Haible  <bruno@clisp.org>
88171
88172         Portability to mingw32.
88173         * m4/ssize_t.m4: New file, from GNU gettext.
88174         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88175         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88176
88177 2003-06-22  Bruno Haible  <bruno@clisp.org>
88178
88179         * modules/safe-read: Add m4/ssize_t.m4.
88180         * modules/xreadlink: Add m4/ssize_t.m4.
88181
88182 2003-06-20  Bruno Haible  <bruno@clisp.org>
88183
88184         Assume C89, so PARAMS isn't needed.
88185         * lib/unicodeio.h (PARAMS): Remove.
88186         * lib/unicodeio.c: Don't use PARAMS.
88187
88188 2003-06-18  Karl Berry  <karl@gnu.org>
88189
88190         * config/config.{guess,sub}: update from prep.
88191
88192 2003-06-18  Jim Meyering  <jim@meyering.net>
88193
88194         Merge changes from coreutils.
88195         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88196         Remove explicit declarations of xmalloc and realloc.
88197         Include xalloc.h.
88198         (read_utmp): Remove anachronistic cast of xmalloc.
88199
88200 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88201
88202         Assume C89, so PARAMS isn't needed.
88203         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88204         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88205         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88206         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88207         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88208         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88209         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88210         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88211         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88212         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88213         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88214         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88215         no longer needed. Anyway, config.h should always be included before any
88216         other file.
88217
88218 2003-06-11  Simon Josefsson  <jas@extundo.com>
88219
88220         * modules/sysexits: New file.
88221         * MODULES.html.sh (func_all_modules): Add sysexits.
88222
88223 2003-06-11  Simon Josefsson  <jas@extundo.com>
88224
88225         * lib/sysexit_.h: New file.
88226
88227 2003-06-11  Derek Price  <derek@ximbiot.com>
88228
88229         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88230         necessary.
88231
88232 2003-06-11  Bruno Haible  <bruno@clisp.org>
88233
88234         * m4/sysexits.m4: New file.
88235
88236 2003-06-10  Simon Josefsson  <jas@extundo.com>
88237
88238         * lib/argp.h: New file, from glibc.
88239         * lib/argp-ba.c: New file, from glibc.
88240         * lib/argp-eexst.c: New file, from glibc.
88241         * lib/argp-fmtstream.c: New file, from glibc.
88242         * lib/argp-fmtstream.h: New file, from glibc.
88243         * lib/argp-fs-xinl.c: New file, from glibc.
88244         * lib/argp-help.c: New file, from glibc.
88245         * lib/argp-namefrob.h: New file, from glibc.
88246         * lib/argp-parse.c: New file, from glibc.
88247         * lib/argp-pv.c: New file, from glibc.
88248         * lib/argp-pvh.c: New file, from glibc.
88249         * lib/argp-xinl.c: New file, from glibc.
88250
88251 2003-06-10  Simon Josefsson  <jas@extundo.com>
88252
88253         * modules/strchrnul: New file.
88254
88255 2003-06-10  Simon Josefsson  <jas@extundo.com>
88256
88257         * modules/argp: New file.
88258
88259 2003-06-10  Simon Josefsson  <jas@extundo.com>
88260
88261         * m4/strchrnul.m4: New file.
88262
88263 2003-06-10  Simon Josefsson  <jas@extundo.com>
88264
88265         * lib/strchrnul.h: New file.
88266         * lib/strchrnul.c: New file.
88267
88268 2003-06-10  Bruno Haible  <bruno@clisp.org>
88269
88270         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88271
88272 2003-06-07  Karl Berry  <karl@gnu.org>
88273
88274         * config/config.{guess,sub}: update from prep.
88275
88276 2003-06-07  Jim Meyering  <jim@meyering.net>
88277
88278         * modules/strtod: Use $(...) notation, not @...@ for
88279         AC_REPLACE'd variables.
88280         * modules/localcharset: Likewise.
88281
88282 2003-06-07  Jim Meyering  <jim@meyering.net>
88283
88284         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88285         in place of my name in the copyright comment.
88286         Remove definition and uses of __P.
88287
88288         From coreutils.
88289         * lib/stat.c: Don't declare xmalloc explicitly.
88290         Instead, include "xalloc.h".
88291         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88292         xrealloc, and xcalloc return values.
88293         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88294         Improve comment.
88295         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88296
88297 2003-06-07  Bruno Haible  <bruno@clisp.org>
88298
88299         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88300         avoid AC_CONFIG_LINKS.
88301         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88302         fnmatch.h, to avoid AC_CONFIG_LINKS.
88303         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88304
88305 2003-06-07  Bruno Haible  <bruno@clisp.org>
88306
88307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88308         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88309         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88310         directory.
88311         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88312         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88313         directory.
88314
88315 2003-06-06  Jim Meyering  <jim@meyering.net>
88316
88317         Merge from coreutils.
88318         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88319         Consolidate declarations and initializations of *_base* locals.
88320
88321         Merge from coreutils.
88322         This avoids a core dump on systems without GNU putenv,
88323         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88324         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88325         (unsetenv): New static function, from GNU libc.
88326         (rpl_putenv): Use it.
88327
88328         * lib/modechange.c: Remove trailing blanks.
88329
88330         Merge from coreutils.
88331         * lib/fsusage.c: Remove declaration of statfs.
88332         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88333
88334         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88335
88336 2003-06-06  Jim Meyering  <jim@meyering.net>
88337
88338         * lib/stdbool_.h: Renamed from stdbool.h.in.
88339
88340 2003-06-06  Jim Meyering  <jim@meyering.net>
88341             Bruno Haible  <bruno@clisp.org>
88342
88343         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88344         Adjust Makefile.am snippet not to redirect directly to target.
88345         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88346
88347 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88348
88349         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88350         mismatch, look in future quarters as well as past.  This fixes a
88351         bug when processing fall-backwards gaps immediately after a long
88352         period of daylight-saving time.
88353
88354         * lib/mktime.c: Assume freestanding C89 or better.
88355         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88356         (__P): Remove; not used.
88357         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88358         (mktime, not_equal_tm, print_tm, check_result,
88359         main): Use prototypes.  Use const * where appropriate.
88360         (main): Fix typo in testing code that uncovered by above changes.
88361         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88362
88363 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88364
88365         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88366         locale.h, localeconv.  This merges changes from coreutils.
88367
88368         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88369         It can be removed after the next Autoconf is released.
88370         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88371         needed.
88372
88373 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88374
88375         * lib/mktime.c: Fix Debian bug 177940
88376         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88377         (localtime_offset): Now long int, not time_t, because we want it
88378         to be guaranteed to be signed.  All uses changed.
88379         (__mktime_internal): If overflow would occur when adding offset,
88380         don't add it.
88381
88382         Merge 'human' changes from coreutils.  Rewrite to support
88383         locale-specific notations like thousands separators.
88384         * lib/human.c: Simplify authorship notice.
88385         Include human.h immediately after config.h.
88386         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88387         <limits.h>: Do not include, since human.h does.
88388         (SIZE_MAX, UINTMAX_MAX): New macros.
88389         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88390         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88391         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88392         (power_letter): Renamed from suffixes.
88393         (generate_suffix_backwards): Remove.
88394         (adjust_value): Now takes int style (because of human.h changes)
88395         and long double value (for greater precision on some platforms).
88396         (group_number): New function.
88397         (human_readable): Use it.  Use integer options, not enum.
88398         Put the options before the sizes in the arg list.
88399         Support all the new options.
88400         The old human_readable function has been removed;
88401         use inttostr.h instead.
88402         (human_readable, default_block_size, humblock):
88403         Use uintmax_t, not int, for block sizes.
88404         (human_readable_inexact, block_size_types): Remove.
88405         (block_size_opts): New constant.
88406         (human_options): Renamed from human_block_size, with new signature
88407         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88408         * lib/human.h: Add copyright and authorship notice.
88409         Include <limits.h> and <stdbool.h> unconditionally.
88410         (PARAMS): Remove.  All uses removed.
88411         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88412         (enum human_inexact_style): Remove tag; now a nameless enum.
88413         (human_floor, human_ceiling, human_round_to_even): Now have
88414         values 2, 0, 1 rather than -1, 1, 0.
88415         (human_group_digits, human_suppress_point_zero, human_autoscale,
88416         human_base_1024, human_SI, human_B): New constants.
88417         (human_readable_inexact, human_block_size): Remove.
88418         (human_readable): Size args are now uintmax_t, not int.
88419         (human_options): New decl.
88420
88421         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88422         unnecessary now that we assume C89 or better.  This change
88423         imported from coreutils.
88424
88425         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88426         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88427         in the 2003-05-30 sync from glibc.
88428
88429         .h files should stand alone, but we shouldn't include <sys/types.h>
88430         if we can get away with just <stddef.h>.
88431
88432         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88433         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88434         rather than <sys/types.h>, as we merely need size_t.
88435         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88436         to get size_t.
88437         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88438         Include <stdio.h>, to get FILE.
88439         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88440         memcasecmp.h has included <stddef.h> and all we need is size_t.
88441         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88442         our interface, instead of including <sys/types.h>
88443
88444 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88445
88446         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88447         now, as glibc mktime is buggy on non-glibc systems.
88448
88449 2003-06-03  Karl Berry  <karl@gnu.org>
88450
88451         * config/config.sub: update from prep.
88452
88453 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88454
88455         [from coreutils]
88456         Fix some minor time-related bugs with POSIX time arguments.
88457         Some valid time stamps were being rejected (notably -1, and
88458         time stamps before 1900 on 64-bit hosts).  And some invalid
88459         time stamps were being accepted, e.g. September 31.
88460
88461         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88462         that we can return (time_t) -1 successfully.
88463         * lib/posixtm.c: Likewise.
88464         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88465         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88466         (t): Remove static var.
88467         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88468         of static var.  All uses changed.
88469         (year): Do not reject years before 1900; they can occur with
88470         64-bit time_t.
88471         (posix_time_parse): Do not check for out-of-range components;
88472         that is now the caller's responsibility, since our checks were
88473         only approximations.
88474         (posixtime): Use mktime to check for out-of-range components,
88475         since it knows them exactly.
88476         If mktime returns (time_t) -1, check whether an error actually occurred
88477         by invoking localtime on -1.
88478         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88479         posixtime failures better.
88480         Improve the test data (in comments only).
88481
88482 2003-06-02  Karl Berry  <karl@gnu.org>
88483
88484         * config/mkinstalldirs (version): new variable.
88485         (--version): new option.
88486         (usage): improve message.
88487
88488 2003-05-30  Karl Berry  <karl@gnu.org>
88489
88490         * lib/mktime.c: update from libc.
88491
88492 2003-05-30  Bruno Haible  <bruno@clisp.org>
88493
88494         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88495         * config/config.rpath: Upgrade to gettext-0.12.1.
88496
88497 2003-05-30  Bruno Haible  <bruno@clisp.org>
88498
88499         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88500         * m4/nls.m4: New file, from gettext-0.12.1.
88501         * m4/po.m4: New file, from gettext-0.12.1.
88502         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88503
88504 2003-05-30  Bruno Haible  <bruno@clisp.org>
88505
88506         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88507         * lib/localcharset.h: Likewise.
88508         * lib/localcharset.c: Likewise.
88509
88510 2003-05-29  Karl Berry  <karl@gnu.org>
88511
88512         * config/config.rpath: update from gettext.
88513
88514 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88515
88516         Assume the headers required for C89 freestanding compilers.
88517         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88518         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88519         * m4/human.m4 (gl_HUMAN): Likewise.
88520         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88521         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88522         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88523         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88524         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88525         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88526
88527 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88528
88529         Assume the headers required for C89 freestanding compilers.
88530         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88531         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88532         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88533         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88534         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88535         define, since <limits.h> is guaranteed to do that.
88536         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88537         * lib/exclude.c: Include <stdbool.h> unconditionally.
88538         * lib/tempname.c: Include <stddef.h> unconditionally.
88539         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88540         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88541         <stddef.h> does that.
88542         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88543         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88544         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88545         needed.
88546         * lib/xstrtol.c: Likewise.
88547         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88548         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88549
88550         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88551         warnings on some platforms.
88552
88553         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88554         arbitrarily.
88555
88556 2003-05-26  Jim Meyering  <jim@meyering.net>
88557
88558         Merge in a change from coreutils:
88559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88560         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88561         that condition, rather than `-1' which is slightly misleading.
88562         Change the name of the cache variable to have the gl_ prefix.
88563         Prompted by a patch from Richard Dawe for DJGPP.
88564
88565 2003-05-24  Karl Berry  <karl@gnu.org>
88566
88567         * config/config.guess: update from prep.
88568
88569 2003-05-22  Karl Berry  <karl@gnu.org>
88570
88571         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88572
88573 2003-05-20  Karl Berry  <karl@gnu.org>
88574
88575         * config/config.guess: update from prep.
88576
88577 2003-05-18  Karl Berry  <karl@gnu.org>
88578
88579         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88580         might actually be set by the user.
88581
88582         * config/depcomp, install-sh, mdate-sh: update from automake.
88583
88584 2003-05-17  Bruno Haible  <bruno@clisp.org>
88585
88586         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88587         invalid expansion for AC_EGREP_CPP.
88588         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88589         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88590         Suggested by Akim Demaille <akim@epita.fr> in
88591         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88592
88593 2003-05-12  Jim Meyering  <jim@meyering.net>
88594
88595         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88596         the space-padded-by-default conversion specifiers, %e, %k, %l.
88597
88598 2003-05-12  Bruno Haible  <bruno@clisp.org>
88599
88600         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88601         the string is longer than 4 KB.
88602
88603 2003-05-11  Karl Berry  <karl@gnu.org>
88604
88605         * config/config.{guess,sub}: update from prep.
88606
88607 2003-05-09  Bruno Haible  <bruno@clisp.org>
88608
88609         * modules/error: Add m4/strerror_r.m4 to file list.
88610
88611 2003-05-03  Bruno Haible  <bruno@clisp.org>
88612
88613         Upgrade to Unicode-4.0.
88614         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88615         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88616         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88617         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88618         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88619         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88620         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88621         Change width of U+E0100..U+E01EF from 1 to 0.
88622
88623 2003-04-25  Jim Meyering  <jim@meyering.net>
88624
88625         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88626         of type size_t, not int.
88627
88628 2003-04-25  Bruno Haible  <bruno@clisp.org>
88629
88630         * lib/copy-file.c: Include <stddef.h>, for size_t.
88631
88632 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88633
88634         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88635         code which expansion is under static control.  Patch imported from
88636         Akim Demaille's patch to Bison; see
88637         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88638
88639 2003-04-14  Bruno Haible  <bruno@clisp.org>
88640
88641         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88642
88643 2003-04-11  Jim Meyering  <jim@meyering.net>
88644
88645         Merge changes from Coreutils.
88646
88647         2003-03-22  Jim Meyering  <jim@meyering.net>
88648
88649         * lib/strftime.c (widen): Cast alloca return value to proper type.
88650
88651         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88652
88653         From GNU libc.
88654         * lib/strftime.c (my_strftime): Handle very large width
88655         specifications for numeric values correctly.  Improve checks for
88656         overflow.
88657
88658         2003-01-19  Jim Meyering  <jim@meyering.net>
88659
88660         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88661         definitions.
88662         (nl_get_alt_digit) [! defined my_strftime]: Define.
88663         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88664         _nl_get_alt_digit and _nl_get_walt_digit.
88665
88666         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88667         libc. These changes have no effect outside of _LIBC.
88668
88669 2003-04-10  Bruno Haible  <bruno@clisp.org>
88670
88671         * modules/findprog: New file.
88672         * MODULES.html.sh (func_all_modules): Add it.
88673
88674 2003-04-10  Bruno Haible  <bruno@clisp.org>
88675
88676         * m4/findprog.m4: New file.
88677         * m4/eaccess.m4: New file.
88678
88679 2003-04-10  Bruno Haible  <bruno@clisp.org>
88680
88681         * lib/findprog.h: New file, from GNU gettext.
88682         * lib/findprog.c: New file, from GNU gettext.
88683
88684 2003-04-05  Jim Meyering  <jim@meyering.net>
88685
88686         Merge changes from Coreutils.
88687
88688         * lib/exclude.h (PARAMS): Remove definition and uses.
88689         * lib/exclude.c: Remove uses of `PARAMS'.
88690
88691         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88692         Add test-cases for DOS filenames. Declare program_name.
88693         (main): Set up program_name.  Patch by Rich Dawe.
88694
88695         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88696         error from mntctl.
88697         Use mntctl's return value to drive the entry-processing loop, since
88698         we can't rely on the value of the vmt_length member in the last
88699         entry.  On some systems doing so could result in exhausting
88700         virtual memory.  Based in part on a patch from Mike Jetzer.
88701
88702 2003-04-04  Bruno Haible  <bruno@clisp.org>
88703
88704         * modules/linebreak: New file.
88705         * MODULES.html.sh (func_all_modules): Add it.
88706
88707 2003-04-04  Bruno Haible  <bruno@clisp.org>
88708
88709         * m4/linebreak.m4: New file.
88710
88711 2003-04-04  Bruno Haible  <bruno@clisp.org>
88712
88713         * lib/linebreak.h: New file, from GNU gettext.
88714         * lib/linebreak.c: New file, from GNU gettext with slight
88715         modifications.
88716         * lib/lbrkprop.h: New file, from GNU gettext.
88717
88718 2003-04-03  Bruno Haible  <bruno@clisp.org>
88719
88720         * modules/utf8-ucs4: New file.
88721         * modules/utf16-ucs4: New file.
88722         * modules/ucs4-utf8: New file.
88723         * modules/ucs4-utf16: New file.
88724         * MODULES.html.sh (func_all_modules): Add them.
88725
88726 2003-04-03  Bruno Haible  <bruno@clisp.org>
88727
88728         * m4/utf-ucs4.m4: New file.
88729         * m4/ucs4-utf.m4: New file.
88730
88731 2003-04-03  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/utf8-ucs4.h: New file, from GNU gettext.
88734         * lib/utf16-ucs4.h: New file, from GNU gettext.
88735         * lib/ucs4-utf8.h: New file, from GNU gettext.
88736         * lib/ucs4-utf16.h: New file, from GNU gettext.
88737
88738 2003-04-02  Bruno Haible  <bruno@clisp.org>
88739
88740         * modules/binary-io: New file.
88741         * MODULES.html.sh (func_all_modules): Add it.
88742
88743 2003-04-02  Bruno Haible  <bruno@clisp.org>
88744
88745         * lib/binary-io.h: New file, from GNU gettext.
88746
88747 2003-04-01  Bruno Haible  <bruno@clisp.org>
88748
88749         * modules/pathname: New file.
88750         * MODULES.html.sh (func_all_modules): Add it.
88751
88752 2003-04-01  Bruno Haible  <bruno@clisp.org>
88753
88754         * lib/pathname.h: New file, from GNU gettext.
88755         * lib/concatpath.c: New file, from GNU gettext.
88756
88757 2003-03-30  Bruno Haible  <bruno@clisp.org>
88758
88759         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88760
88761 2003-03-30  Bruno Haible  <bruno@clisp.org>
88762
88763         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88764         function chown() doesn't exist.
88765
88766 2003-03-28  Bruno Haible  <bruno@clisp.org>
88767
88768         * modules/copy-file: New file.
88769         * MODULES.html.sh (func_all_modules): Add it.
88770
88771 2003-03-28  Bruno Haible  <bruno@clisp.org>
88772
88773         * m4/copy-file.m4: New file.
88774
88775 2003-03-28  Bruno Haible  <bruno@clisp.org>
88776
88777         * lib/copy-file.h: New file, from GNU gettext.
88778         * lib/copy-file.c: New file, from GNU gettext.
88779
88780 2003-03-18  Jim Meyering  <jim@meyering.net>
88781
88782         * lib/quote.c (quote_n): Fix typo in comment.
88783
88784 2003-03-18  Bruno Haible  <bruno@clisp.org>
88785
88786         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88787         checking.
88788         * m4/onceonly_2_57.m4: Likewise.
88789
88790 2003-03-17  Bruno Haible  <bruno@clisp.org>
88791
88792         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88793         (m4_quote): Remove macro.
88794         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88795
88796 2003-03-14  Jim Meyering  <jim@meyering.net>
88797
88798         Merge changes from Coreutils.
88799         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88800         to be const, in order to avoid warnings.
88801         (obstack_room): Likewise.
88802         (obstack_empty_p): Likewise.
88803
88804 2003-03-14  Bruno Haible  <bruno@clisp.org>
88805
88806         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88807         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88808
88809 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88810
88811         Merge changes from Bison.
88812         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88813         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88814         when compiling Bison 1.875's `bitset bset = obstack_alloc
88815         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88816         * lib/hash.c: Include <stdbool.h> unconditionally.
88817
88818 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88819
88820         * m4/onceonly.m4 (m4_quote): New macro.
88821         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88822         Quote AC_FOREACH variable-expansions properly.
88823
88824 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88825
88826         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88827
88828 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88829
88830         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88831         Reported by Bruce Becker; see:
88832         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88833
88834 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88835             Bruno Haible  <bruno@clisp.org>
88836
88837         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88838         Reported by John Hughes, see
88839         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88840
88841 2003-02-20  Bruno Haible  <bruno@clisp.org>
88842
88843         * MODULES.html.sh (func_all_modules): Add poll.
88844
88845 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88846
88847         * modules/poll: New file.
88848
88849 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88850
88851         * lib/poll_.h: New file.
88852         * lib/poll.c: New file.
88853
88854 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88855
88856         * m4/poll.m4: New file.
88857
88858 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88859
88860         * modules/mathl: New file.
88861
88862 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88863
88864         * lib/mathl.h: New file.
88865         * lib/acosl.c: New file.
88866         * lib/asinl.c: New file.
88867         * lib/atanl.c: New file.
88868         * lib/ceill.c: New file.
88869         * lib/cosl.c: New file.
88870         * lib/expl.c: New file.
88871         * lib/floorl.c: New file.
88872         * lib/frexpl.c: New file.
88873         * lib/ldexpl.c: New file.
88874         * lib/logl.c: New file.
88875         * lib/sincosl.c: New file.
88876         * lib/sinl.c: New file.
88877         * lib/sqrtl.c: New file.
88878         * lib/tanl.c: New file.
88879         * lib/trigl.c: New file.
88880         * lib/trigl.h: New file.
88881
88882 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88883
88884         * m4/mathl.m4: New file.
88885
88886 2003-02-18  Bruno Haible  <bruno@clisp.org>
88887
88888         * MODULES.html.sh (func_all_modules): Add mathl.
88889
88890 2003-02-17  Bruno Haible  <bruno@clisp.org>
88891
88892         * modules/mkdtemp: New module.
88893         * MODULES.html.sh (func_all_modules): Add it.
88894
88895 2003-02-17  Bruno Haible  <bruno@clisp.org>
88896
88897         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88898
88899 2003-02-17  Bruno Haible  <bruno@clisp.org>
88900
88901         * lib/mkdtemp.h: New file, from GNU gettext.
88902         * lib/mkdtemp.c: New file, from GNU gettext.
88903
88904 2003-02-02  Jim Meyering  <jim@meyering.net>
88905
88906         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88907         e.g. glibc-2.2.93.
88908
88909 2003-01-31  Bruno Haible  <bruno@clisp.org>
88910
88911         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88912         'rpl_rename'.
88913         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88914         'rpl_strnlen'.
88915         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88916         'rpl_strtod'.
88917         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88918         'rpl_utime'.
88919
88920 2003-01-31  Bruno Haible  <bruno@clisp.org>
88921
88922         * lib/rename.c: #undef rename before defining rpl_rename.
88923         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88924
88925 2003-01-30  Bruno Haible  <bruno@clisp.org>
88926
88927         * modules/vasnprintf, modules/vasprintf: New modules.
88928         * MODULES.html.sh (func_all_modules): Add them.
88929
88930 2003-01-30  Bruno Haible  <bruno@clisp.org>
88931
88932         * m4/signed.m4: New file, from GNU gettext.
88933         * m4/longdouble.m4: New file, from GNU gettext.
88934         * m4/wchar_t.m4: New file, from GNU gettext.
88935         * m4/wint_t.m4: New file, from GNU gettext.
88936         * m4/vasnprintf.m4: New file.
88937         * m4/vasprintf.m4: New file.
88938
88939 2003-01-30  Bruno Haible  <bruno@clisp.org>
88940
88941         * lib/printf-args.h: New file, from GNU gettext.
88942         * lib/printf-args.c: New file, from GNU gettext.
88943         * lib/printf-parse.h: New file, from GNU gettext.
88944         * lib/printf-parse.c: New file, from GNU gettext.
88945         * lib/vasnprintf.h: New file, from GNU gettext.
88946         * lib/vasnprintf.c: New file, from GNU gettext.
88947         * lib/asnprintf.c: New file, from GNU gettext.
88948         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88949         * lib/vasprintf.c: New file, from GNU gettext.
88950         * lib/asprintf.c: New file, from GNU gettext.
88951
88952 2003-01-29  Bruno Haible  <bruno@clisp.org>
88953
88954         * modules/stpncpy: New module.
88955         * MODULES.html.sh (func_all_modules): Add it.
88956
88957 2003-01-29  Bruno Haible  <bruno@clisp.org>
88958
88959         * m4/stpncpy.m4: New file.
88960
88961 2003-01-29  Bruno Haible  <bruno@clisp.org>
88962
88963         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88964         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88965
88966 2003-01-28  Bruno Haible  <bruno@clisp.org>
88967
88968         * modules/c-ctype: New module.
88969         * MODULES.html.sh (func_all_modules): Add it.
88970
88971 2003-01-28  Bruno Haible  <bruno@clisp.org>
88972
88973         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88974         Paul Eggert.
88975         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88976         Paul Eggert.
88977
88978 2003-01-27  Bruno Haible  <bruno@clisp.org>
88979
88980         * modules/xsetenv: New module.
88981         * MODULES.html.sh (func_all_modules): Add it.
88982
88983 2003-01-27  Bruno Haible  <bruno@clisp.org>
88984
88985         * lib/xsetenv.h: New file, from GNU gettext.
88986         * lib/xsetenv.c: New file, from GNU gettext.
88987
88988 2003-01-23  Jim Meyering  <jim@meyering.net>
88989
88990         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88991         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88992
88993 2003-01-23  Bruno Haible  <bruno@clisp.org>
88994
88995         * modules/minmax: New module.
88996         * MODULES.html.sh (func_all_modules): Add it.
88997
88998 2003-01-23  Bruno Haible  <bruno@clisp.org>
88999
89000         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89001         Eggert.
89002
89003 2003-01-22  Bruno Haible  <bruno@clisp.org>
89004
89005         * modules/exit: New module.
89006         * MODULES.html.sh (func_all_modules): Add it.
89007
89008 2003-01-22  Bruno Haible  <bruno@clisp.org>
89009
89010         * lib/exit.h: New file, from GNU gettext.
89011
89012 2003-01-19  Bruno Haible  <bruno@clisp.org>
89013
89014         * gnulib-tool: Recognize option --extract-maintainer.
89015         (func_get_maintainer): New function.
89016         * modules/*: Add Maintainer entry.
89017
89018 2003-01-16  Jim Meyering  <jim@meyering.net>
89019
89020         * m4/regex.m4: The `regex' struct is both input and output.
89021         Initialize it before each use.  Patch by Tim Waugh.
89022
89023 2003-01-16  Bruno Haible  <bruno@clisp.org>
89024
89025         * MODULES.html.sh: Add a table of contents. Add the module name as
89026         leftmost column. Add hyperlinks.
89027
89028 2003-01-15  Bruno Haible  <bruno@clisp.org>
89029
89030         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89031
89032 2003-01-15  Bruno Haible  <bruno@clisp.org>
89033
89034         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89035         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89036         suffix.
89037
89038 2003-01-15  Bruno Haible  <bruno@clisp.org>
89039
89040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89041
89042 2003-01-15  Bruno Haible  <bruno@clisp.org>
89043
89044         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89045         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89046
89047 2003-01-14  Jim Meyering  <jim@meyering.net>
89048
89049         * lib/same.c (same_name): Tweak a comment.
89050
89051 2003-01-14  Bruno Haible  <bruno@clisp.org>
89052
89053         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89054         when a string comparison is sufficient.
89055
89056 2003-01-14  Bruno Haible  <bruno@clisp.org>
89057
89058         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89059         'unsigned int'.
89060
89061 2003-01-14  Bruno Haible  <bruno@clisp.org>
89062
89063         * lib/hash-pjw.c: Add comment about low quality of this function.
89064
89065 2003-01-13  Bruno Haible  <bruno@clisp.org>
89066
89067         * modules/stpcpy: Distribute lib/stpcpy.h.
89068         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89069
89070 2003-01-13  Bruno Haible  <bruno@clisp.org>
89071
89072         * modules/*: Add a description.
89073         * modules/strpbrk: Fix Makefile.am snippet.
89074         * modules/strtoimax: Fix dependencies.
89075         * modules/strtoumax: Likewise.
89076
89077 2003-01-13  Bruno Haible  <bruno@clisp.org>
89078
89079         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89080         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89081         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89082
89083 2003-01-13  Bruno Haible  <bruno@clisp.org>
89084
89085         * gnulib-tool (func_create_testdir): Store config/* files in the main
89086         directory.
89087         * config.rpath: Move to ...
89088         * config/config.rpath: ... here.
89089         * modules/gettext: Contains config/config.rpath, not config.rpath.
89090         * modules/iconv: Likewise.
89091
89092 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89093
89094         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89095         to avoid collisions with libcurses and libreadline.
89096
89097         * m4/getstr.m4: Remove.
89098         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89099
89100 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89101
89102         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89103         to avoid collisions with libcurses and libreadline.
89104
89105         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89106         * lib/getstr.h, getstr.c: Remove.
89107         * lib/getline.c: Include "getline.h", to check interface.
89108         Move body of old getstr.c here: this defines MIN_CHUNK and
89109         declares getdelim2, which is renamed from getstr.
89110         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89111
89112         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89113         All uses changed.
89114         * lib/linebuffer.h: Likewise.
89115         (readline): Remove backward-compatibility macro.
89116
89117 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89118
89119         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89120         to avoid collisions with libcurses and libreadline.
89121         * getstr: Remove.
89122         * MODULES.html.sh: Remove getstr.
89123         * modules/getline: Depend on unlocked-io, not getstr.
89124
89125 2003-01-12  Jim Meyering  <jim@meyering.net>
89126
89127         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89128
89129 2003-01-10  Bruno Haible  <bruno@clisp.org>
89130
89131         * modules/alloca: Change Makefile.am requirements. Simplify Include
89132         requirements. Add lib/alloca_.h to file list.
89133
89134 2003-01-10  Bruno Haible  <bruno@clisp.org>
89135
89136         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89137
89138 2003-01-10  Bruno Haible  <bruno@clisp.org>
89139
89140         * lib/alloca_.h: New file.
89141         * lib/getdate.y: Unconditionally include alloca.h.
89142         * lib/makepath.c: Likewise.
89143         * lib/setenv.c: Likewise.
89144         * lib/userspec.c: Likewise.
89145
89146 2003-01-09  Karl Berry  <karl@gnu.org>
89147
89148         * MODULES.html.sh: include `dirname $0` in PATH, to find
89149         gnulib-tool.
89150
89151 2003-01-09  Bruno Haible  <bruno@clisp.org>
89152
89153         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89154         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89155
89156 2003-01-09  Bruno Haible  <bruno@clisp.org>
89157
89158         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89159
89160 2003-01-09  Bruno Haible  <bruno@clisp.org>
89161
89162         * lib/stdbool.h.in: New file.
89163
89164 2003-01-09  Bruno Haible  <bruno@clisp.org>
89165
89166         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89167         * MODULES.html.sh: Likewise.
89168
89169 2003-01-08  Jim Meyering  <jim@meyering.net>
89170
89171         * lib/full-write.c: Undefine and define-away `const' after inclusion
89172         of errno.h, not before.  Suggestion from Bruno Haible.
89173
89174 2003-01-08  Bruno Haible  <bruno@clisp.org>
89175
89176         * modules/full-read: Depend on full-write.
89177
89178 2003-01-08  Bruno Haible  <bruno@clisp.org>
89179
89180         * lib/safe-read.c: Include specification header first, to ensure its
89181         selfcontainedness.
89182         * lib/full-write.c: Likewise.
89183
89184 2003-01-07  Jim Meyering  <jim@meyering.net>
89185
89186         * lib/full-write.c: Rework so that it may serve to define full_read,
89187         too.
89188         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89189
89190 2003-01-07  Bruno Haible  <bruno@clisp.org>
89191
89192         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89193         <inttypes.h>.
89194         * lib/xstrtol.h: Likewise.
89195         * lib/xstrtoimax.c: Likewise.
89196         * lib/xstrtoumax.c: Likewise.
89197         * lib/human.h: Likewise.
89198
89199         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89200         on systems that have <inttypes.h> but not <stdint.h>.
89201
89202 2003-01-07  Bruno Haible  <bruno@clisp.org>
89203
89204         * MODULES.html.sh: Add copyright notice.
89205         (missed_files): Omit CVS directory entries.
89206         (func_module): Make it work with sed-3.02.
89207         * MODULES.txt: Remove file.
89208
89209 2003-01-06  Jim Meyering  <jim@meyering.net>
89210
89211         * lib/version-etc.c: Update year in translatable copyright string.
89212
89213 2003-01-03  Karl Berry  <karl@gnu.org>
89214
89215         * config/config.{guess,sub}: update from prep.
89216
89217 2003-01-02  Karl Berry  <karl@gnu.org>
89218
89219         * doc/COPYING.DOC: belatedly updated to 1.2.
89220
89221 2003-01-01  Karl Berry  <karl@gnu.org>
89222
89223         * gnulib-tool (func_verify_module): report module name $module in
89224         error message, not $1.
89225         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89226         be created, only if it doesn't exist.
89227         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89228
89229 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89230
89231         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89232
89233 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89234
89235         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89236         memcmp if strcoll doesn't work.
89237
89238 2002-12-31  Bruno Haible  <bruno@clisp.org>
89239
89240         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89241         nonempty.
89242
89243 2002-12-31  Bruno Haible  <bruno@clisp.org>
89244
89245         * lib/memcoll.c (STRCOLL): New macro.
89246         (memcoll): Use it.
89247
89248 2002-12-31  Bruno Haible  <bruno@clisp.org>
89249
89250         * lib/localcharset.h: New file.
89251         * lib/localcharset.c: Include it.
89252         * lib/unicodeio.c: Likewise.
89253
89254 2002-12-31  Bruno Haible  <bruno@clisp.org>
89255
89256         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89257         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89258
89259 2002-12-31  Bruno Haible  <bruno@clisp.org>
89260
89261         * lib/getline.h: Include <stddef.h>, for size_t.
89262
89263         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89264         * lib/unicodeio.c: Don't include <stddef.h>.
89265
89266 2002-12-31  Bruno Haible  <bruno@clisp.org>
89267
89268         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89269         HAVE_TM_ZONE.
89270
89271 2002-12-24  Karl Berry  <karl@gnu.org>
89272
89273         * config/config.guess: update from prep.
89274
89275 2002-12-24  Bruno Haible  <bruno@clisp.org>
89276
89277         General infrasructure.
89278         * m4/README: Rewritten.
89279         * m4/onceonly.m4: New file.
89280         * m4/onceonly_2_57.m4: New file.
89281
89282         Module atexit.
89283         * m4/atexit.m4: New file.
89284
89285         Module strtod.
89286         * m4/strtod.m4: New file.
89287
89288         Module strtol.
89289         * m4/strtol.m4: New file.
89290
89291         Module strtoul.
89292         * m4/strtoul.m4: New file.
89293
89294         Module memchr.
89295         * m4/memchr.m4: New file.
89296
89297         Module memcmp.
89298         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89299         (jm_FUNC_MEMCMP): Invoke it.
89300
89301         Module memcpy.
89302         * m4/memcpy.m4: New file.
89303
89304         Module memmove.
89305         * m4/memmove.m4: New file.
89306
89307         Module memset.
89308         * m4/memset.m4: New file.
89309
89310         Module strcspn.
89311         * m4/strcspn.m4: New file.
89312
89313         Module strpbrk.
89314         * m4/strpbrk.m4: New file.
89315
89316         Module strstr.
89317         * m4/strstr.m4: New file.
89318
89319         Module strerror.
89320         * m4/strerror.m4: New file.
89321
89322         Module mktime.
89323         * m4/mktime.m4: Renamed from jm-mktime.m4.
89324         (gl_PREREQ_MKTIME): New macro.
89325         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89326
89327         Module malloc.
89328         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89329         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89330         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89331
89332         Module realloc.
89333         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89334         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89335         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89336
89337         Module strftime.
89338         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89339         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89340         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89341         gl_TM_GMTOFF.
89342         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89343
89344         Module xalloc.
89345         * m4/xalloc.m4: New file.
89346
89347         Module alloca.
89348         * m4/alloca.m4: New file.
89349
89350         Module putenv.
89351         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89352         (jm_FUNC_PUTENV): Invoke it.
89353
89354         Module setenv.
89355         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89356         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89357         when invoked twice.
89358         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89359         gt_FUNC_SETENV.
89360
89361         Module memrchr.
89362         * m4/memrchr.m4: New file.
89363
89364         Module stpcpy.
89365         * m4/stpcpy.m4: New file.
89366
89367         Module strcase.
89368         * m4/strcase.m4: New file.
89369
89370         Module strdup.
89371         * m4/strdup.m4: New file.
89372
89373         Module strnlen.
89374         * m4/strnlen.m4: New file.
89375
89376         Module strndup.
89377         * m4/strndup.m4: New file.
89378
89379         Module xstrtod.
89380         * m4/xstrtod.m4: New file.
89381
89382         Module xstrtol.
89383         * m4/xstrtol.m4: New file.
89384
89385         Module getdate.
89386         * m4/getdate.m4: New file.
89387
89388         Module unlocked-io.
89389         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89390         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89391         * m4/jm-glibc-io.m4n: Remove file.
89392
89393         Module long-options.
89394         * m4/long-options.m4: New file.
89395
89396         Module md5.
89397         * m4/md5.m4: New file.
89398
89399         Module sha.
89400         * m4/sha.m4: New file.
89401
89402         Module getstr.
89403         * m4/getstr.m4: New file.
89404
89405         Module getline.
89406         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89407         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89408         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89409         simply getline. Infoke gl_PREREQ_GETLINE.
89410
89411         Module obstack.
89412         * m4/obstack.m4: New file.
89413
89414         Module hash.
89415         * m4/hash.m4: New file.
89416
89417         Module readtokens.
89418         * m4/readtokens.m4: New file.
89419
89420         Module strverscmp.
89421         * m4/strverscmp.m4: New file.
89422
89423         Module stdbool.
89424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89425         OSF/1.
89426
89427         Module strtoll.
89428         * m4/strtoll.m4: New file.
89429
89430         Module strtoull.
89431         * m4/strtoull.m4: New file.
89432
89433         Module strtoimax.
89434         * m4/strtoimax.m4: New file.
89435
89436         Module strtoumax.
89437         * m4/strtoumax.m4: New file.
89438
89439         Module xstrtoimax.
89440         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89441         jm_AC_PREREQ_XSTRTOIMAX.
89442         Moved the strtol prerequisites to strtol.m4.
89443         Moved the strtoll prerequisites to strtoll.m4.
89444         Moved the strtoimax prerequisites to strtoimax.m4.
89445
89446         Module xstrtoumax.
89447         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89448         jm_AC_PREREQ_XSTRTOUMAX.
89449         Moved the strtoul prerequisites to strtoul.m4.
89450         Moved the strtoull prerequisites to strtoull.m4.
89451         Moved the strtoumax prerequisites to strtoumax.m4.
89452
89453         Module chown.
89454         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89455         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89456
89457         Module dup2.
89458         * m4/dup2.m4: New file.
89459
89460         Module ftruncate.
89461         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89462         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89463
89464         Module getgroups.
89465         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89466         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89467
89468         Module gettimeofday.
89469         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89470         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89471         gl_PREREQ_GETTIMEOFDAY.
89472
89473         Module mkdir.
89474         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89475         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89476
89477         Module mkstemp.
89478         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89479         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89480         jm_AC_TYPE_UINTMAX_T.
89481         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89482
89483         Module stat.
89484         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89485         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89486
89487         Module lstat.
89488         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89489         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89490
89491         Module timespec.
89492         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89493         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89494         * m4/st_mtim.m4: Indentation.
89495
89496         Module nanosleep.
89497         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89498         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89499         gl_PREREQ_NANOSLEEP.
89500
89501         Module regex.
89502         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89503         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89504         (gl_REGEX): New macro.
89505
89506         Module rename.
89507         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89508         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89509
89510         Module rmdir.
89511         * m4/rmdir.m4: New file.
89512
89513         Module utime.
89514         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89515         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89516         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89517
89518         Module dirname.
89519         * m4/dirname.m4: New file.
89520
89521         Module getopt.
89522         * m4/getopt.m4: New file.
89523
89524         Module unistd-safer.
89525         * m4/unistd-safer.m4: New file.
89526
89527         Module fnmatch.
89528         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89529         declaration.
89530         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89531         (gl_FUNC_FNMATCH_POSIX): New macro.
89532         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89533         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89534         simply fnmatch.
89535
89536         Module exclude.
89537         * m4/exclude.m4: New file.
89538
89539         Module human.
89540         * m4/human.m4: New file.
89541
89542         Module acl.
89543         * m4/acl.m4: Nop.
89544
89545         Module backupfile.
89546         * m4/backupfile.m4: New file.
89547         * m4/d-ino.m4: Indentation.
89548
89549         Module fsusage.
89550         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89551         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89552         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89553
89554         Module dirfd.
89555         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89556         requirements.
89557
89558         Module euidaccess.
89559         * m4/euidaccess.m4: New file.
89560
89561         Module file-type.
89562         * m4/file-type.m4: New file.
89563
89564         Module fileblocks.
89565         * m4/fileblocks.m4: New file.
89566
89567         Module filemode.
89568         * m4/filemode.m4: New file.
89569
89570         Module isdir.
89571         * m4/isdir.m4: New file.
89572
89573         Module lchown.
89574         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89575         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89576
89577         Module makepath.
89578         * m4/makepath.m4: New file.
89579
89580         Module modechange.
89581         * m4/modechange.m4: New file.
89582
89583         Module mountlist.
89584         * m4/mountlist.m4: New file.
89585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89586         Indentation.
89587
89588         Module path-concat.
89589         * m4/path-concat.m4: New file.
89590
89591         Module pathmax.
89592         * m4/pathmax.m4: New file.
89593
89594         Module same.
89595         * m4/same.m4: New file.
89596
89597         Module save-cwd.
89598         * m4/save-cwd.m4: New file.
89599
89600         Module savedir.
89601         * m4/savedir.m4: New file.
89602
89603         Module xgetcwd.
89604         * m4/xgetcwd.m4: New file.
89605         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89606
89607         Module xreadlink.
89608         * m4/xreadlink.m4: New file.
89609
89610         Module safe-read.
89611         * m4/safe-read.m4: New file.
89612
89613         Module safe-write.
89614         * m4/safe-write.m4: New file.
89615
89616         Module closeout.
89617         * m4/closeout.m4: New file.
89618
89619         Module stdio-safer.
89620         * m4/stdio-safer.m4: New file.
89621
89622         Module getpass.
89623         * m4/getpass.m4: New file.
89624
89625         Module getugroups.
89626         * m4/getugroups.m4: New file.
89627
89628         Module group-member.
89629         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89630         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89631
89632         Module idcache.
89633         * m4/idcache.m4: New file.
89634
89635         Module userspec.
89636         * m4/userspec.m4: New file.
89637
89638         Module gettime.
89639         * m4/clock_time.m4: New file.
89640         * m4/gettime.m4: New file.
89641
89642         Module settime.
89643         * m4/settime.m4: New file.
89644
89645         Module posixtm.
89646         * m4/posixtm.m4: New file.
89647
89648         Module gethostname.
89649         * m4/gethostname.m4: New file.
89650
89651         Module canon-host.
89652         * m4/canon-host.m4: New file.
89653
89654         Module gettext.
89655         * m4/codeset.m4: New file, from gettext-0.11.5.
89656         * m4/gettext.m4: New file, from gettext-0.11.5.
89657         * m4/glibc21.m4: New file, from gettext-0.11.5.
89658         * m4/iconv.m4: New file, from gettext-0.11.5.
89659         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89660         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89661         * m4/inttypes.m4: New file, from gettext-0.11.5.
89662         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89663         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89664         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89665         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89666         * m4/lib-link.m4: New file, from gettext-0.11.5.
89667         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89668         * m4/progtest.m4: New file, from gettext-0.11.5.
89669         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89670         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89671         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89672
89673         Module localcharset.
89674         * m4/localcharset.m4: New file.
89675
89676         Module hard-locale.
89677         * m4/hard-locale.m4: New file.
89678
89679         Module mbswidth.
89680         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89681         onceonly macros.
89682         * m4/mbrtowc.m4: Add comment.
89683
89684         Module memcasecmp.
89685         * m4/memcasecmp.m4: New file.
89686
89687         Module memcoll.
89688         * m4/memcoll.m4: New file.
89689
89690         Module unicodeio.
89691         * m4/unicodeio.m4: New file.
89692
89693         Module rpmatch.
89694         * m4/rpmatch.m4: New file.
89695
89696         Module yesno.
89697         * m4/yesno.m4: New file.
89698
89699         Module exitfail.
89700         * m4/exitfail.m4: New file.
89701
89702         Module c-stack.
89703         * m4/c-stack.m4 (gl_C_STACK): New macro.
89704         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89705
89706         Module error.
89707         * m4/error.m4 (gl_ERROR): New macro.
89708         (jm_PREREQ_ERROR): Use onceonly macros.
89709
89710         Module fatal.
89711         * m4/fatal.m4: New file.
89712
89713         Module getloadavg.
89714         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89715         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89716
89717         Module getpagesize.
89718         * m4/getpagesize.m4: New file.
89719
89720         Module getusershell.
89721         * m4/getusershell.m4: New file.
89722
89723         Module physmem.
89724         * m4/physmem.m4: New file.
89725
89726         Module posixver.
89727         * m4/posixver.m4: New file.
89728
89729         Module quotearg.
89730         * m4/quotearg.m4: New file.
89731
89732         Module quote.
89733         * m4/quote.m4: New file.
89734
89735         Module readutmp.
89736         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89737
89738         Module sig2str.
89739         * m4/sig2str.m4: New file.
89740
89741         Other.
89742         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89743         ulonglong.m4.
89744         * m4/intmax_t.m4: New file.
89745         * m4/d-type.m4: Indentation.
89746         * m4/jm-macros.m4: Update.
89747         * m4/prereq.m4 (jm_PREREQ): Update.
89748         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89749         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89750         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89751         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89752         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89753         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89754         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89755         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89756         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89757         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89758         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89759         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89760         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89761         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89762         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89763         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89764         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89765         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89766         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89767
89768 2002-12-24  Bruno Haible  <bruno@clisp.org>
89769
89770         * MODULES.txt: Update according to m4/ changes.
89771
89772         Module gettext.
89773         * config.rpath: New file, from gettext-0.11.5.
89774
89775         * modules/*: New module descriptions.
89776         * gnulib-tool: New file.
89777         * MODULES.html.sh: New file.
89778
89779 2002-12-21  Karl Berry  <karl@gnu.org>
89780
89781         * doc/fdl.texi: update to version 1.2.
89782
89783 2002-12-19  Karl Berry  <karl@gnu.org>
89784
89785         * config/config.guess: update from prep.
89786
89787 2002-12-18  Bruno Haible  <bruno@clisp.org>
89788
89789         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89790         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89791
89792 2002-12-17  Bruno Haible  <bruno@clisp.org>
89793
89794         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89795         stdlib.h, string.h.
89796
89797 2002-12-17  Bruno Haible  <bruno@clisp.org>
89798
89799         * lib/canon-host.c (strdup): Remove unused declaration.
89800
89801         * lib/fsusage.c: Include full_read.h.
89802         (get_fs_usage): Use full_read instead of safe_read.
89803
89804         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89805
89806 2002-12-12  Karl Berry  <karl@gnu.org>
89807
89808         * config/config.guess: update from prep.
89809
89810 2002-12-11  Bruno Haible  <bruno@clisp.org>
89811
89812         * m4/setenv.m4: New file, from gettext-0.11.5.
89813
89814 2002-12-11  Bruno Haible  <bruno@clisp.org>
89815
89816         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89817         not unsetenv().
89818         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89819         modifications:
89820
89821         2002-12-11  Bruno Haible  <bruno@clisp.org>
89822
89823                 * setenv.c (alloca): Fall back to malloc.
89824                 (freea): New macro.
89825                 (setenv): Use freea() to free memory allocated with alloca().
89826
89827         2002-11-13  Bruno Haible  <bruno@clisp.org>
89828
89829                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89830                 function declarations.
89831                 * unsetenv.c (unsetenv): Likewise.
89832
89833         2002-03-04  Bruno Haible  <bruno@clisp.org>
89834
89835                 Portability to AIX 4.3.3.
89836                 * unsetenv.c: New file, extracted from setenv.c.
89837                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89838
89839         2001-12-20  Bruno Haible  <bruno@clisp.org>
89840
89841                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89842                 use malloc instead. For SunOS 4.
89843
89844         2001-12-11  Bruno Haible  <bruno@clisp.org>
89845
89846                 * setenv.c: Declare alloca.
89847                 (compar_fn_t): New typedef.
89848                 (KNOWN_VALUE, STORE_VALUE): Use it.
89849
89850         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89851         setenv.h.
89852
89853 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89854
89855         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89856         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89857         Choose values that are less likely to collide with system fnmatch
89858         options.
89859         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89860         defined (e.g., a pure POSIX system).
89861         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89862         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89863
89864 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89865
89866         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89867         a pain in practice to deal with generated m4 files.  This change
89868         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89869
89870         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89871         and jm-glibc-io.m4, as they are no longer a special case.
89872         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89873         kludge and the auto-generation stuff.  Check only whether the
89874         functions are declared, not whether they exist, since older hosts
89875         that don't declare the functions can't use the optimization anyway.
89876
89877 2002-12-06  Jim Meyering  <jim@meyering.net>
89878
89879         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89880
89881         Merge in changes from libc's misc/error.c, in preparation
89882         for the merge of gnulib's changes back into libc.
89883
89884         * lib/error.c (_): Define only if not already defined.
89885         Move definition to follow all #include directives.
89886         Include unlocked-io.h only if !_LIBC.
89887         [_LIBC]: Include <libio/libioP.h>.
89888         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89889         (fflush): Tweak definition to use INTUSE.
89890         (putc): Define.
89891
89892 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/alloca.c [defined emacs]: Include "lisp.h".
89895         (xalloc_die) [defined emacs]: New macro.
89896         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89897         [! defined emacs]: Include <xalloc.h>.
89898         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89899         (pointer): Typedef to POINTER_TYPE *.
89900         (malloc): Remove decl; we now always use xmalloc.
89901         (alloca): Use old-style definition, since Emacs needs this.
89902         Check for arithmetic overflow when computing combined size.
89903
89904 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89905
89906         Do not generate unlocked-io.h automatically, since it's easier to
89907         maintain it by hand.
89908
89909         * lib/unlocked-io.h: New file, from GNU diffutils,
89910         but with proper copyright notice and attribution.
89911         * lib/gen-uio: Remove.
89912         * lib/Makefile.am: Add copyright notice.
89913         (libfetish_a_SOURCES): Add unlocked-io.h.
89914         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89915         (DISTCLEANFILES, io_functions): Remove macros.
89916         (EXTRA_DIST): Remove gen_uio.
89917         (unlocked-io.h): Remove rule.
89918
89919 2002-12-04  Jim Meyering  <jim@meyering.net>
89920
89921         Reflect the fact that stat.c and lstat.c are no longer generated.
89922         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89923         (DISTCLEANFILES): Likewise.
89924         (EXTRA_DIST): Likewise.
89925         (all_local): Don't depend on stat.c or lstat.c.
89926         (stat.c, lstat.c): Remove rules.
89927         (EXTRA_DIST): Remove xstat.in.
89928
89929         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89930         * lib/stat.c: New file.  Contents mostly from xstat.in.
89931         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89932         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89933
89934         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89935         too.
89936         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89937
89938 2002-12-03  Jim Meyering  <jim@meyering.net>
89939
89940         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89941         but not semantics, to minimize the differences between these two files.
89942         (safe_read): Change comment to mention SAFE_READ_ERROR.
89943
89944         * lib/safe-read.c (IS_EINTR): Define.
89945         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89946
89947 2002-12-02  Jim Meyering  <jim@meyering.net>
89948
89949         * lib/safe-read.c (EINTR): Define.
89950         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89951         (INT_MAX): Provide fallback.
89952         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89953
89954         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89955
89956 2002-12-02  Bruno Haible  <bruno@clisp.org>
89957
89958         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89959         Define, taken from safe-read.c.
89960         (INT_MAX): Provide fallback.
89961         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89962         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89963
89964         * lib/safe-read.c (EINTR): Remove definition.
89965         (safe_read): Don't use EINTR if it is absent.
89966
89967 2002-12-01  Jim Meyering  <jim@meyering.net>
89968
89969         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89970         zero.
89971         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89972
89973 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89974
89975         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89976         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89977         with `if (! (value < limit)) abort ();', for readability.
89978
89979 2002-11-26  Karl Berry  <karl@gnu.org>
89980
89981         * lib/strdup.c: copy from libc again, with jim's ok.
89982         * lib/.cppi-disable: re-add strdup.c
89983
89984 2002-11-25  Karl Berry  <karl@gnu.org>
89985
89986         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89987         instead of "strtol.c".
89988
89989 2002-11-25  Karl Berry  <karl@gnu.org>
89990
89991         * config/install-sh: update from automake for variable quoting, $0 in
89992         error msgs, etc.
89993
89994         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89995         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89996         entry.
89997
89998 2002-11-25  Jim Meyering  <jim@meyering.net>
89999
90000         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90001
90002 2002-11-24  Karl Berry  <karl@gnu.org>
90003
90004         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90005         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90006
90007 2002-11-24  Jim Meyering  <jim@meyering.net>
90008
90009         Update from coreutils:
90010
90011         * lib/mktime.c: Merge in changes from libc.
90012
90013         Avoid a link-time failure on some Linux systems.
90014         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90015         (otherwise).
90016         (__mon_yday): Declare with the STATIC attribute.
90017         (__mktime_internal): Likewise.
90018         Based on a report from Greg Schafer.
90019
90020 2002-11-23  Jim Meyering  <jim@meyering.net>
90021
90022         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90023         Use `unsigned', not `int', as type of index.
90024
90025         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90026
90027         * lib/fsusage.c: Remove unneeded parentheses around operands of
90028         `defined'.
90029
90030 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90031
90032         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90033         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90034         so that we can be included first.
90035         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90036         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90037         No need to include stddef.h or sys/types.h any more.
90038         Surround local include files with "", not "<>".
90039         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90040         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90041         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90042         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90043         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90044         (ISPRINT): Remove; no longer needed now that we assume C89.
90045
90046         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90047         Preserve errno.
90048
90049         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90050         quotearg_char): Use SIZE_MAX rather than
90051         (size_t) -1 when we are talking about "infinity".
90052
90053         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90054
90055 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90056
90057         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90058         hint that one should use `if (! x) abort ();' rather than `assert
90059         (x);', and anyway it's one less thing to worry about configuring.
90060         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90061         hash_rehash, hash_insert): Use abort rather than assert.
90062
90063 2002-11-22  Bruno Haible  <bruno@clisp.org>
90064
90065         * lib/safe-read.h: Assume C89. Add comments.
90066         (safe_read): Change return type to size_t.
90067         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90068         byte counts > SSIZE_MAX correctly.
90069         * lib/safe-write.h: New file.
90070         * lib/safe-write.c: New file.
90071         * lib/full-read.h: New file.
90072         * lib/full-read.c: New file.
90073         * lib/full-write.h: Assume C89. Add comments.
90074         * lib/full-write.c: Include safe-write.h.
90075         (full_write): Rewritten to use safe_write.
90076         Suggested by Jim Meyering and Paul Eggert.
90077
90078 2002-11-21  Jim Meyering  <jim@meyering.net>
90079
90080         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90081
90082         Merge in changes from the coreutils.
90083
90084         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90085         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90086         <stdint.h>.
90087         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90088         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90089         int.  Work more efficiently if X is the same width as uintmax_t.
90090         Do not compare X to -1, to avoid bogus compiler warning.
90091         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90092         Don't assume that f_frsize and f_bsize are the same type.
90093
90094         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90095         warning on FreeBSD.
90096
90097         * lib/makepath.c (make_path): Restore umask *before* creating the final
90098         component.
90099         (make_path): Minor reformatting.
90100
90101         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90102         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90103         HAVE_MALLOC/HAVE_REALLOC.
90104
90105         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90106         dummy ones.  At least on GNU/Linux systems, `auto' means something
90107         else.
90108         From Michael Stone.
90109
90110 2002-11-21  Bruno Haible  <bruno@clisp.org>
90111
90112         Remove case insensitive option matching.
90113         * lib/argmatch.h (argcasematch): Remove declaration.
90114         (ARGCASEMATCH): Remove macro.
90115         (__xargmatch_internal): Remove case_sensitive argument.
90116         (XARGMATCH): Update.
90117         (XARGCASEMATCH): Remove macro.
90118         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90119         case_sensitive argument.
90120         (argcasematch): Remove function.
90121         (__xargmatch_internal): Remove case_sensitive argument.
90122         (main): Use XARGMATCH instead of XARGCASEMATCH.
90123
90124         * lib/xmalloc.c: Change compile-time error message. Add comment about
90125         required autoconf version.
90126
90127 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90128
90129         Merge argmatch cleanups from Bison.  Assume C89.
90130
90131         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90132         Include stdlib.h, for EXIT_FAILURE.
90133         Always include <string.h>, since we assume C89.
90134         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90135         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90136         Include <stddef.h> instead, since it's all we need for size_t.
90137         (PARAMS): Remove.  All uses removed.
90138         (ARRAY_CARDINALITY): Do not bother to #undef.
90139         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90140         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90141         Remove unnecessary parentheses.
90142         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90143         Insert necessary parentheses.
90144         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90145         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90146
90147 2002-11-19  Bruno Haible  <bruno@clisp.org>
90148
90149         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90150         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90151
90152         * lib/mbswidth.h (PARAMS): Remove macro.
90153         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90154         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90155
90156         * lib/gcd.h (PARAMS): Remove macro.
90157         (gcd): Use ANSI C function declarations.
90158         * lib/gcd.c (gcd): Likewise.
90159
90160 2002-11-15  Bruno Haible  <bruno@clisp.org>
90161
90162         * lib/strcspn.c: Include <stddef.h>.
90163         (strcspn): Use ANSI C function declaration. Change return type to
90164         size_t. Use NULL.
90165         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90166         (strpbrk): Use NULL.
90167         * lib/strpbrk.h (PARAMS): Remove macro.
90168         (strpbrk): Use ANSI C function declaration.
90169         * lib/strstr.c: Don't include <sys/types.h>.
90170         * lib/strstr.h (PARAMS): Remove macro.
90171         (strstr): Use ANSI C function declarations.
90172
90173 2002-11-14  Karl Berry  <karl@gnu.org>
90174
90175         * config/mkinstalldirs: `do' on separate line, instead of
90176         `for var; do'.
90177
90178 2002-11-06  Bruno Haible  <bruno@clisp.org>
90179
90180         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90181         * lib/gcd.c (gcd): Likewise.
90182
90183 2002-11-05  Bruno Haible  <bruno@clisp.org>
90184
90185         * lib/gcd.h: New file, from gettext-0.11.5.
90186         * lib/gcd.c: New file, from gettext-0.11.5.
90187
90188 2002-11-05  Bruno Haible  <bruno@clisp.org>
90189
90190         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90191         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90192         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90193         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90194
90195         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90196         <libintl.h>.
90197         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90198         <libintl.h>.
90199
90200         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90201         * lib/human.c: Include gettext.h instead of <libintl.h>.
90202         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90203         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90204         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90205         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90206         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90207         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90208         (textdomain): Remove definition.
90209         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90210
90211         * lib/long-options.c: Remove include of <libintl.h> and definition of
90212         _.
90213         * lib/same.c: Remove include of <libintl.h> and definition of _.
90214
90215 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90216
90217         * lib/config.charset: A few additions for Solaris.
90218
90219 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90220
90221         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90222         * lib/localcharset.c (locale_charset): Declare as extern "C".
90223
90224 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90225
90226         * lib/config.charset: msdos in uk_UA uses CP1125.
90227
90228 2002-11-04  Bruno Haible  <bruno@clisp.org>
90229
90230         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90231         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90232         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90233         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90234         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90235
90236 2002-11-04  Bruno Haible  <bruno@clisp.org>
90237
90238         * lib/localcharset.c (locale_charset): Don't return an empty string.
90239
90240 2002-11-04  Bruno Haible  <bruno@clisp.org>
90241
90242         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90243         aliases.
90244
90245 2002-11-04  Bruno Haible  <bruno@clisp.org>
90246
90247         * lib/config.charset: Update for newest glibc. Add canonical names
90248         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90249
90250 2002-11-04  Bruno Haible  <bruno@clisp.org>
90251
90252         * lib/config.charset: Add support for NetBSD.
90253
90254 2002-11-04  Bruno Haible  <bruno@clisp.org>
90255
90256         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90257
90258 2002-11-01  Bruno Haible  <bruno@clisp.org>
90259
90260         * configure.in: Add AC_CONFIG_AUX_DIR call.
90261         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90262         test/Makefile.
90263         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90264
90265 2002-09-28  Karl Berry  <karl@gnu.org>
90266
90267         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90268         installed automake until the next release, since changes have been
90269         made.
90270
90271 2002-09-25  Karl Berry  <karl@gnu.org>
90272
90273         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90274         * lib/getopt*: copy from libc/posix.
90275         * lib/gettext.h: copy from gettext.
90276         * lib/.cppi-disable: add strdup.c, gettext.h.
90277
90278 2002-09-25  Karl Berry  <karl@gnu.org>
90279
90280         * config/srclist.txt: enable gettext.h check.
90281         * config/config.{guess,sub}: update from prep.
90282         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90283                 from automake 1.6.3.
90284         See srclist*.
90285
90286 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90287
90288         * regex.c (PATFETCH): Remove the translating fetch.
90289         (PATFETCH_RAW): Rename to PATFETCH.
90290         (set_image_of_range): New fun.
90291         (SET_RANGE_TABLE_WORK_AREA): Use it.
90292         (regex_compile): Don't translate the pattern chars so eagerly.
90293         Only do it when inserting an `exactn' bytecode or when handling
90294         a char-range.
90295         (mutually_exclusive_p): Avoid empty statement.
90296
90297 2002-07-06  Jim Meyering  <meyering@lucent.com>
90298
90299         * m4/README: Don't mention Makefile.am.in.
90300         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90301
90302 2002-07-01  Jim Meyering  <meyering@lucent.com>
90303
90304         * lib/c-stack.c: Include sys/time.h.
90305         From Volker Borchert.
90306
90307 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90308
90309         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90310
90311 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90312
90313         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90314         New macro.  Use it uniformly instead of
90315         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90316         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90317         reported by Vin Shelton.
90318
90319 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90320
90321         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90322         Do not assume SA_SIGINFO behavior.
90323         Bug reported by Jim Meyering on NetBSD 1.5.2.
90324
90325 2002-06-22  Jim Meyering  <meyering@lucent.com>
90326
90327         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90329
90330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90331         now that configure.ac uses AC_GNU_SOURCE.
90332         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90333         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90334
90335         Update to latest tools.  Suggestions from Paul Eggert.
90336         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90337         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90338         * m4/fnmatch.m4: Likewise.
90339         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90340         to AC_HEADER_STDBOOL
90341
90342 2002-06-22  Jim Meyering  <meyering@lucent.com>
90343
90344         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90345         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90346
90347 2002-06-22  Jim Meyering  <meyering@lucent.com>
90348
90349         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90350
90351         * lib/exitfail.c, exitfail.h: Likewise.
90352         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90353
90354         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90355         of fnmatch.h.
90356         (EXTRA_DIST): Add fnmatch_loop.c.
90357         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90358
90359         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90360         * lib/fnmatch.c: Update from diffutils-2.8.2.
90361         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90362         * lib/fnmatch.h: Remove file.
90363
90364 2002-06-21  Jim Meyering  <meyering@lucent.com>
90365
90366         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90367         * m4/mbrtowc.m4: Likewise.
90368
90369         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90370         * m4/mbswidth.m4: Reflect name change:
90371         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90372         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90373
90374         * m4/lib-link.m4: Update from gettext-0.11.2.
90375         * m4/gettext.m4: Likewise.
90376
90377         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90378         From Alfred M. Szmidt.
90379
90380 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90381
90382         * lib/file-type.h: Report an error if neither S_ISREG nor
90383         S_IFREG is defined, instead of using a test specific to glibc
90384         2.2.  This should be safe, since POSIX requires S_ISREG and
90385         Unix Version 7 had S_IFREG.  We don't need to check for
90386         <sys/types.h> since we don't use any symbols that it defines.
90387
90388 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90389
90390         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90391         $@-t, so that each temporary file name is unique and valid in the first
90392         8 characters, for operation under DOS.
90393
90394 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90395
90396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90397
90398 2002-06-15  Jim Meyering  <meyering@lucent.com>
90399
90400         Work even with DJGPP 2.03, which lacks support for symlinks.
90401         From Richard Dawe.
90402         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90403         is defined.
90404         * lib/lchown.c (S_ISLNK): Likewise.
90405
90406 2002-06-15  Jim Meyering  <meyering@lucent.com>
90407
90408         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90409         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90410         have been included before this file.
90411
90412 2002-06-14  Jim Meyering  <meyering@lucent.com>
90413
90414         * lib/file-type.h: Use the version from diffutils-2.8.2.
90415         * lib/file-type.c: Likewise.
90416
90417 2002-06-07  Jim Meyering  <meyering@lucent.com>
90418
90419         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90420         They're needed at least for NetBSD 1.5.2.
90421         ($statxfs_includes): Include those same headers.
90422         ($statxfs_includes): Include sys/vfs.h if available.
90423         ($statxfs_includes): Likewise for sys/statvfs.h.
90424         Check for the following members in both structs statfs and statvfs:
90425         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90426
90427 2002-06-01  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90430         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90431
90432 2002-05-28  Jim Meyering  <meyering@lucent.com>
90433
90434         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90435         Reported by Volker Borchert.
90436
90437 2002-05-27  Jim Meyering  <meyering@lucent.com>
90438
90439         Fix a problem seen only on nonconforming systems whereby ls.c's
90440         use of localtime, and then of gettimeofday would cause trouble:
90441         the localtime call used to initialize rpl_gettimeofday's save
90442         mechanism would clobber ls's current local time information so
90443         that in any long listing the first file would always be listed
90444         with date 1970-01-01.  Analysis by Volker Borchert.
90445
90446         * lib/gettimeofday.c (localtime): Undefine.
90447         (rpl_localtime): New function.
90448
90449 2002-05-27  Jim Meyering  <meyering@lucent.com>
90450
90451         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90452         localtime.
90453
90454         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90455         use the replacement function; it wouldn't resolve at link time.
90456         Reported by Volker Borchert.
90457
90458 2002-05-22  Jim Meyering  <meyering@lucent.com>
90459
90460         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90461         file-type.h.
90462         * lib/file-type.h: New file.
90463         * lib/file-type.c (file_type): New file/function.  Extracted from
90464         diffutils.
90465
90466 2002-04-30  Jim Meyering  <meyering@lucent.com>
90467
90468         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90469
90470 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90471
90472         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90473
90474 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90475
90476         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90477         Do not check for alloca.h (no longer used) or stdbool.h (was never
90478         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90479
90480 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90481
90482         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90483
90484 2002-04-29  Jim Meyering  <meyering@lucent.com>
90485
90486         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90487         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90488         Use AC_FUNC_STRNLEN here instead.
90489
90490         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90491         With autoconf-2.53a, it's part of AC_PROG_CC.
90492
90493 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90494
90495         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90496         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90497
90498 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90499
90500         * lib/sig2str.h, lib/sig2str.c: New files.
90501         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90502
90503 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90504
90505         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90506         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90507         of 127, since 64 is the largest conceivable number for ancient
90508         nonstandard hosts.
90509         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90510
90511 2002-04-28  Jim Meyering  <meyering@lucent.com>
90512
90513         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90514
90515 2002-04-24  Jim Meyering  <meyering@lucent.com>
90516
90517         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90518         (jm_PREREQ): Use it.
90519
90520         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90521         mach/mach.h fcntl.h.
90522         Check for this function: setlocale.
90523
90524 2002-04-24  Jim Meyering  <meyering@lucent.com>
90525
90526         * lib/gettext.h: New file, from Gettext.
90527         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90528         (libfetish_a_SOURCES): Add gettext.h.
90529
90530 2002-04-16  Jim Meyering  <meyering@lucent.com>
90531
90532         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90533         ut_pid, ut_id, ut_exit.
90534
90535 2002-04-16  Jim Meyering  <meyering@lucent.com>
90536
90537         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90538         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90539         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90540
90541 2002-04-12  Jim Meyering  <meyering@lucent.com>
90542
90543         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90544         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90545         existence of the getmntinfo function.  Needed for Darwin 5.3.
90546
90547         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90548         This is necessary at least on Darwin 5.3.
90549
90550         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90551         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90552         strnlen.o in the library, and that makes some versions of ranlib
90553         object.
90554
90555 2002-04-12  Jim Meyering  <meyering@lucent.com>
90556
90557         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90558
90559 2002-04-09  Jim Meyering  <meyering@lucent.com>
90560
90561         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90562         to be more precise.  Rather than saying we're checking whether the
90563         function `works', say what we're testing.
90564         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90565         Reported by Bruno Haible.
90566
90567 2002-03-10  Jim Meyering  <meyering@lucent.com>
90568
90569         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90570         Suggestion from Santiago Vila.
90571
90572 2002-03-08  Jim Meyering  <meyering@lucent.com>
90573
90574         * lib/rename.c: Mention that this wrapper is needed also on
90575         mips-dec-ultrix4.4 systems.
90576
90577 2002-03-02  Jim Meyering  <meyering@lucent.com>
90578
90579         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90580         not HAVE_CLOCK_SETTIME.
90581
90582 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90583
90584         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90585         Check for clock_settime.
90586
90587 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90588
90589         * lib/nanosleep.h: Rename to....
90590         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90591
90592         * lib/gettime.c: New file.
90593         * lib/settime.c: New file.
90594         * lib/stime.c: Remove.
90595
90596         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90597         timespec.h.  Remove nanosleep.h.
90598
90599 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90600
90601         * m4/acl.m4: New file.
90602         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90603         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90604
90605 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90606
90607         * lib/acl.c, lib/acl.h: New files.
90608         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90609
90610 2002-02-24  Jim Meyering  <meyering@lucent.com>
90611
90612         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90613         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90614         cause trouble.  Reported by Nelson Beebe.
90615
90616 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90617
90618         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90619         compilers that don't know that xalloc_die never returns.
90620
90621 2002-02-20  Jim Meyering  <meyering@lucent.com>
90622
90623         * lib/getdate.c: Regenerate using bison-1.33.
90624
90625 2002-02-17  Jim Meyering  <meyering@lucent.com>
90626
90627         * config/config.guess (main): Don't use `head -1'; it's no longer
90628         portable. Use `sed 1q' instead.
90629
90630 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90631
90632         * m4/codeset.m4: Upgrade to gettext-0.11.
90633         * m4/gettext.m4: Upgrade to gettext-0.11.
90634         * m4/glibc21.m4: Upgrade to gettext-0.11.
90635         * m4/iconv.m4: Upgrade to gettext-0.11.
90636         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90637         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90638         * m4/lib-ld.m4: New file, from gettext-0.11.
90639         * m4/lib-link.m4: New file, from gettext-0.11.
90640         * m4/lib-prefix.m4: New file, from gettext-0.11.
90641         * m4/progtest.m4: Upgrade to gettext-0.11.
90642
90643 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90646         (jm_PREREQ): Use it.
90647
90648 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90649
90650         * lib/posixver.c, lib/posixver.h: New files.
90651         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90652
90653 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90654             Bruno Haible  <bruno@clisp.org>
90655
90656         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90657         (fwrite_success_callback): New declaration.
90658         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90659         print_unicode_char. Call failure callback instead of error.
90660         (fwrite_success_callback): New function.
90661         (exit_failure_callback): New function.
90662         (fallback_failure_callback): New function.
90663         (print_unicode_char): Call unicode_to_mb.
90664
90665 2002-01-26  Jim Meyering  <meyering@lucent.com>
90666
90667         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90668         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90669
90670 2002-01-26  Jim Meyering  <meyering@lucent.com>
90671
90672         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90673
90674 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90675
90676         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90677
90678 2002-01-22  Jim Meyering  <meyering@lucent.com>
90679
90680         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90681         Otherwise, some versions of automake would omit the rule that makes
90682         Makefile from Makefile.in.
90683
90684 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90685
90686         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90687         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90688         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90689         (memcoll): Set errno to zero if there is no error.
90690
90691         * lib/quotearg.c (quotearg_buffer_restyled):
90692         Fix bug with quoting buffers containing NUL when backslashing escapes.
90693         This bug was exposed by the other changes in this patch.
90694         (quotearg_n_options): New arg ARGSIZE.
90695         All callers changed.
90696         (quoting_options_from_style): New function.
90697         (quotearg_n_style): Use it.
90698         (quotearg_n_style_mem): New function.
90699
90700         * lib/quotearg.h (quotearg_n_style_mem): New function.
90701
90702 2002-01-19  Jim Meyering  <meyering@lucent.com>
90703
90704         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90705         Remove useless quotes: DF_PROG="df".
90706         * m4/strnlen.m4: New file.
90707
90708 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90709
90710         * lib/backupfile.c (ISDIGIT): Comment fix.
90711         * lib/getdate.y (ISDIGIT): Likewise.
90712         * lib/posixtm.c (ISDIGIT, year): Likewise.
90713         * lib/strverscmp.c (ISDIGIT): Likewise.
90714         * lib/userspec.c (ISDIGIT): Likewise.
90715
90716 2002-01-16  Jim Meyering  <meyering@lucent.com>
90717
90718         * lib/getdate.y: Add three semicolons, each just before a closing
90719         brace. Bison (as of version 1.31) no longer papers over that mistake.
90720
90721 2002-01-05  Jim Meyering  <meyering@lucent.com>
90722
90723         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90724
90725 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90726
90727         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90728         not silently exit merely because the output buffer happens to
90729         have nothing pending.
90730
90731 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90732
90733         See the big note in ../ChangeLog.
90734         * lib/human.c (suffixes): Prefer K to k for 1024.
90735         (generate_suffix_backwards): New function.
90736         (human_readable_inexact): Use it.
90737         * lib/xstrtol.c (__xstrtol): If there is no number but there
90738         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90739         Accept 'K' as well as 'k'.
90740
90741 2001-12-15  Jim Meyering  <meyering@lucent.com>
90742
90743         * lib/regex.h (__restrict_arr): Update from libc.
90744
90745         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90746         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90747         (STREQ): Define.
90748
90749 2001-12-14  Jim Meyering  <meyering@lucent.com>
90750
90751         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90752         Suggestion from Bruno Haible.
90753
90754 2001-12-10  Jim Meyering  <meyering@lucent.com>
90755
90756         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90757         xrealloc, Instead, include "xalloc.h".
90758         (initbuffer): Don't cast xmalloc return value to char*.
90759         (readline): Reword comment.
90760         Don't cast xrealloc return value to char*
90761         Return NULL, not 0.
90762
90763 2001-12-09  Jim Meyering  <meyering@lucent.com>
90764
90765         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90766         about `signed and unsigned type in conditional expression'.
90767         * lib/posixtm.c (posix_time_parse): Likewise.
90768
90769         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90770
90771         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90772         to avoid a pedantic warning.
90773
90774         * lib/getstr.c: Don't include assert.h.
90775         (getstr): Remove warning-evoking assertions.
90776         Return -1 if offset parameter is out of bounds.
90777         Change the type of a local from int to size_t.
90778
90779         * lib/strftime.c (my_strftime_localtime_r): Include this function
90780         definition in the `#if ! HAVE_TM_GMTOFF' block.
90781
90782         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90783         Include xalloc.h instead.
90784
90785 2001-12-02  Jim Meyering  <meyering@lucent.com>
90786
90787         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90788         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90789         included.
90790
90791         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90792         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90793
90794 2001-11-30  Akim Demaille  <akim@epita.fr>
90795
90796         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90797         before being defined.
90798
90799 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90800
90801         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90802         First arg is int, not unsigned.
90803         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90804         (SIZE_MAX, UINT_MAX): New macros.
90805         (quotearg_n_options): Abort if N is negative.
90806         Avoid overflow check on hosts where size_t is 64 bits and int
90807         is 32 bits, as overflow is impossible there.
90808         Fix off-by-one typo that caused unnecessary reallocation.
90809
90810 2001-11-27  Jim Meyering  <meyering@lucent.com>
90811
90812         * lib/tempname.c: Merge with version from libc.
90813         * lib/regex.c: Likewise.
90814
90815         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90816         systems for which STDC_HEADERS is 0, it was not included, resulting in
90817         a warning about an integer-to-pointer conversion problem with getenv.
90818         Reported by Volker Borchert.
90819
90820 2001-11-26  Jim Meyering  <meyering@lucent.com>
90821
90822         * lib/gtod.h: Remove file.
90823         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90824         * lib/gettimeofday.c: Don't include gtod.h.
90825         (GTOD_init): Remove function.
90826         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90827         Suggestion from Volker Borchert.
90828
90829 2001-11-23  Jim Meyering  <meyering@lucent.com>
90830
90831         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90832         it.
90833         * lib/hash.c (struct hash_table): Define it here instead.
90834
90835 2001-11-22  Jim Meyering  <meyering@lucent.com>
90836
90837         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90838
90839 2001-11-20  Jim Meyering  <meyering@lucent.com>
90840
90841         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90842         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90843
90844 2001-11-19  Jim Meyering  <meyering@lucent.com>
90845
90846         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90847         directory.  Use "conftestXXXXXX" as the template.
90848         Suggestion from Paul Eggert.
90849
90850         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90851         immediately, so the test doesn't mistakenly hit the max-open-files
90852         limit.
90853
90854 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90855
90856         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90857         (TEMPORARIES): New macro.
90858         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90859         removes an artificial limitation (e.g. HP-UX 10.20, where
90860         TMP_MAX is 17576).
90861
90862 2001-11-18  Jim Meyering  <meyering@lucent.com>
90863
90864         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90865
90866 2001-11-18  Jim Meyering  <meyering@lucent.com>
90867
90868         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90869         on SunOS 4.
90870
90871         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90872         files will be created before anything else.
90873
90874 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90875
90876         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90877         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90878
90879 2001-11-17  Jim Meyering  <meyering@lucent.com>
90880
90881         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90882         Prompted by a report from Bob Proulx.
90883
90884         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90885         Instead, require UTILS_FUNC_MKSTEMP.
90886
90887 2001-11-17  Jim Meyering  <meyering@lucent.com>
90888
90889         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90890         Now, that's done as part of AC_FUNC_STRTOD.
90891
90892 2001-11-17  Jim Meyering  <meyering@lucent.com>
90893
90894         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90895         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90896         rather than group writable.  Patch by Juan F. Codagnone.
90897
90898         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90899         xrealloc, Instead, include "xalloc.h".
90900
90901         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90902         Remove explicit declarations of xmalloc, xrealloc,
90903         and xstrdup.  Instead, include "xalloc.h".
90904
90905         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90906         unlocked-io.h.
90907         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90908         Likewise.
90909         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90910
90911         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90912         Reported by Padraig Brady.
90913
90914         * lib/mkstemp.c: #undef mkstemp.
90915         Include config.h.
90916         (rpl_mkstemp): Rename from mkstemp.
90917         Protoize.
90918
90919 2001-11-16  Jim Meyering  <meyering@lucent.com>
90920
90921         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90922         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90923         determine the amount of total physical memory, use pstat_getstatic.
90924         HPUX-11 doesn't define _SC_PHYS_PAGES.
90925         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90926         If sysconf couldn't be used to determine the amount of available
90927         physical memory, use both pstat_getstatic and pstat_getdynamic.
90928         Based on a patch from Bob Proulx.
90929
90930 2001-11-10  Jim Meyering  <meyering@lucent.com>
90931
90932         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90933         (jm_PREREQ): Use it.
90934
90935 2001-11-09  Jim Meyering  <meyering@lucent.com>
90936
90937         * m4/jm-macros.m4: Require autoconf-2.52f.
90938         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90939         Use these AC_-prefixed names, not the AM_-prefixed ones.
90940
90941         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90942
90943 2001-11-05  Jim Meyering  <meyering@lucent.com>
90944
90945         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90946
90947 2001-11-04  Jim Meyering  <meyering@lucent.com>
90948
90949         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90950         $DEFS.
90951
90952 2001-11-03  Jim Meyering  <meyering@lucent.com>
90953
90954         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90955         of AC_DEFUN.
90956
90957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90958         know the name of the variable in the macro definition.
90959
90960 2001-11-03  Jim Meyering  <meyering@lucent.com>
90961
90962         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90963         in argmatch_to_argument call.
90964
90965         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90966         argument.
90967
90968         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90969         e.g., a fault due to an attempt to free a NULL pointer.
90970
90971 2001-11-01  Jim Meyering  <meyering@lucent.com>
90972
90973         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90974         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90975
90976 2001-11-01  Jim Meyering  <meyering@lucent.com>
90977
90978         * lib/dirfd.c, lib/dirfd.h: New files.
90979         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90980
90981         * lib/hash.c (hash_print) [TESTING]: Clean up.
90982
90983 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90984
90985         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90986         to avoid a warning if -Wall.
90987
90988 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90989
90990         * README: New file
90991         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90992         (per RMS's instructions, this is now the canonical source)
90993         * lgpl/, gpl/: New directories.
90994
90995 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90996
90997         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90998
90999 2001-10-21  Jim Meyering  <meyering@lucent.com>
91000
91001         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91002         this code would end up calling gettext even in packages built
91003         with --disable-nls.
91004         * lib/getopt.c (_): Likewise.
91005         * lib/regex.c (_): Likewise.
91006
91007 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91008
91009         * m4/error.m4 (jm_PREREQ_ERROR):
91010         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91011         AC_FUNC_STRERROR_R does that.
91012         Check for strerror declaration.
91013
91014         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91015         are supposed to have them these days.
91016         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91017         Merge changes from latest Autoconf CVS.
91018         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91019         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91020         POSIX decided to standardize on the int flavor of strerror_r.
91021
91022 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91023
91024         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91025         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91026         Use strerror_r that is only a macro, even if it is not a function.
91027         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91028         (private_strerror): Use prototypes, not old-style function definition.
91029         (print_errno_message): New function.
91030         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91031         char*-flavored one.
91032         (error_tail, error, error_at_line): Use it.
91033
91034 2001-10-11  Jim Meyering  <meyering@lucent.com>
91035
91036         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91037         and quote_n (1, ... to avoid clobbering a buffer.
91038
91039 2001-10-05  Jim Meyering  <meyering@lucent.com>
91040
91041         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91042         hash-pjw.h.
91043         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91044         * lib/hash-pjw.h: New file.
91045
91046 2001-09-30  Jim Meyering  <meyering@lucent.com>
91047
91048         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91049         `struct fsstat' has the `f_fstypename' member.
91050         Use that to define FS_TYPE, which is now used to make
91051         the getfsstat link test tighter.
91052
91053 2001-09-30  Jim Meyering  <meyering@lucent.com>
91054
91055         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91056         Include <sys/ucred.h>, for Apple Darwin.
91057         Include sys/mount.h and sys/fs_types.h only if available.
91058         (FS_TYPE): Define.
91059         (read_filesystem_list): Use FS_TYPE.
91060
91061 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91062
91063         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91064         a boolean context.
91065
91066 2001-09-29  Jim Meyering  <meyering@lucent.com>
91067
91068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91069         [one-argument getmntent function]): Include stdio.h before mntent.h.
91070         SunOS 4.1.x needs it for the declaration of `FILE'.
91071         Patch by Volker Borchert.
91072
91073         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91074         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91075         sys/fs_types.h, and make the link-test for getfsstat guard #include
91076         directives with appropriate #if HAVE_*_H tests so that we can
91077         detect getfsstat on Apple Darwin1.3.7 systems.
91078         Reported by Nelson Beebe.
91079         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91080
91081 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91082
91083         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91084         #defines strtoimax.  Also treat the other strto* functions
91085         like strtoimax.
91086
91087         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91088         Check for strtoul and strtoumax,
91089         as those declarations are made even in the signed case.
91090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91091         Likewise, for strtol and strtoimax.
91092
91093 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91094
91095         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91096         #defines strtoimax.  Also treat the other strto* functions
91097         like strtoimax.
91098
91099         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91100         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91101         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91102
91103 2001-09-26  Jim Meyering  <meyering@lucent.com>
91104
91105         Most macros in unlocked-io.h had the wrong number of arguments.
91106         * lib/gen-uio: New script.
91107         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91108         * lib/unlocked-io.hin: Remove file.
91109         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91110         rather than trying to embed it here.
91111         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91112         Reported by Padraig Brady.
91113
91114 2001-09-25  Volker Borchert  <bt@teknon.de>
91115
91116         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91117         `result'.
91118
91119 2001-09-24  Jim Meyering  <meyering@lucent.com>
91120
91121         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91122
91123 2001-09-23  Jim Meyering  <meyering@lucent.com>
91124
91125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91126         instead of the mere test for existence of mntent.h.  The latter
91127         would get a false-positive on AIX 3.4 systems.
91128         In the outer getmntent if-block, don't die if neither of the getmntent
91129         tests succeeds.  Instead, just fall through and continue with the
91130         remaining tests.
91131
91132 2001-09-23  Jim Meyering  <meyering@lucent.com>
91133
91134         * lib/mountlist.c: Remove useless parentheses in #if directives.
91135         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91136         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91137
91138 2001-09-22  Jim Meyering  <meyering@lucent.com>
91139
91140         * m4/gettext.m4: New file.  From gettext.
91141         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91142         * m4/progtest.m4: Likewise
91143         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91144         * m4/glibc21.m4: Likewise.
91145
91146         * m4/libintl.m4: Remove.  No longer used.
91147
91148 2001-09-22  Jim Meyering  <meyering@lucent.com>
91149
91150         * lib/localcharset.c: Update from latest gettext.
91151         * lib/config.charset: Likewise.
91152
91153 2001-09-20  Jim Meyering  <meyering@lucent.com>
91154
91155         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91156         strtoimax.
91157         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91158         strtoumax.
91159
91160 2001-09-20  Jim Meyering  <meyering@lucent.com>
91161
91162         * lib/xstrtol.c (strtoimax): Guard declaration with
91163         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91164         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91165         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91166         (strtoumax): Likewise, for completeness (it wasn't necessary).
91167
91168 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91169
91170         * lib/strtoimax.c (HAVE_LONG_LONG):
91171         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91172         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91173         to work around bug in IBM C compiler.
91174
91175 2001-09-17  Jim Meyering  <meyering@lucent.com>
91176
91177         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91178         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91179         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91180         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91181         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91182         whenever the right hand side need not be expanded by the shell.
91183
91184 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91185
91186         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91187         library.  It's not correct, as some older glibcs are buggy.
91188         fnmatch wasn't fixed until glibc 2.2.
91189
91190         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91191         special shell magic here.
91192
91193 2001-09-16  Jim Meyering  <meyering@lucent.com>
91194
91195         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91196         * m4/jm-macros.m4: Require it.
91197
91198 2001-09-16  Jim Meyering  <meyering@lucent.com>
91199
91200         * lib/mkdir.c: New file.
91201
91202 2001-09-15  Jim Meyering  <meyering@lucent.com>
91203
91204         * m4/jm-macros.m4: Check for help2man.
91205
91206 2001-09-11  Jim Meyering  <meyering@lucent.com>
91207
91208         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91209         The body, by Paul Eggert, was moved here from configure.in.
91210         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91211
91212 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91213
91214         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91215         (jm_PREREQ): Use it.
91216
91217 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91218
91219         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91220         Use ssize_t, not int, to store result of readlink.
91221         Check for ssize_t overflow as well as size_t overflow,
91222         as POSIX says the result of readlink is implementation-defined
91223         when ssize_t overflows.
91224         Remove unnecessary cast to char*.
91225         Use free+malloc instead of realloc, as the storage doesn't need
91226         to be preserved and it's clearer and can be more efficient that way.
91227         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91228         * lib/xreadlink.h (xreadlink): Update prototype.
91229
91230 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91231
91232         * lib/xgetcwd.c: Revert some of the previous change; intead,
91233         fix the HAVE_GETCWD_NULL code to behave more like the
91234         !HAVE_GETCWD_NULL code used to.
91235
91236         Include "xalloc.h".
91237         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91238         invoke xalloc_die.
91239
91240 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91241
91242         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91243         sys/param.h, as pathmax.h includes them.
91244
91245 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91246
91247         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91248         (jm_PREREQ_XGETCWD): New macro.
91249
91250         * m4/getcwd.m4: New file.
91251
91252 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91253
91254         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91255         like the HAVE_GETCWD_NULL code.
91256         Include pathmax.h if not HAVE_GETCWD.
91257         Do not include xalloc.h.
91258         (INITIAL_BUFFER_SIZE): New symbol.
91259         Do not use xmalloc / xrealloc, since the caller is responsible for
91260         handling errors.  Preserve errno around `free' during failure.
91261         Do not overrun buffer when using getwd.
91262
91263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91264
91265         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91266         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91267         getcwd (NULL, 0).
91268
91269 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91270
91271         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91272         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91273         spotted by Jim Meyering.
91274
91275 2001-09-03  Jim Meyering  <meyering@lucent.com>
91276
91277         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91278         failure.
91279
91280 2001-09-02  Jim Meyering  <meyering@lucent.com>
91281
91282         * lib/error.c: Update from GNU libc.
91283
91284 2001-09-01  Jim Meyering  <meyering@lucent.com>
91285
91286         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91287         Used by df.
91288
91289 2001-09-01  Jim Meyering  <meyering@lucent.com>
91290
91291         * lib/xreadlink.c: New file.
91292         * lib/xreadlink.h: New file.
91293         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91294         xreadlink.h.
91295
91296         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91297         doesn't conflict with sparc Solaris 7's definition in
91298         /usr/include/sys/int_types.h.
91299
91300         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91301         files.
91302         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91303         and strncasecmp as r-values.  Unixware didn't have declarations.
91304
91305 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91306
91307         * lib/xstrtol.h: Add copyright notice.
91308         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91309         LONGINT_INVALID_SUFFIX_CHAR.
91310
91311 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/xstrtol.c (strtoimax): New decl.
91314
91315 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/xgetcwd.c: Don't include pathmax.h.
91318         Include stdlib.h and unistd.h if available.
91319         Include xalloc.h.
91320         (xmalloc, xstrdup, free): Remove decls.
91321         (xgetcwd): Don't assume sizes fit in unsigned.
91322         Check for overflow when computing sizes.
91323         Simplify reallocation code.
91324
91325 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91326
91327         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91328         a directory's st_size can have an arbitrary value, so the old
91329         usage could waste an arbitrary amount of memory.  All uses
91330         changed.
91331         * lib/savedir.h: Update prototype.
91332
91333 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91334
91335         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91336
91337         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91338         old strtoimax.c.
91339
91340         Also, make the following further changes to make this file's
91341         configuration more similar to that of strtol.c:
91342         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91343         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91344         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91345         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91346         changed to signed values.
91347
91348         And make the following changes as well:
91349         Fix copyright notice, as 1999 was missing.
91350         (verify): New macro.
91351         (strtoimax): Check sizes at compile-time, not run-time.
91352         Prefer strtol to strtoll if both work.
91353         (main): Remove; it was not that useful and was a pain to maintain.
91354
91355         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91356
91357 2001-08-31  Jim Meyering  <meyering@lucent.com>
91358
91359         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91360         Use an initial, malloc'd, buffer of length 128 rather than
91361         a statically allocated one of length 1024.
91362
91363 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91364
91365         Simplify code, partly by assuming autoconf 2.52 semantics.
91366
91367         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91368
91369         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91370         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91371         All uses removed.
91372         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91373         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91374         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91375         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91376         jm_AC_HEADER_INTTYPES_H.
91377         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91378
91379         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91380
91381         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91382         Quote first arg of AC_DEFUN.
91383         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91384         since they are needed to parse the include file even if we need
91385         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91386         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91387         but with opposite signedness.
91388
91389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91390
91391         Merge 'exclude' changes from tar 1.13.22.
91392         This fixes one or two unlikely storage allocation overflow bugs,
91393         but doesn't change user-visible behavior otherwise.
91394
91395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91396
91397         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91398         (jm_PREREQ_EXCLUDE): New macro.
91399
91400 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91401
91402         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91403         tm to be declared.
91404
91405 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91406
91407         * lib/hash.c: Remove '2001' from copyright notice.
91408
91409 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91410
91411         * lib/full-write.h: New file.
91412         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91413         * lib/full-write.c: Correct credits, as cccp.c no longer
91414         exists and anyway it was so heavily changed from the old cccp
91415         code as to be unrecognizable.  Include full-write.h.
91416         (full_write): Return size_t, with short writes meaning failure.
91417         All callers changed.  This fixes a bug with large buffers
91418         on 64-bit hosts.
91419         * lib/utime.c: Include full-write.h.
91420
91421 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91422
91423         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91424         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91425         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91426         Include if available.
91427         (<xalloc.h>): Include
91428         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91429         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91430         collide with FNM macros.
91431         (struct patopts): New struct.
91432         (struct exclude): Use it, as exclude patterns now come with options.
91433         (new_exclude): Support above changes.
91434         (new_exclude, add_exclude_file):
91435         Initial size must now be a power of two to simplify overflow checking.
91436         (free_exclude, fnmatch_no_wildcards): New function.
91437         (excluded_filename): No longer requires options arg, as the options
91438         are determined by add_exclude.  Now returns bool, not int.
91439         (excluded_filename, add_exclude):
91440         Add support for the fancy new exclusion options.
91441         (add_exclude, add_exclude_file): Now takes int options arg.
91442         Check for arithmetic overflow when computing sizes.
91443         (add_exclude_file): xrealloc might modify errno, so don't
91444         realloc until after errno might be used.
91445
91446         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91447         New macros.
91448         (free_exclude): New decl.
91449         (add_exclude, add_exclude_file): Now takes int options arg.
91450         (excluded_filename): No longer requires options arg, as the options
91451         are determined by add_exclude.  Now returns bool, not int.
91452
91453 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91454
91455         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91456
91457 2001-08-27  Jim Meyering  <meyering@lucent.com>
91458
91459         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91460
91461         * lib/version-etc.c (N_): Remove definition.
91462         Revert most of last change.
91463         Instead, simply don't mark the `Copyright...' string for translation.
91464         Based on advice from Paul Eggert.
91465
91466         * lib/strtoxmax.c: Tweak comment.
91467
91468 2001-08-26  Jim Meyering  <meyering@lucent.com>
91469
91470         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91471
91472         * m4/xstrtoimax.m4: New file.
91473         * m4/xstrtoumax.m4: Add comments explaining why we
91474         AC_REPLACE_FUNCS(strtol).
91475
91476 2001-08-26  Jim Meyering  <meyering@lucent.com>
91477
91478         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91479         of copyright with `%s' so translators don't get an untranslated
91480         message in 2002.
91481         (COPYRIGHT_YEAR): Define.
91482         (version_etc): Use fprintf rather than fputs.
91483         Suggestion from Ulrich Drepper.
91484
91485         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91486
91487         * lib/strtoll.c: New file, from GNU libc.
91488         * lib/xstrtoimax.c: New file.
91489
91490         * lib/xstrtol.h: Add xstrtoimax.
91491         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91492         * lib/strtoimax.c: New file.  Likewise, but first define
91493         STRTOUXMAX_SIGNED.
91494
91495         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91496         ...
91497         * lib/strtoxmax.c: ... then renamed to this.
91498
91499 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91500
91501         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91502         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91503         (jm_AC_TYPE_INTMAX_T): New macro.
91504         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91505
91506         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91507
91508         * m4/longlong.m4: Renamed from ulonglong.m4.
91509         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91510         * m4/uintmax_t.m4: Removed.
91511
91512 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91513
91514         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91515         Port to Solaris 8, where 'sed' requires a space after the 'r'
91516         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91517         Redirect output to $tmp just once.
91518
91519 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91520
91521         * lib/addext.c (<errno.h>): Include.
91522         (errno): Declare if not defined.
91523         (addext): Work correctly when pathconf returns -1 and leaves
91524         errno alone because there is no limit.  Also, work even if
91525         pathconf returns a value greater than SIZE_MAX.
91526
91527 2001-08-12  Jim Meyering  <meyering@lucent.com>
91528
91529         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91530         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91531         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91532         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91533         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91534         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91535         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91536         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91537         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91538         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91539         utime.m4, utimes.m4, xstrtoumax.m4:
91540         Quote the first argument in each use of AC_DEFUN.
91541
91542 2001-08-12  Jim Meyering  <meyering@lucent.com>
91543
91544         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91545         Simply `return getcwd (NULL, 0);'.
91546         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91547         Use 1300 as initial value for length, not PATH_MAX.
91548
91549         * lib/pathmax.h: Clean up cpp syntax.
91550
91551 2001-08-12  Jim Meyering  <meyering@lucent.com>
91552
91553         * lib/gettimeofday.c: New file.
91554         * lib/gtod.h: New file.
91555         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91556
91557 2001-08-05  Jim Meyering  <meyering@lucent.com>
91558
91559         * m4/jm-macros.m4: Require autoconf-2.52.
91560
91561 2001-08-04  Jim Meyering  <meyering@lucent.com>
91562
91563         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91564         stmt, to get in sync with glibc.
91565
91566 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91567
91568         The following changes are from gettext 0.10.39 as maintained by
91569         Bruno Haible.
91570
91571         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91572         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91573         with inverted sense.  All uses changed.
91574
91575         * lib/mbswidth.c: Don't include <limits.h>.
91576         Include <stdlib.h> and <string.h> unconditionally.
91577         (iswcntrl, mbsinit, ISCNTRL): New macros.
91578         (mbsnwidth): Use K&R style function declarations.
91579         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91580         can optimize it when MB_CUR_MAX == 1.
91581         The width of control characters is zero, not 1.
91582
91583 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91584
91585         The following changes are from gettext 0.10.39 as maintained by
91586         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91587
91588         * m4/codeset.m4: Upgrade to serial AM1.
91589         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91590         all uses changed.  Quote first arg of AC_DEFUN.
91591         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91592
91593         * m4/iconv.m4: Upgrade to serial AM2.
91594         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91595         Add --with-libconv-prefix.
91596         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91597         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91598         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91599         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91600         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91601
91602         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91603         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91604         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91605         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91606         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91607         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91608         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91609         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91610         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91611
91612         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91613         string.h any more.
91614
91615         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91616         not the default value.
91617
91618         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91619         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91620         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91621         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91622         Also check for iswcntrl, used for wcwidth fallback.
91623         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91624         to Autoconf 2.13.
91625
91626 2001-08-03  Jim Meyering  <meyering@lucent.com>
91627
91628         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91629         as it was in the original.  Reported by Paul Eggert.
91630
91631 2001-07-16  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/gettimeofday.m4: New file.
91634         Prompted by a report from Bernhard Baehr.
91635
91636 2001-07-15  Jim Meyering  <meyering@lucent.com>
91637
91638         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91639         stuff. Now it's in ../Makefile.cfg.
91640
91641 2001-07-15  Jim Meyering  <meyering@lucent.com>
91642
91643         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91644         (BUILT_SOURCES): Add unlocked-io.h.
91645         (io_functions): Define.
91646         (unlocked-io.h): New rule.
91647         (DISTCLEANFILES): Add unlocked-io.h.
91648         (all-local): Depend on unlocked-io.h, to ensure it is created.
91649
91650         * lib/unlocked-io.hin: New file
91651
91652         * lib/regex.c: Update from glibc.
91653
91654 2001-07-05  Jim Meyering  <meyering@lucent.com>
91655
91656         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91657         recommendation.
91658         (libfetish_a_SOURCES): Put all .h files here instead.
91659         Remove a thus-exposed (better checks in automake) duplicate and
91660         two unnecessary .h files.
91661
91662 2001-07-04  Jim Meyering  <meyering@lucent.com>
91663
91664         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91665         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91666         distcheck failure.
91667
91668 2001-07-02  Jim Meyering  <meyering@lucent.com>
91669
91670         The following changes were prompted by suggestions from Bruno Haible.
91671
91672         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91673         is now generated.
91674         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91675         definition of EXTRA_DIST.
91676         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91677         ensure that the generated file is created/updated whenever the list
91678         of $(unlocked_functions) is changed.
91679         (jm-glibc-io.m4): New rule.
91680         (unlocked-io.h): New rule -- currently unused.
91681
91682 2001-06-24  Jim Meyering  <meyering@lucent.com>
91683
91684         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91685         unmatched right bracket, rather than kludging it with an extra,
91686         falsely-matching quote in a comment.  Patch by Akim Demaille.
91687
91688 2001-06-11  Jim Meyering  <meyering@lucent.com>
91689
91690         * lib/regex.c: Update from GNU libc.
91691
91692 2001-05-27  Jim Meyering  <meyering@lucent.com>
91693
91694         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91695         Check for ut_type in struct utmp.
91696
91697 2001-05-27  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/readutmp.h (UT_TYPE): Define.
91700
91701 2001-05-24  Jim Meyering  <meyering@lucent.com>
91702
91703         * lib/argmatch.c: Include "quote.h".
91704         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91705         quote function.  Reported by Göran Uddeborg.
91706
91707 2001-05-22  Jim Meyering  <meyering@lucent.com>
91708
91709         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91710         now that we use the package-supplied version unconditionally.
91711         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91712
91713 2001-05-21  Jim Meyering  <meyering@lucent.com>
91714
91715         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91716         shell syntax errors.
91717
91718 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91719
91720         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91721
91722 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91723
91724         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91725         Don't bother to check library strftime, since
91726         we'll be using our own my_strftime function anyway.
91727         Define my_strftime instead of strftime.
91728
91729 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91730
91731         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91732         which is not yet declared.
91733
91734 2001-05-15  Jim Meyering  <meyering@lucent.com>
91735
91736         * m4/regex.m4: Use proper quoting so brackets appear in the test
91737         program.
91738         Reported by, and with help from, Bruno Haible.
91739
91740 2001-05-13  Jim Meyering  <meyering@lucent.com>
91741
91742         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91743         undefined.
91744
91745 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91746
91747         dirname code cleanup.  base_name now behaves more compatibly
91748         with POSIX basename when given file names that have trailing
91749         slashes, and similarly for dir_name.  Add new primitives
91750         base_len and dir_len.  Put the directory-name-related decls
91751         into dirname.h.
91752
91753         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91754         * lib/backupfile.c (base_name): Likewise.
91755         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91756         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91757         * lib/makepath.c (strip_trailing_slashes): Likewise.
91758         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91759         ISSLASH): Likewise.
91760         * lib/rename.c (strip_trailing_slashes): Likewise.
91761         * lib/same.c (base_name): Likewise.
91762         * lib/stripslash.c (ISSLASH): Likewise.
91763
91764         * lib/addext.c: Include <dirname.h> after size_t is defined.
91765         * lib/backupfile.c: Likewise.
91766
91767         * lib/addext.c (addext): Use base_len to trim redundant
91768         trailing slashes instead of doing it ourselves.
91769         But do not trim the last slash if it is not redundant.
91770
91771         * lib/backupfile.c (find_backup_file_name,
91772         max_backup_version): Use base_len instead of rolling it ourselves.
91773         Handle the case of "" and (on DOS) "C:" correctly.
91774
91775         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91776         needed. Include <string.h>, <dirname.h>.
91777         (base_name): Allow file names ending in slashes, other than names
91778         that are all slashes.  In this case, return the basename followed
91779         by the slashes.  This is more general, and can be used in places
91780         where the original base_name purposely had an assertion failure.
91781         (base_len): New function.
91782
91783         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91784         Do not include <assert.h>; no longer needed.
91785         Include xalloc.h.
91786         (memrchr): Remove decl.
91787         (dir_name_r): Remove.
91788         (dir_len): Renamed from dirlen.  All callers changed.
91789         Rewrite in terms of base_name, for simplicity and consistency.
91790         (dir_name): Never return NULL.  All callers changed.
91791         Do not include <stdlib.h> in test program; no longer needed.
91792         return 0; is fine for test program.
91793
91794         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91795         New macros.
91796         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91797
91798         * lib/path-concat.c (path_concat): Use base_len to compute
91799         base length, not strlen; this means we cannot rely on memcpy
91800         to null-terminate.
91801
91802         * lib/same.c (STREQ): Remove.
91803         (same_name): Handle the case where the basename ends in trailing '/'.
91804
91805         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91806         a slash was stripped.  Do not strip the last slash after a
91807         file system prefix.
91808
91809 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91810
91811         * lib/Makefile.am (libfetish_a_SOURCES):
91812         Add strftime.c, since we now compile it on all hosts.
91813
91814         * lib/strftime.c (my_strftime):
91815         Define to nstrftime if emacs, but only if my_strftime is not defined.
91816         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91817         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91818         Add one more extra argument: a nanoseconds value.
91819         All uses changed.
91820         (ns): New macro.
91821         (my_strftime function): Add %N format.
91822         (emacs_strftimeu): Renamed from emacs_strftime,
91823         with extra ut argument.
91824
91825 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91826
91827         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91828
91829 2001-04-21  Jim Meyering  <meyering@lucent.com>
91830
91831         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91832         doesn't interfere.
91833
91834 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91835
91836         * m4/ftruncate.m4: Check for chsize.
91837         Link with ftruncate.o unconditionally if ftruncate is missing.
91838         This was required when cross-compiling to i586-mingw32msvc.
91839
91840 2001-04-08  Jim Meyering  <meyering@lucent.com>
91841
91842         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91843         recomputed; that's necessary when the offset spans a DST transition.
91844         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91845
91846 2001-04-02  Jim Meyering  <meyering@lucent.com>
91847
91848         * lib/regex.h, regex.c: Update from GNU libc.
91849
91850 2001-03-24  Jim Meyering  <meyering@lucent.com>
91851
91852         * m4/jm-macros.m4: Require autoconf-2.49d.
91853
91854 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91855
91856         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91857
91858 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91861
91862 2001-03-17  Jim Meyering  <meyering@lucent.com>
91863
91864         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91865         now that the version in autoconf is equivalent.
91866         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91867
91868         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91869         Suggestion from Akim Demaille.
91870
91871         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91872         (jm_PREREQ_TEMPNAME): New function.
91873
91874 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91875
91876         * lib/tempname.c (uint64_t): Define to uintmax_t if
91877         not defined, and if UINT64_MAX is not defined.
91878         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91879         Reported by John David Anglin.
91880
91881 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91882
91883         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91884         resolve alias if codeset is empty.
91885         * lib/config.charset (BeOS): Use wildcard syntax.
91886
91887 2001-03-13  Jim Meyering  <meyering@lucent.com>
91888
91889         * lib/path-concat.c (path_concat)
91890         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91891         concatenating e.g., `C:' and `foo'.
91892         From Bruno Haible.
91893
91894 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91895
91896         * lib/localcharset.c (locale_charset): Don't use
91897         setlocale(LC_CTYPE,NULL). Don't return NULL.
91898         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91899
91900 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91901
91902         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91903         support for DOS/DJGPP.
91904
91905 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91906
91907         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91908         lacks mkstemp.  Compile our own tempname.c if we compile our own
91909         mkstemp.c, as mkstemp relies on tempname.
91910
91911 2001-03-01  Jim Meyering  <meyering@lucent.com>
91912
91913         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91914         AH_VERBATIM really does output its argument verbatim.
91915
91916 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91917
91918         * lib/Makefile.am (libfetish_a_SOURCES):
91919         Add dup-safer.c, fopen-safer.c.
91920         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91921
91922         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91923         * lib/unistd-safer.h: New files.
91924
91925 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91926
91927         The mkstemp replacement is taken from glibc 2.2.2, with some
91928         portability fixes for use outside glibc, as follows:
91929
91930         * lib/tempname.c (struct_stat64): New macro.
91931         (direxists, __gen_tempname): Use it.
91932         This avoids a portability problem with Solaris 8.
91933
91934         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91935         (<stddef.h>, <stdint.h>, <string.h>):
91936         Include only if STDC_HEADERS || _LIBC.
91937         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91938         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91939         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91940         (__set_errno): Define this macro if <errno.h> doesn't.
91941         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91942         Define these macros if <stdio.h> doesn't.
91943         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91944         Define these macros if <sys/stat.h>
91945         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91946         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91947         __xstat64): Define if not _LIBC.
91948         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91949         (__gen_tempname): Invoke gettimeofday only if
91950         HAVE_GETTIMEOFDAY || _LIBC;
91951         otherwise, fall back on plain "time".
91952         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91953
91954         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91955
91956         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91957
91958 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91959
91960         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91961
91962 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91963
91964         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91965         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91966         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91968
91969 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91970
91971         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91972         Remove workaround macros for hosts that have mbrtowc but not
91973         mbstate_t, as we now insist on proper declarations for both
91974         before using mbrtowc.
91975
91976 2001-02-17  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91979         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91980         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91981         UnixWare 7.1.1.
91982
91983         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91984         rather than AC_CACHE_VAL.
91985
91986 2001-02-17  Jim Meyering  <meyering@lucent.com>
91987
91988         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91989         around included file name.
91990
91991         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91992
91993         * lib/strftime.c: Update from GNU libc (the only changes were to
91994         comments).
91995
91996 2001-02-17  Jim Meyering  <meyering@lucent.com>
91997
91998         * lib/regex.c: Update from libc.
91999
92000 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92001
92002         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92003         clash.
92004
92005 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92006
92007         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92008         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92009         Reported by Mark Hounschell via Paul Eggert.
92010
92011 2001-02-07  Jim Meyering  <meyering@lucent.com>
92012
92013         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92014
92015 2001-02-05  Jim Meyering  <meyering@lucent.com>
92016
92017         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92018         it includes the patch required for `large file' support with at least
92019         HP-UX's 10.20 /bin/cc.
92020
92021 2001-02-03  Jim Meyering  <meyering@lucent.com>
92022
92023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92024         AS_IF, now that it works once again (mysteriously).
92025         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92026
92027 2001-01-30  Jim Meyering  <meyering@lucent.com>
92028
92029         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92030         * m4/chown.m4: Rename conftestchown to conftest.chown.
92031         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92032         s/conftestdir2/conftest.d2/.
92033         * m4/utimes.m4: s/conftestdata/conftest.data/
92034         Inspired by Pavel Roskin's change in autoconf.
92035
92036 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92037
92038         * lib/config.charset: Update for FreeBSD 4.2.
92039
92040 2001-01-27  Jim Meyering  <meyering@lucent.com>
92041
92042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92043         a use of AS_IF.
92044         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92045
92046 2001-01-26  Jim Meyering  <meyering@lucent.com>
92047
92048         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92049         quotearg.c includes it.
92050
92051 2001-01-26  Jim Meyering  <meyering@lucent.com>
92052
92053         * lib/quotearg.c: Include stddef.h.
92054         * lib/quote.c: Include stddef.h.
92055         Reported by Axel Kittenberger.
92056
92057         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92058         line in double quotes so that it evokes a better diagnostic.
92059         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92060         Reported by Axel Kittenberger.
92061
92062 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92063
92064         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92065         as if it was a `charset'.
92066
92067 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92068
92069         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92070         has const.
92071
92072 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92073
92074         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92075         to avoid a warning.  Add back 'const' to inptr.
92076
92077 2001-01-20  Jim Meyering  <meyering@lucent.com>
92078
92079         Be sure that headers are checked before used in code compiled
92080         for the type checks.
92081         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92082         In place of that, invoke jm_CHECK_ALL_TYPES.
92083         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92084         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92085         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92086         The check for ssize_t was mistakenly run before the test for unistd.h.
92087
92088         The configure-time check for stdbool.h was missing.
92089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92090         (jm_PREREQ_HASH): New function.
92091
92092 2001-01-17  Jim Meyering  <meyering@lucent.com>
92093
92094         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92095         for autoconf-2.49c.
92096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92097
92098 2001-01-16  Jim Meyering  <meyering@lucent.com>
92099
92100         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92101         From Bruno Haible.
92102
92103 2001-01-14  Jim Meyering  <meyering@lucent.com>
92104
92105         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92106         foo and bar.  Create conftestdir/ in the script, not in the C code.
92107         Remove directories in the script, not in the C code.
92108         Remove conftestdir{,2} before trying to create the directory.
92109         Make the entire configure script fail if the mkdir fails.
92110
92111 2001-01-14  Jim Meyering  <meyering@lucent.com>
92112
92113         * lib/rename.c: New file.  From Volker Borchert.
92114         Include stdlib.h, string.h or strings.h, and xalloc.h.
92115         Use strip_trailing_slashes rather than open-coding it.
92116
92117 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92118
92119         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92120
92121 2001-01-03  Jim Meyering  <meyering@lucent.com>
92122
92123         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92124         of local `inptr' to avoid warning with some system declarations of
92125         iconv.
92126
92127 2001-01-02  Volker Borchert  <bt@teknon.de>
92128
92129         * m4/rename.m4: New file.
92130         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92131
92132 2001-01-01  Jim Meyering  <meyering@lucent.com>
92133
92134         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92135         even on systems with utmpx.h.  It's necessary for the declaration of
92136         utmp's ut_user member.  Reported by Andreas Jaeger.
92137
92138         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92139         available. They are required for the declarations of getgrgid and
92140         getpwuid resp.
92141         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92142         Reported by Andreas Jaeger.
92143
92144 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92145
92146         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92147         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92148         so `make install' also works in VPATH builds.
92149
92150 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92151
92152         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92153         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92154         can be used in subdirectories.
92155
92156 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92157
92158         * lib/modechange.c: Do not assume that mode_t uses the
92159         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92160         the other-execute bit of FOO even if S_IXOTH != 1.
92161
92162         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92163         WOTH, XOTH, ALLM): New macros.
92164         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92165          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92166         Use them.
92167         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92168         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92169         (mode_compile):
92170         No need to use uintmax_t; unsigned long is long enough.
92171         Don't bother to get suffix since we don't use it.
92172
92173 2000-12-26  Jim Meyering  <meyering@lucent.com>
92174
92175         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92176         better with autoheader.
92177
92178 2000-12-24  Jim Meyering  <meyering@lucent.com>
92179
92180         * lib/hash.c (is_prime): Return explicit boolean values.
92181         (hash_get_first): Return NULL to appease Irix5.6's 89.
92182         Reported by Nelson Beebe.
92183
92184 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92185
92186         * lib/localcharset.c (locale_charset): Add support for Win32.
92187
92188 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92189
92190         * lib/physmem.h, lib/physmem.c: New files.
92191
92192         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92193         (noinst_HEADERS): Add physmem.h.
92194
92195         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92196         't' for compatibility with Solaris 8 sort.
92197
92198 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92199
92200         * lib/config.charset: Add support for BeOS.
92201
92202 2000-12-17  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92205         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92206
92207 2000-12-16  Jim Meyering  <meyering@lucent.com>
92208
92209         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92210         N and M) would have treated it like `chown N:N FILE'.
92211
92212         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92213
92214 2000-12-16  Jim Meyering  <meyering@lucent.com>
92215
92216         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92217         SHELLS_FILE to a file name that's useful on djgpp systems.
92218         Include stdlib.h.
92219         (ADDITIONAL_DEFAULT_SHELLS): Define.
92220         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92221         Based mostly on a patch from Prashant TR.
92222
92223 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92224
92225         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92226         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92227         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92228
92229 2000-12-08  Andreas Schwab  <schwab@suse.de>
92230
92231         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92232         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92233
92234 2000-12-07  Jim Meyering  <meyering@lucent.com>
92235
92236         * lib/stripslash.c (ISSLASH): Define.
92237         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92238         `/'.
92239         From Prashant TR.
92240
92241         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92242         (dir_name_r): Declare this function as static.
92243         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92244         manifest itself on a name containing a mix of slashes and
92245         backslashes.
92246         Make this function work with names starting with a DOS-style
92247         drive letter and colon prefix.
92248         (dir_name): Append `.' if necessary.
92249         Based mostly on patches from Prashant TR and Eli Zaretskii.
92250
92251         * lib/dirname.h (dir_name_r): Remove prototype.
92252
92253 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92254
92255         * m4/off_t-format.m4: Remove this file.
92256         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92257
92258 2000-12-06  Jim Meyering  <meyering@lucent.com>
92259
92260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92261         replacement strtoull, we may well need the replacement strtoul, too.
92262         Check for declarations of strtoul and strtoull.
92263         Check for strtol.  Mainly as a cue to cause automake to include
92264         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92265         Check for limits.h -- strtol.c needs it.
92266
92267 2000-12-05  Jim Meyering  <meyering@lucent.com>
92268
92269         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92270
92271 2000-12-04  Jim Meyering  <meyering@lucent.com>
92272
92273         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92274         Also include memory.h, stdlib.h, unistd.h if appropriate.
92275         Reported by Andreas Jaeger (conflicting declaration of malloc).
92276
92277 2000-12-02  Jim Meyering  <meyering@lucent.com>
92278
92279         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92280         * m4/jm-macros.m4 (jm_MACROS): require it.
92281
92282 2000-12-02  Jim Meyering  <meyering@lucent.com>
92283
92284         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92285
92286 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92287
92288         * lib/memrchr.c: Include <config.h> before any system include file.
92289
92290 2000-11-30  Jim Meyering  <meyering@lucent.com>
92291
92292         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92293
92294 2000-11-30  Jim Meyering  <meyering@lucent.com>
92295
92296         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92297
92298 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92299
92300         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92301
92302 2000-11-26  Jim Meyering  <meyering@lucent.com>
92303
92304         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92305
92306 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92307
92308         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92309         size of (size_t) -1; it's not portable.
92310
92311 2000-11-17  Jim Meyering  <meyering@lucent.com>
92312
92313         * lib/strstr.c: Update from GNU libc.
92314
92315 2000-11-17  Akim Demaille  <akim@epita.fr>
92316
92317         * lib/obstack.h: Formatting changes.
92318         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92319         prevent type checking.
92320         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92321         cast the value to (void *): assigning a `foo *' to a `void *'
92322         variable is valid.
92323         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92324
92325 2000-11-16  Jim Meyering  <meyering@lucent.com>
92326
92327         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92328
92329 2000-11-11  Jim Meyering  <meyering@lucent.com>
92330
92331         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92332
92333 2000-11-10  Jim Meyering  <meyering@lucent.com>
92334
92335         * lib/obstack.h: Update from GNU libc.
92336         * lib/obstack.c: Likewise.
92337
92338 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92339
92340         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92341
92342 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92343
92344         * lib/getusershell.c (setusershell): Use rewind rather than
92345         fseek/fseeko, to avoid configuration hassles with fseeko.
92346         Don't bother opening SHELLS_FILE if shellstream is NULL;
92347         it's not necessary.
92348
92349 2000-11-05  Jim Meyering  <meyering@lucent.com>
92350
92351         * lib/makepath.h (make_dir): Declare.
92352         * lib/makepath.c (make_dir): Remove `static' attribute.
92353         Tweak a comment.
92354
92355 2000-11-04  Jim Meyering  <meyering@lucent.com>
92356
92357         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92358
92359 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92360
92361         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92362         last one in a bucket, advance to the next bucket.
92363
92364 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92365
92366         * lib/fnmatch.c: Do not comment out all the code if we are using
92367         the GNU C library, because in some cases we are replacing buggy
92368         code in the GNU C library itself.
92369
92370 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92371
92372         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92373         (regex_compile): Catch bogus \(\1\).
92374
92375 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92378         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92379         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92380
92381 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92382
92383         * lib/error.h, getline.h, modechange.h:
92384         Remove "2000" from Copyright line, as the file hasn't been
92385         changed this year other than in the copyright notice.
92386
92387         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92388         was changed this year.
92389
92390 2000-10-29  Jim Meyering  <meyering@lucent.com>
92391
92392         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92393         renaming.
92394         * m4/ls-mntd-fs.m4: Likewise
92395
92396 2000-10-29  Jim Meyering  <meyering@lucent.com>
92397
92398         * lib/xstat.in: Fix grammar in comment.
92399
92400 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92401
92402         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92403         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92404         doesn't define __restrict_arr.
92405
92406 2000-10-28  Jim Meyering  <meyering@lucent.com>
92407
92408         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92409         (jm_PREREQ_MEMCHR): New function.
92410
92411 2000-10-28  Jim Meyering  <meyering@lucent.com>
92412
92413         * lib/memchr.c: Update from libc.
92414         Adjust for portability:
92415         [HAVE_STDLIB_H]: Include stdlib.h.
92416         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92417         Undef __memchr, too.
92418         [!weak_alias]: Define __memchr to memchr.
92419
92420         * lib/regex.c: Update from libc.
92421         * lib/regex.h: Likewise.
92422         * lib/getopt1.c: Likewise.
92423         * lib/memcmp.c: Likewise.
92424
92425         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92426         Avoid using fseek, when possible -- it's broken by design.
92427         Patch by Ulrich Drepper.
92428
92429 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92430
92431         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92432         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92433         Giving in to popular pressure to shut up the compiler with casts.
92434
92435 2000-10-26  Jim Meyering  <meyering@lucent.com>
92436
92437         * lib/strftime.c: Update from libc.
92438
92439 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92440
92441         * regex.c: More `unsigned char' -> `re_char' changes.
92442         Also change several `int' into `re_wchar_t'.
92443         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92444         (PUSH_FAILURE_POINTER): Don't cast any more.
92445         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92446         We want GCC to complain, since this piece of code makes
92447         re_match non-reentrant, which *should* be fixed.
92448         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92449         (EXTEND_BUFFER): Use RETALLOC.
92450         (SET_LIST_BIT): Don't cast.
92451         (re_wchar_t): New type.
92452         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92453         that those two functions will always properly return.
92454         (IMMEDIATE_QUIT_CHECK): Cast to void.
92455         (analyse_first): Use recursion rather than an explicit stack.
92456         (re_compile_fastmap): Can't fail anymore.
92457         (re_search_2): Don't check re_compile_fastmap for failure.
92458         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92459         Now also sets the new value (passed in a new argument).
92460         (re_match_2_internal): Use it.
92461         Also, use a new var `reg' of type size_t when looping through regs
92462         rather than reuse the inappropriate `mcnt'.
92463
92464 2000-10-25  Jim Meyering  <meyering@lucent.com>
92465
92466         * lib/obstack.c: Update from libc.
92467
92468 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92469
92470         * regex.c (regex_compile): Change the way of handling a range from
92471         a char less than 256 to a char not less than 256.
92472
92473 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92474
92475         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92476         NT-Emacs only.
92477         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92478         so that re_search functions only quit when callers expect them to.
92479
92480 2000-10-23  Jim Meyering  <meyering@lucent.com>
92481
92482         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92483         wrong.  That set_locale call must not have any side effects.
92484         From Paul Eggert.
92485
92486 2000-10-22  Jim Meyering  <meyering@lucent.com>
92487
92488         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92489         [CYCLIC]: Remove now-unused definition.
92490
92491         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92492         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92493         Suggestion from Ulrich Drepper.
92494
92495 2000-10-21  Jim Meyering  <meyering@lucent.com>
92496
92497         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92498         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92499         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92500
92501 2000-10-21  Jim Meyering  <meyering@lucent.com>
92502
92503         * lib/dirname.c (memrchr): Declare if necessary.
92504         (dir_name): Remove the restriction that there be no
92505         trailing slashes.  Now, this code skips past them, effectively
92506         ignoring them.
92507         [TEST_DIRNAME] (main): New unit tests.
92508
92509         * lib/memrchr.c: New file from GNU libc.
92510         Undef __memrchr, too.
92511         [!weak_alias]: Define __memrchr to memrchr.
92512         Guard weak_alias use with `#ifdef weak_alias'.
92513
92514 2000-10-21  Jim Meyering  <meyering@lucent.com>
92515
92516         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92517         (dir_name): Use dir_name_r.
92518         * lib/dirname.h (dir_name_r): Declare it.
92519
92520 2000-10-17  Jim Meyering  <meyering@lucent.com>
92521
92522         * lib/quote.h (PARAMS): Define and use.
92523         Reported by Akim Demaille.
92524
92525         * lib/getopt.c: Update from libc.
92526
92527 2000-10-16  Jim Meyering  <meyering@lucent.com>
92528
92529         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92530         setlocale.
92531         From Jan Fedak.
92532
92533 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92534
92535         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92536
92537 2000-09-25  Jim Meyering  <meyering@lucent.com>
92538
92539         * lib/md5.h (rol): Define (from GnuPG).
92540
92541         * lib/sha.c: Give credit (GnuPG) where due.
92542         (M): Use rol rather than open-coding it.
92543         Add a FIXME comment.
92544
92545 2000-09-21  Jim Meyering  <meyering@lucent.com>
92546
92547         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92548         Reported by Michael Stone.
92549
92550 2000-09-20  Jim Meyering  <meyering@lucent.com>
92551
92552         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92553         (noinst_HEADERS): Add sha.h.
92554         Based on code from Scott G. Miller and from GnuPG.
92555
92556 2000-09-18  Jim Meyering  <meyering@lucent.com>
92557
92558         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92559         LIBS. Otherwise, everyone ends up linking with -lelf for some
92560         configurations.
92561         Reported by Mike Stone.
92562
92563 2000-09-15  Jim Meyering  <meyering@lucent.com>
92564
92565         * lib/regex.c: Update from libc.
92566
92567 2000-09-10  Jim Meyering  <meyering@lucent.com>
92568
92569         * lib/getopt.c (_getopt_internal): Update from glibc.
92570
92571 2000-09-09  Jim Meyering  <meyering@lucent.com>
92572
92573         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92574         think it should be used as a general replacement for isascii.
92575         * lib/fnmatch.c: Likewise.
92576         * lib/mbswidth.c: Likewise
92577         * lib/regex.c: Likewise.
92578
92579         Don't use atoi.
92580         * lib/userspec.c: Include sys/param.h and limits.h.
92581         Include xstrtol.h.
92582         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92583         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92584         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92585         UID, GID.  Check range.
92586
92587 2000-09-06  Jim Meyering  <meyering@lucent.com>
92588
92589         * lib/getopt.c (_getopt_internal): Update from glibc.
92590
92591 2000-08-30  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/strftime.c: Merge in changes from GNU libc.
92594
92595 2000-08-26  Jim Meyering  <meyering@lucent.com>
92596
92597         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92598         * m4/fpending.m4: New file.
92599
92600 2000-08-26  Jim Meyering  <meyering@lucent.com>
92601
92602         * lib/closeout.c: Include "__fpending.h".
92603         (close_stdout_status): Return right away if there's nothing to flush.
92604
92605         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92606         * lib/__fpending.c: New file.
92607         * lib/__fpending.h: New file.
92608
92609 2000-08-20  Jim Meyering  <meyering@lucent.com>
92610
92611         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92612         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92613         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92614
92615 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92616
92617         Improve fileutils installation on systems where running
92618         programs (like install) can't be unlinked.
92619         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92620         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92621
92622 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92623
92624         Standardize on "memory exhausted" instead of "Memory exhausted"
92625         or "virtual memory exhausted".
92626         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92627         "virtual memory exhausted".
92628         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92629         our own message.
92630         * lib/userspec.c (parse_user_spec): Likewise.
92631         * lib/bumpalloc.h: comment fix
92632         * lib/same.c, userspec.c: Include xalloc.h.
92633
92634         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92635         not char *const and pointing to a constant array.
92636         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92637         (xrealloc): Comment fix.
92638
92639         * lib/userspec.c (parse_user_spec):
92640         Don't translate a message until just before returning,
92641         to avoid unnecessary translation.
92642
92643 2000-08-07  Jim Meyering  <meyering@lucent.com>
92644
92645         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92646         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92647         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92648         getgroups.c, gethostname.c, getopt.h, group-member.c,
92649         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92650         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92651         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92652         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92653         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92654         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92655         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92656         yesno.c: Back out Copyright date changes for each file with no change
92657         this year.  This eases coordination with other programs using the same
92658         source code modules.  From Paul Eggert.
92659
92660 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92661
92662         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92663         not char, for compatibility with glibc 2.1.3 strftime.c.
92664
92665 2000-08-03  Greg McGary  <greg@mcgary.org>
92666
92667         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92668         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92669         (EXTEND_BUFFER): Use them.
92670
92671 2000-08-01  Jim Meyering  <meyering@lucent.com>
92672
92673         * lib/dirname.c (ISSLASH): Define.
92674         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92675         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92676         both `\' and `/' may be use as path separators.
92677         Based on a patch from Prashant TR.
92678
92679 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92680
92681         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92682         slot vector a constant, since it might get modified.
92683
92684 2000-07-31  Jim Meyering  <meyering@lucent.com>
92685
92686         * lib/xmalloc.c: Use `virtual memory exhausted', not
92687         `Memory exhausted'.
92688         * lib/obstack.c (print_and_abort): Likewise.
92689
92690 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92691
92692         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92693         buffer, so that the caller can always quote one small
92694         component of a "memory exhausted" message in slot 0.
92695         From a suggestion by Jim Meyering.
92696
92697 2000-07-30  Jim Meyering  <meyering@lucent.com>
92698
92699         * lib/makepath.c (make_path): Quote the other instance, too.
92700
92701         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92702         (STATIC_BUF_SIZE): Define.
92703         (quotearg_n_options): Use only statically allocated storage when
92704         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92705         than STATIC_BUF_SIZE.
92706
92707 2000-07-29  Jim Meyering  <meyering@lucent.com>
92708
92709         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92710         * lib/dirname.c (dir_name): Likewise.
92711
92712         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92713         `/'.
92714
92715         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92716         (dir_name): Assert that there are no trailing slashes.
92717
92718 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92719
92720         * lib/mbswidth.h (mbswidth): Add a flags argument.
92721         (mbswidth): New declaration.
92722         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92723         * lib/mbswidth.c (mbswidth): Add a flags argument.
92724         (mbsnwidth): New function.
92725
92726 2000-07-24  Jim Meyering  <meyering@lucent.com>
92727
92728         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92729
92730 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92731
92732         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92733
92734 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92735
92736         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92737         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92738         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92739         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92740         invoke multibyte primitives.
92741
92742 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92743
92744         * lib/quotearg.c:
92745         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92746         so that mbstate_t is always defined.
92747
92748         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92749         be 1 in at least one GCC installation, and this configuration
92750         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92751         performance on hosts that have mbrtowc but have only unibyte
92752         locales, but I assume these hosts are rare.
92753
92754 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92755
92756         * lib/mbswidth.c (_XOPEN_SOURCE):
92757         Don't define; this causes problems on Solaris 7.
92758         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92759
92760 2000-07-23  Jim Meyering  <meyering@lucent.com>
92761
92762         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92763         too: getgrgid, getpwuid, getuid.
92764
92765 2000-07-23  Jim Meyering  <meyering@lucent.com>
92766
92767         * lib/basename.c (base_name): Add an assertion.
92768
92769 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92770
92771         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92772         shadow its mbsinit function.
92773
92774 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92775
92776         * lib/mbswidth.h: New file.
92777         * lib/mbswidth.c: New file.
92778         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92779         (noinst_HEADERS): Add mbswidth.h.
92780
92781 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92782
92783         * lib/config.charset: Add support for FreeBSD. Improve support for
92784         HP-UX and IRIX 6.
92785
92786 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92787
92788         * m4/mbswidth.m4: New file.
92789         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92790
92791 2000-07-15  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/makepath.c: Include quote.h.
92794         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92795         corresponding argument in a `quote (...)' call.
92796         Give better diagnostics.
92797
92798         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92799         (noinst_HEADERS): Add quote.h.
92800
92801         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92802         from tar's src/misc.c.
92803         * lib/quote.h: New file.  Prototypes for same.
92804
92805 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92806
92807         From a suggestion by Bruno Haible.
92808         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92809         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92810         to decide whether to define the BeOS workaround macro;
92811         this adjusts to the change to AC_MBSTATE_T.
92812
92813 2000-07-14  Jim Meyering  <meyering@lucent.com>
92814
92815         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92816         jm_AC_TYPE_UINTMAX_T.
92817
92818 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92819
92820         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92821
92822         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92823         quotearg_buffer_restyled): Add support for
92824         clocale_quoting_style.  Undo previous change to
92825         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92826         and "{RIGHT QUOTATION MARK}" msgids.
92827
92828 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92829
92830         From a suggestion by Bruno Haible.
92831         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92832         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92833         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92834         and mbstate_t, to a single-part test that simply defines mbstate_t.
92835         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92836         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92837
92838 2000-07-10  Jim Meyering  <meyering@lucent.com>
92839
92840         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92841
92842         * m4/gnu-source.m4: Output to confdefs.h directly.
92843         Suggestion from Akim Demaille.
92844
92845 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92846
92847         The old behavior of quoting `like this' doesn't look good with
92848         newer, ISO-style fonts.  See:
92849         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92850
92851         Instead, quote "like this" by default.  Let the translator
92852         tailor the locale-specific quoting behavior by providing
92853         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92854
92855         * lib/quotearg.c (N_): New macro.
92856         (gettext_default): New function.
92857         (quotearg_buffer_restyled): Use
92858         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92859         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92860
92861 2000-07-09  Jim Meyering  <meyering@lucent.com>
92862
92863         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92864         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92865
92866         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92867         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92868
92869 2000-07-09  Jim Meyering  <meyering@lucent.com>
92870
92871         * lib/Most files: Update copyright dates to include 2000.
92872
92873 2000-07-08  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92876         if not defined.
92877         (xgethostname): Remove now-unnecessary #ifdef.
92878         Move declaration of `err' into loop where it's used.
92879
92880 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92881         and Bruno Haible  <haible@clisp.cons.org>
92882
92883         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92884         only if the test for an object-type mbstate_t fails.  This
92885         prevents us from mistakenly reporting that mbstate_t is a
92886         system object type after we "#define mbstate_t int" to work
92887         around its lack.
92888
92889 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92890         and Bruno Haible  <haible@clisp.cons.org>
92891
92892         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92893
92894 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92895
92896         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92897         to strerror_r.
92898         Include <ctype.h> for use of isalpha.
92899
92900 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92901
92902         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92903         by allocating a larger buffer. Test the gethostname return value for
92904         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92905         returns an error and ENAMETOOLONG isn't defined.
92906
92907 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92908
92909         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92910         dimension.
92911
92912 2000-07-04  Jim Meyering  <meyering@lucent.com>
92913
92914         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92915         of the deprecated AC_CHECKING.
92916
92917 2000-07-04  Jim Meyering  <meyering@lucent.com>
92918
92919         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92920         Reported by Bruno Haible.
92921
92922 2000-07-04  Jim Meyering  <meyering@lucent.com>
92923
92924         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92925         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92926         lacks mbrtowc.
92927
92928 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92929
92930         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92931         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92932
92933 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92934         and Bruno Haible  <haible@clisp.cons.org>
92935
92936         * lib/quotearg.c (mbrtowc):
92937         Assign to *pwc, and return 1 only if result is nonzero.
92938         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92939
92940 2000-07-03  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92943
92944 2000-07-03  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92947         This is necessary to get a definition of e.g., UTMP_FILE on
92948         HP-UX 10.20.
92949         From Bob Proulx.
92950
92951 2000-07-02  Jim Meyering  <meyering@lucent.com>
92952
92953         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92954
92955         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92956         AC_LIBOBJ(function_name).
92957         * m4/chown.m4: Likewise.
92958         * m4/fnmatch.m4: Likewise.
92959         * m4/ftruncate.m4: Likewise.
92960         * m4/getgroups.m4: Likewise.
92961         * m4/getline.m4: Likewise.
92962         * m4/group-member.m4: Likewise.
92963         * m4/jm-macros.m4: Likewise.
92964         * m4/lstat.m4: Likewise.
92965         * m4/malloc.m4: Likewise.
92966         * m4/memcmp.m4: Likewise.
92967         * m4/nanosleep.m4: Likewise.
92968         * m4/putenv.m4: Likewise.
92969         * m4/realloc.m4: Likewise.
92970         * m4/regex.m4: Likewise.
92971         * m4/stat.m4: Likewise.
92972         * m4/strftime.m4: Likewise.
92973
92974 2000-07-02  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/quotearg.c (mbstate_t): Don't define here.
92977
92978 2000-07-02  Jim Meyering  <meyering@lucent.com>
92979
92980         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92981
92982 2000-07-01  Jim Meyering  <meyering@lucent.com>
92983
92984         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92985
92986 2000-07-01  Jim Meyering  <meyering@lucent.com>
92987
92988         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92989         problem.
92990
92991 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92992
92993         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92994         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92995
92996 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92997
92998         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92999         per change in ../m4/ls-mntd-fs.m4.
93000         (read_filesystem_list): Ignore symbolic links.
93001
93002 2000-06-29  Jim Meyering  <meyering@lucent.com>
93003
93004         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93005         for declaration of strcmp.
93006
93007         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93008
93009         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93010         Avoid warning by casting result to `char *' to remove `const'.
93011
93012 2000-06-28  Jim Meyering  <meyering@lucent.com>
93013
93014         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93015         included by quotearg.c, for which we perform this test.  From
93016         Bruno Haible.
93017
93018 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93019
93020         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93021         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93022         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93023
93024 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93025
93026         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93027
93028 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93029
93030         savedir now sets errno on failure and invokes xmalloc to get memory.
93031         Fix a couple of other minor bugs while we're at it.
93032
93033         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93034         (NAMLEN): Remove macro.
93035         (malloc, realloc): Remove decls.
93036         (stpcpy): Likewise.
93037         ("xalloc.h"): Include.
93038         (NAME_SIZE_DEFAULT): New macro.
93039         (savedir): Use xmalloc / xrealloc to allocate memory.
93040         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93041         Skip "" directory entries.
93042         Use strlen to calculate directory entry length, since the old method
93043         is rarely used these days and isn't worth supporting.
93044         Don't use a pointer after freeing it.
93045         Check for integer overflow when calculating allocation size.
93046         Use memcpy to copy entries, instead of stpcpy.
93047         Set errno properly when returning NULL.
93048         Check for readdir error.
93049
93050 2000-06-26  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93053
93054 2000-06-25  Jim Meyering  <meyering@lucent.com>
93055
93056         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93057         Linux header bug when _XOPEN_SOURCE is defined to 500.
93058
93059 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93060
93061         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93062         deficiency.
93063
93064 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93065
93066         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93067         Include xalloc.h.
93068         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93069
93070 2000-06-24  Jim Meyering  <meyering@lucent.com>
93071
93072         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93073         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93074         for which strerror does return char*, but which lacks a conveniently
93075         accessible declaration of the function.  If the compile-test says
93076         strerror_r doesn't work, then resort to a `run'-test that works on
93077         BeOS and segfaults on DEC Unix.
93078
93079 2000-06-24  Jim Meyering  <meyering@lucent.com>
93080
93081         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93082
93083 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93084
93085         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93086         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93087
93088 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93089
93090         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93091         (mbrtowc, mbstate_t): Define substitutes if
93092         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93093         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93094         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93095
93096 2000-06-23  Jim Meyering  <meyering@lucent.com>
93097
93098         * m4/afs.m4: Add missing AC_MSG_RESULT.
93099         Reported by Bruno Haible.
93100
93101         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93102         Suggestion from Bruno Haible.
93103
93104 2000-06-23  Jim Meyering  <meyering@lucent.com>
93105
93106         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93107
93108 2000-06-21  Jim Meyering  <meyering@lucent.com>
93109
93110         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93111
93112 2000-06-21  Jim Meyering  <meyering@lucent.com>
93113
93114         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93115         (noinst_HEADERS): Add getstr.h.
93116
93117         * lib/getline.c (getstr): Move into a separate file.
93118         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93119         the following changes: new parameter, delim2; both delim[12]
93120         parameters have type `int', not `char'.  The latter would lose
93121         with 8-bit delimiters.
93122         * lib/getstr.h: New file.
93123
93124 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93125
93126         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93127         than 1024, return a memory chunk of least possible size, instead
93128         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93129         Use free/xmalloc instead of xrealloc to avoid copying for very long
93130         paths.
93131
93132 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93133
93134         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93135         the empty string.
93136
93137 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93138
93139         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93140         address, not strdup.  Include <stdlib.h> and don't declare free().
93141
93142 2000-06-19  Jim Meyering  <meyering@lucent.com>
93143
93144         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93145
93146 2000-06-18  Jim Meyering  <meyering@lucent.com>
93147
93148         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93149
93150         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93151         `checking whether...' message to be consistent with that of the
93152         lstat test.
93153
93154 2000-06-18  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93157         Besides, these days every porting target provides a mkdir function.
93158
93159         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93160         needed. (this snippet comes from src/system.h).
93161
93162 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93163
93164         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93165
93166 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93167
93168         * lib/human.c (adjust_value): New function.
93169         (human_readable_inexact): Apply rounding style even when
93170         printing approximate values.
93171
93172 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93173
93174         * lib/human.c (human_readable_inexact): Allow an input block
93175         size that is not a multiple of the output block size, and vice versa.
93176         Reported by Piergiorgio Sartor.
93177
93178 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93179
93180         * lib/getdate.y (get_date): Apply relative times after time
93181         zone indicator, not before.  Reported by Todd A. Jacobs.
93182
93183 2000-06-13  Jim Meyering  <meyering@lucent.com>
93184
93185         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93186
93187         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93188
93189 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93190
93191         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93192
93193 2000-06-12  Jim Meyering  <meyering@lucent.com>
93194
93195         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93196         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93197         optional argument.
93198         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93199         the optional argument, `lib'.
93200
93201 2000-06-08  Jim Meyering  <meyering@lucent.com>
93202
93203         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93204
93205 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93206
93207         Rewrite largefile configuration so that we don't need to run
93208         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93209         AC_CANONICAL_HOST in configure.in -- jmm]
93210
93211         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93212         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93213         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93214         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93215         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93216         All uses changed.
93217         Instead of inspecting the output of getconf, try to compile the
93218         test program without and with the macro definition.
93219         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93220         for getconf.  Instead, check for the needed flags by compiling
93221         test programs.
93222
93223 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93224
93225         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93226
93227 2000-06-04  Jim Meyering  <meyering@lucent.com>
93228
93229         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93230         SunOS 4.1.4 for which gid_t is an unsigned type.
93231
93232 2000-06-03  Jim Meyering  <meyering@lucent.com>
93233
93234         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93235         now that autoconf requires that.
93236
93237         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93238         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93239         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93240
93241 2000-06-03  Jim Meyering  <meyering@lucent.com>
93242
93243         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93244
93245 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93246
93247         * m4/glibc21.m4: New file.
93248         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93249
93250 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93251
93252         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93253         newer, don't install charset.alias.
93254         * lib/config.charset: Change the Linux/glibc rules so they become empty
93255         on glibc-2.1 or newer.
93256
93257 2000-06-02  Jim Meyering  <meyering@lucent.com>
93258
93259         * lib/mountlist.c: Back out last change.  Instead, do this...
93260         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93261         me_dummy member using the same `ignore'-testing code.
93262         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93263         fs_type strings.
93264         From Mark D. Roth.
93265
93266 2000-05-29  Jim Meyering  <meyering@lucent.com>
93267
93268         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93269         mounts with the `ignore' attribute.  Based on a patch from
93270         Mark D. Roth.
93271
93272 2000-05-28  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93275         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93276         * m4/stat.m4: Likewise.
93277         * m4/lstat.m4: Likewise.
93278         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93279
93280         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93281         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93282
93283 2000-05-26  Jim Meyering  <meyering@lucent.com>
93284
93285         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93286
93287 2000-05-24  Jim Meyering  <meyering@lucent.com>
93288
93289         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93290         autoconf requires that.
93291         * m4/lib-check.m4: Likewise.
93292         * m4/jm-macros.m4: Likewise.
93293         * m4/strftime.m4: Likewise.
93294
93295         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93296         AC_CHECK_DECLS, now that autoconf requires that.
93297
93298 2000-05-22  Jim Meyering  <meyering@lucent.com>
93299
93300         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93301         * m4/lstat.m4: Likewise.
93302
93303 2000-05-22  Jim Meyering  <meyering@lucent.com>
93304
93305         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93306
93307 2000-05-20  Jim Meyering  <meyering@lucent.com>
93308
93309         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93310         (jm_PREREQ): Use it.
93311
93312 2000-05-18  Jim Meyering  <meyering@lucent.com>
93313
93314         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93315         back, too, since it may have been modified by allocate_entry.
93316         (hash_delete): Rewrite to use neither the assignment operator
93317         nor the comma operator in an if-expression.
93318
93319 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93320
93321         * lib/closeout.c:
93322         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93323         Remove; no longer needed.
93324         "quotearg.h": Add include.
93325         (file_name): Do not bother to explicitly initialize to NULL; it's less
93326         efficient on some hosts.
93327         (close_stdout_status): Remove test as to whether stdout was already
93328         closed; it breaks for the case "echo x | sort >&-".
93329         Quote file name colons.
93330         Do not assume that _("write error") lacks format strings.
93331
93332 2000-05-15  Jim Meyering  <meyering@lucent.com>
93333
93334         * lib/version-etc.c (version_etc_copyright): Update the copyright
93335         string used in all --version output.
93336
93337 2000-05-14  Jim Meyering  <meyering@lucent.com>
93338
93339         * lib/closeout.c (close_stdout_set_file_name): New function.
93340         (close_stdout_status): Use new file-scoped global.
93341         Return right away if fstat says the stdout file descriptor is invalid.
93342         * lib/closeout.h (close_stdout_set_file_name): Declare.
93343
93344 2000-05-10  Jim Meyering  <meyering@lucent.com>
93345
93346         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93347         (close_stdout_set_status): New function.
93348         * lib/closeout.h (close_stdout_set_status): Declare.
93349
93350 2000-05-09  Jim Meyering  <meyering@lucent.com>
93351
93352         * m4/gettext.m4: Rename this...
93353         * m4/libintl.m4: ...to this.
93354
93355 2000-05-08  Jim Meyering  <meyering@lucent.com>
93356
93357         * lib/long-options.c: Don't include closeout.h.
93358         (parse_long_options): Don't call close_stdout for --version.
93359
93360 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93361
93362         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93363         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93364         2.1.3 bug.  This avoids a clash when files like regex.c define
93365         _GNU_SOURCE.
93366
93367 2000-05-06  Jim Meyering  <meyering@lucent.com>
93368
93369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93370         (AC_REPLACE_FUNCS): Add strnlen.
93371
93372         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93373         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93374
93375         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93376         AC_SEARCH_LIBS call for nanosleep.
93377         (LIB_NANOSLEEP): Set and AC_SUBST.
93378
93379 2000-05-06  Jim Meyering  <meyering@lucent.com>
93380
93381         * lib/strnlen.c: Undefine __strnlen and strnlen.
93382         [!weak_alias]: Define __strnlen to strnlen.
93383
93384         * lib/atexit.c: New file, from libiberty.
93385
93386 2000-05-06  Jim Meyering  <meyering@lucent.com>
93387
93388         * lib/closeout.c (close_stdout_status): Also check for errors on the
93389         stderr stream.
93390
93391 2000-05-05  Jim Meyering  <meyering@lucent.com>
93392
93393         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93394         AC_SEARCH_LIBS call for clock_gettime.
93395         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93396
93397         * m4/search-libs.m4: Update from autoconf.
93398
93399         su doesn't work on Solaris 2.6.
93400         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93401         <shadow.h>.  Reported by Dragos Harabor.
93402
93403 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93404
93405         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93406         memcpy instead of xmalloc, xrealloc, path_concat.
93407         (locale_charset): Treat empty environment variables as absent.
93408         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93409
93410 2000-05-04  Jim Meyering  <meyering@lucent.com>
93411
93412         * lib/getopt.c: Update from glibc.
93413         * lib/obstack.c: Likewise.
93414         * lib/obstack.h: Likewise.
93415         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93416         file
93417
93418         * lib/regex.h: Likewise.
93419         * lib/strndup.c: Likewise.
93420         * lib/strnlen.c: New file, from glibc.
93421
93422 2000-05-03  Jim Meyering  <meyering@lucent.com>
93423
93424         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93425
93426 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93427
93428         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93429         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93430         compile-time test, rather than inspecting host and OS, to
93431         decide whether to define _LARGEFILE_SOURCE.
93432
93433 2000-05-01  Jim Meyering  <meyering@lucent.com>
93434
93435         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93436
93437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93438         Based on a patch from Bruno Haible.
93439
93440 2000-05-01  Jim Meyering  <meyering@lucent.com>
93441
93442         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93443
93444 2000-04-29  Jim Meyering  <meyering@lucent.com>
93445
93446         * lib/path-concat.c: Declare strdup only if it's not defined.
93447         * lib/canon-host.c: Likewise.
93448
93449 2000-04-28  Jim Meyering  <meyering@lucent.com>
93450
93451         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93452         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93453         is included first, then limits.h is included by locale.h by libintl.h.
93454         From John David Anglin.
93455
93456 2000-04-25  Jim Meyering  <meyering@lucent.com>
93457
93458         * lib/makepath.c (S_IRWXUGO): Define.
93459         (make_path): Always perform explicit chmod if MODE specifies any
93460         of the `special' permission bits.  Prompted by a bug report against
93461         install from Mate Wierdl and Joost van Baal.
93462
93463 2000-04-18  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93466         (jm_PREREQ): Use it.
93467
93468 2000-04-18  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/README: New file.
93471
93472         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93473         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93474
93475 2000-04-17  Jim Meyering  <meyering@lucent.com>
93476
93477         Get it right :-)
93478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93479         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93480         Suggestion from Akim Demaille.
93481
93482 2000-04-17  Jim Meyering  <meyering@lucent.com>
93483
93484         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93485         the definition of it to rpl_strftime also defined-away the system's
93486         declaration.
93487
93488 2000-04-15  Jim Meyering  <meyering@lucent.com>
93489
93490         Use `C' to denote so-called `contiguous' files, the same way
93491         that tar does.
93492         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93493         (ftypelet): Use S_ISCTG.
93494         From Michael Deutschmann.
93495
93496 2000-04-14  Jim Meyering  <meyering@lucent.com>
93497
93498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93499         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93500         clobbered.
93501
93502 2000-04-14  Jim Meyering  <meyering@lucent.com>
93503
93504         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93505
93506 2000-04-13  Jim Meyering  <meyering@lucent.com>
93507
93508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93509         AH_VERBATIM to insert required #ifndef into config.h.in.
93510         Suggestion from Akim Demaille.
93511
93512 2000-04-12  Jim Meyering  <meyering@lucent.com>
93513
93514         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93515         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93516         Christian Krackowizer.
93517
93518         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93519         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93520         (AC_SYS_LARGEFILE): Require.
93521         (AM_C_PROTOTYPES): Require.
93522
93523 2000-04-08  Jim Meyering  <meyering@lucent.com>
93524
93525         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93526         names don't conflict.  Reported by Eli Zaretskii.
93527
93528 2000-04-07  Jim Meyering  <meyering@lucent.com>
93529
93530         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93531         sys/types.h, to work around system header problems on AIX 3.2.5.
93532         From Bruno Haible.
93533
93534 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93535
93536         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93537         bug.  Deal with the different error behavior of Irix iconv.
93538
93539 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93540
93541         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93542         IRIX if the installer said otherwise.
93543
93544 2000-04-05  Jim Meyering  <meyering@lucent.com>
93545
93546         Portability tweaks required for ultrix4.3.
93547         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93548         (jm_CHECK_DECLS): Add getutent to the list of functions.
93549         (_jm_DECL_HEADERS): Add utmpx.h.
93550         From John David Anglin.
93551
93552         * m4/strftime.m4: Back out the 2000-04-02 change.
93553         Instead of that change, simply undefine putenv in the test program.
93554
93555 2000-04-05  Jim Meyering  <meyering@lucent.com>
93556
93557         Portability tweaks required for ultrix4.3.
93558         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93559         getutent.
93560         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93561         * lib/canon-host.c: Declare strdup.
93562         * lib/path-concat.c: Likewise.
93563         From John David Anglin.
93564
93565 2000-04-04  Jim Meyering  <meyering@lucent.com>
93566
93567         Be more DOS 8.3-friendly.
93568         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93569         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93570         * lib/Makefile.am: Reflect renaming.
93571         Reported by Eli Zaretskii.
93572
93573         Use a temporary file name that won't clash with `charset.alias'
93574         in the DOS 8.3 name space.
93575         * lib/Makefile.am (charset_tmp): Define.
93576         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93577         (uninstall-local): Likewise.
93578         Reported by Eli Zaretskii.
93579
93580 2000-04-03  Jim Meyering  <meyering@lucent.com>
93581
93582         * m4/gettext.m4: Fix typo in comment.
93583
93584         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93585         textutils/configure.in).  Suggestion from Paul Eggert.
93586         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93587
93588 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93589
93590         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93591         variable in the shell rather than using putenv, which isn't
93592         portable.  This avoids the configure-time inter-test dependency
93593         on the potentially-renamed putenv function.
93594
93595 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93596
93597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93598         before checking struct stat.st_blksize, so that
93599         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93600
93601 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93602
93603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93604         since strftime.c uses HAVE_STRFTIME to decide whether to use
93605         the underlying strftime.
93606
93607 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93608
93609         * lib/time/strftime.c (my_strftime): Make sure we call the system
93610         strftime, not ourselves, when invoking the underlying strftime.
93611
93612 2000-03-24  Jim Meyering  <meyering@lucent.com>
93613
93614         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93615         (charset_alias): Define.
93616         (install-exec-local): Factor out common code.
93617         (uninstall-local): Split lines longer than 80.
93618         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93619         (SUFFIXES): Define.
93620         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93621         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93622
93623 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93624
93625         * lib/config.charset: Output a line containing "Packages using this
93626         file".
93627         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93628         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93629         ref-del.sed): New rules.
93630
93631 2000-03-17  Jim Meyering  <meyering@lucent.com>
93632
93633         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93634         Otherwise, include <strings.h>
93635
93636 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93637
93638         * lib/unicodeio.c (utf8_wctomb): New function.
93639         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93640         format instead of in UCS-4 with platform dependent endianness.
93641
93642 2000-03-10  Jim Meyering  <meyering@lucent.com>
93643
93644         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93645         From Marco Franzen.
93646
93647 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93648
93649         * lib/savedir.c (savedir): Work even if directory size is
93650         negative; this can happen with some screwy NFS configurations.
93651
93652 2000-03-06  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93655         if it's NULL (because we ran out of memory).  From Bruno Haible.
93656
93657 2000-03-05  Jim Meyering  <meyering@lucent.com>
93658
93659         * lib/localcharset.c ("path-concat.h"): Include.
93660         (get_charset_aliases): Use path_concat instead of ANSI string
93661         concatenation.
93662
93663         * lib/unicodeio.h (PARAMS): Define.
93664         Use it to guard prototype.
93665
93666 2000-03-04  Jim Meyering  <meyering@lucent.com>
93667
93668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93669         for lib/localcharset.c.
93670
93671 2000-03-04  Jim Meyering  <meyering@lucent.com>
93672
93673         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93674         installing into it.
93675         (uninstall-local): Uncomment this rule so `make distcheck' works
93676         once again.
93677
93678         * lib/unicodeio.c (<errno.h>): Include it.
93679         (errno): Declare if not defined.
93680
93681         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93682
93683         * lib/config.charset: New version, incorporating remarks from a linux
93684         i18n mailing list.  From Bruno Haible.
93685
93686 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93687
93688         * m4/codeset.m4: New file.
93689         * m4/iconv.m4: New file.
93690         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93691
93692 2000-03-03  Jim Meyering  <meyering@lucent.com>
93693
93694         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93695
93696 2000-03-02  Jim Meyering  <meyering@lucent.com>
93697
93698         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93699         the messages come out on separate lines.
93700
93701         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93702         rather than jm_CHECK_DECLARATIONS.
93703         * m4/decl.m4: Remove now-unused file.
93704
93705         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93706         geteuid.
93707
93708 2000-03-02  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93711
93712 2000-03-01  Jim Meyering  <meyering@lucent.com>
93713
93714         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93715         * lib/unicodeio.c: Likewise.
93716
93717 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93718
93719         * lib/config.charset: New file.
93720         * lib/localcharset.c: New file.
93721         * lib/unicodeio.h, lib/unicodeio.c: New files.
93722         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93723         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93724         (noinst_HEADERS): Add unicodeio.h.
93725         (all-local, install-exec-local, charset.alias): New targets.
93726
93727 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93728
93729         * lib/quotearg.c (ALERT_CHAR): New macro.
93730         (quotearg_buffer_restyled): Use it.
93731
93732 2000-02-27  Jim Meyering  <meyering@lucent.com>
93733
93734         * m4/check-decl.m4: Add getenv to the list.
93735
93736 2000-02-27  Jim Meyering  <meyering@lucent.com>
93737
93738         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93739         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93740
93741         * lib/backupfile.c: Guard inclusion of stdlib.h with
93742         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93743         Declare malloc if needed.
93744
93745         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93746         `#ifndef HAVE_DECL..'
93747         now that autoconf always defines the HAVE_DECL_ symbols.
93748         * lib/human.c: Likewise.
93749         * lib/same.c: Likewise.
93750         * lib/strtoumax.c: Likewise.
93751
93752         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93753         declaration check was not run.
93754         * lib/hash.c: Likewise.
93755         * lib/human.c: Likewise.
93756         * lib/same.c: Likewise.
93757         * lib/strtoumax.c: Likewise.
93758
93759         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93760         `.', then first look up the entire `.'-containing string as a login
93761         name.
93762
93763 2000-02-23  Jim Meyering  <meyering@lucent.com>
93764
93765         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93766         in place of my hack.
93767
93768 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93769
93770         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93771         (textint): New typedef.
93772         (parser_control): Member year changed from int to textint.
93773         All uses changed.
93774         (YYSTYPE): Removed; replaced by %union with int and textint members.
93775         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93776         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93777         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93778         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93779         (date, number, to_year): Use width of number in digits, not its value,
93780         to determine whether it's a 2-digit year, or a 2-digit time.
93781         (yylex): Store number of digits of numeric tokens.
93782         Reported by John Kendall.
93783
93784         (parser_control): Changed from struct parser_control to typedef (for
93785         consistency).  All uses changed.
93786
93787         (tID): Removed; not used.
93788         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93789
93790 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93791
93792         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93793         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93794
93795 2000-02-12  Jim Meyering  <meyering@lucent.com>
93796
93797         * lib/userspec.c (ISDIGIT): Define it.
93798         (isdigit): Remove definition.
93799         (is_number): Use ISDIGIT, not isdigit.
93800         <libintl.h>: Include.
93801         (_ and N_): Define.
93802         (parse_user_spec): Mark translatable strings.
93803
93804 2000-02-10  Jim Meyering  <meyering@lucent.com>
93805
93806         With these changes, nanosleep.[ch] are finally enough like the other
93807         lib/* replacement files to compile on a few more losing systems.
93808
93809         * lib/nanosleep.h: Don't include config.h.
93810         Remove prototype from declaration of nanosleep.
93811         (PARAMS): Remove now-unneeded definition.
93812         * lib/nanosleep.c: #undef nanosleep.
93813         (rpl_nanosleep): Rename from nanosleep.
93814
93815 2000-02-10  Jim Meyering  <meyering@lucent.com>
93816
93817         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93818         gnu_nanosleep to rpl_nanosleep.
93819
93820 2000-02-09  Jim Meyering  <meyering@lucent.com>
93821
93822         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93823         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93824
93825 2000-02-08  Akim Demaille  <akim@epita.fr>
93826
93827         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93828         `[' and `]' and remove uses of `changequote'.
93829         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93830         (AC_SYS_LARGEFILE): Likewise.
93831         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93832         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93833         of changequote.
93834         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93835         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93836         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93837         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93838
93839 2000-02-05  Jim Meyering  <meyering@lucent.com>
93840
93841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93842         Remove explicit use of AC_HEADER_TIME.  It is required by
93843         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93844         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93845         in autoconf whereby the expansion of the latter ended up preceding
93846         the expansion of its prerequisite, AC_HEADER_TIME.
93847         Reported by Volker Borchert.
93848
93849 2000-02-03  Jim Meyering  <meyering@lucent.com>
93850
93851         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93852
93853 2000-02-03  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93856         rather than with `#if HAVE_UTMPNAME'.
93857
93858 2000-02-02  Jim Meyering  <meyering@lucent.com>
93859
93860         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93861         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93862         Reported by Eli Zaretskii.
93863
93864 2000-02-01  Jim Meyering  <meyering@lucent.com>
93865
93866         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93867
93868 2000-01-31  Jim Meyering  <meyering@lucent.com>
93869
93870         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93871         functions.  Add the time.h and sys/time.h headers along with the
93872         AC_REQUIRE'ment of AC_HEADER_TIME.
93873
93874 2000-01-31  Jim Meyering  <meyering@lucent.com>
93875
93876         * lib/nanosleep.h (nanosleep): Guard declaration with
93877         `#if ! HAVE_DECL_NANOSLEEP'.
93878         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93879         the declaration in that vendor's sys/timers.h.
93880         Reported by Christian Krackowizer.
93881
93882         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93883         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93884         (ISPRINT): Likewise.
93885         Reported by Tom Tromey.
93886
93887 2000-01-30  Jim Meyering  <meyering@lucent.com>
93888
93889         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93890
93891         * m4/prereq.m4 (utmp_includes): Define.
93892         Check for ut_user and ut_name members in both struct utmpx
93893         and struct utmp.
93894
93895 2000-01-30  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93898         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93899         header files where only utmpx.ut_user is declared.
93900
93901         * lib/readutmp.h (UT_USER): Define.
93902
93903 2000-01-29  Jim Meyering  <meyering@lucent.com>
93904
93905         * m4/lib-check.m4: New file containing library-related checks from
93906         fileutils and sh-utils (textutils had none).
93907
93908 2000-01-28  Jim Meyering  <meyering@lucent.com>
93909
93910         * m4/perl.m4: Change format of warning message to look more like that
93911         from the missing script.  Suggestion from François Pinard.
93912
93913 2000-01-25  Jim Meyering  <meyering@lucent.com>
93914
93915         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93916         well as time.h in the compile check.
93917         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93918         Fix typo in cross-compiling case: s/yes/no/.
93919
93920 2000-01-23  Jim Meyering  <meyering@lucent.com>
93921
93922         * m4/jm-macros.m4: Move df-related tests here from
93923         fileutils/configure.in
93924
93925         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93926         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93927
93928         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93929         s/space/ac_fsusage_space/.
93930         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93931
93932         * m4/ftruncate.m4: New file (derived from part of
93933         fileutils/configure.in).
93934         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93935         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93936
93937         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93938         AC_SUBST these here, rather than just in sh-util/configure.in, so
93939         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93940         all the same.
93941         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93942         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93943         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93944         (AC_SUBST(POW_LIBM)): Likewise.
93945         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93946
93947 2000-01-23  Jim Meyering  <meyering@lucent.com>
93948
93949         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93950         obstack.c.
93951
93952 2000-01-22  Jim Meyering  <meyering@lucent.com>
93953
93954         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93955
93956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93957
93958         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93959         configure.in
93960         (AC_CHECK_HEADERS): Likewise for sh-utils.
93961         (AC_CHECK_HEADERS): Likewise for textutils.
93962         Merge the three lists of headers.
93963
93964         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93965         from fileutils' configure.in.
93966
93967         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93968         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93969         check-decl.m4.
93970
93971         * m4/check-decl.m4: Use #if rather than #ifdef.
93972         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93973         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93974         (_jm_DECL_HEADERS): Define new function.
93975         (jm_CHECK_DECLARATIONS): Require it.
93976
93977 2000-01-22  Jim Meyering  <meyering@lucent.com>
93978
93979         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93980         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93981         Required for some AIX systems.  Reported by Christian Krackowizer.
93982         [TESTING] (main): New function.
93983
93984         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93985         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93986         letters.
93987
93988         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93989         iswprint.
93990
93991         * lib/strverscmp.c (ISDIGIT): Define.
93992         (strverscmp): Use ISDIGIT, not isdigit.
93993
93994 2000-01-19  Jim Meyering  <meyering@lucent.com>
93995
93996         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93997         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93998         defines `struct timespec' in <sys/time.h>
93999
94000         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94001         Thanks to Akim for explaining.
94002
94003 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94004
94005         * lib/nanosleep.c (nanosleep):
94006         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94007         POSIX.1 doesn't require SA_INTERRUPT and some systems
94008         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94009         it's been part of POSIX.1 since day 1 (in 1988).
94010
94011 2000-01-17  Jim Meyering  <meyering@lucent.com>
94012
94013         * lib/interlock: Remove unused file.  Reported by François Pinard.
94014
94015 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94016
94017         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94018         alert, backslash, formfeed, and vertical tab unnecessarily in
94019         shell quoting style.
94020
94021 2000-01-16  Jim Meyering  <meyering@lucent.com>
94022
94023         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94024         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94025         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94026         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94027
94028 2000-01-16  Jim Meyering  <meyering@lucent.com>
94029
94030         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94031         because the latter didn't work.
94032
94033 2000-01-15  Jim Meyering  <meyering@lucent.com>
94034
94035         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94036         (AC_REPLACE_FUNCS): Add memcpy and memset.
94037         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94038         Add strpbrk.
94039         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94040
94041 2000-01-12  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94044         (jm_PREREQ): Use it.
94045         (jm_PREREQ_READUTMP): New macro.
94046         (jm_PREREQ): Use it.
94047
94048 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94049
94050         Quote multibyte characters correctly.
94051         * m4/c-bs-a.m4: New file.
94052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94053         (jm_PREREQ): Use it.
94054
94055 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94056
94057         * m4/uintmax_t.m4: Port to autoconf 2.13.
94058
94059 2000-01-08  Jim Meyering  <meyering@ascend.com>
94060
94061         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94062         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94063
94064 2000-01-04  Jim Meyering  <meyering@ascend.com>
94065
94066         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94067         jm_STRUCT_DIRENT_D_TYPE.
94068         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94069         jm_STRUCT_DIRENT_D_INO.
94070         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94071         jm_STRUCT_UTIMBUF.
94072         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94073         renamings.
94074         * m4/utime.m4: Likewise.
94075
94076         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94077         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94078
94079 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94080
94081         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94082         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94083
94084 2000-01-02  Jim Meyering  <meyering@ascend.com>
94085
94086         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94087         remember if this is necessary.
94088
94089 1999-12-26  Jim Meyering  <meyering@ascend.com>
94090
94091         * m4/jm-macros.m4: Use it here.
94092         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94093
94094 1999-12-23  Jim Meyering  <meyering@ascend.com>
94095
94096         * m4/jm-macros.m4: Check for clock_gettime (moved from
94097         fileutils/configure.in)
94098         Check for gettimeofday.
94099
94100 1999-12-20  Jim Meyering  <meyering@ascend.com>
94101
94102         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94103         autoconf-2.14a-1999-12-20.
94104
94105 1999-12-19  Jim Meyering  <meyering@ascend.com>
94106
94107         * m4/lstat-slash.m4: New file.
94108         * m4/jm-macros.m4: Use the new macro:
94109         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94110
94111 1999-12-07  Jim Meyering  <meyering@ascend.com>
94112
94113         * m4/perl.m4: Require that File::Compare be available, too.
94114         Too many systems seem to lack it.
94115
94116         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94117         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94118
94119 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94120
94121         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94122         problem with the QNX 4.25 shell, which doesn't propagate exit
94123         status of failed commands inside shell assignments.
94124
94125 1999-11-17  Jim Meyering  <meyering@ascend.com>
94126
94127         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94128
94129 1999-11-07  Jim Meyering  <meyering@ascend.com>
94130
94131         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94132
94133 1999-11-06  Jim Meyering  <meyering@ascend.com>
94134
94135         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94136         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94137
94138 1999-11-05  Jim Meyering  <meyering@ascend.com>
94139
94140         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94141         configure.in of textutils, fileutils, and sh-utils into this one
94142         (shared between those packages) file.
94143         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94144         AC_STRUCT_ST_BLKSIZE.
94145
94146 1999-11-03  Jim Meyering  <meyering@ascend.com>
94147
94148         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94149         of AC_CHECK_TYPE checks includes unistd.h.
94150         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94151         Suggestion from Akim Demaille.
94152
94153 1999-10-30  Jim Meyering  <meyering@ascend.com>
94154
94155         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94156         m4-quoted string.
94157         * m4/ls-mntd-fs.m4: Likewise.
94158         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94159         * m4/jm-winsz1.m4: Likewise.
94160
94161         * m4/const.m4: Remove file, since the fix made it into the experimental
94162         version of autoconf.
94163         * m4/mktime.m4: Likewise.
94164
94165         * m4/check-type.m4: Remove file, now that the latest version of
94166         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94167
94168         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94169         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94170         AC_CHECK_TYPE.
94171
94172 1999-10-04  Jim Meyering  <meyering@ascend.com>
94173
94174         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94175
94176 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94177
94178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94179         2.95.1 bug with HP-UX 10.20.
94180
94181 1999-09-17  Jim Meyering  <meyering@ascend.com>
94182
94183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94184         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94185         due to missing strdup (against sh-utils-2.0).
94186
94187 1999-08-29  Jim Meyering  <meyering@ascend.com>
94188
94189         * m4/jm-macros.m4: Require jm_BISON.
94190         * m4/bison.m4: New file.
94191
94192 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94193
94194         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94195         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94196
94197 1999-08-05  Jim Meyering  <meyering@ascend.com>
94198
94199         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94200         to avoid conflicts with `conftest' on 8+3 filesystems.
94201         Suggestion from Eli Zaretskii.
94202
94203 1999-08-04  Jim Meyering  <meyering@ascend.com>
94204
94205         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94206         fileutils and sh-utils (textutils's getline test was inadequate).
94207         (AM_FUNC_GETLINE): Run this test.
94208         (AC_CHECK_FUNCS): Check for getdelim.
94209         Reported by Bob Proulx.
94210
94211 1999-08-02  Jim Meyering  <meyering@ascend.com>
94212
94213         * m4/jm-macros.m4: Add a comment.
94214
94215 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94216
94217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94218         <inttypes.h> defines strtoumax as a macro (and not as a
94219         function).
94220
94221 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94222
94223         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94224         that we can shift, multiply and divide unsigned long long
94225         values; Ultrix cc can't do it.
94226
94227 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94228
94229         * m4/mktime.m4: New file, which is a preview of what should appear
94230         in the next public autoconf release.
94231
94232 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94233
94234         * m4/lfs.m4: Remove this file.
94235         * m4/largefile.m4: New file.  It contains the old contents of
94236         lfs.m4, except that all names with prefix AC_LFS have been
94237         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94238         compatible with future autoconf versions.  Also, some minor m4
94239         quoting problems have been fixed.
94240
94241 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94242
94243         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94244         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94245         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94246         and simplify the shell code.
94247
94248 1999-08-01  Jim Meyering  <meyering@ascend.com>
94249
94250         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94251         m4.
94252
94253 1999-07-20  Jim Meyering  <meyering@ascend.com>
94254
94255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94256
94257 1999-07-15  Jim Meyering  <meyering@ascend.com>
94258
94259         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94260
94261 1999-05-22  Jim Meyering  <meyering@ascend.com>
94262
94263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94264
94265 1999-05-20  Jim Meyering  <meyering@ascend.com>
94266
94267         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94268         Add a colon after each `then' in case $4 is empty.
94269
94270 1999-05-16  Jim Meyering  <meyering@ascend.com>
94271
94272         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94273
94274 1999-05-10  Jim Meyering  <meyering@ascend.com>
94275
94276         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94277
94278         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94279         AC_FUNC_MKTIME.
94280
94281 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94282
94283         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94284
94285 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94286
94287         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94288         not CPPFLAGS, so that linking works correctly in IRIX.
94289
94290 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94291
94292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94293
94294 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94295
94296         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94297         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94299         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94300         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94301
94302         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94303
94304 1999-04-20  Jim Meyering  <meyering@ascend.com>
94305
94306         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94307         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94308         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94309
94310 1999-04-18  Jim Meyering  <meyering@ascend.com>
94311
94312         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94313         * m4/jm-macros.m4: Use it.
94314
94315 1999-04-06  Jim Meyering  <meyering@ascend.com>
94316
94317         * m4/strftime.m4: Remove test for %f.
94318
94319 1999-03-29  Jim Meyering  <meyering@ascend.com>
94320
94321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94322         superset of the AC_TYPE_* checks in the textutils, fileutils,
94323         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94324         AC_TYPE_PID_T.
94325
94326 1999-03-28  Jim Meyering  <meyering@ascend.com>
94327
94328         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94329         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94330         replaced e.g., in the *.sh files of the sh-utils.
94331
94332 1999-03-20  Jim Meyering  <meyering@ascend.com>
94333
94334         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94335         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94336         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94337
94338 1999-03-19  Jim Meyering  <meyering@ascend.com>
94339
94340         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94341
94342 1999-03-12  Jim Meyering  <meyering@ascend.com>
94343
94344         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94345
94346 1999-03-07  Jim Meyering  <meyering@ascend.com>
94347
94348         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94349         declared.
94350
94351 1999-02-17  Jim Meyering  <meyering@ascend.com>
94352
94353         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94354         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94355
94356 1999-02-07  Jim Meyering  <meyering@ascend.com>
94357
94358         * m4/group-member.m4: New file -- extracted from sh-utils'
94359         configure.in.
94360
94361         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94362         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94363
94364 1999-02-06  Jim Meyering  <meyering@ascend.com>
94365
94366         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94367         * m4/fnmatch.m4: Likewise.
94368         * m4/getgroups.m4: Likewise.
94369         * m4/lstat.m4: Likewise.
94370         * m4/malloc.m4: Likewise.
94371         * m4/putenv.m4: Likewise.
94372         * m4/realloc.m4: Likewise.
94373         * m4/regex.m4: Likewise.
94374         * m4/stat.m4: Likewise.
94375         * m4/strftime.m4: Likewise.
94376         Suggestion from Alain Magloire.
94377
94378         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94379         * m4/fnmatch.m4: Likewise.
94380         * m4/getgroups.m4: Likewise.
94381         * m4/getline.m4: Likewise.
94382         * m4/lstat.m4: Likewise.
94383         * m4/malloc.m4: Likewise.
94384         * m4/memcmp.m4: Likewise.
94385         * m4/putenv.m4: Likewise.
94386         * m4/realloc.m4: Likewise.
94387         * m4/regex.m4: Likewise.
94388         * m4/stat.m4: Likewise.
94389         * m4/strftime.m4: Likewise.
94390         Suggestion from Alain Magloire.
94391
94392         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94393         an argument.
94394
94395         * m4/regex.m4: Add a run-time Test for proper operation of
94396         re_compile_pattern.
94397
94398 1999-01-31  Jim Meyering  <meyering@ascend.com>
94399
94400         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94401
94402 1999-01-30  Jim Meyering  <meyering@ascend.com>
94403
94404         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94405
94406         * m4/jm-mktime.m4: Make this a wrapper around the official
94407         AM_FUNC_MKTIME rather than my private copy, now that the official one
94408         is up to date.
94409         * m4/mktime.m4: Remove file.
94410
94411         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94412         * m4/uptime.m4: Likewise.
94413         * m4/uintmax_t.m4: Likewise.
94414
94415 1999-01-28  Jim Meyering  <meyering@ascend.com>
94416
94417         * m4/jm-macros.m4: Use jm_AFS.
94418         * m4/afs.m4: New file (from fileutils' configure.in).
94419
94420         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94421         * m4/chown.m4: Likewise.
94422         * m4/d-ino.m4: Likewise.
94423         * m4/d-type.m4: Likewise.
94424         * m4/fnmatch.m4: Likewise.
94425         * m4/getgroups.m4: Likewise.
94426         * m4/gettext.m4: Likewise.
94427         * m4/jm-mktime.m4: Likewise.
94428         * m4/jm-winsz2.m4: Likewise.
94429         * m4/lcmessage.m4: Likewise.
94430         * m4/ls-mntd-fs.m4: Likewise.
94431         * m4/malloc.m4: Likewise.
94432         * m4/memcmp.m4: Likewise.
94433         * m4/putenv.m4: Likewise.
94434         * m4/realloc.m4: Likewise.
94435         * m4/st_mtim.m4: Likewise.
94436         * m4/strftime.m4: Likewise.
94437
94438 1999-01-16  Jim Meyering  <meyering@ascend.com>
94439
94440         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94441         (ARGMATCH_DIE_DECL): Define.
94442
94443 1999-01-12  Jim Meyering  <meyering@ascend.com>
94444
94445         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94446         Reported by Lars Hecking.
94447
94448 1999-01-10  Jim Meyering  <meyering@ascend.com>
94449
94450         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94451         gross kludge.
94452         * m4/inttypes_h.m4: Likewise.
94453         * m4/lstat.m4: Likewise.
94454         * m4/malloc.m4: Likewise.
94455         * m4/readdir.m4: Likewise.
94456         * m4/realloc.m4: Likewise.
94457         * m4/st_dm_mode.m4: Likewise.
94458         * m4/stat.m4: Likewise.
94459         * m4/utimbuf.m4: Likewise.
94460         * m4/utimes.m4: Likewise.
94461
94462         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94463         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94464         comments in config.h.in are meaningful.
94465
94466         * m4/jm-macros.m4: Require autoconf-2.13 here.
94467
94468         * m4/regex.m4: By default, don't use the included regex.c on systems
94469         with glibc 2.  Suggestion from Uli Drepper.
94470
94471 1999-01-02  Jim Meyering  <meyering@ascend.com>
94472
94473         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94474
94475 1998-12-18  Jim Meyering  <meyering@ascend.com>
94476
94477         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94478         Based on a suggestion from Lars Hecking.
94479
94480 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94481
94482         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94483
94484 1998-11-16  Jim Meyering  <meyering@ascend.com>
94485
94486         * m4/lfs.m4: Double-quote the `uname...` expression.
94487
94488 1998-11-14  Jim Meyering  <meyering@ascend.com>
94489
94490         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94491         * m4/stat.m4: Likewise.
94492
94493 1998-11-03  Jim Meyering  <meyering@ascend.com>
94494
94495         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94496         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94497
94498 1998-10-18  Jim Meyering  <meyering@ascend.com>
94499
94500         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94501
94502 1998-10-17  Jim Meyering  <meyering@ascend.com>
94503
94504         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94505         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94506         calls for those previously hard-coded headers.  Instead, take a new
94507         parameter.
94508         (jm_CHECK_DECLARATIONS): Reflect interface change.
94509         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94510         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94511
94512         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94513
94514 1998-10-14  Jim Meyering  <meyering@ascend.com>
94515
94516         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94517         instead of "TZ=America/Vancouver".  From Paul Eggert.
94518
94519 1998-10-11  Jim Meyering  <meyering@ascend.com>
94520
94521         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94522         This adds a test for a recently added compatibility fix for mktime.c.
94523         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94524
94525 1998-09-27  Jim Meyering  <meyering@ascend.com>
94526
94527         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94528
94529         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94530         ../configure.in, including a change from Gordon Matzigkeit to allow
94531         cross-compiling for the Hurd.
94532
94533         * m4/glibc.m4: New file/macro to test for the GNU C Library
94534         versions 1 and 2.  From Gordon Matzigkeit.
94535         Indent.
94536
94537 1998-09-21  Jim Meyering  <meyering@ascend.com>
94538
94539         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94540
94541 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94542
94543         Port nanosecond-resolution times to UnixWare 2.1.2 and
94544         pedantic Solaris 2.6.
94545
94546         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94547         AC_STRUCT_ST_MTIM.
94548         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94549         Generate name of ns member, instead of just 1 or undef.
94550         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94551
94552 1998-08-15  Jim Meyering  <meyering@ascend.com>
94553
94554         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94555         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94556         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94557         instead of jm_TYPE_SSIZE_T.
94558
94559 1998-08-12  Jim Meyering  <meyering@ascend.com>
94560
94561         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94562
94563 1998-08-02  Jim Meyering  <meyering@ascend.com>
94564
94565         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94566         in acconfig.h manually.
94567
94568 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94569
94570         * m4/st_mtim.m4: New file.
94571
94572 1998-07-28  Jim Meyering  <meyering@ascend.com>
94573
94574         * m4/utimes.m4: Undef stat.
94575
94576 1998-07-25  Jim Meyering  <meyering@ascend.com>
94577
94578         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94579         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94580
94581 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94582
94583         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94584         uid and gid actually remain unchanged.
94585
94586 1998-07-07  Jim Meyering  <meyering@ascend.com>
94587
94588         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94589
94590 1998-07-04  Jim Meyering  <meyering@ascend.com>
94591
94592         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94593         to prove that this macro can be used in packages without regex.c.
94594
94595 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94596
94597         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94598         is to be used.
94599
94600 1998-07-03  Jim Meyering  <meyering@ascend.com>
94601
94602         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94603
94604         * m4/gettext.m4: New file -- from gettext-0.10.35.
94605         * m4/lcmessage.m4: Likewise.
94606         * m4/progtest.m4: Likewise.
94607
94608         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94609         * m4/jm-macros.m4: Require the new macro.
94610
94611 1998-06-29  Jim Meyering  <meyering@ascend.com>
94612
94613         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94614         for the definition of NGROUPS (used in a system header included
94615         by sys/mount.h).
94616
94617 1998-06-28  Jim Meyering  <meyering@ascend.com>
94618
94619         * m4/ls-mntd-fs.m4: New file.
94620         * m4/fstypename.m4: New file.
94621
94622         * m4/jm-macros.m4: Require the new macro.
94623         * m4/jm-glibc-io.m4: New file.
94624
94625 1998-05-19  Jim Meyering  <meyering@ascend.com>
94626
94627         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94628         * m4/lchown.m4: New file.
94629
94630         * m4/Makefile.am.in: New file.
94631         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94632
94633 1998-05-14  Jim Meyering  <meyering@ascend.com>
94634
94635         * m4/Makefile.am (EXTRA_DIST): Add them.
94636         * m4/jm-macros.m4: New file.
94637         * m4/utimbuf.m4: New file.
94638
94639 1998-05-12  Jim Meyering  <meyering@ascend.com>
94640
94641         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94642
94643 1998-05-11  Jim Meyering  <meyering@ascend.com>
94644
94645         * m4/isc-posix.m4: New file.
94646
94647 1998-05-10  Jim Meyering  <meyering@ascend.com>
94648
94649         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94650
94651 1998-05-09  Jim Meyering  <meyering@ascend.com>
94652
94653         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94654         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94655         with automake.
94656
94657         * m4/ssize_t.m4: New file.
94658         * m4/mktime.m4: Remove file -- the new automake has this now.
94659
94660 1998-04-26  Jim Meyering  <meyering@ascend.com>
94661
94662         * m4/assert.m4: New file.
94663         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94664
94665 1998-04-05  Jim Meyering  <meyering@ascend.com>
94666
94667         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94668         (jm_PREREQ): Use it here.
94669
94670 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94671
94672         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94673         in acconfig.h.
94674
94675 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94676
94677         * m4/prereq.m4: New file.
94678         * m4/error.m4: New file.
94679         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94680
94681 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94682
94683         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94684         cache-check for the same variable -- that defeated the purpose of
94685         the test; the test program was never run.  This was a problem only
94686         on systems with losing getline functions -- HP-UX 10.20 is one.
94687         Reported by Bjorn Helgaas.
94688
94689 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94690
94691         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94692
94693 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94694
94695         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94696
94697         * m4/const.m4: New file.  Use an initializer in this declaration
94698         typedef int charset[2]; const charset x;
94699         Reported by Bob Glickstein.
94700
94701 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94702
94703         * m4/chown.m4: Fix reversed types on -1 args to chown.
94704         From Kaveh Ghazi.
94705
94706 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94707
94708         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94709         Add lseek and memchr.
94710
94711         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94712         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94713         have a 20-character limit on names.
94714
94715 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94716
94717         * m4/inttypes_h.m4: New file.
94718         * m4/uintmax_t.m4: New file.
94719         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94720
94721
94722         -----
94723
94724         Local Variables:
94725         coding: utf-8
94726         End:
94727
94728         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94729
94730         Copying and distribution of this file, with or without
94731         modification, are permitted provided the copyright notice
94732         and this notice are preserved.